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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:02:47+00:00 2026-05-24T12:02:47+00:00

HIE ALL i am trying to create a custom home screen in android .

  • 0

HIE ALL
i am trying to create a custom home screen in android . i,e in the carousel view . i am able to show the application icons in the carousel view but unable to launch the application . i,e on click of a particular application icon i need to launch the application but i am getting the error(force close). this is error log what i am getting

08-10 16:04:31.570: ERROR/AndroidRuntime(1028): FATAL EXCEPTION: main
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): java.lang.ClassCastException: java.lang.Integer
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.carouseldemo.main.MainActivity$1.onItemClick(MainActivity.java:75)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.carouseldemo.controls.CarouselAdapter.performItemClick(CarouselAdapter.java:261)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.carouseldemo.controls.Carousel.onSingleTapUp(Carousel.java:1076)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.GestureDetector.onTouchEvent(GestureDetector.java:557)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.carouseldemo.controls.Carousel.onTouchEvent(Carousel.java:327)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.View.dispatchTouchEvent(View.java:3766)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:897)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1671)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.app.Activity.dispatchTouchEvent(Activity.java:2086)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1655)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.os.Handler.dispatchMessage(Handler.java:99)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.os.Looper.loop(Looper.java:123)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at java.lang.reflect.Method.invokeNative(Native Method)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at java.lang.reflect.Method.invoke(Method.java:521)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-10 16:04:31.570: ERROR/AndroidRuntime(1028): at dalvik.system.NativeStart.main(Native Method)

enter image description here

initially i am taking only six images .

please help

thanks in advance
datta

  • 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-24T12:02:48+00:00Added an answer on May 24, 2026 at 12:02 pm

    To launch other application from your app, you need to have it’s package name and you can start other app thru;

    ResolveInfo info;
    packageName = info.activityInfo.applicationInfo.packageName;
    
    Intent mIntent = getPackageManager().getLaunchIntentForPackage(packageName);
            mIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            mIntent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
            if (null != mIntent) {
                try {
                    startActivity(mIntent);
                } catch(Exception e) {      }
            }
    

    you can get installed package thru:

    ArrayList<PackageInfo> res = new ArrayList<PackageInfo>();
            PackageManager pm = context.getApplicationContext().getPackageManager();
            List<PackageInfo> packs = pm.getInstalledPackages(0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hie all , I am trying to create an simple application and i want
Hie Everyone I have 1st time developed SSRS in my WPF application.. but there
Hie all, I indeed underline to points. I have been trying jboss 7 +
hie i have all my web application contents inside a directory ui/page of WEB
Hie all , is there any method in android that can differentiate the left
hie all, i want to insert the data into the table only if the
Hie Can someone please tell me how to fetch all the feeds of a
hie, i want to listen when a certain application after listening i want to
hie i have a html form and while posting a request to a url
hie guys. I have ParentPage which contains 4 user controls and i have user

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.