adt

How do you set an Android phone to be a “debug” device?

跟風遠走 提交于 2019-12-08 12:30:51
问题 When I run an app from Eclipse and the Android Device Chooser comes up, some devices start with the Debug column set to Yes . This allows you to debug an app on the device without setting debuggable in the manifest to true . Does anyone know how to change this on the phone? I'd love to be able to set this Debug attribute set to Yes for any given phone. Any way including rooting and installing a particular ROM is a welcome suggestion if it works. Just to pre-empt it, Settings > Applications >

Upgraded to SDK version 17, now libraries don't link correctly

会有一股神秘感。 提交于 2019-12-08 11:22:29
So, I recently upgraded my Android SDK, and for some reason it seems to have broken Analytics. I'm getting the following error from LogCat, which seems to be key, but I can hardly imagine that they would have removed getInstance, so I'm at a bit of a loss. Any ideas? Could not find method com.google.android.apps.analytics.GoogleAnalyticsTracker.getInstance, referenced from method 03-22 06:30:44.341: W/dalvikvm(217): VFY: unable to resolve static method 117: Lcom/google/android/apps/analytics/GoogleAnalyticsTracker;.getInstance ()Lcom/google/android/apps/analytics/GoogleAnalyticsTracker; 03-22

IBM Worklight - Android SDK - Emulator deployment issue - Unfortunately, 'app' has stopped

為{幸葍}努か 提交于 2019-12-08 10:28:38
问题 I am on Mac 10.8.3, Eclipse Juno with latest Android SDK 22.0.0, IBM Worklight version 5.0.6.1. I have made a small Mobile App using Dojo Mobile & HTML5/CSS3 in Worklight but having hard time to deploy on Android Emulator though it's running fine in Xcode. Here is the logcat, looks like something goes weird from Java end hence getting the runtime exceptions. 05-28 09:56:45.197: E/AndroidRuntime(562): FATAL EXCEPTION: main 05-28 09:56:45.197: E/AndroidRuntime(562): java.lang.RuntimeException:

Adding external jar in adt 20 in android application projects

时间秒杀一切 提交于 2019-12-08 09:33:02
问题 07-06 10:32:07.244: E/dalvikvm(319): Could not find class 'org.AstroVed.Panchanga.Moment', referenced from method com.astroved.horawatch.HoraWatchActivity.onCreate 07-06 10:32:07.244: W/dalvikvm(319): VFY: unable to resolve new-instance 186 (Lorg/AstroVed/Panchanga/Moment;) in Lcom/astroved/horawatch/HoraWatchActivity; 07-06 10:32:07.254: D/dalvikvm(319): VFY: replacing opcode 0x22 at 0x000f 07-06 10:32:07.254: D/dalvikvm(319): VFY: dead code 0x0011-00f6 in Lcom/astroved/horawatch

Upgraded to SDK version 17, now libraries don't link correctly

廉价感情. 提交于 2019-12-08 07:50:40
问题 So, I recently upgraded my Android SDK, and for some reason it seems to have broken Analytics. I'm getting the following error from LogCat, which seems to be key, but I can hardly imagine that they would have removed getInstance, so I'm at a bit of a loss. Any ideas? Could not find method com.google.android.apps.analytics.GoogleAnalyticsTracker.getInstance, referenced from method 03-22 06:30:44.341: W/dalvikvm(217): VFY: unable to resolve static method 117: Lcom/google/android/apps/analytics

ADT to use offline docs on SHIFT+F2

落花浮王杯 提交于 2019-12-08 07:29:04
问题 I have the Android SDK documentation offline, however when I use the SHIFT+F2 combination in eclipse it tries to take me to the on-line site, even when I'm not connected to the internet. Isn't it supposed to take me to the offline docs? I want to be able to use my offline docs with shift+f2. I've looked through eclipse's preferences, but there seem to be no settings that could help... 回答1: I found the answer on this question. If you have the "Documentation for Android" package and the javadoc

Android Fragments for tabbed menu

为君一笑 提交于 2019-12-08 06:50:53
问题 Im struggling to add additional fragments to a Tabbed Menu Navigation in my Android App. I've used the default 'Scrollable Tabs + Swipe' provided by ADT. Below is my MainMenu.java package com.example.universitybudget_v2_1; import java.util.Locale; import com.example.universitybudget_v2.R; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app

Issue with ADT plugin in Eclipse

半城伤御伤魂 提交于 2019-12-08 05:19:08
问题 I am new to android and I am setting up eclipse with ADT plugin for android application development. Yesterday (10/18/2011) I downloaded and installed Android SDK Tools(revision 13), Android SDK platform tools(revision 7) and several SDK platforms (2.3.3, 3.0 etc) using the 'Android SDK and AVD manager' without any issues. But today(10/19/2011) when I go the 'available packages' in the 'Android SDK and AVD manager' I can only see Android SDK Tools(revision 14) and Android SDK platform tools

How to use resource in Android library dependency on ADT?

我与影子孤独终老i 提交于 2019-12-08 04:19:54
问题 My development environment: adt:22.3.0 android-maven-plugin:3.8.2 maven:3.1.1 I am developing a google map Android app with maven structure and dependencies as below: <dependency> <groupId>com.google.android.gms</groupId> <artifactId>google-play-services</artifactId> <version>13.0.0</version> <type>apklib</type> </dependency> <dependency> <groupId>com.google.android.gms</groupId> <artifactId>google-play-services</artifactId> <version>13.0.0</version> </dependency> or <dependency> <groupId>com

Android Emulator after updating to ADT 20 no longer automatically rotates screen

三世轮回 提交于 2019-12-08 03:12:16
问题 Everything was good until I updated to ADT 20 yesterday, now when I rotate screen with CTRL-F11, screen rotates, but application (ANDROID) remains in portrait mode. So my question is it possible to either solve this problem and make it rotate or downgrade to ADT 19? PS: Checked on 2.3.3 and 4.1 images, dev platform is Mac OS X 10.7.4 PPS: The only way I was able to downgrade is to look to my Time Machine backup and copy Eclipse and Platform tools folder to my Mac 回答1: I found the solution,