Android Development Phones

by Ubuntu Explorer » Thu, 22 Apr 2010 07:11:08 GMT


Sponsored Links
 Hi,

I want to purchase an Android developer phone. It seems to be bit pricey at
$399 (including international shipping). Is it an absolute necessity for
testing applications before uploading to market?

Also, I wonder what the device provides that the emulator does not.
I would imagine the answer to the above depends on what features of Android
I wish to use in my app. However, I would like to know the extent of device
emulation provided by the emulator.

Does it support accelerometer, camera, maps and other sensors?

Please advice.

Regards,
Sanjeev

--



Android Development Phones

by Mark Murphy » Thu, 22 Apr 2010 07:15:11 GMT


 


The ADP1 and ADP2 are for people building replacement firmware. For
ordinary Android application development, any phone that has the Android
Market on it will do.


It makes phone calls! :-)


Accelerometer, camera, sensors: not in any meaningful fashion.

Maps: yes.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Online Training: 10-14 May 2010:  http://onlc.com 

--


Sponsored Links


Android Development Phones

by wahib haq » Thu, 22 Apr 2010 20:42:09 GMT


 I would sincerely suggest to prefer a phone on emulator. Emulator has
serious limitations and make one stuck at a very bad state. Thought i am a
newbie but i have experienced it in these 4 months and now we are trying to
get a cheap used phone for testing.

regards,

wahib








>



Android Development Phones

by Indicator Veritatis » Fri, 23 Apr 2010 01:40:14 GMT


 As you noticed, the official developer phone is a bit pricey. But
since it is still generally best to target application for 1.5, an
unlocked G1 phone is just as viable, and a lot less pricey.

You have probably already noticed that you cannot upload an app from
the emulator to the Android Market.



>



Other Threads

1. Problem with onActivityResult

Hi all,

I have a problem with onActivityResult. My class Activity can not
return a result for this method.

My class A
[syntax="java"]
public class ClassTestA {
        private Button btOk;
        private Intent bus;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                btOk = (Button) findViewById(R.id.btTeste);
                bus = new Intent(AndTeste.this, Buscador.class);

                btOk.setOnClickListener(new OnClickListener() {

                        public void onClick(View v) {
                                bus = new Intent(AndTeste.this, Buscador.class);
                                startActivityForResult(bus, RESULT_OK);
                        }

                });
        }

        // Listen for results.
        protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
                // See which child activity is calling us back.
                switch (resultCode) {
                   case RESULT_OK:
                        setTitle("Result Ok");
                   default:
                        break;
                }
        }
}
[/syntax]

Class B
[syntax="java"]
public class ClassB {
        private Button btBus;
        private EditText end;
        private Geocoder buscador;
        private ListView list;

        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.buscador);

        btBus = (Button) findViewById(R.id.btBuscar);
        end = (EditText) findViewById(R.id.tiEnd);
        buscador = new Geocoder(this);
        list = (ListView) findViewById(R.id.listEnd);

        btBus.setOnClickListener(mCorkyListener);
    }

    private OnClickListener mCorkyListener = new OnClickListener() {
        public void onClick(View v) {
            setResult(RESULT_OK);
            finish();
        }
    };
}
[/syntax]

Manifest.xml
[syntax="xml"]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.maps"
      android:versionCode="1"
      android:versionName="1.0.0">

    <application android:icon="@drawable/icon"
android:label="testeando tudo">
        <activity android:name=".ClassA" android:label="Testeando a
And">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".ClassB" android:label="TESTEANDO">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category
android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>
</manifest>
[/syntax]
My class B to return to class A, but o method onActivityResult is not
called.
Someone can help me ?
--~--~---------~--~----~------------~-------~--~----~

2. Browser extensions i Java? YES, NO, Some?

I'm not sure about the exact browser-side mechanisms at that specific
level (I really only know the download side of things, but not how
things get there). If nobody else comments, you might be able to get
an answer in the source code.

JBQ








--~--~---------~--~----~------------~-------~--~----~

3. Notifications from file system

4. Article - Getting Started in Android Game Development

5. Hello world on Android

6. How to detect when there is GPRS?

7. Table layout?