Mobile network type

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Mobile network type

Post by MURTUMA » 17 Aug 2013 18:26

I want to make a simple flow which tells me what network type my phone is using. I was testing it with following flow, but all I get for answer is "null". How can I make it work?

http://automagic4android.com/flow.php?i ... 9fcc208b4b

Nevermind. I noticed that if I draw the flow through the network type condition I already made there, the flow works just fine. The output needs some formatting, but I'll post the flow when it's complete so you could give me more advice if any.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Mobile network type

Post by Martin » 18 Aug 2013 07:04

Yes, you have to use the condition in this case.
Automagic does not initialize the variable automatically when it is accessed, you have to initialize the variable using a condition or use a trigger that supplies the variable to the flow.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Mobile network type

Post by MURTUMA » 18 Aug 2013 19:40

Despite of many hours of trial and error(scripting isn't my kungfu) I couldn't format the output to readable text. Can you give me some advice how can I change the numbers to actual names of network types?

EDIT: Again, never mind. Just noticed I have to use quote marks in script when trying to input full words. Problem solved.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Mobile network type

Post by MURTUMA » 24 Aug 2013 20:45

finally I had time to get this working. Posting I here in case someone finds some help from it.

http://automagic4android.com/flow.php?i ... 2d796ac730

Post Reply