mrrazzzzor

unread,
Dec 28, 2015, 11:15:47 PM12/28/15
to mitappinv...@googlegroups.com

i make simpel Call Aplication with ai2
when i click number from ex SMS,WA or etc and open with my app

but in my app textbox canot recieve the number

i add intent filter to manifest
<intent-filter>
               
<action android:name="android.intent.action.VIEW" />
               
<action android:name="android.intent.action.DIAL" />
               
<category android:name="android.intent.category.DEFAULT" />
               
<category android:name="android.intent.category.BROWSABLE" />
               
<data android:scheme="tel" />
           
</intent-filter>
and in my app i use get start value on screen initialize but dont Work

how get data from other activity?
thanks

Taifun

unread,
Dec 29, 2015, 10:15:02 AM12/29/15
to MIT App Inventor Forum
how get data from other activity?
this is explained in the activity starter documentation
however I do not know, if you will be able to do that...


Using the activity starter with two App Inventor Apps

App Inventor screens are activities, so you can use the Activity Starter to start other App Inventor apps.   The Hello Purr example at the top of this page shows how to do this. This is basically how App Inventor’s multiple screen apps work.  

To pass a startup text value to the App Inventor app you are starting with the Activity Starter, ise EXTRAS to set the KEY property to the string APP_INVENTOR_START and set the VALUE Property to the text you want to pass.  The other app can then retrieve this value with Get Start Plain Text.   To return a value from the other app, use Close Screen With Plain Text. 

 

For the case of two App Inventor apps, it’s simpler to design the combination as a single multiple screen app, rather than create two separate apps that communicate using the Activity Starter.   But one situation where you might want to have separate apps is where two people are loosely collaborating on a project and want to work separately.  Remember that in order to run the combined app, users must have both applications installed on their devices. 




Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun. 

mrrazzzzor

unread,
Dec 30, 2015, 8:04:15 AM12/30/15
to MIT App Inventor Forum
so it's impossible to receive data from other application is not made with AppInventor?

Taifun

unread,
Dec 30, 2015, 10:44:56 AM12/30/15
to MIT App Inventor Forum
generally you can, read again the red part of my last message
but I don't know, if you can in your special case
Taifun

mrrazzzzor

unread,
Dec 30, 2015, 8:13:45 PM12/30/15
to mitappinv...@googlegroups.com
Like this?

Taifun

unread,
Dec 31, 2015, 8:17:46 AM12/31/15
to MIT App Inventor Forum
read the documentation Using the Activity Starter          
and see an App Inventor Classic example here https://puravidaapps.com/snippets1.php#fetchdata (see the btnGet.Click event)
Taifun

mrrazzzzor

unread,
Jan 1, 2016, 5:09:43 AM1/1/16
to mitappinv...@googlegroups.com
Thats not what i mean

Can u help me for read this question?
This same to my question

http://stackoverflow.com/questions/27688063/how-to-set-intent-filter-for-dial-action-in-android

But i use appinventor

Or ex i click link from browser and open with myapp and get the link to textbox or label on myapp

Thanks taifun

Taifun

unread,
Jan 2, 2016, 3:58:14 PM1/2/16
to MIT App Inventor Forum
as already said, I do not know, if this will be possible
you will have to experiment... if you found a solution, let us now...

concerning the browser, probably this solution can help https://groups.google.com/forum/#!starred/mitappinventortest/I-SDOaMLeUc
Taifun

Reply all
Reply to author
Forward
0 new messages