User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Android Intent (In and Out)

  1. #1
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Android Intent (In and Out)

    I'm trying to understand how to use intents, both incoming and outgoing, for a practical application. There isn't much information on how to use this in CTF other than how to send the occasional thing to Facebook or via email.

    We have a two part system. I have a developer working on an android service which needs to be able to send and receive data (strings and values) with the app that I'm making in CTF.

    His service will be called com.(mycompanyname).atlas, and mine will be com.(mycompanyname).west. His app needs to be able to send mine coordinates from a bluetooth beacon system. All I need is the X and Y coords, and I can do the rest. He also needs to be able to send values which will be programmed by me to kill or pause the app, along with a string to alert users of why the app was shut down.

    My app needs to be able to send strings and data to his service, so that it can forward information onto the "mothership". The idea is that we have 3 dozen tablets and one mothership, which can keep tabs on what the users are doing.

    His service does a lot of the heavy lifting in terms of sending and receiving data around the deployment site. I just have to make my app talk to his using intent.

    Right now, I'm building a test app which will do several things. (From there I should be able to figure out how to get what I need.)

    1. Send his app a random number when clicking on a button. (Button is pressed, set a counter to a random number. How do I use intent to send that number to com.whatever.atlas so his system can get the value?)
    2. Send his application a string from a field the user has typed in. (Button pressed, set string to text that was entered into field. How do I get that string's data to com.whatever.atlas?)
    3. Receive from him a string
    4. Receive from him a value called X, and a value called Y


    These items need to be sent automatically and without user interaction. (EX: When the intent is sent, it does not pop up a window asking where the user should send it (like facebook, as a SMS to a contact, to clipboard, etc...) It should go automatically where it needs to go without any sort of visual notice to the user.)

    What would be the best way to set this up?

    Thanks.

  2. #2
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to do this, but bump.

    Maybe this will help, can anyone explain explicit intent in android apps and if it's possible through the android compiler?

    Everything else on the app is coming up awesome.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,314
    Mentioned
    203 Post(s)
    Tagged
    4 Thread(s)
    this is possible for non administrative intents, unfortunately are just few of them, must of them need to be register.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Fernando -- can you give me an example of non-administrative intents?

    Thanks for your reply!

  5. #5
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We're testing this now:

    I made an app with two counters that generate a random number every 5 seconds. Then, it will send one of those numbers to Intent (outgoing): Add extra string "xCoord" = Str$(value("CounterX")), the other Intent (outgoing): Add extra string "yCoord" = Str$(value("CounterY")). Intent type is set to application/text, then Intent (outgoing): Start intent "android.intent.action.SENDTO" with URI "com.companyname.atlas"

    I have my developer working on something that will display data received from intents as they are received. Is there any reason the above wouldn't work to send data across apps? This is just a test app for sending out from my app. Then, we will test the other way. I just need to know if theoretically this will work.

    Thanks

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,314
    Mentioned
    203 Post(s)
    Tagged
    4 Thread(s)
    hmm you should be able to do so.

    I don't think you can use android.intent.action.SENDTO to do what you need, let me check
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,314
    Mentioned
    203 Post(s)
    Tagged
    4 Thread(s)
    I check this and there was an error in android object, let me know if you want to test a new runtime send me a PM also I will post a small example for reading voltage from battery using intents
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As I am creating functional software and apps with MMF (especially to control electronics) I am also interested in the use of intents as it opens so much functionalities. If you could share this kind of examples it would be very helpful.

  10. #10
    Clicker Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    Lenchantin's Avatar
    Join Date
    May 2014
    Location
    Casper, WY
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am on the steam version of CTF. Can I test a new runtime with this version, or will I have to wait for it to filter through steam. (Biggest mistake was buying it on steam...) :/

    Thank you!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Android Send Intent (Share)
    By Neildo64 in forum Android Export Module 2.5
    Replies: 43
    Last Post: 8th January 2020, 04:42 PM
  2. Android Intent Setting Ringtone/Notification
    By burakrogan in forum Android Export Module 2.5
    Replies: 1
    Last Post: 23rd February 2017, 11:40 PM
  3. Android intent to get WiFi dbi (or strength)
    By cheatcode in forum Android Export Module 2.5
    Replies: 2
    Last Post: 26th August 2016, 04:02 PM
  4. Using Android Intent to sent a file to a server?
    By turtle in forum Android Export Module 2.5
    Replies: 0
    Last Post: 30th December 2015, 07:22 AM
  5. Android SDK - get MainActivity intent
    By ColdFire in forum Android Export Module 2.5
    Replies: 3
    Last Post: 10th March 2015, 05:39 PM

Posting Permissions

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