New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
typhoonikan
Old
#1  
typhoonikan's Avatar
Senior Member - OP
Thanks Meter 100
Posts: 604
Join Date: Nov 2010
Location: Roanoke, VA
Exclamation Utilizing custom app activities with NFC Launcher

I think this can really 'make' NFC worth it by breaking through the mundane wifi, bluetooth, and gps tasks that are standard NFC functions and create interesting tasks with apps without the use of the Tasker app.

Under NFC Task Launcher > New Task > Add Action > Launch Applications > Application > Application of your choosing and Custom activity within app

I can't find any help searchin on google or the dev's site to use custom activities. I am curious as heck to use this feature to create more detailed NFC tags, but I am hoping someone can inform on how to determine the activities within third party apps so that I could use this feature.
.
Most useful Android Apps @ typhoonikan.blogspot.com

............
HTC Supersonic: EVO 4G
.
HTC Jetstream
.
HTC EVO 4G LTE
.
.
 
krohnjw
Old
#2  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by typhoonikan View Post
I think this can really 'make' NFC worth it by breaking through the mundane wifi, bluetooth, and gps tasks that are standard NFC functions and create interesting tasks with apps without the use of the Tasker app.

Under NFC Task Launcher > New Task > Add Action > Launch Applications > Application > Application of your choosing and Custom activity within app

I can't find any help searchin on google or the dev's site to use custom activities. I am curious as heck to use this feature to create more detailed NFC tags, but I am hoping someone can inform on how to determine the activities within third party apps so that I could use this feature.
It's really not that exciting currently Essentially that's used to start a specific activity within a package. Some packages have multiple activities that can be launched (and are present in the app drawer). If you pick one of these from the list that box will auto populate. You could also manually set if it you want (com.pagkage.name.Activity).

Going forward I'm kicking around allowing the creation of a custom intent to pass extra data into apps (much more useful) but that's a bit off right now. Plenty of features to get through currently before I run in to that (done for the next release is lock screen controls, dock modes - including hardware dock impersonation, sms, phone calls, allowing NFC to be excluded from all airplane mode toggles, layout optimizations and fixes of reported issues)

Long term we do want to get some "how to" articles / videos up. At this point though they don't exist really. If you have any specific questions feel free to email or send me a message here.
The Following 2 Users Say Thank You to krohnjw For This Useful Post: [ Click to Expand ]
 
KitWasHere
Old
#3  
KitWasHere's Avatar
Senior Member
Thanks Meter 23
Posts: 115
Join Date: Jun 2012
First thing I thought of when I read this was to launch certain music stations on "iHeart" or whatever you use based on where you are.
 
LoveNFC
Old
#4  
Senior Member
Thanks Meter 53
Posts: 140
Join Date: May 2012
Quote:
Originally Posted by krohnjw View Post
It's really not that exciting currently Essentially that's used to start a specific activity within a package. Some packages have multiple activities that can be launched (and are present in the app drawer). If you pick one of these from the list that box will auto populate. You could also manually set if it you want (com.pagkage.name.Activity).

Going forward I'm kicking around allowing the creation of a custom intent to pass extra data into apps (much more useful) but that's a bit off right now. Plenty of features to get through currently before I run in to that (done for the next release is lock screen controls, dock modes - including hardware dock impersonation, sms, phone calls, allowing NFC to be excluded from all airplane mode toggles, layout optimizations and fixes of reported issues)

Long term we do want to get some "how to" articles / videos up. At this point though they don't exist really. If you have any specific questions feel free to email or send me a message here.
Now that mods exist to have NFC on even while the screen is off, would it be possible for you to create an option to wake and unlock the phone whenever an action tag is detected?
 
krohnjw
Old
#5  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by LoveNFC View Post
Now that mods exist to have NFC on even while the screen is off, would it be possible for you to create an option to wake and unlock the phone whenever an action tag is detected?
It's something I can raise for discussion here. We don't want too many features that rely on an unexposed feature like a modified nfc service. But if it's something we can incorporate easily enough (perhaps hidden unless enabled in preferences) then it shouldn't be an issue. We just don't want to end up confusing less technical users in the process of offering niche features.
 
LoveNFC
Old
#6  
Senior Member
Thanks Meter 53
Posts: 140
Join Date: May 2012
Quote:
Originally Posted by krohnjw View Post
It's something I can raise for discussion here. We don't want too many features that rely on an unexposed feature like a modified nfc service. But if it's something we can incorporate easily enough (perhaps hidden unless enabled in preferences) then it shouldn't be an issue. We just don't want to end up confusing less technical users in the process of offering niche features.
Sounds fair enough - thanks!
 
sysadmn
Old
#7  
Member
Thanks Meter 17
Posts: 71
Join Date: Jan 2012
Quote:
Originally Posted by krohnjw View Post
It's really not that exciting currently Essentially that's used to start a specific activity within a package. Some packages have multiple activities that can be launched (and are present in the app drawer). If you pick one of these from the list that box will auto populate. You could also manually set if it you want (com.pagkage.name.Activity).

Going forward I'm kicking around allowing the creation of a custom intent to pass extra data into apps (much more useful) but that's a bit off right now. Plenty of features to get through currently before I run in to that (done for the next release is lock screen controls, dock modes - including hardware dock impersonation, sms, phone calls, allowing NFC to be excluded from all airplane mode toggles, layout optimizations and fixes of reported issues)

Long term we do want to get some "how to" articles / videos up. At this point though they don't exist really. If you have any specific questions feel free to email or send me a message here.
Reviving a slumbering thread ...

Is there a way to get a list of activities supported by an app?

For example, instead of just starting Google Play Store, is there a custom activity that would start Play Store and go to "My Apps"?
 
krohnjw
Old
#8  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by sysadmn View Post
Reviving a slumbering thread ...

Is there a way to get a list of activities supported by an app?

For example, instead of just starting Google Play Store, is there a custom activity that would start Play Store and go to "My Apps"?
This is in the next release. All exported activities will now be listed when you select an app.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2012-08-15-11-39-28.jpg
Views:	378
Size:	36.7 KB
ID:	1262897  
The Following User Says Thank You to krohnjw For This Useful Post: [ Click to Expand ]
 
sysadmn
Old
#9  
Member
Thanks Meter 17
Posts: 71
Join Date: Jan 2012
Thanks, and thanks for the fast response. This is really cool. We should be able to create a cookbook as we find out which activities are launchable.
 
krohnjw
Old
#10  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by sysadmn View Post
Thanks, and thanks for the fast response. This is really cool. We should be able to create a cookbook as we find out which activities are launchable.
I subscribe to threads where a response may be needed so I don't leave things like that hanging