android

string manipulation

Hi, I am creating a request string which hast bo be formatted the following way: http://staging.myproject.com?tags=tag1,tag2,tag3 There is an EditText dialog on the form where the user writes the tags. The user however can write the tags in the EditText whatever way he wants, for example using commas: tag1, tag2, tag3 or tag1,tag2,tag...

Packaging Android resource files within a distributable Jar file

I am working on some reusable Android code that I would like to distribute to other developers for use within their own applications. The code has some resource dependencies (layouts, xml & png drawables) that I would like to be able to include and reference within a single package (Jar file). Is this possible, and if so what is the bes...

Error in android database... me != understand!

Hello, I'm just writing a SQLite powered android applications however I keep getting a NullPointerException when I call my DatabaseHelper class. The code which appears to be causing the error is below: public Cursor GetAllRows() { try { return db.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_PHRASE}, ...

How to backup database file to sdcard on android?

I'd like to add a feature to my android app that automatically backs up the sqlite database to the sd card. What's the best way to go about this? Any examples/tutorials available? ...

Get Android Phone Model Programmatically

Hi there, I would like to know if there is a way for reading the Phone Model Programmatically in android. I would like to get a string like HTC Dream, Milestone, Sapphire or whatever... Thanks :) ...

How to configure Java's SaxParserFactory to disable entity checking?

I am writing a screen scraping app that reads out various pages and extracts the data. I'm using the SAXParserFactory go get a SAXParser which in turn gets me an XMLReader. I have configured the Factory like this: spf = SAXParserFactory.newInstance(); spf.setValidating(false); spf.setFeature("http://xml.org/sax/features/validation", fal...

Android - Get Altitude By Longitude and Latitude?

Hi there! Do you know some quick and sufficient way to get altitude (elevation) by longitude and latitude, that would be easy to use on Android platform? While this is a self-learning question, my approach is still time-consuming ('coz it's web-service etc), so I would like to receive any alternatives or possible improvement suggestions...

How do I write a Hero like unlocking app for the Milestone (Droid)?

I just got my Milestone (aka Droid in the US) and want to write a simple app to ulock the screen touching one of the soft buttons, ala Hero. I looked into the Android API and could not find a helpful one, could someone enlighten me? ...

com.google.android.maps missing?

Hi... new to Android. Checked the FAQs on the SDK site but didn't find anything that was helpful. I'm learning via a few books w/downloadable code. One of the examples I'd like to get running won't even compile because the IDE can't find/import the com.google.android.maps library/package, which I found odd since I have everything pos...

Problem unmarshalling parcelables.

I've got a few classes that implement Parcelable and some of these classes contain each other as properties. I'm marshalling the classes into a Parcel to pass them between activities. Marshalling them TO the Parcel works fine, but when I try to unmarshall them I get the following error: ... AndroidRuntime E Caused by: android.os.BadPa...

Is there a Mobile 'Web Wrapper' Framework allowing Device Access to a Remote Site?

When I first ran across PhoneGap, I was excited because I envisioned simply dropping in the URL of a mobile site and simply updating the mobile site to use the devices capabilities when available. Alas, it seems it is not that easy. From what I understand (and I could be incorrect), any HTML/JS access to the device's hardware is limi...

AuthToken from AccountManager in Android Client No Longer Working

I'm pretty exasperated. I'm attempting to build a turn-based multiplayer online game for Android using Google App Engine in Java as the server. They seem like a perfect fit. Android requires a Google account, and GAE uses a Google account for authentication, while being free and scalable. So before the holidays I was able to get authen...

Android: Clickable hyperlinks in AlertDialog

What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (defined using <a href="..."> in the string resource passed to Builder.setMessage) supplied the links do not become clickable. The code I am cur...

Android Eclipse Plugin "reset adb" gives "Adb connection Error:EOF" error, not blocking, but what is it?

I'm trying to work through their notepad tutorial and it describes how the Eclipse project should automagically build and re-generate the auto-generated code when a file is saved. That wasn't happening, and looking at their debugging, they suggest the "reset adb" link in the DDMS perspective in the Devices panel. When I try to do that,...

Android listview/navigation based app

How can I create a navigation based app using the android sdk? Not navigating as in using maps, but like how the settings app works. You click on item, and it goes to a new page of items to click. I can't find any good samples or documentation. Yes, I've looked through the Android developers website. ...

Is Android recommended for Atom processor platform?

Hi Geeks, I am going to develop a handheld device which has an Atom processor. I am thinking of using Android embedded OS for running telecom applications on this device. I have heard from my friends that Android is good for wireless applications. But my device does not need any wireless application. I will need only data (ping, tracero...

How can I see long texts/msg in logcat?

Since we are using logcat as a console for android. There are cases when the the output text/msg is kinda big and I can't see the complete output. The log cat shows only the starting part of it. Is there a way to expand it so that I can see the full msg? ...

Android - capture/suppress Home and EndCall buttons events?

Hi! If you ever tried to write a locker app on Android sure you meet this problem: boolean mBackPressed = false; @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: mBackPressed = true; ...

Android Mapview panning and zooming too slow........

I've developed a GPS app in which i record the user roots and show it on the map.......but Panning around on the map when reviewing my route is painfully slow, it takes at least 4 or 5 seconds for the map to respond the finger swipes...... I've overridden the onDraw() method and drawing the lines to show the routes......is there any be...

Data directory have no read write permission in Android

I m using Android 1.5 my data directory does'nt have the read/write permissions System.out.println("DAta can write??--->"+Environment.getDataDirectory().canWrite()); System.out.println("DAta can read??--->"+Environment.getDataDirectory().canRead()); So please suggest me how to provide permission for the data directory. What m trying...