I am testing out an Android application I wrote with google maps. The DDMS is not loading the KML/GPX files I found on the internet.
What I assume is that the files are relatively old in format (Maximum 2007) and the DDMS cannot read them. I was wondering if there is somewhere I can download a sample KML or GPX file that I can use to t...
Nasty little bug, this one.
As illustrated in Android ticket 6721, the Android browser seems to not respect z-index when absolutely positioned elements are laid over the top of <a> or <input> tags.
I am desperate for any sort of workaround. Has anybody conquered this one before?
Thanks in advance!
...
I've thought of some less than elegant ways to solve this, but I know I must be missing something.
My onItemSelected fires off immediately without any interaction with the user, and this is undesired behavior. I wish for the UI to wait until the user selects something before it does anything.
I even tried setting up the listener in th...
I have an Android test project that I'd like to link into Hudson, but I haven't found a way to output the test results as XML instead of text. Does anyone know if there's an easy way to do this already?
-Dan
...
Hi, I'm defining a style XML for my android app. I have some TTF files I want to use, how can I set the typeface to use those files as the font as opposed to the generic "sans", "serif" & "monospace". Thanks
...
In some books and online I see these method calls being made after a
database is created:
db.setLocale(Locale.getDefault());
db.setLockingEnabled(true);
db.setVersion(DB_VERSION);
Why is this done? As far as I can tell, after creating a new database,
the system adds a table named android_metadata with one field named
locale and that t...
i am developing an android todo list app to learn. right now in my main layout xml file, i list all to-do list items. i created a menu button called add to add a new to-do. the problem is that i want to show a different view when add button is pressed. in that view i will have an editbox and 2 buttons. anyone have any suggestion on how t...
I love the BarCode Scanner application for the Android phone (we're using Motorola's Droid). Is it possible to access the BarCode Scanner from a web application running on the phone? I was thinking of using a WebView, but I'm not sure how I'd access the Scanner API.
Regards,
Scott
...
Hi ,
I'd like to know how to generate a fake press button event . The button in cause is a options menu button. Please tell me if this is possible, or sugest other references !
Thanks !
...
I would like to be able to switch between various android releases (1.0, 1.5, 2.0, etc.) and then access them via the file system to copy all files for that version into a tarball. Currently I am just running repo init -u <source URL> -b release-1. to get each version (changing the tag for each version I need).
If this was a single git,...
Hi all. Ok. I have looked EVERYWHERE and my little brain just can't understand a better way to refresh an activity. Any suggestions that I can understand would be great. :)
Here is the java code:
package com.dge.dges;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
im...
I need to use google analytics tracking for my app and it says that it is supported with versions 1.6 and higher.
But my app runs on versions 1.5 and higher and right now it does not have an issue when I add the tracking code to my manifest.
<receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported...
Good advice from CommonWare and Steve H but it's not as easy to me as I first thought.
Based on their advice I'm trying to copy android.R.layout to my project to ensure consistency. How do you do this?
I looked in Eclipse's Package Explorer and under
Android 1.5>android.jar>android>R.class>R>layout and find R$layout.class.
Do I copy ...
Hi, i'm trying to make (for learning purposes) my own implementation of a simple AdapterView where items comes from an basic Adapter (ImageAdapter from sdk samples).
Actual code is like this:
public class MyAdapterView extends AdapterView<ImageAdapter> implements AdapterView.OnItemClickListener{
private ImageAdapter mAdapter;
public My...
I would like to apply successive animations (say ScaleAnimation) to an ImageView showing a resource image. The animation is triggered by a button. For example, I would like to incrementally enlarge an image upon each button click.
I've set fillAfter="true" on the animation. However, all the animations start from the original state of th...
Hi,
I'm using the Android APIDemo sample code.
When I run the CameraPreview example, at first it was giving me an error.
(http://stackoverflow.com/questions/2556389/android-camera-functionality-howto)
I traced that one down and the sample was working for a while.
Now, it no longer works. It says ERROR/AndroidRuntime(2949): java.lang.R...
Hi,
R class on android has it's limitations. You can't use the resources dynamically for loading audio, pictures or whatever. If you wan't for example, load a set of audio files for a choosen object you can't do something like:
R.raw."string-upon-choosen-object"
I'm new to android and at least I didn't find how you could do that, dep...
hi,
i am trying to do this:
1) user long touches the screen,
2) a circle/ball pops up (centered around the user's finger) and grows in size as long as the user is touching the screen
3) once the user lets go of the finger, the ball (now in its final size) will bounce around.
i think i have the bouncing around figure out from the Divid...
Hi,
I have a list of items that are displayed using a ListView from a SQLCursor. The SQL table includes(as well as other things) a _id field and an order field. I use the order field to sort the list before it gets to the ListView.
What I need is a widget like the MediaPlayer has in its playlist view. It allows you to click the icon...
I would like to obtain the transformation matrix of an animation to calculate the position of the view that was animated.
It seems the Animation class has a method called getTransformation that can be used to obtain the transformation applied to the view.
However, if I use getTransformation before starting the animation I obtain the id...