android

Android Prevent access to SQLite database

I use a sqlite database in my project. The stored data in it must not be available for the user to edit. As I've read here I saw that if you have root access you can alter sqlite database. The only solution would be to encrypt database content, but this would be time consuming for device. Any solution to prevent access to database ? ...

Android-Status bar Notification

Hi, I am new to android.I want to now how to create a status notification bar in the home page.can anyone help me with some codes.Thanks in advance...... ...

How to get the state of checkbox in a onListItemClick in Listactivity?

Android ListView if my list has 10 items.. the onclick listener is fired only for the 10th item. How to get the state of checkbox in a onListItemClick in Listactivity? I have a class OnItemClickListener like this: private class OnItemClickListener implements OnClickListener { private int mPosition; public OnItemClickListener(...

keyboard log for reference

Hi All, I want to write an application that will log down whatever I type using the Android keyboard. The purpose is to have a backup of all the keyboard entries. Is it possible? Regards. ...

Custom maps in Android, loading via tiles (alternative for RouteMe for iPhone SDK)

Hi, I am working on a prototype port of one of our iPhone apps to Android. The iPhone app uses the RouteMe API to load our own custom maps into the application. (also tiled, just like Google Maps itself, so only loading what you see at that moment - this is very important in this case) I have been searching for a similar product for A...

Are there problems with ActivityInstrumentationTestCase2 in Android 2.1?

After I have set up all the unit test cases for my android application I now also want to do functional testing. But I encouter one problem. As I am developping for the HTC Legend I can, by now, only use android platforms up to 2.1. But in some way it seems that the ActivityInstrumentationTestCase2 won't work. public SupplierSelectoinT...

Using phone camera via Intent - activity never returns?

I'm using the phone's camera in an Android app to take a photo. I'm using Intents to use the built-in camera application and I'm using the following code: Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(FILEPATH))); startActivityForResult(intent, ACTIVITY_N...

Poor FTP Performance due to delayed Ack : Solutions exist for Android?

Hello, i have a Problem using FTP connection on Android 2.2 devices. My app uses AndFTP via intent and loads data from a FTP Server connected via Wifi to the handset. The FTP downloadspeed is only 7kByte/s. I had the same speed on my Windows XP Notebook, then i changed the delayed acknowledge setting. So now my Notebook reaches 30...

overriding a style in android.

Let's say i have a layout with style: <LinearLAyout ... > <TextView ... style=someStyle /> <ImageView ... style=someImageStyle ... /> </LinearLayout> the style will be defined in an xml in my project. How can i override that style with an external xml ? (i'm asking because i've noticed the View does not have applyStyle\setStyl...

How to enable/disable auto brightness mode from API

Hi, I want to control the system settings "auto brightness", setting it ON or OFF.I'm able to control the brightness level but only if AUTO is OFF. From what I read until now there is a SCREEN_BRIGHTNESS_MODE in Settings.System but only for API level 8 or higher and also not recommended to mess wit it. But currently my phone has Android ...

Android: Logging on an android device

Hi, I am no good with hardware concepts. So I have this probably very silly doubt. I want to add Log to my application. When running on an emulator, I know where to see the Log output - it's visible in the Logcat window of Eclipse. I want to know where I can see these logs when I run it on a hardware device. I am using following comma...

Accessing the currently displayed website of the Android browser

Hi stackies, is it possible to programmatically access the website that is currently displayed within the Android browser? As far as I know the native Browser doesn't handle plugins (please correct me if I'm wrong), so I thought that reading the browser cache would be an option. Is there a more sophisticated way to get the currently di...

Android GSon serialize double to .net compatible

I have an pojo like this: public class LocationPoint { protected double la; protected double lo; public double getLat() { return la; } public void setLat(double value) { this.la = value; } public double getLong() { return lo; } public void setLong(double value) { t...

Nested Activities

Hi, Can I call nested activities in Android? I have 3 activities. In first activity there are a list of options like ice cream, chocolate etc. When I am selecting one option (through button), I will go to second activity. Here I will enter the quanity for each option. I want to save these option value and quantity, and display the result...

How can I manually recreate a Contextmenu for a Child of a ListView on Resume?

Hi, I have a ListView with a ContextMenu. If the ContextMenu is open and the Orientation changes, I want to reopen the Contextmenu for the Child of the ListView, that was clicked on. I tried to do this in "OnResume", but at this point, the ListView seems to have no Children. Anybody knows an answer? Thanks in advance. ...

why i am getting database size as 3072 in file explorer of android application

As i am Creating SQLite database connection while running when i view ddms fileexplorer show the size of database as 3072 i think that why i am unable to open the data base and retrive the values so please anybody can help me out to sort out this error ...

Problem in Supporting Multiple Screens in Android?

Hai Friends, I have developed an application which en-composes list views and posted that .apk file in my htc device, the design and alignment everything works fine,but the problem When i am testing in various devices such as Morotolo Droid,Nexus Devices the alignment of Listviews goes wrong, so i planned to use the Layout ...

prefetch databse value

hi...i m developing an app in which when incoming call will there on user android mobile. my app will check it from database and if incoming number is in blocked list.call will blocked.it is running successfully. but is there a way so that i can prefetch database value in an XML file or any other way, becoz if user got 100 calls a day it...

Android: Why is the name of the android app taken as the name of the starting activity?

Hi, In my manifest file, I have given the application name as MyApp and the name of the starting activity as Main Menu. <application android:theme="@style/theme" android:icon="@drawable/myicon" android:label="@string/app_name"> <activity android:name=".MainMenu" android:label="@string/mainmenu_name"> <intent-f...

How to make EditText hint not to wrap?

I have a one line EditText, when I set a long hint, the hint wraps to two lines. Can I force the EditText to be always one line tall? android:lines="1" didn't work. ...