testing my app

by Sylvester Steele » Wed, 25 Jun 2008 11:19:08 GMT


Sponsored Links
 Hi,
 I want to make an app that will react to a phone call. How do I test
this? ie how do I simulate incoming calls?

Thanks,
Sylvester
--~--~---------~--~----~------------~-------~--~----~



testing my app

by Frederico Affini » Wed, 25 Jun 2008 15:07:28 GMT


 All you have to do is:

   1) Start the Android emulator
   2) Open a command line (Start > Run, then type cmd and hit enter, using
windows)
   3) On command line type "telnet localhost 5554"
   4) You should see the Android Console
   5) Type "gsm call +44114444" and hit enter

You should see a incoming call on the emulator from the number given o step
5

Regards,
Fred

On Wed, Jun 25, 2008 at 8:19 AM, Sylvester Steele <[EMAIL PROTECTED]>





-- 
Fred Affini
 http://www.linkedin.com/in/fredaffini 

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


Sponsored Links


testing my app

by Sylvester Steele » Wed, 25 Jun 2008 17:33:37 GMT


 Thanks.

Sylvester
--~--~---------~--~----~------------~-------~--~----~



testing my app

by Sylvester Steele » Thu, 26 Jun 2008 08:54:50 GMT


 I see a similar option to test smss also, but it doesn't seem to work.
I typed: sms send +1234 qwer . The console says OK but no sms appears
in the emulator. How do I fix this?

Sylvester
--~--~---------~--~----~------------~-------~--~----~



testing my app

by Frederico Affini » Thu, 26 Jun 2008 11:36:33 GMT


 It's not a problem.

The Android SDK doesn't has an application to handle SMS messages, so you
will have to either create one or get one in the web so you can test SMS
messages.

Regards,
Fred

On Thu, Jun 26, 2008 at 5:54 AM, Sylvester Steele <[EMAIL PROTECTED]>





-- 
Fred Affini
 http://www.linkedin.com/in/fredaffini 

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



Other Threads

1. Search dialog and searching within the same activity

Hi,

i have a map activity and added a search dialog where the user can
search for an address. The map activity is searchable. The search
works very well, but when the search is started the activity startet a
new instance of map activity.

Is there a way to show search results in the same activity where the
search was executed? Because when the user uses the back button the
same (map) view is shown again, but he should go to the activity where
the map activity was called from.

Hope you can help!
Thanks a lot!

-Danny Schimke

-- 

2. Monkey Exception BAD TOKEN

Hi,

I ran monkey on my device and getting exception

#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=com.android.camera/.VideoCamera;end

    // Allowing start of Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.android.camera/.VideoCamera } in package com.android.camera

:Sending Pointer ACTION_DOWN x=684.0 y=467.0

:Sending Pointer ACTION_UP x=684.0 y=467.0

    // Allowing start of Intent { act=android.intent.action.SEARCH
cmp=com.android.browser/.BrowserActivity } in package
com.android.browser

:Sending Pointer ACTION_MOVE x=-4.0 y=-1.0

    // Allowing start of Intent { act=android.intent.action.WEB_SEARCH
cat=[android.intent.category.DEFAULT]
cmp=com.google.android.googlequicksearchbox/.google.GoogleSearch } in
package com.google.android.googlequicksearchbox

    // Allowing start of Intent { act=android.intent.action.VIEW
dat=http://www.google.com/m?hl=en&gl=us&client=ms-android-
dell&source=android-browser-type&q=s
cmp=com.android.browser/.BrowserActivity } in package
com.android.browser

    // activityResuming(com.android.browser)

:Sending Pointer ACTION_MOVE x=-5.0 y=-5.0

:Sending Pointer ACTION_DOWN x=608.0 y=11.0

:Sending Pointer ACTION_UP x=608.0 y=11.0

:Sending Pointer ACTION_DOWN x=683.0 y=261.0

:Sending Pointer ACTION_UP x=683.0 y=261.0

// CRASH: com.android.camera (pid 1407)

// Short Msg: android.view.WindowManager$BadTokenException

// Long Msg: android.view.WindowManager$BadTokenException: Unable to
add window -- token null is not valid; is your activity running?

// Build Label: dell/streak/streak:2.3.3/GINGERBREAD/eng.root.
20110421.224959:eng/release-keys

// Build Changelist: 0

// Build Time: 1303407187000

// android.view.WindowManager$BadTokenException: Unable to add window
-- token null is not valid; is your activity running?

//      at android.view.ViewRoot.setView(ViewRoot.java:528)

//      at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:
177)

//      at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:
91)

//      at android.view.Window$LocalWindowManager.addView(Window.java:424)

//      at com.android.camera.OnScreenHint.handleShow(OnScreenHint.java:
162)

//      at com.android.camera.OnScreenHint.access$000(OnScreenHint.java:
42)

//      at com.android.camera.OnScreenHint$1.run(OnScreenHint.java:180)

//      at android.os.Handler.handleCallback(Handler.java:587)

//      at android.os.Handler.dispatchMessage(Handler.java:92)

//      at android.os.Looper.loop(Looper.java:123)

//      at android.app.ActivityThread.main(ActivityThread.java:3683)

//      at java.lang.reflect.Method.invokeNative(Native Method)

//      at java.lang.reflect.Method.invoke(Method.java:507)

//      at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:864)

//      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)

//      at dalvik.system.NativeStart.main(Native Method)

//

** Monkey aborted due to error

Any idea about this? What is the significance of this message?


It seems it generated from camera. How to debug this??

-- 

3. Mouse events on table layout

4. Ant and Android

5. creating two tables

6. Calling a script from Android.mk

7. Update ym..