adt

Update Android Gallery

我怕爱的太早我们不能终老 提交于 2019-12-13 20:33:46
问题 I am developing an Android app which reads images from external storage for image processing, creates a new folder in "pictures" on external storge and stores the processed images in it. It takes the standard android gallery a long time or even a reboot to recognize the new folder. Is there a way to update android gallery programmatically so my new folder gets recognized from gallery? 回答1: Trigger the mediascanner to read all the media files again. Use this piece of code : sendBroadcast(new

Cannot edit main.xml in Eclipse Android project

巧了我就是萌 提交于 2019-12-13 17:43:10
问题 I've created several Android applications with the ADT in Eclipse, but I'm now unable to edit res/layout/main.xml in new or old Android projects. When I type in the main.xml tab, my keystrokes have no effect. Similarly, I am unable to make changes in the Graphical Layout tab. I can drag a widget onto the screen, but it does not remain when I let go of the mouse button. I have checked that main.xml is not write-protected, both through Eclipse and the file system. I am able to create another

Eclipse android ADT installation issue

天涯浪子 提交于 2019-12-13 15:04:56
问题 I followed every step to install android ADT plugin installation with Eclipse IDE. I have Eclipse for Java installed on my windows 7 machine. I followed each and every step. Despite of doing all I am getting the following error. Nobody had this error. I am so anxious please help An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase. session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=,

AVD won't launch (SDK Tools 22.6.2)

末鹿安然 提交于 2019-12-13 12:25:10
问题 I downloaded the ADT bundle (22.6.2). When opening the Android SDK Manager I saw the version of SDK Tools was 22.3, upgrade available for SDK Tools 22.6.2. I tried running an emulator first and that worked perfectly. After that I installed SDK Tools 22.6.2, along with other API's. When I tried opening an emulator again, it did not work. I can create, edit and delete AVD's. But they won't start. After I hit launch , I get the Starting Android Device screen, en the bar fills, but nothing

SecurityException: Unable to find field for dex.jar android

99封情书 提交于 2019-12-13 11:36:53
问题 Yesterday evening I upgrade to ADT-21 and restarted eclipse. Then eclipse said that you need to update android tool to version 21. I downloaded window_installer21 and install it in the same location where my previous window_installer was installed. So it overwrite the file. Then I restarted eclipse and suddenly all project stop working. Eclipse always open with the error. SecurityException: Unable to find field for dex.jar And when i try to launch a project it stops with the below error

my apps dont run after update eclipse & adt

我们两清 提交于 2019-12-13 07:34:52
问题 I updated Sdk manager & eclipse & Adt but now new android app dont run. my android app automatically create actionbaractivity & import android-support-v7 this is my error log: Description Resource Path Location Type ActionBarActivity cannot be resolved to a type MainActivity.java /testpro/src/com/example/testpro line 9 Java Problem ActionBarActivity cannot be resolved to a type MainActivity.java /testpro/src/com/example/testpro line 13 Java Problem ActionBarActivity cannot be resolved to a

Android tools doesnt show up on Eclipse

为君一笑 提交于 2019-12-13 05:42:47
问题 I've installed the latest JRE, eclipse and I have the ADT plugin installed in eclipse. Somehow the android tools don't show up in the window. Instead, there are blank spaces where it should've been. Any help would be appreciated. Thanks 回答1: Switch to the Java perspective (you are currently in the 'Resource' perspective): Window->Open Perspective->Java (you may need to select from the Other dialog box). If you don't see Java as an option, you may have downloaded Eclipse classic, rather than

How to open html file in editor using ADT Bundle for phonegap Apps

萝らか妹 提交于 2019-12-13 05:33:59
问题 I had download and install ADT Bundle but the issue when i access the phonegap app workspace and try to open the html file it opens and webpage instead of editor can anyone tell how to open the html file in editor... Thanks in Advance. 回答1: Salam. I have this problem and solve it with this solution: Downlaod last version of Kepler - Eclipse IDE for Java Developers Open Eclipse and in Help => Install New Software... In "Install" dialog, from "Work with:" select "--All Available Sites--" (for

Not generating the Activity and layout files while creating project

ε祈祈猫儿з 提交于 2019-12-13 05:16:24
问题 I am using eclipse kepler version and latest ADT plugin. But when i tried to create an android project it is not creating the blank activity and layout file. I could see the same question asked many times. In all those links the answer is given like Help->install new software-> https://dl-ssl.google.com/android/eclipse/.But when i tried this it is displaying like everything is already installed. So i need a proper solution.I am stuck with it. Please do help me. 回答1: I got the same problem as

Android Asset Loading

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 04:42:19
问题 Still haven't found an answer to this question. I've been copying and pasting source code from a book, and this is one of the example activities. Unfortunately when I run the activity it goes straight to the "catch" meaning that the "try" failed. When debugging, it seems like I get a FileNotFound exception at "AssetFileDescriptor descriptor = assetManager.openFd("bloop.wav")". I put the file in the project's assets folder just like I do with any other file (right click assets>new>file>select