[TinyTut] - Simulating incoming Phone Calls / SMS in ECLIPSE

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

[TinyTut] - Simulating incoming Phone Calls / SMS in ECLIPSE

Postby plusminus » Sun Dec 16, 2007 8:04 pm

[TinyTut] - Simulating incoming Phone Calls / SMS in ECLIPSE


What you learn: You will learn how to simulate a GSM-Call or SMS to the Android Emulator over via Eclipse.

Difficulty: 0.5 of 5 :roll:

:warning: SDK/ADT - Version >= m3-rc37a is needed to use this Feature. :warning:


What it will look like:
Image


Description:
  1. Start the Emulator (i.e. by running any of your Android-Projects)
  2. Switch to the DDMS-View
  3. Done.

How to get to the DDMS-View (B if A is not visible):
Image


Regards,
plusminus
Last edited by plusminus on Wed Jan 30, 2008 10:38 pm, edited 1 time in total.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby kadair » Sun Dec 16, 2007 11:10 pm

Hi plusminus,

Have you been able to verify that the SMS message was received by the emulator?

Thanks,
Ken
Last edited by kadair on Tue Dec 18, 2007 5:48 pm, edited 1 time in total.
"Your imagination is your preview of life's coming attractions." - Einstein

http://www.AppSocial.com
kadair
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sun Dec 16, 2007 11:02 pm
Location: Cincinnati OH, United States

Postby plusminus » Sun Dec 16, 2007 11:16 pm

Yes it is received, but there is (by now) no Default-Activity reacts on it ;)

I'm writing a tutorial by now, that catches the Intent fired when a SMS is received.

This will take a maximum of 30 minutes.
Check back then.

Best Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby kadair » Sun Dec 16, 2007 11:17 pm

Awesome - thanks a bunch! I'll try to return the favor in the near future.
Last edited by kadair on Tue Dec 18, 2007 5:49 pm, edited 1 time in total.
"Your imagination is your preview of life's coming attractions." - Einstein

http://www.AppSocial.com
kadair
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sun Dec 16, 2007 11:02 pm
Location: Cincinnati OH, United States

Postby plusminus » Sun Dec 16, 2007 11:43 pm

Hey kadair,

Check out the following topic, when your back. (still working on it while posting this).
:arrow: http://www.anddev.org/viewtopic.php?t=295

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Re: [TinyTut] - Simulating incoming Phone Calls / SMS in ECL

Postby pedro » Wed Jan 30, 2008 10:06 pm

plusminus wrote:
[TinyTut] - Simulating incoming Phone Calls / SMS in ECLIPSE


What you learn: You will learn how to simulate a GSM-Call or SMS to the Android Emulator over via Eclipse.

Difficulty: 0.5 of 5 :roll:

:warning: SDK/ADT - Version m3-rc37a is need to use this Feature. :warning:



Regards,
plusminus


The incoming number is always that number or can I use another? That number is default for the emulator?
É usuário de língua portuguesa? então visite: http://www.portalandroid.org <-- Visit
pedro
Developer
Developer
 
Posts: 29
Joined: Mon Jan 28, 2008 2:48 pm

Top

Postby plusminus » Wed Jan 30, 2008 10:41 pm

Hello pedro,

the number used above is the number of the ""person"" calling the emulator. So you can use any number you can imagine.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby pedro » Wed Jan 30, 2008 11:20 pm

plusminus wrote:Hello pedro,

the number used above is the number of the ""person"" calling the emulator. So you can use any number you can imagine.

Regards,
plusminus


I used a number with 6 digits (123456) and not worked. There is no notice in the emulator
É usuário de língua portuguesa? então visite: http://www.portalandroid.org <-- Visit
pedro
Developer
Developer
 
Posts: 29
Joined: Mon Jan 28, 2008 2:48 pm

Postby plusminus » Thu Jan 31, 2008 12:26 am

Hello pedro,

with me it (voice and sms) works even with a single number ( "1" ).

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby pedro » Thu Jan 31, 2008 12:44 am

plusminus wrote:Hello pedro,

with me it (voice and sms) works even with a single number ( "1" ).

Regards,
plusminus


Put "1" for voice and worked! But for sms not work!
É usuário de língua portuguesa? então visite: http://www.portalandroid.org <-- Visit
pedro
Developer
Developer
 
Posts: 29
Joined: Mon Jan 28, 2008 2:48 pm

Postby plusminus » Thu Jan 31, 2008 12:57 am

Hello pedro,

tested again + screenshot-proof:
Image


Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby pedro » Sat Feb 09, 2008 2:12 pm

plusminus wrote:Hello pedro,

tested again + screenshot-proof:
Image


Regards,
plusminus


I made this accurately, but he does not appear nothing in the emulator? I have that to have some application or to qualify some permission in the emulator?
É usuário de língua portuguesa? então visite: http://www.portalandroid.org <-- Visit
pedro
Developer
Developer
 
Posts: 29
Joined: Mon Jan 28, 2008 2:48 pm

Postby plusminus » Sat Feb 09, 2008 2:34 pm

Hello pedro,

you mean you were following this tutorial: Recognize/React on incoming SMS :?:

With the comments there you can see that it does work!

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby pedro » Sat Feb 09, 2008 2:59 pm

plusminus wrote:Hello pedro,

you mean you were following this tutorial: Recognize/React on incoming SMS :?:

With the comments there you can see that it does work!

Regards,
plusminus


I made download of the applicatory SMSRecived but he does not have the buttons in the screen
É usuário de língua portuguesa? então visite: http://www.portalandroid.org <-- Visit
pedro
Developer
Developer
 
Posts: 29
Joined: Mon Jan 28, 2008 2:48 pm

Postby plusminus » Sat Feb 09, 2008 3:50 pm

Hello pedro,

yes you will only see the Notification, but no Activity in the background as I just extracted the tutorial from one of my Applications (SMStretcher). There I made the IntentReceiver show the Notification and start the MainActivity you are seeing in the background.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top
Next

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests