Whats the best way to create a dart board game on Android. Is it possible to determine where a dart hit and in which area it is using a canvas or do I need to use a diffenrent approach?
Edit
Sorry I dont think I have explained my problem very well.
In svg in html5 I can create a dart board using shapes and assign an id to each shape. ...
I am styling a Button whose width can change in the program through different Content. I got the png files from the designer like this:
[Left Border] [Background (just a strip with the gradient)] [Right Border]
I thought I'm fine with assigning the Properties of the Button like this:
Background: Background.png
Drawable left: LeftBor...
I have two Uris. Suppose they are:
content://myprovider/messages
content://myprovider/messages/#
In my extended ContentProvider I have declared the following:
private static final int MESSAGES = 1;
private static final int MESSAGES_ID = 2;
private static final UriMatcher sUriMatcher;
static {
sUriMatcher = ...
Hello! I have some problem with the injecting of my cookie into login.php page. This is the code:
LinearLayout lLayout = (LinearLayout)findViewById(R.id.linearlayoutIdLogin);
lLayout.setVisibility(View.GONE); //make my standard layout inivisible
LinearLayout lWeb = (LinearLayout)findViewById(R.id.webviewId);
lWeb.setVisibility(View.VIS...
I'm binding to a local Service (that is, not using IPC and AIDL) from several activities. I want to ensure that I'm not holding references to this service from activities that the user isn't using.
My options are: 1.) to bind to the service in onCreate() and unbind in onDestroy().
2.) bind in onStart() and unbind in onStop().
3.) bind i...
HI,
I have array list of geopoints
List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>();
I want to put geoPointsArray array in to SQLite database and then fetch the data back as an array.
If anyone has a solution I would be greatly appreciated.
P.S.
Now I use ContentValues for insert into array as:
ContentValues i...
Hi
I accidentally deleted the AndroidManifest.xml from the Package Explorer panel. The file still exists intact in the original directory but I cant find any option in the Eclipse ide that seems to be for restoring it. I thought it might be 'Import' but manifest isnt one of the types on offer. Can anyone suggest how I can get the fi...
Hi, I'm currently writing an android side-scrolling game and am having trouble filling a path with a repeating bitmap image. I'm creating a path from a number of coordinates to make up the "ground" area. I have a character who is fixed in the middle of the canvas and screen and am moving the path to represent the movement of the characte...
I am working with a ListActivity, and I'm trying to add images/backgrounds, ext to make everything look nice. However i have run into a little snag.
The layout for the activity defines a background image, but the list items are not always transparent, and therefore cover up the background. If i am scrolling, or have otherwise touched a ...
I have a simple Android OpenGL-ES app, and as all the models are very simple (<10 vertices!) I have implemented a global "world" class that tracks all the vertices, and performs a single pair of GL commands on the frame rendering.
Each model object adds it's vertices to the global buffers, and these these are 'sent' to GL in one operati...
Just installed Google voice, works great, but the long-press #1 on the dialer does not access google voice mail, rather it works as if a third-party is calling my number.
So, looking into the dialer preferences, I find a setting for "Voicemail handler", which has only one option: "None (Dial voicemail number)". I would like to contribu...
Hello,
Is it possible to have a callout attached to an ItemizedOverlay item like in the iPhone and Google maps?
...
I know this is a long post. Pls don't mind.
Leak found
E/Database( 4549): java.lang.IllegalStateException: mPrograms size 1
E/Database( 4549): at android.database.sqlite.SQLiteDatabase.finalize(SQLiteDatabase.java:1668)
E/Database( 4549): at dalvik.system.NativeStart.run(Native Method)
E/Database( 4549): Caused by: java.lang.IllegalSt...
I am displaying images and some text in a list view with an adapter. The images are pulled from the web, then cached locally and displayed. The images are already small (60px square), and I know their size, so I'm using the advice from here suggesting I use setImageURI instead of decoding the bitmap.
The class that does the work is ...
Hi guys, I am a beginner in programming with Java Android.
I am currently confused with how to enable button to work in Android 2.1
My current project requires a lot of different activities to work together in one program.
Let's say I have abutton inside the main.xml and
assume the function inside ButtonAdroid.class is the one below: ...
hi.
im developing an android app with netbeans.
and i'm trying to play sound with
MediaPlayer mp;
mp = MediaPlayer.create(this, R.raw.a);
mp.start();
there is a file named "a.mp3" in the res/raw directory.
but for some reason i'm getting file not found on line 2.
What could be the problem ?
thanks
...
Hi guys,
I am trying to create 2 different spinners in my main layout.
This is how it works.
Let's say the 1st spinner shows the different continents (e.g. America, Asia, Europe, etc.).
Assume a user chooses Asia in the 1st spinner.
My question is, how to make 2nd spinner to communicate with the 1st spinner? Meaning, the 2nd spinner i...
Is there a way for a button to call a submenu?
I currently have a menu where if they select one of the options it opens a submenu, however I want to be able to start the submenu from the Button widget instead of the Menu object. \
Thanks!
...
For example, the flash platform provides the flash.debugger.enterDebugger() API call that does the job:
if (some_cond())
{
...
}
else
{
enterDebugger();
}
In that case, if some_cond() evaluates to false and we're in a debug session (it does nothing if we're in a normal session), then the execution will be halted at the line whe...
I have an application that shows a textview occupying most of the screen. When the user clicks on a portion of the textview I want to find the closest character to where they clicked so I can show them information about that part of the text in detail. I have the OnTouchListener and I can get the x,y of the click but does anyone have a...