User Tag List

Results 1 to 4 of 4

Thread: Android SDK - get MainActivity intent

  1. #1
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-onInstall Creator Pro

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Android SDK - get MainActivity intent

    Hey, is there any way to catch extra data from MainActivity intent wich one start application?

  2. #2
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-onInstall Creator Pro

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    So it is impossible in SDK? I can do that when I change SDK but if I do that then my extension will be not work for user who don't have that changes in android exporter...

    My extension class allow me only to override onNewIntent(Intent intent) function from CRunExtension but this is not enough for me... It allow me only to read incoming intent extra data when app is running. But I want to get starting app intent extra data.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    let me check a possible way to do this and make it available to the objects.

    please add a feature request for this, thank you.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-onInstall Creator Pro

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help but let me see if I can make it without changes in SDK. I already have one idea but I must check how it work.

    Code:
            Intent intent = MMFRuntime.inst.getIntent();
            if(intent.hasExtra("arg")){
    
                arg = intent.getStringExtra("arg");
                Toast.makeText(context,"START: "+arg, Toast.LENGTH_LONG).show();
                //ho.pushEvent(0, 0);
    
            }else{
    
                Toast.makeText(context,"INTENT is null! ", Toast.LENGTH_LONG).show();
    
            }

Similar Threads

  1. Android Send Intent (Share)
    By Neildo64 in forum Android Export Module 2.5
    Replies: 51
    Last Post: 7th July 2020, 05:29 AM
  2. Intent SMS
    By ADS_3000 in forum Android Export Module 2.5
    Replies: 5
    Last Post: 3rd March 2015, 10:11 AM
  3. Feeze after share intent
    By the88g in forum Android Export Module 2.5
    Replies: 3
    Last Post: 30th January 2015, 11:07 PM
  4. Launch Skype from App via Intent?
    By StingRay in forum Android Export Module 2.5
    Replies: 4
    Last Post: 18th January 2014, 09:14 AM
  5. Start Intent
    By kiko in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 8th November 2012, 07:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •