why the app is not running on my cellphone?

Bolandian Eran

I'm debugging my app and for some reason it does not load the app to my smartphone. i have no idea why it happenes. it shows that there are no earrors and succsessfull launched, but nothing happenes.

This is the activity

public class TabHostMain extends TabActivity {

TabHost tabHost;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tab_host_main);


    tabHost = getTabHost();

    TabHost.TabSpec ts1 = tabHost.newTabSpec("main");
    ts1.setIndicator("Main");
    ts1.setContent(new Intent(this, Main.class));
    tabHost.addTab(ts1);

    TabHost.TabSpec ts2 = tabHost.newTabSpec("GPS");
    ts2.setIndicator("GPS");
    ts2.setContent(new Intent(this, GPS.class));
    tabHost.addTab(ts2);


    TabHost.TabSpec ts3 = tabHost.newTabSpec("Info");
    ts3.setIndicator("Info");
    ts3.setContent(new Intent(this, Info.class));
    tabHost.addTab(ts3);

}

}

this is the manifest

   <?xml version="1.0" encoding="utf-8"?>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".Main" />
    <activity android:name=".GPS" />
    <activity android:name=".Info" />
    <activity android:name=".TabHostMain"/>
    <activity android:name=".Main2Activity"></activity>

</application>

Arpit Ratan

This is because there is no launched activity declared in your Android Manifest.

Make the following change in your android manifest and it will work.

<activity android:name=". Main2Activity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
 </activity>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

why the app is not running on my cellphone?

From Dev

Why is my app not running on an older device?

From Dev

Why is my Console app running from System32?

From Dev

Why are shadows not appearing correctly on my views when running my iOS 6 app under iOS 7?

From Dev

Is there any way to put the sim card from my cellphone into a hotspot device?

From Dev

How to export contact information and/or photos out of my cellphone?

From Dev

how to implement a Simple "No Connection Toast ..." in CellPhone tracker app

From Dev

Is my Java app running on OpenShift

From Dev

Running Xcode app in not my device?

From Dev

Why is my JQuery running slow?

From Dev

Why is my XAML Code not running?

From Dev

Why is my basic javascript not running?

From Dev

Why is my Java program not running?

From Dev

Why is my service running as root

From Dev

Why my celery task is not running?

From Dev

Why is my packer exe not running?

From Dev

Why does it seem that my ios app only continues background task when running from xcode

From Dev

Why is my iOS 7 app running at 100 percent processor load after some time?

From Dev

Why does running IncrediBuild from the command line on my Qt app never halt?

From Dev

Why does it seem that my ios app only continues background task when running from xcode

From Dev

Why is my program running twice on my Server?

From Dev

Running different App class in my application (for debug)

From Dev

How to know my android app is running in the receiver?

From Dev

I am having trouble running my app

From Dev

Getting duplicate icons when running my app

From Dev

Why my iPhone app was rejected?

From Dev

Why is address undefined in my app?

From Dev

Why are there many icons of my App?

From Dev

Why my app gets stucked

Related Related

  1. 1

    why the app is not running on my cellphone?

  2. 2

    Why is my app not running on an older device?

  3. 3

    Why is my Console app running from System32?

  4. 4

    Why are shadows not appearing correctly on my views when running my iOS 6 app under iOS 7?

  5. 5

    Is there any way to put the sim card from my cellphone into a hotspot device?

  6. 6

    How to export contact information and/or photos out of my cellphone?

  7. 7

    how to implement a Simple "No Connection Toast ..." in CellPhone tracker app

  8. 8

    Is my Java app running on OpenShift

  9. 9

    Running Xcode app in not my device?

  10. 10

    Why is my JQuery running slow?

  11. 11

    Why is my XAML Code not running?

  12. 12

    Why is my basic javascript not running?

  13. 13

    Why is my Java program not running?

  14. 14

    Why is my service running as root

  15. 15

    Why my celery task is not running?

  16. 16

    Why is my packer exe not running?

  17. 17

    Why does it seem that my ios app only continues background task when running from xcode

  18. 18

    Why is my iOS 7 app running at 100 percent processor load after some time?

  19. 19

    Why does running IncrediBuild from the command line on my Qt app never halt?

  20. 20

    Why does it seem that my ios app only continues background task when running from xcode

  21. 21

    Why is my program running twice on my Server?

  22. 22

    Running different App class in my application (for debug)

  23. 23

    How to know my android app is running in the receiver?

  24. 24

    I am having trouble running my app

  25. 25

    Getting duplicate icons when running my app

  26. 26

    Why my iPhone app was rejected?

  27. 27

    Why is address undefined in my app?

  28. 28

    Why are there many icons of my App?

  29. 29

    Why my app gets stucked

HotTag

Archive