adt

How smart is Eclipse / ADT when it comes to Android Library Projects?

拜拜、爱过 提交于 2019-11-30 18:06:27
So, I've got a handful of "Utility" style classes in some of my projects. I'm curious if I can move them to an Android Library Project that contains all or most of my non-app specific glue code (wrappers and interfaces, mostly). So, my question is what happens to the files I don't need in that library. I know Android Library Projects basically just copy their code into the other project, so if I say use 25% of the code in my "general purpose" library, will my app actually contain the bytecode for all 100%, or does it properly strip it down to only the stuff I need. I had some issues with

Sort Android strings.xml in Alphabetical Order

◇◆丶佛笑我妖孽 提交于 2019-11-30 17:48:47
While programming my Android app I just kept inserting elements in strings.xml with no order whatsoever . Is there a shortcut key (like Ctrl + Shift + F can organize android: attributes in an XML layout file) that sorts string elements alphabetically? For anyone else who bumps into this. Copy all the string elements, paste into an Excel spreadsheet sort A-Z and then copy and paste back. This is actually a feature in ADT plugin: However, it only sort elements in Resources viewer, it doe not modify anything in the original strings.xml file. For those who have access to GNU or similar *nix

What is the difference between some “Android Development/SDK tools”?

烈酒焚心 提交于 2019-11-30 17:37:05
What is the difference between the Android Development Tools and the Android SDK Tools and the Android SDK Platform-tools and the Android SDK Build-tools? And why not merge some of them into fewer groups? The 4 tools confused me when I downgrading/upgrading them. akinfermo Well, the Android Development Tools(ADT) is a plugin that is used in combination with Eclipse to develop apps.There is an ADT bundle that is a package that contains everything you need to start creating apps. However the SDK Tools is a downloadable component for the Android SDK . It includes the complete set of development

eclipse, new android application project, “next button” is disabled in section that wants the project name

守給你的承諾、 提交于 2019-11-30 17:29:28
I want to start programming for android so I downloaded Eclipse and installed ADT Plugin on it and downloaded the Android SDK Now when I want to create a new android project in "File->New->Android Application Project" it directs me to a page that wants "Application name" & "Project name" etc. so I filled the fields like this: Application name: Hello Project name: Hello Package name: test.example.hello Minimum required SDK: API8: Android 2.2(Froyo) Target SDK: API16: Android 4.1(Jelly Bean) Compile with: theme: none But the "Next" button is disabled! in the top of the page it says: " A package

Eclipse ADT Plugin - No Build Target Available

醉酒当歌 提交于 2019-11-30 17:20:38
When trying to create a new Android Project with Eclipse, there is no Build Target available. I have: Installed ADT Plugin Created a virtual device Installed Android SDK, installed platform + platform tools Set the Android SDK path to Eclipse. I have tried every fix I have found, but they just tell me to do those things I just mentioned. EDIT: In Window -> Preferences -> Android, it accepted my path, but there is No target avaible there. And yes, I have installed: Android SDK tools, revision 10 Android SDK platform-tools, revision 3 SDK platform Android 2.2 API 8, revision 2 Set your SDK home

What does the command “Fix Project Properties” exactly do?

感情迁移 提交于 2019-11-30 17:09:21
What does the "Project->Android Tools->Fix Project Properties" Eclipse command exaclty do? I have read many times to use it, mostly in answers related with Android R generation problems in Eclipse, but for me it is like magic, I press on it and I suppose it Fixs some Project Properties, but nothing happens... no visual feedback, no info on which project properties has been fixed... anyone can give a bit of insight on what does it exactly do? Thx By looking into ADT source code, specifically into FixProjectAction and reading source and comments we can see that it calls: ProjectHelper.fixProject

java.lang.ClassNotFoundException when install app from APK [duplicate]

有些话、适合烂在心里 提交于 2019-11-30 16:20:22
This question already has an answer here: Android ClassNotFoundException: Didn't find class on path 36 answers The error I describe below, occurs when: Install the app on a device directly from the APK. Download the app by Play Store The error don´t occurs when: Install apk through Eclipse pressing the 'run' button java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{my.package/my.package.MainActivity}: java.lang.ClassNotFoundException: my.package.MainActivity at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1998) at android.app.ActivityThread

Invalid Key hash facebook android sdk

守給你的承諾、 提交于 2019-11-30 16:19:08
问题 I'm trying to use Facebook Android SDK to develop a simple app with the Facebook Login Button. But i'm having trouble with Key Hashes. I've created both a debug key and a release key:(in mac) Debug key: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64 i also tryed this code also public static void showHashKey

MAC下Android的Eclipse开发环境的搭建

对着背影说爱祢 提交于 2019-11-30 15:21:38
一.Eclipse的下载 到网站: http://www.eclipse.org/downloads/ 上,由于我们是用Java开发的所以步骤如下: 1. 找到“Eclipse IDE for java Developers”此处右上角会根据你当前使用的系统自动选择,Mac下就会自动选择位“Mac OS X(Cocoa)” 2. 然后点击右边的“Mac OS X 64bit”(这里我的Pro是i5处理器可以用64位的),根据你的机器也可以选择“Mac OS X 32bit”进行下载。 二.安装ADT ADT是Android应用程序的开发环境 在线安装,本来还有个离线安装的,但是我试图去下载这个离线安装包但是没有找到下载的地方,所以这里我主要介绍如何进行在线安装。 1. 点击菜单中的Help ——> Install New Software⋯ ; 2. 在弹出的对话框中有个“Work with”,在右边的输入栏中输入: https://dl-ssl.google.com/android/eclipse/ 然后下面就会pending出来一个“Developer Tools”,勾选上,然后一路的Next下去就可以安装完成。 三.设定ADT 在菜单栏Refactor中如果能看到Android的标签表示ADT安装成功。 1下载Android SDK 打开网站: http:/

Assigning 'wrap_content' or '-2' to dimension

末鹿安然 提交于 2019-11-30 14:31:12
问题 I want to create a dimension that would be equal to 'wrap_content' constant. So according to developer.android.com Reference I write: <dimen name="horizontal_border_height">-2</dimen> But ADT says: Error: Integer types not allowed (at 'horizontal_border_height' with value '-2') Asigning 'wrap_content' value generates error too. What am I doing wrong? Any ideas how to make it work? 回答1: Check out app resources API guide and you can see supported unites for a dimension value. You can't use