start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator
start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator
Android Debug Bridge (adb) is a command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:
When you start an adb client, the client first checks whether there is an adb server process already running.
| net stop jenkins | |
| java -Dhudson.util.ProcessTree.disable=true -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080 |
| >>> import sys | |
| >>> dir(sys) | |
| ['__displayhook__', '__doc__', '__excepthook__', '__name__', '__package__', | |
| '__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', | |
| '_current_frames', '_getframe', '_mercurial', 'api_version', 'argv', | |
| 'builtin_module_names', 'byteorder', 'call_tracing', 'callstats', | |
| 'copyright', 'displayhook', 'dont_write_bytecode', 'exc_clear', 'exc_info', | |
| 'exc_traceback', 'exc_type', 'exc_value', 'excepthook', 'exec_prefix', | |
| 'executable', 'exit', 'flags', 'float_info', 'float_repr_style', |
| #As your program gets longer, you may want to split it into several files for easier maintenance. | |
| #You may also want to use a handy function that you’ve written in several programs without copying its definition into each program. | |
| #To support this, Python has a way to put definitions in a file and use them in a script or in an interactive instance of the interpreter. | |
| #Such a file is called a module; definitions from a module can be imported into other modules or into the main module | |
| # Fibonacci numbers module | |
| # fibo.py | |
| def fib(n): # write Fibonacci series up to n | |
| a, b = 0, 1 | |
| while b < n: |
| The method list() takes sequence types and converts them to lists. This is used to convert a given tuple into list. | |
| aTuple = (123, 'xyz', 'zara', 'abc'); | |
| aList = list(aTuple) | |
| print "List elements : ", aList | |
| #When we run above program, it produces following result: |
| Do: | |
| ================ | |
| 1.name the directory something related to your project. For example, if your project is named "Twisted", | |
| name the top-level directory for its source files Twisted. When you do releases, you should include a version number suffix: Twisted-2.5. | |
| 2.create a directory Twisted/bin and put your executables there, if you have any. | |
| Don't give them a .py extension, even if they are Python source files. | |
| Don't put any code in them except an import of and call to a main function defined somewhere else in your projects. | |
| (Slight wrinkle: since on Windows, the interpreter is selected by the file extension, | |
| your Windows users actually do want the .py extension. | |
| So, when you package for Windows, you may want to add it. |
| /** | |
| * A map of HTTP header names with irregular case. | |
| * IrregularHeaderNames.js | |
| */ | |
| module.exports = [ | |
| 'Content-ID', | |
| 'Content-MD5', | |
| 'DNT', | |
| 'ETag', | |
| 'P3P', |
| //Since you asked a similar question, let's take it step by step. | |
| //It's a bit longer, but it may save you much more time than I have spent on writing this: | |
| //Property is an OOP feature designed for clean separation of client code. | |
| //For example, in some e-shop you might have objects like this: | |
| function Product(name,price) { | |
| this.name = name; | |
| this.price = price; | |
| this.discount = 0; |