Hey guys,
I've a really strange problem,
I'm getting location updates with a GPS Listener, everything works fine.
I also watch this listener with a timeout, if the timeout gets exeeded, it stops the thread,
removesLocation updates everything works...
BUT, if there's no Internet Connection available, an exeption gets called,
it should ...
I've got some code which queries a rest api on a service which then updates a database, I then have a cursor which looks at the database. I got some of the underlaying framework from the google iosched app.
Calls to mRunnersAdapter.notifyDataSetChanged() in the onReceiveResult method don't seem to do anything, it's only by manually i...
I am using the available code of PackageInstaller for testing my own application of installing and uninstalling the apk over the device.There is lots of error within Froyo for building this app. Please help me out of this.
See PackageInstaller code here.
...
i came across this
http://www.brighthub.com/mobile/google-android/articles/48845.aspx
i understand i can create a view. But i want to define a layout xml and put that into my view. for example in layout i will have a few textviews, i will set value to them dynamically and add them to view and display. is this possible if yes how ? if n...
Hello. I can't understand how this works in Android. I traversed samples and have no idea. For instance I need 2x2 grid view of TextView widgets. How to write needed code?
...
is there any way by which i can save the checked state of the radiobutton whose effect remains even after i have call radiogroupinstance.clearCheck()
...
Smart-phones have built in ROM and RAM separately. Also a few phones has virtual memory support too. I would like to know what these memories are basically used for. I understand that RAM is available to user processes. But why do they have a big chunk of ROM?
E.g. The wiki page for Droid Incredible says
512 MB DDR RAM
1 GB ROM (748 M...
Hello there, I want to populate ExpandableListView from database. But I can't create the DBAdapter object in class extends BaseExpandableListAdapter, because I don't know what context must be passed to DBAdapter constructor. I use DBAdapter db = new DBAdapter(AutoContacts.this); but it doesn't work.
Here my code:
Autocontact.java
import...
I would like to limit the results to those whose KEY_HOMEID is equal to journalId.
I've been on this for a couple days any help would be appreciated.
public Cursor fetchAllNotes(String journalId)
{
return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_HEIGHT,
KEY_BODY, KEY_HOMEID},"FROM DATA...
I know there is the ExpandableListView but it only supports up to 2 levels. I need a true treeview vertical list with at least up to ~5 levels (more is better).
Any suggestions?
edit:
I see talk about using a Custom Adapter and setting the padding based on the items level.
I have an unsorted ArrayList of objects that have an ID and p...
I followed this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html
and it runs ok, except when I click on my icon in the map, the dialogue box does not come up. And the application stops. Did anyone else run into a similar problem?
I don't know what is google api; can someone explain it to me please?...
Hi,
I'm new to JNI, i'm developing a native library for an Android project. I read some papers about JNI programming but i didn't understand if it is possible to create a library that can be loaded in different project classes with different packages. I read that to declare a new JNI method the syntax is:
the prefix "Java_"
an encoded...
I want to override the behaviour of the ENTER key of the virtual keyboard so that:
when there are more fields on the screen, it 'tabs' to the next field
when it is the last field of the screen, it performs the default action of the screen
I've been playing with the IME options and labels, but just don't get what I want. Anybody a sugge...
Hi,
Can anyone help me achieve rounded corners for the TabWidget with android 2.1 + . I am basically trying to give the TabWidget a custom theme purely via xml configuration. I have tried the following, but only the text color changes.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="Tab_ForeColor">#6095C1</color>
...
Hello, i was just wondering, if i wanted to reset the actual preference file used with SharedPreferences could i just rename the preference file ? , wouldn't that mean that the file
still exist or does overwrite it ?
...
Since there is the permission called
android.permission.READ_OWNER_DATA
there MUST be a way to read the phone owner info on an android device.
The only thing I could find on the net is this:
Uri uri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner");
Cursor c = managedQuery(uri, null, null, null, null);
But 1) that doesn...
I'm writing an Android app and I need the ability to take a lat/long value and find the lat/long value of the nearest road to it. I've read the article at http://econym.org.uk/gmap/snap.htm, and tried to implement this, but I've had to use the Google Maps Webservices rather than javascript (since it's an android app). When I make a reque...
Ok so from my understanding each application normally gets 16 mb memory to work with.
This is what is shown on the heap tool for eclipse:
Heap Size: 4.5 mb
Allocated: 3.2 mb
Free : 1.5 mb
Used : 66.7%
Which one is the total memory being used? Heap size, or Allocated?
...
MyCode:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final TabHost tabHost = (TabHost) findViewById(R.id.tabhost);
// LocalActivityManager mLocalActivityManager = new Lo...
How do you replace the "smiley" button with a return key in an EditText?
...