I've been trying to do this for quite a while now and Ive got no luck. I want Tasker to send an intent to YMusic and download the song I want. I can get YMusic to open the search activity with my intent but in the extra field in Tasker I can't get Tasker to type anything in ymusic's search bar. Any help?
Related
I would like to add a home screen shortcut to open my dissertation, as it is a work in progress, and I need to check it often. It is a pdf file with path /sdcard/Research/Thesis/dissertation.pdf, so what I have tried is
Action: android.intent.action.VIEW
Data: file:///sdcard/Research/Thesis/dissertation.pdf
The created shortcut (with Bettercut) when pressed toasts with "application not installed". If anyone can help with this, I would greatly appreciate it. Thank you.
A bit late, but I found this unanswered post trying to find the solution myself, and I think it worth answering it now that I know it, in case anybody else comes here:
Action: android.intent.action.VIEW
Data: content://com.android.htmlfileprovider/sdcard/Research/Thesis/dissertation.pdf
Type: PDF/*
Well I have been searching around now for instructions on how to use this app.
Specifically the "Make Your own" Option on the app.
With all these shortcuts im about to show you Leave Type section blank.
here is what I found.
The app uses something called URI (Uniform Resource Identifier).
These are used to Choose what you want to do in the specific shortcut.
i.e Make the short cut a Direct Call. the URI I believe is this:
Code:
Action: android.intent.action.DIAL <--- URI
Data: content://contacts/people/#
# meaning the number defined to the specific contact. You can also use their Phone number as well if it gets too complicated.
What you typed into the Data portion is the what the URI is going to go into to make the shortcut work. In this case, It dials the specific number typed in where the # sign is.
To make a Direct Song shortcut you would have to do this:
Code:
Action: android.intent.action.PICK <--- This will choose and play the song you choose in the Data sections.
Data: content://media/external/audio/media/# <-- This specifies what song you want to be played.
# the same applies as with the direct call except that it can only be one number (i.e 1 for your first song, 2 for the second song, 3 for the third, etc etc)
Im not sure if combining numbers would work in this case but I doubt it.
--------------------------------------------------------------------------
If anyone finds anymore information, links, or w.e on it or more shortcuts that you guys have made, please post them and I will add them onto Here.
More Information/Links:
http://developer.android.com/referen...nt/Intent.html
If link is broken for you search this in google:
developer android referen Intent
and choose the very first option.
Seeing as how nobody could help me with the below, how do I capture what process is started/ran when I click on my desired button. Perhaps I can make a custom macro/program that will do what I desire.
-----------------------------------------------
My phone is having issues syncing with my car radio. It only works if I disable and re-enable the gps every time I get in the car. Very annoying.
I discovered that if I just leave BT on, then goto my BT settings(menu->settings->Wireless&Networks->Bluetooth settings->long press my device->options-connect) and connect to my desired device that way it connect much quicker.
This solution is livable, just trying to figure out how to create shortcut icon on desktop of those actions.
Any idea?
Ok, lets try changing the query to see if I can get some help on this.
Use AnyCut from the Market to make direct shortcut.
Hello,
I'm using Sygic Navigation for Android. Now I'm trying to get some data out of Sygic to use in Tasker. For example I want to get my Estimated Time of Arrival (ETA) and save it as a variable in Tasker. Sygic offers a SDK, see "developers [dot] sygic [dot] com [slash] documentation.php?action=code_geteta" (sorry, first post, not allowed to post URLs), so I guess there are possibilities with Tasker....??
The thing is, I'm really new to programming and have no idea how to start / what to do with the Java possibilities in Tasker
Is there anyone who can help me "translate" the Java code below to some Java code that I can use in Tasker? Or is this not possible at all?
Code:
import com.sygic.sdk.remoteapi.Api;
import com.sygic.sdk.remoteapi.ApiNavigation;
import com.sygic.sdk.remoteapi.model.RouteInfo;
...
String strETA = "";
try {
RouteInfo info = ApiNavigation.getRouteInfo(false, 0);
RouteInfo.RouteInfoTime eta = info.getEstimatedTimeArrival();
strETA = String.valueOf(eta);
} catch (GeneralException e) {
Log.e("RouteInfo", "Error code:"+ e.getCode());
}
Thanks!
Vic
I would not go the SDK / Java route unless you have some Java programming skills already.
In your case, try to investigate Autonotification and AutoInput which are two very popular Tasker plugins.
You can find some similar examples (I actually do it with Maps) on the AutoApps forum.
It won't work at all in Tasker unless you write a completely new plugin. How can you use Sygic SDK in Tasker?? I don't think it's possible. If the information is in the notification you can use Notification Listener to get the notification in the task and read it. If it's only on the screen you can read it using the action "read screen" of TouchTask plugin.
Hello,
I am new to android studio and java in general. I was wondering If there is an easy way to send data from one activity to multiple activities.
On my first activity the user will enter some text. I want this text to be displayed on the second activity as well as on a summary page(my 6th activity).
I have figured out how to have the text go from activity 1 to the second activity. But I cannot figure out how to make it show up on the summary page as well. Anyone have any advise?
Thanks in advance!
NewtoStudio said:
Hello,
I am new to android studio and java in general. I was wondering If there is an easy way to send data from one activity to multiple activities.
On my first activity the user will enter some text. I want this text to be displayed on the second activity as well as on a summary page(my 6th activity).
I have figured out how to have the text go from activity 1 to the second activity. But I cannot figure out how to make it show up on the summary page as well. Anyone have any advise?
Thanks in advance!
Click to expand...
Click to collapse
You should use some permanent storage. In Android it's a lot ways to save the data: simple file, preferences, database, content providers and others.
I think for you case can be appropriate use the preferences. You need to write the preferences in one activity and read in another. Please see the following code example in Kotlin for details.
In order to write the preferences:
Code:
with(getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE)) {
edit().putString(MY_MSG, "your message text").apply()
}
In order to Read preferences from destination activity:
Code:
with(getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE)) {
mString = getString(MY_MSG,"");
}