I am working with Android Studio. When I run the debugger, the debugger steps into the Android and Java System classes, too. In the Android Studio preferences|Debugger|Stepping, I have checked "Do not step into classes" and a bunch of patterns defined, like java.*, com.android.*, javax.*, com.sun.*, sun.*, android.*, etc. but the debugger still steps into these classes.
What I am missing here?
Related
Anyone that is in need of it .. attached here is the Motorola Atrix4G addon for the Android SDK .. also the instructions for installation and execution.
http://www.mediafire.com/?73hkz09wr0l1kqe
Installing and Using Motorola SDK Add-ons
A Motorola SDK add-on, when added to the Android™ SDK, allows you to run and debug your applications on an emulated Motorola handset. Note that while the device image that the add-on presents does not necessarily reflect the look of the actual device, from a functional standpoint it should be a fairly faithful emulation of the actual handset.
Installing the add-on
To install the Motorola SDK add-on, unzip it, and copy the resulting directory to the directory named add-ons within the Android SDK that you are using (if you are using MOTODEV Studio for Android and are not sure where it placed the Android SDK, check the SDK Location field in the Android preferences dialog).
** NOTE: If MOTODEV Studio for Android or Eclipse™ were running when you copied the SDK add-on, you will need to restart it for the add-on to be recognized by your development environment.
Using the add-on
In order to run or debug your applications on an emulated Motorola handset, you must first create an AVD that has its AVD Target set to reference the SDK add-on. You can then deploy your applications to it. When creating your projects, you can either target the emulated Motorola device specifically (which you would do if your application runs only on that device), or you can select a more general, compatible target such as Android 1.5. The following sections detail the steps involved in each of these tasks.
Creating an AVD
To create an AVD named "Motorola" using the command line, do the following (you may need to be within the Android SDK's "tools" directory):
android list targets
The details for each possible target are listed, starting with a unique ID number that identifies that target. Make note of the ID number for the Motorola add-on you want to target.
android create avd -n Motorola -t target-ID
For target-ID supply the ID number for the target you obtained from the previous step.
To create it from within MOTODEV Studio for Android:
Select Android AVD Manager from the Window menu. The Android Virtual Devices Manager dialog appears.
Enter Motorola (or whatever name you want to give the new AVD) in the Name field.
From the Target list, select the target named for the Motorola device you are targeting.
From the Skin list, select the skin named for your target device.
If you want the emulated device to have an SD card, in the SDCard field either specify the path and filename to a file containing an existing SD card image, or specify a size (such as 64M) to create a new, empty SD card image. Leave this field blank if the device isn't to have an SD card.
Click Create AVD.
Click Finish to close the dialog.
When creating Run or Debug configurations, you can now select this new AVD when choosing a target device.
**NOTE: If your newly-created AVD does not appear in the Device Management view, click Refresh, which is located in the top right corner of that view.
Starting the AVD
If you start a Run or Debug configuration that specifies a Motorola SDK add-on AVD as the target device, the AVD will be automatically launched for you. If you want to start the AVD without deploying an application to it, you can do so either from the command line or from within MOTODEV Studio for Android. From the command line, the following command will start the AVD named "Motorola":
emulator -avd Motorola
To start it from within MOTODEV Studio for Android, select the AVD from within the Device Management view and click Start.
Targeting the Motorola device
If your application is designed specifically for a Motorola device, select the corresponding Motorola SDK add-on as the project target when creating the project.
To change an existing project so that it targets the SDK add-on from an Eclipse-based IDE such as MOTODEV Studio for Android:
Right-click the project in the Package Explorer and select Properties.
From the list of properties select Android.
The project build target is shown in the right side of the dialog; select the one named for your target device.
If you are not using an Eclipse-based IDE you can change your project's target with the android update project command; see Google's developer documentation on developing in other IDEs.
Awesome exactly what I was looking for!! Thanks for the Info looking foward to working with this more. XD
Djazin said:
Awesome exactly what I was looking for!! Thanks for the Info looking foward to working with this more. XD
Click to expand...
Click to collapse
You're welcome
What features does the addon add? I'm assuming nothing I can play with right now because the main app I'm working on now is in Necessitas/Qt, but when I get back to playing with Eclipse what could this do?
Hmm, that's weird. Maybe I'm missing something, but why set up a mediafire link for it when it's freely available from the Motorola development website?
Plus if you download it from there, you can get install directions, USB drivers, motodev studio, and even some sample apps...
I have a VirtualBox running, and for running Android Studio emulator I'm either getting ioctl(KVM_CREATE_VM) failed: Device or resource busy or (upon unloading KVM modules) KVM is required to run this AVD.
I don't want to swap VB with QEMU (at least not now), and for my current purposes I'm fine with unaccelerated emulation for x86 Android. So how do I disable acceleration?
One way I see is probably to download an ARM, so acceleration wouldn't be possible for x86 host, but it's an inelegant solution for different reasons.
Downgrade to Android Studio 1.4 (delete Android Studio 1.5 installation, download zip from http://tools.android.com/download/studio/builds/1-4-0, follow installation instructions).
Follow Stuart Axon's instructions above.
Gabor as far as I can tell is correct (and addresses the OP's question) - the option to use this acceleration by starting the emulator from within Android Studio 1.5 has been removed.
(Weirdly, I don't seem to be able access the acceleration when starting the emulator from the command line once Android Studio 1.5 has been installed - but maybe I'm wrong. Hopefully if I'm wrong someone who knows better will give an answer rather than just leaping at the chance to down vote. Glory to the downvote! Surely there should be badges for down voting: Gold 'downvoted 500 first questions', silver 'downvoted a question to -100', bronze 'downvoted a novice user into resigning'.)
im new to this forum and i need help in my android studio
i always try to upgrade android sdk platform tools and i get this error
java.io.IOException: Cannot run program "C:\Users\wadda\AppData\Local\Android\Sdk\platform-tools\adb.exe": CreateProcess error=2, The system cannot find the file specified
i wish u can help me and i wish u link me other forums so i can ask there as well about android studio
Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.
Unity Dev said:
Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.
Click to expand...
Click to collapse
im so new to android studio but its on recommended and its C:\Program Files\Android\Android Studio\jre
Android Studio does not start, all the paths are written JAVA_HOME, JDK_HOME, PATH does not help. Windows I have x64. After installing the program, the executable studio64.exe starts, but nothing happens. When I open the startup file studio.exe, I get an error:
Failed to load JVM DLL c:\Program Files\Java\jdk-9.0.1\bin\server\jvm.dll if you already have a 32-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > Sysytem Settings > Environment Variables.
JAVA SDK works, checked, the latest version of jdk-9.0.1 is installed from the oracle site, checked on Eclipse. Help please, I do not know what to do.
Is CMake part of Android Studio? When I tried to do a Gradle Sync in Android Studio, I got an error that the CMake is too early a version and I need to update it. But I get this error even if I uninstall CMake. This tells me that CMake must be embedded somehow in Android Studio. So, how can I fix this? Please help.
This happens even if I remove cmake from the command line. So it seems that cmake is embedded into Android Studio. So how do I update cmake if it is part of Android Studio somehow?
When running the Gradle Sync command in Android Studio I get an error message that the CMake is outdated and I need to download a later version.