I am having problems with Eclipse (3.5.x Galileo) crashing after installing ADT 0.9.7, so I want to try a downlevel version of the Android ADT (with Android SDK r06_windows) to better isolate the issue. When I try to 'check for software' at
https://dl-ssl.google.com/android/eclipse/ I can only select 0.9.7? Is there a trick to get the...
I am trying to create a listview with headers based on a number of predefined categories. I am using Jess Sharkey's separating lists with headers as a basis. The classes and xml are identical except for SimpleAdapter. The difference is my data is coming from a local sqlite database. The code crashes when I switch out of the view. Any ide...
How to obtain ID of an image by the ID of the thumbnail?
And what about going from original image to thumbnail ID? Is that possible? I saw MINI_THUMB_MAGIC but it seems there is an issue with it.
...
If I have a webkit view loaded in my Android or iPhone app, can I pass data back and forth from the page in webkit?
For example, can I pull an html view down from the web and populate a form in that view with data stored on my device?
...
I need to statically link the 3.6.2 version of SQLite against my android application due to a bug that affects the dynamic library bundled with Android < 2.2. I've already compiled and installed 3.6.2 on my development machine, but I'm not sure how I go about linking it to my Android app (developing with Eclipse).
I'm not familiar with ...
Hi all!
Is there a method which returns the width ( in pixels ) of a text to be drawn on an Android canvas using the drawText() method according to the Paint used to draw it.
Thx.
...
Hi. i am trying to run and publish my junit tests in html using a build.xml file calling the junit target but it doesnt seem to work.
here is how my build.xml looks like:
<target name="Unity Agent SDK Test ">
<mkdir dir="${junit.output.dir}" />
<echo message="making directory" />
<junit fork="yes" printsummary="yes">
...
What's the best way to create an app that periodically gets location (via the GPS or cell towers, or whatever) even when the app isn't running?
The first idea I had is to use the AlarmManager to wake up at a specified interval and check. I'm wondering if there's a more specific API to use.
...
Hi All,
I am using one class which extends ListActivity and One class extending BaseAdapter.
The Base Adapter uses getView function to inflate layout from xml.
The xml contains a text and a button to delete the row of list.
Please let me know how to handle the button click in the ListActivity class.
Send me a sample snapshot
Thanks
...
I need to test Android App specifically on LG Ally mobile. I am on windows and unable to find driver. I am unable to test it.
I can deploy app on Droid, however it doesn't work with Droid (I know Apps should be universal and should work independent of Device make, but this acts weird as it involves muting and unmuting of microphone and f...
Is there any way to make a style inherit from multiple other styles, instead of just being limited to:
<style name="WidgetTextBase">
<item name="android:typeface">serif</item>
<item name="android:textSize">12dip</item>
<item name="android:gravity">center</item>
</style>
<style name="BOSText" parent="WidgetTextBase">
<it...
I have used the algorithm on http://www.movable-type.co.uk/scripts/latlong.html to find the distance between two points.
My two points are
long1 = 51.507467;
lat1 = -0.08776;
long2 = 51.508736;
lat2 = -0.08612;
According to Movable Type Script the answer is 0.1812km
My application gives the result (d) as 0.230km
// Haversine formu...
Some users want to rename my Android app to something else.
So I'd like to provide a text field for them to put in a new name inside my app.
Then how can I programatically rename my app name to the new name?
...
I have a page that has layout like the following:
<EditText android:id="@+id/code"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/manualTitle"
android:inputType="number|phone"
android:maxLength="20"
android:singleLine="t...
I have a test class that extends ProviderTestCase2<>.
I would like to populate this test class database with data from some .db files.
Is there some particular method to push some .db file into the Mock Context of a ProviderTestCase2?
Otherwise which way is the easier to populate the database from the .db file?!
Thank you very much!!...
I want to use the codecs in Android from my application. For now I just want to use the H.264 codec for testing, unless the mp3 or aac codecs provide functions for sending the audio to the device's speaker in which case I would prefer one of those.
I have the NDK installed along with Cygwin, GNU Make, and GNU Awk. I can't figure out wha...
I have a homescreen widget with an imagebutton. I have the button working with a pending intent, but I can't seem to figure out how to change the button image when it is pressed.
I tried using a selector and it works in my widget test activity, but not in the remoteview.
How could I implement this functionality in the home screen widg...
I have developed an application with Target build as API 4. It supports Normal Screen and all Densities. But Now i would need to set the App's Target as API 3. In Eclipse Environment, I changed the Build Target to API 3. But I get the Following Error.
R file gone Automatically. So i get Can not Resolved error allover my app where R i...
So far I have tried using a canvas, to make this canvas I have tried using these methods
//to create a canvas
mCanvas = mSurfaceHolder.lockCanvas(null);
mCanvas.drawBitmap(mBackgroundImage, 0, 0, null);
//to create an ImageView
mImageView = (ImageView)findViewById(R.id.imageview);
mImageView.setImageBitmap( currentprev );
//and also
m...
I want to build Alarm Clock application on android .Is there any tutorial available on net??
...