70 countries submitted 1,788 entries to the Android Developer Challenge!

by Muthu Ramadoss » Fri, 18 Apr 2008 06:30:19 GMT


70 countries submitted 1,788 entries to the Android Developer Challenge!

by Muthu Ramadoss » Fri, 18 Apr 2008 16:24:13 GMT


  http://android-developers.blogspot.com/2008/04/android-developers-have-risen-to.html 

 http://mobeegal.in 
find stuff closer.
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. JUnit on the emulator without instrumentation

I would like to write, run, and debug JUnit tests that test non-GUI
code that has dependencies on the Android SDK. Is there a simple way
to do that? I'm aware of the instrumentation mechanism, but that seems
to be geared towards testing GUI code. It is also unclear how to use
the instrumentation mechanism with Eclipse and also the de{*filter*}.
I've tried simply writing tests using the classes in android.test and
running them via AndroidTestRunner invoked from a button click on an
Activity, but I get the following error when I try to run the
application.

W/dalvikvm(  594): VFY: unable to resolve new-instance 8 (Landroid/
test/AndroidTestRunner;) in Lcom/spike/AndroidSpike$2;

For completeness, here is the complete code for the Activity.

package com.spike;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.test.*;

public class AndroidSpike extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ((Button)this.findViewById
(R.id.runTestsButton)).setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View v) {
                                AndroidTestRunner runner = new 
AndroidTestRunner();
                                runner.setTest(AllTests.suite());
                                runner.runTest();
                        }
                });
    }
}
--~--~---------~--~----~------------~-------~--~----~

2. android test

Hi,

I am writting unit tests on my Android project.
I would like to test whether a specific dialog window appears when i
click on a button.
For example, I have :
----------------------------------Begin Code
---------------------------------------------

public class MyDialog extends Dialog
   {
       ....
   }



public class MyActivity extends Activity
   {

    ....

    myButton.setOnClickListener( new OnClickListener()
      {
         @Override
         public void onClick(View v)
            {
               MyDialog window = new MyDialog(...);
               window.show();
            }
      }

    .....
   }
---------------------------------End
Code-----------------------------------



It works fine, but how to test it?

I start my test method, but i don't know how to finish it :




--------------------------------Begin Code
------------------------------------------------
@MediumTest
  public void testMyButtonAction()
   {
    startActivity(intent,null, null);
    Activity currentActivity = getActivity();
    myButton = (Button) currentActivity.findViewById(R.id.mybutton);
    myButton.performClick();
    assertNotNull(........)   // what is the method to get Dialog
   }
------------------------------- End Code
----------------------------------------------------


Somebody can help me please :D
--~--~---------~--~----~------------~-------~--~----~

3. Interface Ids for the AVI AVI File Format Parser Node

4. Fadeout the right side of a bitmap using the alpha channel

5. Landscape w/o opening keyboard

6. which junit to use when creating reusable library for Android apps?

7. Setting up Multiplayer Game over internet