I'm trying to get to grips with using 'Canvas' in Android. I'm using SDK 1.5.
I've been able to rotate text, but the background gets rotated as well. Ideally, I'd like to be able to put my background image on one layer and rotate text (or zoom text) on a second layer.
How would I go about creating different layers on the Canvas? And ...
hi there!
i need to get a list of available bluetooth devices in the area using google android 2.1
thing is, i don't just need a list of those devices, i need some unique id for each device found and i need an indicator, how "good" the signal is received (like the "level" in android.wifi.ScanResult)... how do i do that?
...
i am developing a password storage software. To enter into the application we have to login with valid details.
Now when i press home key, the application should log of automatically and then start all over again from security perspective. It should logout everytime the home key is pressed.
How do i do it?
...
When development various platforms(Android,iPhone,Mac,Windows and so on), it is necessary diverged processing(#ifdef/#endif) by depends on an platform definition.
But, I don't know original definition in Mac/iPhone/Android.
Windows : WIN32 (Visual C++)
Mac : __MAC_NA(?) (XCode)
iPhone/iPad/iPod : __IPHONE_NA(?) (XCode)
Android :...
Well, hello everyone. I'm just a beginner in Android so excuse me if my question is dumb, but still I can't find an answer to what's happened.
I'm writing an application that consists of 3 activities and 1 service. The service keeps track of my content's lists, like that:
private void setLists() {
this.lists = new HashMap<String, Task...
I want to download an image from the 'net and set it as the users background. This works great over wi-fi, and some 3G networks, but others (T-Mobile UK, for sure) seem to compress the images before sending them.
This effect is noticeable when using the browser, too - however, if you long press on an image and save it, when viewing in ...
This maybe somewhat of a strange question but I just can`t figure it out.
Basically I have a class that extends View and overrides the onDraw method so it draws a bitmap what it is called. What I want to do is when by choosing a picture from a gallery, send it through and intent and draw that on the View.
The problem is that I can`t get...
(I'm sorry for not being so clear in my first post)
Here is the situation: I have data that is to be refreshed from the Internet. Let's call it Model.
What I want to do: Basically it sounds like an MVC model, where the Model is also kept persistent in local (private) storage. The Model and its associated methods are application-wise. T...
Hi
I have finally - after days and days of agony - figured out that I need two forms of encryption for my Digital Signatures Project. The first will will be symmetric (AES) and will encrypt the license data and the second will be a asymmetric (RSA) an will encrypt the symmetric key. Can someone give me pointers on the best methods to ...
Hi everyone,
I am trying to create a simple exception handler which will help me debug the application. Right now, when I have an exception I am forced to connect with Eclipse debugger merely to see the exception details.
To avoid that I've used setUncaughtExceptionHandler to handle any unhandled exception and display a Toast on the ex...
hello
I have a Gallery composed of many ScrollViews each of which occupies the whole screen. problem is the ScrollViews' onTouchEvent returns true and therefore prevent any other view in the DOM to handle the same event (which is swallowed after being processed at the ScrollView level). As a result the Gallery doesn't scroll anymore. On...
hi im trying to add a phone number to an existing contact on android 2.1. Im currently using:
ContentValues values = new ContentValues();
values.put(Phone.RAW_CONTACT_ID,cursor.getColumnIndex(Phone.CONTACT_ID));
String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '1'";
ContentResolver cr = getContentResolver();
Cursor cu...
This is a community wiki, to collect a list of contest sites that offer winning prizes for Android applications.
This can be anything where Android is accepted, or where OS platform and GSM providers are not specified so I can apply with an Android app. It should also NOT be region specific, so someone from EU or Bangladesh can apply.
...
I'm facing a recurrent problem that I don't know why it is happening. It happens all of a sudden. I didn't do anything different from what I was doing before.
I'm using these tabs: http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
When I open one of the three tabs (Class name = Tab1), this problem comes out. B...
I've got an activity with a search field with a "near current location" checkbox and a listview to show the results. I'm now in the life cycle of the activity, implementing the onSaveInstanceState and onRestoreInstanceState methods. When the activity is destroyed and I get back to it, the listview with the results has disappeared, but th...
How do you programatically do this in the Android SDK:
Dial a phone number
Bypass the keypad screen
Send additional DTMF after the number is dialed
Bypass the send DTMF tone prompt
I have managed to do 1 till 3 by dialing +555-1212w1234 but I am wondering if anyone knows how to bypass the send DTMF tone prompt.
...
I have been banging my head about this all day.
How can I get a genre from an Audio Id?
All I can find is that you have to call a whole new content call to get the genre then you need a genre id to find the genre of the song that you want. I wouldn't need to make the call if I had the genre id.
Any ideas?
EDIT:
The only way I have b...
I'm really struggling here, and it's holding me back.
What is the correct way to handle OpenGL, and an Activity - which launches sub-activities, or goes back to the home screen. And have it resume just exactly where it was.
I have it semi-working as it stands, textures/VBOs are reloaded at onResume() when needed.
But sometimes, when l...
Hi all
I've read lots of articles about intent filters and I really can't understand exactly what they do?
so please if anybody can explain to me with a clear example what is the role of intent filters exactly ?
thanks
...
I have an Activity that has a GLSurfaceView.
I'm struggling to rewrite it so that I don't go to black screen after Home button, or coming back from a startActivityForResult ...
Ignoring that part, why does this happen:
I press Home button, and the following methods are triggered.
onSaveInstanceState
onPause()
onStop()
onDestroy()
onC...