android

ProgressDialog does not want to update the message.

Hello all, I just tried to implement a progressdialog and I have some issues to change the text during my long and complex calculations. for (String aString:myStringArray){ Log.v(TAG, aString); mProgressDialog.incrementProgressBy(1); mProgressDialog.setMessage(aString); } I can clearly see the incrementProgressBy working ...

Setting a Variable Once... I don't Know How to Explain (Android Projgramming)

This is kind of hard to explain, so i'll try the best I can to inform you on my problem. I have a variable that changes every now and then. In the main app activity i have int count = 0; (count is the variable) I would like to only set that at the very beginning. The first time a viewer opens it up I want to set it to 0. After that, I...

Images from folder on sd card

I have an application that needs to read images from a folder created by the application on the sdcard(sdcard/"foldername"/"filename.jpg". I have no idea what the names of the files are because the user specifies the names of the files. I need to read the images from the folder and make something like the default image viewer. Im thinkin...

What event is fired after all views are fully drawn?

I need to capture the absolute positions of some ImageViews to use as drop targets. I can't seem to find what event I need to put my code in to read the screen and get the Left(), Top() .. positions. I do not want monitor the inflation of each individual view. There must be some sort of onScreenFinsihed type of event, but I can't find ...

Saving Variables (Android)

I have a variable that I would like to save and be able to restore when the viewer opens the app back up. I call this variable, count private int count=0; It changes every now and then through out my main activity. How can I save this after editing and changing it and be able to restore it? ...

AudioManager Declaration Crashes Android App

Greetings, I'm having a bit of trouble with an Android app that I'm working on (mostly for practice and learning purposes) that uses the AudioManager object. When defining the AudioManager as follows, however, the app crashes when I run it: //Import the AudioManager import android.media.AudioManager; public class RingtoneModeChanger ...

needed help in android project

Hi, I am new to developing android application.In my project i have to develop an android application which does the following things. 1)Uses the device camera to capture image. 2)Should use connectivity feature to send the captured picture to the server. 3)(Additional)I am also planning to use face detection api in my app. T...

Android Gesture Directions

Hello all. I'm working on an app that will (hopefully) be taking advantage of Android's gestures (as described here: http://developer.android.com/resources/articles/gestures.html) Before I dive in though, I'm trying to find out if gestures can take the direction they were drawn into account. Unfortunately I haven't found this informat...

Problem saving shared preferences in Android

Right now I am trying to save a variable when i close the app and get the variable back when i open the app back up. I have no idea if I'm doing this right. My variable is called count and would like to save and restore it. Is this right? If so, why isn't it working? If not, what do i need to change? (i'm obviously using SharedPreference...

Getting at XML files inside Android.jar.res.drawable

As I've been researching another problem online, I've seen references to folks modifying the XML files contained inside the Android.jar.res.drawable folder and then copying them to their drawable folder for use in their project. But I can't open these files, instead I get the following error. Could not open the editor: org.eclipse.ui.P...

StringIndexOutOfBoundsException on Camera.Parameters.flatten() with DroidX

I gotten a few very odd error reports from users recently showing a StringIndexOutOfBoundsException when I called Camera.Parameters.flatten(). I suppose the params object I had might have been null, and I dont check that before calling flatten, but I would have expected an NPE. Has anyone else seen anything similar? I havent heard back...

Just a simple question

Just a simple question in onSharedPreferenceChanged you can do something based on if a change is made in a specific key which would look like, if (key.equals(Theme_Preference)). I want to do the same thing but instead of just a key I want it to be for a specific entryValue in that key. Hope this makes sense. ...

List of User's Photos in my Android App

I'm porting an iPhone app to the Android. The first step when somebody gets this app is to take a screenshot of their desktop for use in the app. On the iPhone, the screenshot can be accessed by pulling up their Photos with a pre-defined UI widget. Is there an equivalent on the Android? What's the expected way to do this? On a relat...

Android equivalent to NSNotificationCenter

In the process of porting an iPhone application over to android, I am looking for the best way to communicate within the app. Intents seem to be the way to go, is this the best (only) option? NSUserDefaults seems much lighter weight than Intents do in both performance and coding. I should also add I have an application subclass for stat...

Using a Intent to call an activity from another program results in Permission Denied

In my very simple app (based on the default Hello World app but with a button added) I try to open one of my phone's (a SE X10 Mini) preinstalled activities, like this: Intent calendarIntent = new Intent(); calendarIntent.setClassName("com.sonyericsson.calendar","com.sonyericsson.calendar.dayview.DayActivity"); startActivity(calendarInt...

Using HTC wildfire for android development

I would like to know whether is it possible to use my HTC wildfire (some links would be nice) for android development instead of the emulator. I have tried to find the information by Google, but so far no useful results. If I get more information, I'll update here. [When I used wildfire with eclipse, I got this.] Thank you very muc...

Sending MMS using httpConnection - Add Image to PDU

i was able to send an MMS using DK's code sample from here and here. I'd like to put an image into the MMSPart class. I think the mimetype will be "image/jpeg" (correct me if I'm totally worng on that), but how to I put an image into the Data parameter - do I need to read the image into a fileInputStream or bitmapfactory and set the .Dat...

DBAdapter design question

Hello. I'm developing an Android application with a database. That database will have more than three tables. Now I'm working on a class called DBAdapter to access the SQLite Database. DBAdpater will have five methods for every table on database (insertEntry, removeEntry, getAllEntries, getEntry and updateEntry). So, if I have five t...

Android Video player not worke on device & emulator????

Uri uri = Uri.parse("http://video.ted.com/talks/podcast/MichelleObama_2009P.mp4"); VideoView videoView = (VideoView) findViewById(R.id.surface); videoView.bringToFront(); videoView.setVideoURI(uri); mediaController = new MediaController(this); mediaController.setAnchorView(videoView); videoView.setMediaControl...

How to assign uninstallation password, When we are uninstalling the application.

Please suggest me where i can put my uninstallation password code in android application. So that at the time of uninstall the application ,The application manager should ask me to insert password to uninstall the application. ...