android

Adding links to an email message

I was wondering if it is possible to hook into the gmail and email applications and check to see if it contains text that matches a regular expression, and if it does, make that text into a link with a URI that would open my application. What i am thinking of is similar to how the gmail application can detect a web address or phone numbe...

Does anyone know how to get the local date and time from Android 2.1 device?

Does anyone know know how to programatically get the local date and time of the Android device? With that local date and time, does anyone know how to convert that to milliseconds from 1970 in UTC time? ...

Dynamically get drawables by ID

I want to take a byte and append it to a resource ID to be able to get the image that corresponds to that numbered deck in the game. It was easy to with paths on other devices, but with the Resource ID's I am unsure how I could go about do this. Here's what I have now: switch(GameSettings.gameDeck) { case 1: deckImage....

how to generate NONCE and print it on client side in ANDROID

Hello every1, I am now working on a program for Android which is someting related to IMS. I want the Server to send back a nonce to the Client as a string and print it on the client side. In order to generate nonce, I tried using the code from this site. http://www.exampledepot.com/egs/java.security/CreateSecureRandom.html Part of my...

Is Multicast broken for Android 2.0.1 (currently on the DROID) or am I missing something?

This code works perfectly in Ubuntu, in Windows and MacOSX, it also works fine with a Nexus-One currently running firmware 2.1.1. I start sending and listening multicast datagrams, and all the computers and the Nexus-One will see each other perfectly. Then I run the same code on a Droid (Firmware 2.0.1), and everybody will get the packe...

Is there a recommended strategy for releasing a beta version of an application to a limited number of users through the Android Market?

I would like to distribute a beta version of my application to a small group of users. Ideally this would be done through the market to make it easier for the beta testers. Is there a way to restrict an app's presence in the market? The only solutions I could come up with were: 1 - Have users download the .adk from the web and inst...

Android Debugging Problem

For some reason I can't step through the code in the debugger. I am not trying to step through Android source code, just code that resides in my project. My build paths are setup to include it, but whenever I try stepping over anything it gives me a "Source not found" message. This is incredibly frustrating, and a prompt answer would be ...

adb update a non-market apk?

Hi Is there a way we can update (not reinstall) a non-market apk on an Android device? I could only find an adb install (nothing like adb update) Thanks. ...

interrupt in gps searching

I have developed a gps searching application in java. But it has a problem when a call comes in. I want that when any other process started, gps searching is still continued. It shoud not stop. How i can do this? ...

How to detect hardware keyboard presence?

Is there a way to detect if the device I'm currently running on has a hardware keyboard installed? How do I query device capabilities anyway? ...

how to convert a Bitmap to Drawable in android ?

how can i convert a Bitmap image to Drawable. Thanks, Farha ...

ProgressBar in an AppWidget

I ran into an interesting situation with using a ProgressBar in an App Widget... The documentation (http://developer.android.com/guide/topics/appwidgets/index.html) says that ProgressBar is a supported widget class... I have no problem getting the ProgressBar to display in my App Widget but the problem is that I want it to only be disp...

Problem to open SMS after deleting another with my widget...

Hi! It is the last problem I have before finishing my widget so I beg you to help me! I've created a widget wich can navigate in SMS/Inbox, and deleting them... When I delete one at the position 5 for example, this one is deleted, the other next are at the position before and the messages before the one deleted don't change of position.....

how to establish a connection to a webserver in android?

I am working on a Http Connections. I have a login form. When the enter a username and password. That values will be processed with the server and the user should be logged in. Then it shows an users home page in a webview. How to do it? ...

List Item background is changing on scroll

I have a background color applied to a ListView <style name="CKButtons"> <item name="android:windowBackground">@color/window_background</item> </style> but everytime the list is scrolled the background color changes back to the system default (black). When the scrolling stops the color goes back to @color/window_background. The ...

Android - How to add my own Audio codec to AudioRecord?

I currently have a Loop back program for testing Audio on Android devices. It uses AudioRecord and AudioTrack to record PCM audio from the Mic and play PCM audio out the earpiece. Here is the code: public class Record extends Thread { static final int bufferSize = 200000; final short[] buffer = new short[bufferS...

How to add 3 images in a canvas in android

I have 3 images that I want to add one after other on a canvas. This is my code:- public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ImageButton im1 = (ImageButton)findViewById(R.id.btnPN); im1.setBackgroundDrawable(getImage()); } public BitmapD...

Displaying paused/static analogue clock

My application needs to display the time. Rather then displaying time as 11:00 I am wondering whether it is possible to have to have static/paused/stopped analogue clock showing 11' o clock? ...

Layered layout problem

Hi, I am trying to create layout with the following layers (from bottom to top): Tab Background image covering all the tab page Foreground image covering 75% of the tab page Table layout covering 90% of foreground image. This will display information. When the user scrolls the screen to the right layer 3 and 4 will be changed to dis...

Android - how update widget often but only when it is visible?

I'm going to create widget which needs to update its content every minute (it shows time-related data). However, there is no need to update widget if it is currently invisible, which means: screen is turned off another app is running widget is placed on another (invisible) home screen tab What is the best way to update only visible ...