android

What to learn now? EJB or Android Programming.

I learned all basic java classes and how to use them. I like to learn Android App Programming. But one of my colleague suggested me to learn EJB. What is the best to learn? ...

Creating temporary files in Android

What's the best way to create a temporary file in Android? Can [File.createTempFile][1] be used? The documentation is very vague about it. [1]: http://developer.android.com/reference/java/io/File.html#createTempFile(java.lang.String, java.lang.String) ...

Detecting when user has dismissed the soft keyboard.

I have an EditText widget in my view. When the user selects the EditText widget, I display some instructions and the soft keyboard appears. I use an OnEditorActionListener to detect when the user has completed text entry and I dismiss the keyboard, hide the instructions and perform some action. My problem is when the user dismisses th...

Project has no default.properties file!

Hi, I downloaded a sample project from a website. when i import this project to eclipse work space. Im getting this error Project has no default.properties file! Edit the project properties to set one. How i can get rid of this problem. Please let me know Thanks ...

resize the bitmap canvas

Hello, I am trying to draw rectangle on top of image and I am having trouble placing the art on the image. Only part of Rectangle shows up somewhere in bottom of screen. Here is what I am doing: sinewave is the image from res>drawable folder public void onDraw(Canvas canvas) { Bitmap myBitmap = BitmapFactory.decodeResource(ge...

What are common issues that small Android development teams experience?

Hi, I'm looking into learning more about the Android framework and I would also like to understand what issues small development teams (< 10 people) for Android based phones are likely to run into (i.e. porting to other platforms, inadequate security testing, or just anything across the software development lifecycle that poses difficul...

Certified Android Developer?

Microsofts .NET and Suns Java, among many others have certifications to acknowledge skills among developers. Some consultant hour buying companies require specific certifications to allow developer working within their environment. Also consultant companies use certifications to boost credibility and hourly rate. Is there a certificatio...

How do I specify the destination of android.os.Message?

How do I specify the destination of sendMessage() as logTextBox() in the example below? public class Controller extends Activity { public Handler hLogTextBox = new Handler(); ... public void listener() { String s = "my string"; android.os.Message osMessage = hLogTextBox.obtainMessage(); Bundle b = new...

How do you access the name, artist, album name off the music stored on the phone in android?

Much like the music app does i want to access the name of the song (not the name of the file) or the artist or album. For example, i want to populate a listview with the names of all the songs on the phone. ...

android application killed right after launch

I changed some code on an android application that was working perfectly fine at least 3 days ago (note, this was not three days of coding, I have not done THAT many changes). Now, instead of running along on its merry way, it is ambushed and killed as soon as it gets out of the door. At least, I think that I am interpreting the output c...

Changing the background of a child in ListView

Hi guys, Im changing the background color of each View row each time i click on it! But, when you keep clicking, it doesnt change the last View row back to its default color. How can i achieve this kind of behavior? Thanks ...

Android Converting from NV21 Preview Format on Nexus one to JPEG

Hi, How can I convert from NV21 to JPEG. Currently, NV21 is the only previewFormat that is supported by the camera on a Nexus One (running Android 2.2). Thanks. ...

Bluetooth connection lost after send mesage (BluetothChat)

I want to connect my Droid to OBDKey I use BluetoothChat as example to connect via bluetooth I connect to OBDKey succesfully but after send message to OBDKey connection lost How can I prevent this? ...

So much problems with Eclipse developing for Android?

a million error per day using eclipse with the Android plug-in i tried everything uninstall plug-in ,eclipse,JDK,JRE and install them again and using different ver. also changes Workspaces , i thought the problem with the new Java and Eclipse but i solved it and still . what the alternative is there a way so it could be more stable is ot...

Android AlarmManager

Ok, I've tried two examples of AlarmManager- one from the commonsware website, and one from the manning website. The code I am currently working with is from the manning website : [http://unlocking-android.googlecode.com/svn/chapter8/trunk/SimpleAlarm/][1] There are two classes, AlarmReceiver and GenerateAlarm. Anyone have any idea why ...

GPS lookup and user preference

Hi, I'm starting to dip my toes into LocationManager. I've created a service which tracks GPS location (interval is more than 60000ms) and updates my application with user location so they can find stuff nearby. As I understand it, users can go into their preferences and disable GPS for a particular application. I would essentially l...

How to add two edit text fields in an alert dialog

Hello, I am trying to use an alert dialog to prompt for a username and a password in android. I have found this code here: if (token.equals("Not Found")) { LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.userpasslayout, null); AlertDialog....

Android: How to reference library drawable in app manifest

I have a free android app that I want to now distribute as free (with ads) and paid (without ads), so the only difference would be in a few of the layout files, where I just remove the ads in the paid version. I tried moving all of my code from my existing free app to a new project which I set up as a library project, and I'm referencin...

Access Browser Cookies from Android App?

Is it possible to lookup native browser cookies in a custom Android App? I am not talking about WebView cookies. In my app I want to check if a user visited a website using the normal browser. Are browser cookies stored in a pubic directory somewhere on the device? ...

Android View Help

Hello, I am trying to have the main screen displayed from within activity using setContentView(R.layout.main); and then have an image displayed as follows: public class TryGraph extends Activity { /** Called when the activity is first created. */ public LinearLayout mLinearLayout; protected void onCreate(Bundle savedInstanceState)...