How do I create a shared directory with read/write permissions to all applications installed on my phone and that is not on the sdcard?
I tried that :
File f = new File("/tmp");
f.mkdir();
but it is not working.
...
The only thing I found is to cross compile bash. Is there another way to have tab completion in the Android shell?
...
I want to get longitude and latitude in android emulator for testing.
Can any one guide me how to achieve this?
How do I set the location of the emulator to a test position?
...
Preferably, I'd like a somewhat fancy bevel . I'd like the picture to have some depth on it..so it doesn't look so plain and old-fashion :)
...
Is there a way to change notification settings in the native email app (possibly also gmail)?
I'm thinking about locale plugin which would allow to change notification settings in each app independently. For example disable sound notifications in email app and leave in gmail...
...
I am giving the following method call to my webview client embedded in my layout
wv.loadData("<html><body bgcolor=\"Black\"></body></html>","text/html", "utf-8");
when i run this on the device, it shows a white vertical bar on the right side. I fixed the white thing by using webview.setBackgroundColor(Color.BLACK); but i want to remov...
Hi all,
The AbsoluteLayout class is deprecated but still can write it in code and it works. Will there be any problems if I use this class? Will the application work correctly after I deploy it on a phone?
Thanks
...
I've just started debugging my first three line long android app and I can't seem to use the debug tool like I want to.
Here's my code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int a = 1 / 0;
}
Now I expect the debugger to halt the thread and show me the...
How can I retrieve the java script function value from a web page loaded withing a webview component??
...
hi all,
i am getting this exception in database Leak Found
my LOGCAT Shows this:
02-17 17:20:37.857: INFO/ActivityManager(58): Starting activity: Intent { cmp=com.example.brown/.Bru_Bears_Womens_View (has extras) }
02-17 17:20:38.477: DEBUG/dalvikvm(434): GC freed 1086 objects / 63888 bytes in 119ms
02-17 17:20:38.556: ERROR/Database(...
I am facing exactly the problem mentioned in these links:
http://code.google.com/p/android/issues/detail?id=2373
h**p://groups.google.com/group/android-developers/browse_thread/thread/77aedf6c7daea2ae/da073056831fd8f3?#da073056831fd8f3
h**p://groups.google.com/group/android-developers/browse_thread/thread/2d88391190be3303?tvc=2
I hav...
I'm trying to use ACTION_IMAGE_CAPTURE to get an image from Camera. What places is safe to use as the EXTRA_OUTPUT ?
The only one i've found myself is sdCard, but it seems unconvinient to me (i need a permission, and user has to have an sdCard). Is there another place, i can use?
...
Hi all in my application by using web service i get the data from database and stored that data in hash table.I took that data from hast table to array.this array data can be displayed in button.My array contains 10 elements.For animation i used view flipper.Now i want to do is display that array elements on button one after another fo...
In one Activity, I am doing this:
Every minute, I update the GPS location to the cloud.
Then, after the location is updated, I download a list of 10 people and their icons...and update them in the list. (each icon is 80x80 and about 2Kb)
This is done every minute, over and over.
My problem is: It seems to be a little slow? Sometime...
I am having problem with setting a new Drawable to my ProgressBar.
If I use the setProgressDrawable() inside onCreate() method it works great. But when I try to call the same method inside a Handler post callback it doesn't work and the progressbar disapears.
Can someone explain this behaviour? How can I solve this problem?
...
Suppose I have an Activity that's a list. It calls a Service when this Activity starts. The Service will do background stuff--download, parse, and fill the list.
My question is this: How can the Service communicate with the Activity?
How can I call a method in the Activity, from the Service? (I'm new to OOP)
The Service is started lik...
Hi,
i am trying to do some simple animation, i have list with items, those items include also checkboxes
on a checkbox button click i want to show with animation some button from the buttom, something like this:
private int mPosition;
private CheckBox chkBox;
OnItemClickListener(CheckBox mChkBox, View v)
{
c...
hi all,
how to get MapView API in android?
thanks
...
Hi all,
I want to send an intent to my service everytime the state of Wifi connectivity changes.
So when I currently use a broadcast receiver to listen for the state changes in Wifi, so when this recieves an intent I want to be able to send this info on to my service.
Is this possible and if so the correct way to do it?
...
I am trying to create a tab widget with two tabs to open two different activities and written following layout to achieve this but it is giving me a NullPointerException.
Where is my mistake?
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tabhost"
...