Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8768109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:59:13+00:00 2026-06-13T16:59:13+00:00

This is really two questions. 1. I would like to launch a menu for

  • 0

This is really two questions.

1. I would like to launch a menu for you to create a shortcut much like how the code below launchers a menu which you can create a shortcut in the normal way

Intent pickIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT); 
startActivityForResult(pickIntent, 5);

Only thing is when I use the code above and I check the data, it doesn’t seem to contain data. I’m not sure if I needed the following permissions but I have put it in my manifest anyway:

<uses-permission> android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

I want to save the data used to run a shortcut in a file so I can run the shortcut from my app .

2. How would I run a shortcut code, is it basically like running a intent with extra flags, etc

I have seen a app that can do what I have just said and I have managed to look in one of the files it saved on my SD Card:

The following is an example of what I found:

Intent;action=com.sonyericsson.android.camera.action.FRONT_STILL_IMAGE_CAMERA;
component=com.sonyericsson.android.camera/.CameraActivity;
S.com.sonyericsson.camera.intent.extra.CAPTURING_MODE=front_normal;
end{[SName}]Front camera

I positive the above runs a shortcut that opens the camera app with it ready to take a photo from the front camera, but not sure how to run it.

Any help is much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:59:14+00:00Added an answer on June 13, 2026 at 4:59 pm

    After searching a lot I found what I was looking for:

    1. http://www.jp-z.jp/changelog/2011-07-12-1.html – Will show you how to launch shortcuts to get there Intents

    2. Once you have the intent you can do the following:

    Covert to string:

    String uri = intent.toURI().ToString()
    

    Save this where ever you wish, file, sqlite, etc

    To get it back and run the intent then do

    try {
    startActivity(Intent.getIntent(uri));
    } catch (URISyntaxException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    

    Found how to do here: Any workaround to save an Intent in settings?

    So what the following looked like

    Intent;action=com.sonyericsson.android.camera.action.FRONT_STILL_IMAGE_CAMERA;
    component=com.sonyericsson.android.camera/.CameraActivity;
    S.com.sonyericsson.camera.intent.extra.CAPTURING_MODE=front_normal;
    end{[SName}]Front camera
    

    should of looked like this when being run:

    try {startActivity(Intent.getIntent("#Intent;action=com.sonyericsson.android.camera.action.FRONT_STILL_IMAGE_CAMERA;component=com.sonyericsson.android.camera/.CameraActivity;S.com.sonyericsson.camera.intent.extra.CAPTURING_MODE=front_normal;end"));
    } catch (URISyntaxException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is actually really two related questions. I would like to create an image
Really this is two questions.. but related 1) How would I give a 'greater'
This is really two questions, noted below: Currently I have some public internal helper
This is really two questions: Why isn't the membership operator (__contains__) ever being called?
This consists of two questions: Is MySQL's timestamp field really faster than datetime field
Two questions: 1) I've found a piece of code that says something like cellArr{x}{y}{3,8}
this is really two questions, I'll start with the easiest. I get an access
This post is actually divided in two questions: Which kinds of associations classes/interfaces usually
This may really be two separate questions, except that there may be some dependency
This is really a two part question: I'm seeing some users in the Grantee

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.