i have an android app with several activities. I need to start a timer when the first activity starts and end the timer when the last activity starts and show the elapsed time. How can i use Asynctask to do this.
...
My application which I built for 1.5, shows text blurry on high density screen of HTC Desire and the like. Here is a close up screen shot from my application (bad.png) and a better example (good.png)
Yes, I am building a soft keyboard. And the text is drawn with canvas.drawText. All the discussions I found online is about image resiz...
The website http://www.slideme.org is not accepting to upload my android project. It says that the manifest file must have a label. I m posting my manifest file it does have a label.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android.com.machineInfo" android:versi...
Hello, I'm working on a chess site and I've implemented a rule checker in PHP and I use that on my main site at http://www.chesslords.net/, but, I'm working on an Android frontend in the meantime. However, after I've added the event and drawing correctly to my project, I would like to use my foo.php from my bar.java, calling the rulechec...
Hi friends..
I am working with an Voice to Text Application where I need to keep Voice command Dialog in background, means I don't want to hide it again n again.
Pls shows me how can I do this.
...
What I want to do: run a background thread which calculates ListView contents and update ListView partially, while results are calculated.
What I know I have to avoid: I cannot mess with ListAdapter contents from background thread, so I inherited AsyncTask and publish result (add entries to adapter) from onProgressUpdate. My Adapter use...
Can we Access the the Default Email Program's Database?
I know that it is not part of the SDK but through Some raw Query or URI?
I have seen something like that in this question.
...
Hi,
I need to send a photo from a file stored in the SDCARD to an external Api. In order to do this, i'm using the following code:
String responseStr = null;
this.setMethod(request);
this.setParameters(tags, parameters, optional);
String requested = mUri.build().toString();
HttpHost host = new HttpHost(API_REST_HOST, -1...
Recently I was asked if I could help someone to get quick-started to android programming.
What would you suggest to tell this person?
Would you explain everything by hand or just refer to external links?
Which ressources would you recommend?
This whole issue should not take too much time...assuming 2-3 hours
Once my access to this issu...
Is there any good and often visited developer Android discussion board? I saw that the Google has just an mailing list...
...
Hello everyone
What would be the easiest way to parse an rss feed? Are there any already done easy(fast to implement) methods out there?
All the posts I could find on the topic were many years old. Any new technologies out there that are worthy of attention? Or should I just make my own parser?
Edit: please link to a usage method/tutori...
Dear,
From different post i have concluded that insertion, deletion and updation in Calendar is only possible by using g-data.
Therefore i am using g-data 1.41.3 with android 1.5 api level 3.
Problem is that , i am using the following code.
1 // Send the request and receive the response:
2 // the code is use for readin...
friends,
i am using following property to show image on full screen
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
in manifest file
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if(keyCode==KeyEvent.KEYCODE_DPAD_LEFT)
{
ShowError.setVisibility(View.GONE);
...
Hi,
When I press a button I would like to have a progressbar showing up so I inserted this code:
progDailog = ProgressDialog.show(this, "Downloading data", "please wait....", true);
But the progressDialog is not showing at all. Why? What more do I need to do to show it?
/M
...
I have an application in which I am going to be ransferring data via a bluetooth connection.
In my proof of concept app, I was able to put the bluetooth communication in a different thread and keep all of my other work on the same activity (using ViewFlipper).
However, for my next iteration, I will need to use several different "screen...
Hi all.
I'm looking to scrape geolocation data from LocService (a solution to track GPS pings from an Android phone) and host it in a MySQL database as a PHP cron job. The login system uses HTTPS. I'm having trouble returning anything through cURL.
Has anyone got any ideas?
Gausie
...
can anyone tell me where I get the icons native android?
...
The online android documentation says:
Everything you can do with AppWidgetProvider, you can do with a regular BroadcastReceiver.
So, what i want to do is to register via registerReceiver() another event other than ACTION_APPWIDGET_* on my Widget. For example ACTION_BATTERY_OKAY, is there any way to do this? Obviously i cant regist...
I have a similar query to the one posted here. I create a grid consisting of a variable number of buttons, at runtime (in a TableLayout), and would like to find the index of the button pressed. The actual Button objects are currently stored in an array, although I'm not sure if that is really necessary. I tried to write the ClickListener...
Is putSerializable broken?
When I pass null with putSerializable the FillSummary.class starts as it should.
If I however pass the a TestSerial object than Android force closes.
What do I have to do to get a custom object transfered via a Bundle?
public class TestSerial implements Serializable{
private static final long serialVers...