I have made an app that have to copy a file from a webpage, the following code doesn't do the job, it can't find the file
File ekstern = new File("http://192.168.13.40/cache.manifest");
copyFile(ekstern, intern);
and the copyFile method:
public static void copyFile(File in, File out) throws IOException {
FileChannel inCh...
Hi,
I have a ListActivity where the list items are defined in another XML layout. The list item layout contains an ImageView, a CheckBox, a TextView and such.
What I want is to set an onClick listener to the CheckBox in each list item. That is easy enough. The trouble is I need that onClick handler to know which position in the list it...
I have followed the instructions on http://developer.android.com/resources/tutorials/testing/helloandroid_test.html.
But when I run my application, I get the following error in the testPreconditions function.
Incomplete: Unable to start activity ComponentInfo{com.example.helloandroid/com.example.helloandroid.HelloAndroid}: java.lang.Nu...
I am hoping to use jdb to debug android apps in the emulator via the ddms go between.
I have successfully set a breakpoint in my class' onCreate and the debugger (jdb) duly breaks. However if I try to "list" the code it says it can not find the source file. I start jdb like this from emacs :-
jdb -sourcepath="~/programming/android/proj...
I am working on an application wich has its own URI prefix. (dchub:// in this case)
Searching all over and read a lot but i got a bit confused, is there a way when someone open his browser, clicks on a link starting with dchub:// my app starts using this address?
so far found a lot of examples the otherway around opening the browser fr...
Hello,
I have an app that uses a TabHost.
Several of the Tabs share a common HUD.
I am using a service to periodically update those values by calling an AIDL function when ready.
However, since several of the Tabs are using the same HUD I would like to abstract that part out.
I thought about having the HUD.xml use a String resource as...
I am trying to accomplish something quite simple, yet I have found no good documentation on this. I have a webView, and I need to load a page in it that requires POST data. Seems like a simple process, yet I cannot find a way to display the result in a webView.
The process should be simple:
query(with POST data) -> webserver -> HTML re...
Hi,
I just started android and i'm running into some problems.
I have created a listview that is populated from a database.
Each row has a button to delete the item from the list and the database.
I am able to hook up an event listener to the button but I have not been able to determine the matching database record to be deleted.
...
I have an Array that I pass to a CustomAdapter for a ListView. The array has items that are already sorted. Something like:
[{"stuff":[{"stuff_id": "1", "value":"test123"},
{"stuff_id": "1", "value":"test123"},
{"stuff_id": "2", "value":"test123"}]}]
The Array changes allot so I do not know haw many sections I will have. So far I am...
Can someone point me to an Android example with source that allows the user to scroll through the contents of an xml file that contains text entries (preferrably with arrows on the side of the screen that allow previous/next type of interaction)
I've looked through the examples on the Android site and didn't see anything similar. Any he...
hello all i wish to do is have a non threaded sms app as apposed to the default application.
how would i import the current sms/mms 's on the phone to an array?
Edit:) so how is it that for instance handcent sms imports all of my existing sms messages?
...
The following code sort of works, but fixes the number of elements in String[]. Is there a way to make a String[] add the number of elements needed dynamically?
private static StringBuilder names = new StringBuilder();
...
public String[] getNames() {
int start = 0;
int end = 0;
int i = 0;
String[] nameArray = {"","","",...
Here's what I want to do. Please let me know if this is possible.
I have an android phone, which I want to control using the SDK to send calls, receive calls , start some application, tap the screen etc.
TIA
...
Is there a way to convert milliseconds to minutes using java.util.concurrent.TimeUnit?
This answer seems to suggest that you can use a TimeUnit.MILLISECONDS.toMinutes() method, and the documentation suggests that you could use the TimeUnit.MILLISECONDS.convert() method with TimeUnit.MINUTES - the problem is that neither TimeUnit.MINUTES...
Hi all,
having a problem trying to understand how to use a timer in android. I have an activity that sets up a timerTask in my onCreate method. I call the task on a button click and all it is supposed to do is append a textview. The problem is that I am getting a NullPointerException at timer.schedule(task, TIMER_DELAY, 3*TIMER_ONE_SE...
Does the Android License Verification Library support a device logged in to multiple Google accounts?
Does it use the first Google account to determine who purchased an app?
...
I know this is a very noobish question -- but what is the best way to convert a GeoPoint to a Location on the Android platform.
...
The default gallery widget only provides events for when items are clicked, but is there any way to tell what item is selected when only dragging the gallery around?
...
Hi
So I've been doing some experiments on Android and I noticed that the Android player needs around 32 seconds worth of music before it starts playing it (or entering the prepared phase). That's in the case of music streaming, I have a server on my workstation and I'm pointing the android player to it.
It sounds like a lot, is it possi...
I'm working on an Android app and it's up to 17 classes. I want to start organizing the .java class files into a more intuitive layout.
Say I want to have a source code directory called "views". When I create that directory using Eclipse, it changes my package name to com.xyz to com.xyz.views.
Since this package name (com.xyz.views) ...