I created an instance of a custom class RestaurantList to hold my data (a list of restaurant data received from a web service as json data).
How can I save it in onSaveInstanceState?
...
Hi all,
I use the following main.xml for my app.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/toplinear">
<LinearLayout
xmlns:android="http://schemas.android.co...
Does anyone know if there is a support for cell broadcast on Android?
If yes, can anyone point me to any example that shows how to use it? (e.g. receive messages on some channel)
Thank you.
...
Alright, so I followed the Tab Widget tutorial to create some tabs for my application. In one of the tabs, I have a TextView with a lot of text that I'm debugging with. But, with all of the text, all of the info doesn't show up on the screen. I figured that I could scroll down to see the rest, but I cannot scroll. Any idea on how to ...
Hello,
I'm trying to build a app that uses the SmsMessage class but there are two versions depending on the API level of the device:
android.telephony.gsm.SmsMessage (deprecated for 1.6 and above)
android.telephony.SmsMessage (the new class for 1.6 and up)
I want to target 1.5 and yet have the newer class (android.telephony.SmsMessag...
Possible Duplicate:
Android and obfuscation
How can Obfuscate an android app?
I have never used this technique all i know is that this is a way to prevent others to convert the apk file back to my source.
So how can i achieve this?
I'm using a mac
...
I have just started doing some Android development. One of the things that I would like to add to the app the I'm working on, is data exchange between a desktop computer and an android phone. Think of it like syncing data between Microsoft Outlook and the phone when it is connected to the wifi network. (Stanza on the iPhone is another go...
With my notification system, when the notification is sent, I would like to be able to click on the notification and have it send me to my application. But, with my current code, it doesn't do so. How can I fix that?
public void causeNotification(CharSequence contentText, CharSequence tickerText) {
Log.d(TAG, "Sending notification...
My animation works and when the thread ends, the intent for the next screen fires, but it won't fire from the end of the animation. I put log entries for all of the AnimationListener's callbacks (only End is in this listing), but none get logged.
public class PromoActivity extends Activity implements AnimationListener {
protected b...
I have a view with a spinner. The activity starts another acvitity with a popup where I add or delete values that the parent shows in the Spinner.
So, in onActivityResult() I refresh the content of the Spinner so that it reflects any additional or deleted values, by calling my fillSpinner() method.
The parameter to this method is the pre...
Is there a replacement somewhere in the SDK for javax.sound.sampled.AudioFormat and associated stuff that allows you to open a .wav file and extract the PCM samples from it? Or do I really need to implement my own codec?
...
If you were to start your app again from scratch what would you do differently, knowing the platforms you were going to port to?
This questions comes as my team is about to under-go development for a mobile app targeting iphone, android and qt. We aim to complete the iphone version first, and then port to android and qt, and it would be ...
I have a TableLayout enclosed within a ScrollView.
Is there a way to to get the middle row of this table displayed at the center on the screen at start and also as the currently focussed row? (the user can then scroll up or down as required)
TIA
...
Hi, I am implementing something like the user interface from Microsoft Zune HD player. So, I would like to change the text color of my button when the button is being pressed as well as when it has been clicked.
...
How can I change the orientation to landscape while testing the app on deviceanywhere? I tried to right-click on the device, and click on Controls -> Turn left, that turned the phone, but my app did not orient to landscape. My app works well for rotation on the actual device.
Thanks
Chris
...
I want to use SMPP for sms sending rather then standard mechanism. Can I programmatically replace mechanism of SMS sending to my own?
...
hi there!
im writing an app in google android 2.1 that needs to know which direction (n/w/s/e) the device (htc hero) is facing. the sensor and its listener is working great, but the values i get from the sensor are totally crappy. e.g. it tells me i'd be facing north when the device is facing sw or so...
this seems to be a known proble...
I am working on the notpadv1 tutorial. I get an error from the parser as soon as I create a new xml file called note_row.xml and put in the following code:
The error is at the end of the file. It says: multiple annotations found at this line
premature end of file
error parsing XML:no element found
I also see the following error in t...
I wrote a widget that can call numbers directly with one click. It works on the emulator, and it used to work on my nexus one when it had Android 2.1. Now I got the update, and the widget stopped working. I am using Intent.ACTION_CALL, and android.permission.CALL_PHONE. If I change to Intent.ACTION_DIAL it works, and the same code works ...
Plz help me to Put data in PHP URL through HTTPPOST Method using Android SDK
...