android

Android: How to kill an application with all it's activities?

I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in the SharesPreferences as long as the application needs it. As soon as the user wants to exit, the password in the SharedPreferences should be wiped and of course all activities of the application should be closed (it ma...

Looking for advice on a first android application (loading data/populating data)

Hello all, to start with I've gone through the entire notepad tutorial, I'm a professional game programmer who has some extra time. (though most of my time has been in C++, I did take a year or two of Java classes in college, and remember some of it). I'm not sure the site is a good site to ask questions like this.. If someone has a F...

How to display HTML page independent of different resolution in Droid or Android

I have one simple WebPage trying to display on Android Phone. The background image is 320 X 480 and two section of centered text paragraphs. But the rendering of page is totally screwed up in Motorola Driod Phone. Does anyone know how to fix this display problem? I mean to display it properly on both HTC G1/G2 and HTC Droid Phones. Thans...

speech to text in android

like the tts engine , is there a way by which speech can be converted to text in android? ...

Error with android DBAdapter class

Hi, here is the error from the logcat of my program. 06-24 01:35:04.213: INFO/ActivityManager(587): Starting activity: Intent { comp={one.two/one.two.Arrival} } 06-24 01:35:04.521: ERROR/DBDroid(1048): android.database.sqlite.SQLiteException: no such table: port: , while compiling: SELECT KEY_STATUS, KEY_ID, KEY_ARRIVAL, KEY_DESTINATIO...

GSON and the Flickr API problems: JsonParseException when deserializing json

I'm relatively new to java and android development so sorry if this is a silly question. I'm building simple app, simply to learn the android ropes, that will display a list of the most recent photos uploaded to flickr. The app is constructed but it's crapping out when it tries to deserialize the json that I get back from flickr. Here is...

Fullscreen activity w/Webview still shows status bar at top

I have a simple Android app that targets Android 1.5 or above. I have an activity that is set to use the theme below (set in the manifest). android:theme="@android:style/Theme.NoTitleBar.Fullscreen" Within the activity, I have a WebView (see full XML:) <WebView android:id="@+id/webview" android:layout_width="fill_parent"...

Android VideoView save RTSP stream

Hello, I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. While this works fine, I'm unsure if it's possible to save the movie to a file. I'm opening an URL like rtsp://192.168.1.22:554/live.sdp How can I save it to the SDcard ? Handle it like a file maybe ... Is that possible ? ...

Why does Android prefer static classes

I see a lot of java code where android prefers to have developers use static inner classes. Particularly for patterns like the ViewHolder Pattern in custom ListAdapters. I'm not sure what the differences are between static and non-static classes. I've read about it but it doesn't seem to make sense when concerned with performance or mem...

Eclipse can't connect to activity manager on emulator - HelloWorld does not appear.

This appears related to: http://stackoverflow.com/questions/3037512/android-application-doesnt-start-from-eclipse/3106897#3106897 Even with the Android 2.2 platform is this still the accepted way to operate the emulator? i.e. 1, 2, 3 start/kill processes as described in the above post? I am having a similar problem on WinXP with Eclips...

What is the best way to get the item selected in the listview?

I have a listview which has a bunch of selections. I want to keep the focus on the listview in touchmode and get the item selected. What is the best way to do that? I found this blog: http://bestsiteinthemultiverse.com/2009/12/android-selected-state-listview-example/ and http://developer.android.com/resources/articles/touch-mode.html ...

Problem with Time/Date picker not recognizing Strings

Here is a snippet of code that i am working with. I am making an app for android and everything is going great except this one problem and google has not been my friend on this. I have highlighted the important parts. The problem is when the TextViews are loaded with data using the updateboxes() method everything works great. When they a...

SD Card File Browser in Android

How to make a file browsing window in Android for accessing, browsing and opening SD card's FAT32 contents? ...

Android: Inserting/Updating multiple records to SQL database

Ok, so perhaps I'm completely missing something here, but I've just started working with SQL and Android and from what I can see, updates and inserts back to the database need to be handled individually? I can retrieve a Cursor containing multiple records, but if I wanted to apply an update to each record in the cursor, I can only see ...

Ringtonepreference in android

Hello frnds, Can ringtonepreference be used to select ringtones from a folder(raw) in android plz help..... ...

ProgressBar Dialog not showing

I am new to Android development and am facing a slight issue. My first screen is a basic log in screen. There is a LOG IN button on the screen and a OnClickHandler implemented for the button. When the user clicks the log in button i validate the user name and password, shows a ProgressBar dialog start a new Thread. The thread connects to...

Effort due to Android fragmentation

With Android platform fragmentation, what changes in different OEM handset attributes force developers to port from one platform to another? ...

How to make sure an Android app was really compiled from said source code?

A lot of Android apps are open source, but how can we make sure the person who finally uploads to the Google Market does not include some spyware just before uploading? Background: Mobile apps security seems to be a growing concern, and I would like to reassure the users of my Open Source Android app. Solutions that require to modify th...

Android save view to jpg or png

I would like to write an android app that basically layers an overlay on image on another image and then I would like to save the picture with the overlay as a jpg or png. Basically this will be the whole view that I would like to save. Sample code would be very helpful. EDIT: I tried out your suggestions and am getting a null pointe...

sorting data by date ?

Hi, I am sorting my database depending on date. The date field in SQLite is nothing but a string, stored in the form of dd-mm-yyyy. How do i carry out the sorting. My idea is to create a dummy table.Convert the date in a format yyyymmdd. Then sort it simply using sort by date column.Then again drop the table. Is there an efficient or ...