android

reading a specific file from sdcard in android

how to read a specific file from sdcard. i have pushed the file in sdcard through DDMS and i am trying to read it though this way but this give me exception. can anybody tell me how to point exactly on that file? my code is this. String path = Environment.getExternalStorageDirectory().getAbsolutePath(); FileInputStream iStream = new F...

SQLite Database creation for Android App

I am creating my SQLite database for my App at runtime if it does not exist and insert rows if it does. Since it is supposed to be created at runtime and I have implemented it by creating a subclass of SQLiteOpenHelper and overriding the onCreate() method - "Do I need to put anything in the /assets folder of my project?" I am not usin...

On which Android version can I start using the geolocation feature for an application I develop?

On which Android version can I start using the geolocation feature for an application I develop? ...

Android: Knowing ahead of time what size an ImageView will be?

My application uses thumbnails downloaded from the internet. The thumbnails are generated by the server, and one specifies in the request what size the thumbnails should be. Is there a way for me to know, programmatically, while inside a ListAdapter's getView(), the dimensions of an ImageView inside the View that is returned, so my thumb...

possible to populate list view from cursor row id?

Hello, is it possible to populate a listview based on a row Id from a custom cursor adapter. I keep getting an error "illegalArguementException column: _id does not exist". but the database has it and is already being used correctly. I don't know what to do, because I would need to populate different listviews from the same database and ...

Can an android application be loaded from the SD card?

Is there something like a an Android file explorer so that the application could be installed from an SD card on versions older than 2.2 if the signed .apk file was manually copied onto the SD card? (Kind of like installing from a web page.) ...

How to make children of TableRow selectable

Hi, I'm making a image gallery with infinite vertical and horizontal scrolling. I put images inside a ListView to make a column, and put the ListViews inside a TableRow. However, it seems that child views of TableRow is not selectable and as a result I can't select the images in my ListView (easily). Is there a way to pass the events d...

Method for changing classes in Listview

Hi, I have created a tabbed view with four tabs and attached four listviews to the tabs. I have created separate classes with the list views in them and I now want to add a activity to the list view public class l2 extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super...

Android WebView: Large local image not loaded/shown

I'm trying to display a large (~> 1000x1000) image in a WebView. The image is in the assets folder. The problem is the image doesn't get loaded, instead I see the small blue square with a question mark (presumably meaning the image could not be loaded). I made a copy of the image and resized it to ~500x500. I'm loading both the origi...

Android Client connecting to the Server over SSL

I am trying to create an SSL connection from android client to the server over SSL. In the very beginning I was always getting javax.net.ssl.SSLHandshakeException: no cipher suites in common on the server when connection was attempted. After some investigation I realized that Android uses Bouncy Castle SSL implementation and the cip...

Preventing scale on bitmap created in execution time for ImageView - Android

Hello, I have a ImageView acting as a top banner on top of a webview. The image of this banner is created in execution time dependending on the resolution of the device. The height of the banner is always the same for each resolution. The only thing that changes is the width, which changes according to the orientation. But, since the wi...

Mobile video chat app technology question

Hi, I'm looking to build something like chatroulette as a mobile app. Ideally it would be able to work across platforms (both Android and iphone). Any recommendations? Thanks, Artie ...

Are there good alternatives to Janrain Engage?

All the sites I support have full-sized and mobile-optimized screens. Janrain's support for mobile browsers displaying their widget is completely disappointing. That is, you can't see both columns of auth-providers as the second column is cropped on narrow screens. Are there any service providers like Janrain that actually detect mobile...

Problems defining my own Android theme

Is there anything wrong with this XML? I don't get any compile time errors, but anytime I try to edit it, Eclipse gives me a nullpointerexception. Why? /res/values/styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Base application theme is the default theme. --> <style name="Theme" parent="android:Theme...

Android Home button not resuming last Activity

I am trying to solve an issue sort of similar to what was done here (link text) Except in my case where Activity A, started Activity B, started Activity C, when the user resumes the app after pressing the home button - I want C, the last Activity, to be displayed. Instead what is happening is I am back to A. Also on a side note I ha...

Android: Force close when trying to call Preferences.java

Hello, Been trying to call Preferences.java class using: Intent settingsActivity = new Intent(getBaseContext(), Preferences.class); startActivity(settingsActivity); I have this in my Manifest.xml (outside the main app class activity): <application> ........ <activity android:name=".Preferences" android:label="Preferences"> ...

android full screen textview

I am trying to create an app that has a simple textview displaying a count down. All the menus and such will be hidden under a long press or with the menu button. I'm trying to find away to make the text in that text view automatically scale and take up the whole screen something like android:textSize="100%" Despite lots of search I ca...

java.lang.ClassNotFoundException on working app

I have created and published my first android app. It's very simple. It works fine on simulator and some phones, but I am getting this error: java.lang.RuntimeException: Unable to instantiate application cz.teamnovak.droid.Novak ESC Track guide: java.lang.ClassNotFoundException: cz.teamnovak.droid.Novak ESC Track guide in loader dalvik....

Activity not started, its current task has been brought to the front

Hi, I have a very simple android project. I got the following error message when I try to run it. The emulator is running but the application doesn't come up. I couldn't find any useful information online. Can anyone help me? Thanks, arning: Activity not started, its current task has been brought to the front public class Profile exte...

Trouble generating MD5 fingerprint with new keystore

I'm trying to generate the MD5 Fingerprint I will use with the release of my application. I used Eclipse to Compile and Sign my application, which gave me a keystore file and a .apk file. Now i need to generate the MD5 for my MapViews. I tried using the cmd prompt to generate it, but everytime it states that no such file exists. Is there...