android

Android SPP bluetooth to non Android device

Hi, I'm trying to mimic the success of gilead(http://stackoverflow.com/questions/2660968/) but so far his code in my app fails. I've tried multiple UUIDs but nothing works. When I run sdptool records [address] I get $ sdptool records 00:12:F3:04:80:80 sdptool records 00:12:F3:04:80:80 Service Name: SPP Service RecHandle: 0x10001 Servi...

How can I include information to my android application post compilation?

Hello, Currently I supply a user with a URL to click on to download my j2me application. This URL includes their user id as a parameter, a servlet takes this information and dynamically creates a jad file that includes this user id , thus making the user id available to the j2me app. However, I am now using j2me polish to compile my p...

How t o make a magnifying glass On a picture?

hello I want to make a magnifying glass on a picture so that the part of picture is extended ? in other words i want to find a easy method to create the illusion of a magnifying glass,I know ShapeDrawable and BitmapShader(Bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT) is useful,but I donot k...

Android - Volume Buttons used in my application

Hi, I need to use volume buttons to control a variable parameter in my application. I use Activity.onKeyDown to get notified when the button is pressed but the media volume is also increased. Android is doing something like below when I press the volume key: 1. increase media / ringtone volume 2. pass the event to my application Is the...

Sending html text in an email

I'd like users to be able to send emails from my app and the client would like the message body to be html-formatted. They look nicer and the message includes a rather ugly url that would be better placed inside an anchor tag. I've seen some older queries on the web asking how to do this but have not been able to find a definitive answ...

Android visibility issue with checkbox

Hi all! I´m using a checkbox in my code that when its checked it makes a textview and a editText visibles, but if I uncheck de checkbox they continue being visible instead of dissapear. Here is the code: final CheckBox save = (CheckBox) findViewById(R.id.checkbox); save.setOnClickListener(new OnClickListener() { pu...

Android earphone jack

Possible Duplicate: Android: Checking if headphones are plugged in Is there a way to check if earphones are connected to the Android device? Some kind of audio routing property or something? ...

Mobile Specific Site Development. Where to start?

I'm beginning the process of learning the ins and outs of developing sites for mobile web browsers. Are there any good resources/communities online that discuss mobile specific site development issues? My initial understanding is that to cover different phones you need to build one site that is enabled for browsers with the webkit engi...

Android -- How to post app rating/comments to Market from within app?

Hello all, This is a simple question. Is there a way to allow users to enter in a comment and or rating for my app from directly within my app and have that data posted back to the Android Market? If so, what would the code for that look like if I used an EditText view to allow user input? If not, then is my only other option directly l...

How to find out if TextView text content has been cut off

Hi, I can set max line in my TextView in layout xml file. In my code, after I call setText() to the TextView, how can I find out if the text content has been cut off (i.e. the text is longer than the max line)? Thank you. ...

Start TabActivity from ListActivity (which is content of parent TabActivity) in Android

Hi guys, I have problems with switching between activities. I have two TabActivities (A and B), each of of tab activity has 4 tabs with ListActivity. I am trying to show B activity onListItemClick. Code on click is: Intent intent = new Intent(getApplicationContext(), TabBActivity.class); startActivity(intent); My manifest file is f...

Accessing another third party app in android

How to access another third party application from my application in android? ...

Efficient batch SQL query execution on Android, for upgrade database.

As we Android developers know, the SQLiteDatabase execSQL method can execute only one statement. The doc says: Execute a single SQL statement that is not a query. For example, CREATE TABLE, DELETE, INSERT, etc. Multiple statements separated by ;s are not supported. I have to load in a batch of records, 1000 and counting. How do I...

Cancel onKey Event from onKey method

Is it possible to cancel an event from within the onKey method. I only want to allow numbers 0 through 9. If another key was pressed then I want to cancel the key press public boolean onKey(View v, int keyCode, KeyEvent ev) { // TODO Auto-generated method stub if(keyCode <30 || keyCode > 39){ //Ca...

SecurityException: Permission Denial requires null

Hi all, I would like to launch the market from a preference screen but when I try to do this I obain a java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.action.test/.ui.activities.Test } from ProcessRecord{44db1300 3697:com.pippo.pluto/10067} (pid=3697, uid=10067) requires null. This is my code: startActivity(n...

Android 2.2 deprecates restartPackage but adds another headache...

Android 2.2 release notes have just been released. ActivityManager.restartPackage method has been deprecated and the description is: the previous behavior here is no longer available to applications because it allows them to break other applications by removing their alarms, stopping their services, etc. Instead 2.2 has given anot...

Android: I am getting reports of 'Can't create handler inside thread that has not called Looper.prepare()' after adding ScoreNinja

Hi All, I am getting reports of 'Can't create handler inside thread that has not called Looper.prepare()' once I added ScoreNinja to my Android app, and released it to the market. It seems that it isn't happening all the time as the ScoreNinja highscore has lots of entries from users. I have looked on the web for help but there are no...

Is this an example of a AlertDialog or PopupWindow in Android?

http://img139.imageshack.us/img139/1203/devicei.png I've seen this in a few apps, and i have expiremented with both PopupWindow, and AlertDialog and I was confused which this was. Thanks ...

Can anyone explain why the behaviour of this Android GesturesOverlay onGestureEnded handler would have changed?

The following routine has been working fine and the code has not changed. The layout for the Activity is identical but for unknown reasons the behaviour has changed. I'm wondering if it is my handset memory (HTC Magic). What happens is that the drawn gesture is lost from the GesturesOverlay after leaving the routine, which clears the ges...

Android - viewing SQLite databases on device?

Is there any tool that will allow me to browse databases on my Android device? Something like Sql Management Studio - you know GUI tool that displays databases, tables, row in tables, etc. I'm using Eclipse for development (if it is important for plug-in suggestions). Thanks! ...