adt

Eclipse behaving differently while creating new project/activity

血红的双手。 提交于 2019-12-05 03:26:35
问题 Whenever I create new project it always creating appcompat_v7 project with my new project. And when I create new android activity it always extend ActionBarActivity and also create fragment_main.xml. I tried to update adt and s\w also still no luck and this code also generated in main activity public static class PlaceholderFragment extends Fragment { public PlaceholderFragment() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

Import android project in ADT Eclipse from github

梦想与她 提交于 2019-12-05 02:59:56
I'm trying to import an android project from github into ADT Eclipse but it doesn't find any projects in the repository when I clone it. The repo is clearly an android application project (from looking at the source) but no project is found to import. My steps are as follows: In "Package explorer" right-click and select "Import" Import project from Git. Enter uri: https://github.com/moagrius/MapViewDemo Just import master. When cloning is done the following dialog shows up: When choosing "Import existing projects" the below dialog shows: Why are no projects found to import!? How can I import

Cannot create a new android application on eclipse

只谈情不闲聊 提交于 2019-12-05 02:54:48
问题 I am a beginner to android development,I have downloaded adt-bundle-windows-x86_64 with android 4.2 and started the eclipse version(Android developer tools) provided with it. But when I click finish after filling all the details in new android application dialog box,the finish button doesn't seem to respond at all. At the first click on finish button an application is created but no java files in it and the dialog box stays still.At least the android 4.2 library is not in the application.src

Android ADT - Disable “use same device for future launches”

此生再无相见时 提交于 2019-12-05 02:19:35
How can I uncheck the "use same device for future launches"? Right click on your project, and go to Run As -> Run Configurations . Then, under Android Application -> (Your Project) , go to the Target tab, and check the first radio option Always prompt to pick device . In Android Studio: Menu Run -> Edit Configurations and here in app tab uncheck "Use same device for future launches" Bottom line: my ADT on Mac environment has some sort of a bug. Edit: This "bug" is fixed on OSX Yosemite and Eclipse Luna If you are using eclipse JUNO, exit from eclipse and it will be disabled. When you run

Over populating Logcat causes windows to freeze, until hard reboot is performed

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 02:18:37
The title speak for itself, but I would add some pointers I've noticed along the way. I would like anyone which also experience the end result while developing for Android to try to reproduce this and see if this scenario is really the case, and if someone have a solution, that would make me very happy :), it is extremely frustrating that I need to hard reboot my computer while developing... The crash happens when Logcat is over populated. By over populated I mean that from a point in time, if you would leave a device connected in debug mode for a while, and you would look at the Logcat view,

android ndk及工具地址

不羁岁月 提交于 2019-12-04 23:42:59
2016.11 NDK 13b 从Android Studio 2.2开始,NDK已经很轻易的可以下载集成到AS中,无需单独下载安装。 https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip 2016.10 Android Studio 2.2.1.0 https://dl.google.com/dl/android/studio/install/2.2.1.0/android-studio-bundle-145.3330264-windows.exe https://dl.google.com/dl/android/studio/install/2.2.1.0/android-studio-ide-145.3330264-windows

Improving Android string resources with XLIFF

荒凉一梦 提交于 2019-12-04 23:12:54
I've seen some Google apps and code samples using XLIFF tags to wrap variables. I see some great advantages in doing this, especially for replacing non-descriptive format arguments such as %1$s . Unfortunately, XLIFF doesn't seem to integrate well into ADT. Take the following string resource, for instance: <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" xmlns:tools="http://schemas.android.com/tools"> <string name="share_with_application"> Share your score of <xliff:g id="score" example="1337">%1$s</xliff:g> with <xliff:g id="application_name" example="Bluetooth">%2$s</xliff:g>!

In Eclipse, how can I quickly access the source of an “android library project” from the source of a project that uses it?

我的梦境 提交于 2019-12-04 23:09:48
问题 Project A is an android library project in my workspace(via project properties->android->library: is library). Project A declares classA. Project B uses project A (via project properties->android->library: add...). Project B instantiates classA. When I use F3 ("open declaration") over the classA instance in project B, it leads me to the classA.class in the A.jar that is included in B, built from A. Is there a way to go directly to the source classA.java in project A rather than looking for it

Which Eclipse works flawlessly with ADT?

拜拜、爱过 提交于 2019-12-04 18:10:11
There are many Eclipse versions out there. e.g.:Indigo,Juno,Kepler,Luna,Mars. Which of these works best with ADT? There are many such questions on Stack Overflow, but they are all 4-5 years old. I am looking for something more recent. Which of these works best with ADT? That would depend on what version of ADT you are using. To know more about which versions of Eclipse supports what all ADT version refer to ADT Plugin Release Notes . I don't think there is any "best" eclipse version to work with an ADT. Just go for the latest Eclipse version that can use the ADT version you intent to use. Also

Eclipse (with adt) won't see/recognize a running avd

五迷三道 提交于 2019-12-04 18:05:25
I have been trying this for a week or so now. I have followed the tutorial to get hello android working but while an AVD starts the program doesn't run. I am running Windows 7 64 bit with eclipse 3.5.2 running adt 0.9.9 and SDK r7. the sdk is installed in C:\android-sdk-windows eclipse is installed in C:\eclipse What i can do: create an AVD (through console and the manager) i can compile the code Run my code (on automatic it will start an avd) Bad stuff that happens when i run my code on manual my running avd does not appear when i run on automatic with my avd already started i get the error -