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 7552947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:54:55+00:00 2026-05-30T10:54:55+00:00

I am developing an Android app using Phonegap and jQueryMobile, working in Eclipse. I

  • 0

I am developing an Android app using Phonegap and jQueryMobile, working in Eclipse. I want the app, with the user’s permission, to auto-install a launcher icon on the user’s “desktop”. I’ve found the example LauncherShortcuts.java on Android Developers, and I am almost to the point of getting it to work. That’s a big achievement, since I know extremely little of Java programming.

Almost.

This is the example code online:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/LauncherShortcuts.html

One string or thingy in the code refuses to cooperate. Line 83…

TextView intentInfo = (TextView) findViewById(R.id.txt_shortcut_intent);

…has this constant or variable in it called “R.id.txt_shortcut_intent”, and Eclipse says it doesn’t recognize the id part. If I follow its suggestion of adding a class ‘id’ in R., it tells me there is no field txt_shortcut_intent in ‘R.id’. That doesn’t surprise me.

I’ve been able to fix a few similar errors involving R.something_or_other. But not this one. My R.java only contains the classes attr,drawable,layout, and string.

What is going on here and most importantly, what should I do to get this thing up and running? The launcher icon is all that stands between here and actually launching the app (how ironic).

  • 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-05-30T10:54:56+00:00Added an answer on May 30, 2026 at 10:54 am

    An android app uses an xml to define the layout of all the elements you want to display. In this case, you’re missing an element that displays text called TextView. You don’t have the Textview ‘txt_shortcut_intent’ defined in the xml, probably.

    Here’s the xml you’re looking for (just copy and paste it into your main.xml):
    http://developer.android.com/resources/samples/ApiDemos/res/layout/launcher_shortcuts.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an app using phonegap for Android. I want this mobile application
I'm developing a Android app using Phonegap - Is there any way in which
I was developing android app on eclipse till now and now I'm using Mono
I am developing an Android app on my Windows 7 Home PC using Eclipse.
I am developing an Android app using fragments and would like the user to
I am developing an Android app on windows, using eclipse. I would like to
I am developing a Android app using Jquery Mobile/Phonegap. I have the following code
I'm in the middle of developing android app using google map. My question is
Hi I am developing an Android app using an EditText, and a add en
Hi I am developing an Android App where I require a user to authenticate

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.