Hi!
I want to pass a variable to an outer function when user clicks on "OK" in AlertDialog.
I'm trying this for example but it won't recognize the Variable (Yup).
public final void deleteBookmark(Cursor cur, int pos) {
//fetching info
((Cursor) cur).moveToPosition(pos);
String bookmark_id = ((Cursor) cur).getSt...
I am getting this error while i am setting a ring-tone from my code. Her is my actull question..
http://stackoverflow.com/questions/3746746/how-to-set-ringtone-in-android..
Please help me to go out from this error ..
...
Hi.
I'm just starting to play around with the android SDK, and was trying to build a simple bubble wrap app, so I could understand how custom components work. I have my onMeasure(), onSizeChanged(), onDraw() methods which create the unpopped bubble bitmaps. I have a onTouchEvent() so I know which bubble number is being touched. After th...
So I'm getting really confused on how to do this whole thing and I was hoping someone could break it down for me a little bit.
I have a service that should always be running, and at certain times it needs to alert the user that a task is to be completed(probably through a notification bar icon). When the user accepts the task, the se...
HI
How to get date before one week from now in android in this format:
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
ex: now 2010-09-19 HH:mm:ss, before one week 2010-09-12 HH:mm:ss
Thanks
...
Hi,
I am about to write a task which will be run once in about 1 - 10 minutes.
This task uses the GPS. However I am not sure about the best way to do this.
Is it better to use a Service in the background with a sleep or timeout of some sort? OR am I better off using the AlarmManager Class from the android SDK?
Keep in mind it is importa...
Hi, I have a ListView with a RadioButton in it and a LinearLayout.
I want to manage the onClickListener on the LinearLayout, but I noticed 2 things:
1 - when I click on the LinearLayout it will not be highlighter; how to make it highlighted (orange) on the click or touch of the user?
2 - in the LinearLayout there are 2 TextView controls...
I would like to have a Toast Message appear while my app is downloading information but even if I put it before my code it doesn't appear until after the download has completed. Putting my code in a separate thread causes many headaches but putting toast in a separate thread doesn't work either. Is there anyway I can have this Toast me...
Hi all,
I'm starting learning android development, so my knowledge is really limited at the moment.
I'm trying playing with broadcasts, but I'm stuck and I can't understand what I'm doing wrong.
What I'm trying to do it's just show a simple Toast from the broadcast receiver.
The Intent is a custom intent defined in the manifest:
<recei...
Hi, I'm currently building a web app in android. My app runs in a webview, and loads third-party contents through iframs. The iframe size is fixed and supposed not to be changed by the content loaded. In desktop Chrome browser, it works fine and the overflow part of loaded content can be scrolled via scrollbars. However, in android webvi...
I want to navigate items in a tree hierarchy.
I put the items on the same level in a listview. Upon clicking the item in the listview it will open another listview to show the items in the child level.
I want the user to navigate easily to another level (parent, grandparent, grandgrandparent) without pressing the back buttons several t...
I'm trying to center a button in relative layout, is this possible? I've tried the Gravity and Orientation functions but they don't do anything.
...
At froyo, After launching DeskClock when you touch dim button, the status bar disappear.
But when All animations is selected In Setting Menu, if you drag the status bar down
right after touching the dim button the status bar is expanded.
I think 2 ways to solve this problem.
1) use disable status bar method with hide property.
2)...
I'm new to android development and just testing some things out.
I have a button in a tablelayout. I want the button to wrap_content. But if I tell said button to stay in a certain layout_column it doesn't wrap_content. Is there a way to have these both active? Or do I have to align the button using pixels? Heres my code:
<TableRow...
In my android, how can I launch android's compose email activity with an attachment attached?
...
I am writing a very small app that just opens the camera app ready for video. I am able to get my code to work on an Android 2.2 emulator, but it will not work on my device, Motorola Droid 1 stock 2.2 FRG22D. Any ideas where I went wrong on this code?
public class StartVid extends Activity {
/** Called when the activity is first creat...
Hello
In my android application i would like to download from a http link progressively and then play it.That is first save some bytes and play it in the meanwhile buffer the next file.
Could you please let me know as how i can achieve that in android?
Please share your valuable suggestions.
Thanks in advance:)
...
I have an Android application with an ASP.NET backend. I have the registration_id for the phone as well as an auth token from google for the application server that is performing a push.
When I make the http post request to C2DM so that the phone gets a message I keep getting the 401 Unauthorized. Here is how I'm making the request ...
I currently facing problem where user have the choice to enter several working experience, where every working experience include several details (company name, duration, roles etc)
I don't know how should I store it since users have the freedom to add as many working experience as they have.
I have a table as below
private static fina...
Hello
In my android application i am playing videos using video view.While the video is getting downloaded i am showing a progress dialogue.
At times when the streaming is not supported or when there is some error an error message is displayed onto the screen.After the ok click of the error message the progress dialogue again shows the ...