android-sdk-2.3

How to open my android app at a start up of android mobile? [duplicate]

邮差的信 提交于 2019-12-11 03:09:46
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to Start an Application on Startup? I am new to android and I have my android app. I just want to open my app at start up of my android mobile. Plz tell me How to do this? I am using Eclipse with android sdk 2.3.3 回答1: If you want to do it pragmatically <receiver android:name=".MyServiceManager" android:enabled="true" > <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category

Android-sdk manager is not showing all Packages

谁都会走 提交于 2019-12-10 17:37:59
问题 I have a problem , my android-sdk-manager is suddenly stopped showing all packages, it is only showing the installed packages only. Can you guys help me out how to solve this issue? 回答1: Navigate through File --> setting --> Android SDK --> SDK update site tab, in that check force https://... sources to be fetched using http://... 回答2: Firstly, just try toggling " Updates/New ", there might be a glitch on the SDK manager itself. Secondly you can go to " Tools -> Manage Add On sites... "

What are some of the the android camera api parameters optimizations for efficiently taking pictures when camera is moved by user?

早过忘川 提交于 2019-12-10 13:14:59
问题 I am creating an android app which is sort of like stop-motion app which is intended to efficiently take pictures even during movement. I wanted to set very low shutter speed and high aperture for getting better pictures particularly when camera is in motion, but some answers on stack overflow suggest me that it is impossible to set shutter speed and aperture(Please correct me if I am wrong here). I am not using camera intent, but creating camera object with startPreview followed by

Create the UI thread manually in Android in order to increase its small stack size

梦想与她 提交于 2019-12-10 12:58:04
问题 I'm struggling with StackOverflowErrors in the main UI thread (related question). My app targets Android 2.3+. On Android 4 everything is fine, but I'm getting crashes on 2.3.3 when the view layout is drawn. The obvious answer is to optimize my view layout and reduce the number of nested views. This is a problem because the large number of views is due to me using the support library and fragments for tabs - which is the recommended approach. I don't want to change my design and drop

Trigger Android Calendar to sync after adding events programmatically

孤街醉人 提交于 2019-12-10 10:05:00
问题 I am using the "undocumented" API's to read and write calendar events, nothing too hard there. The problem though is after creating calendar events you have to wait for the polling period (I suppose) for the device to sync it's calendar, such as with gmail, for events to appear online. I have found that if you add an event to the calendar directly it will sync right away so something in the Calendar app is triggering an immediate synchronization. Is there something I can do in code to notify

Android - put an image name “package” throws compile time error

▼魔方 西西 提交于 2019-12-08 17:05:39
问题 I am trying to put an image name "package.png" in my drawable folder. As soon as i paste them it into the folder it is throwing following error: [2012-05-26 12:40:30 - MyApp] res/drawable-mdpi/package.png:0: error: invalid symbol: 'package' But as soon as i rename to some other name, this image works fine. Any idea why this is happening and how i can fix this and have a drawable named "package". 回答1: you cant do that, as it is a Reserved word. just like... break else new var case finally

Upgraded to SDK2.3, now maps won't display

空扰寡人 提交于 2019-12-08 10:58:27
问题 My fault for being impatient but I've just installed Gingerbread SDK and the new ADT plugin for Eclipse on Eclipse 3.5 Now when I run an existing Google maps project which has worked fine on 2.2, I see no map displayed when running in Eclipse, just like as if I had the wrong debug maps API key. (I just get the grey screen and the Google logo bottom left.) I have the build path using the old Google APIs [Android 2.1 update1] just like it was before and the target AVD is Google API level 7 as

Error: no member named 'to_string' in namespace 'std'; did you mean 'toString'? Gradle+Cmake

亡梦爱人 提交于 2019-12-08 05:16:14
问题 <string> is included. What is wrong in std::to_sting(intVar) ? cppreference. Does it mean CLang does not meet STandarD? Another question helped, but the answers are not good (for me) because: write own std::to_string() is bad idea. Standard is standard. If i write own implementation. I need to wrap it with defines to prevent errors from another compilers/toolchains which does not leak std features. And this impl still leaks full-featured STD. Application.mk - is bad idea too since lastest

Unable to install Android SDK 17 [duplicate]

こ雲淡風輕ζ 提交于 2019-12-08 01:53:08
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Android: trouble updating to Android SDK Tools, revision 7 I'm trying to install 6 new updates to the Android SDK (to version 17 from 16), I get this err msg: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -= Warning ! =- A folder failed to be moved. On Windows this typically means that a program is using that folder (for examplle Windows Exploder or your anti-virus software.) Please momentarily deactivate your anti

Using DU on Android

孤人 提交于 2019-12-07 05:59:28
问题 Is there something similar to the unix command du i can use on adb shell? I'm trying to find a way to see how big each file is because I have an application that is growing very large and out of control and I am trying to determine which file/database it is specifically so I can address the problem. I am testing this on an Evo 4G and getting: du: permission denied or after I root/remount it: du: not found cd into other folders dose not help me at any point. 回答1: Install Terminal IDE (or some