I have been trying for a long time to figure this out but I am still lost. I would like to send a intent to view a folder with quickpics . I tried emailing the developer but did not receive much help. He did indicate it should be possible .. I included the manifest and a log cat entry and would very much appreciate some help in putting this into a tasker intent...
I/ActivityManager( 519): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.alensw.PicFolder/.GalleryActivity bnds= #a [234,413][423,538] } from pid 3119
I/ActivityManager( 519): Displayed com.alensw.PicFolder/.GalleryActivity: +202ms
Here is what i have so far and of course this does not work. I think i have all the pieces to the puzzle I just can't seem to put it together. I put a section of the manifest (the entire manifest is attached above) below with the log intent. If someone could post some advice I would really appreciate it.... thanks, Rich...
Action:android.intent.action.MAIN
Cat:Launcher
Mime type:
Data:
Extra:
Extra:
Package:com.alensw.PicFolder
Class:.GalleryActivity
Target:Activity
LOG------------------------
I/ActivityManager( 519): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.alensw.PicFolder/.GalleryActivity bnds= #a [234,413][423,538] } from pid 3119
I/ActivityManager( 519): Displayed com.alensw.PicFolder/.GalleryActivity: +202ms
MANIFEST --------------------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="101"
android:versionName="2.7.1"
android:installLocation="auto"
package="com.alensw.PicFolder">
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="16"/>
<uses-permission
android:name="android.permission.SET_WALLPAPER"/>
<uses-permission
android:name="android.permission.WAKE_LOCK"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<application
android:label="@2131230720"
android:icon="@2130837523"
android:name=".QuickApp">
<activity
android:label="@2131230720"
android:name=".GalleryActivity"
android:taskAffinity="android.task.pictures"
android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action
android:name="android.intent.action.MAIN"/>
<category
android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action
android:name="android.intent.action.GET_CONTENT"/>
<category
android:name="android.intent.category.OPENABLE"/>
<category
android:name="android.intent.category.DEFAULT"/>
<data
android:mimeType="image/*"/>
<data
android:mimeType="video/*"/>
<data
android:mimeType="vnd.android.cursor.dir/image"/>
</intent-filter>
<intent-filter>
<action
android:name="android.intent.action.PICK"/>
<category
android:name="android.intent.category.DEFAULT"/>
<data
android:mimeType="image/*"/>
<data
android:mime
No help..... ?? :(
Do I need more info ??
Am I even close..... ??
Any info would be greatly appreciated ......
Thanks, Rich..
WOW.... thanks alot....
I will not say how long I have been trying to get this... but was a while..
It was the class that had me----
Class: com.alensw.PicFolder.GalleryActivity
>> I got it working with the following intent using Intent Tools and Intent Intercept:
Where can I find these tools if you don't mind my asking??
Thanks again... Rich..
Oh... one more thing.. where would I put the flag in tasker if i was to use it..
Thanks for all the great info..... very very much appreciated .... :)
> Come back if you have further questions :)
Oh you should not have said that..... :) (just kidding)
However...
There is one more thing you may be able to help with.. The reason i needed the intent was - tasker does a fine job of opening quick pics and sending the data, it will open quickpics to a specified folder. However if i use the back button while in quickpics and leave the app (home button) while I am in its folder browser screen the next time I open it with the same tasker action it will open to the folder browser screen and not the pre selected folder..
I emailed the developer and he said--
" You may need set the clear top flag (or some other flag) to the intent, please check the docs of the intent."
I just tried the clear top flag in the manor you recommended and it did not work..
Just thought you might be able to recommend a few flags to try ....
> Merry christmas, Rich!
Thank you.. and a very merry Christmas to you as well...
Wow... your fast... thanks for checking it out, this is a huge help...
That's fantastic ... I will take this as a early Christmas present....
One more small thing..
I have not used shell as of yet..
I do not need root for this, correct? ?
How do use a tasker variable for PUTYOURFOLDERHERE??
Well I guess that's two.... :)
Thanks again ... Rich
That's fantastic ... I will take this as a early Christmas present....
One more small thing..
I have not used shell as of yet..I do not need root for this, correct? ?
How do use a tasker variable for PUTYOURFOLDERHERE??
Great...
Thanks for the 2 stocking suffers..... you have definitely made it a merry Christmas .... hope yours is the same..... Rich..
Just got a chance to give it a test. Seems to work great with one small problem.
The shell command does not seem to allow spaces in the folder name. Is there a extra command I can use for this to allow spaces in the folder name?
Thanks, Rich..
> Just got a chance to give it a test. Seems to work great with one small problem.
>
> The shell command does not seem to allow spaces in the folder name. Is there a extra command I can use for this to allow spaces in the folder name?
Ahhh, never mind.. just found on google, needed the folder name in double quotes ....
>
> Thanks, Rich..
>
> I was looking for this thing, and found the thread, any ways i'm not getting how to do this in tasker, i mean you have component name, cls, and also flags, where should i write these in tasker?
It is used in a shell command. Action/ code / run shell
Here is the one I am still using..
A38: Run Shell [ Command:am start -a android.intent.action.MAIN -d "file:///%picfilename" -c android.intent.category.LAUNCHER -n com.alensw.PicFolder/com.alensw.PicFolder.GalleryActivity --user 0 --activity-clear-task --activity-clear-top Timeout (Seconds):31 Use Root:Off Store Output In: Store Errors In: Store Result In: ]