Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Android Start

Android Start

Scheduled Pinned Locked Moved Mobile
androidquestionhelptutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MsmVc
    wrote on last edited by
    #1

    Hello members Good morning I have a write simple .apk file for android in my eclipse editor.When i send .apk file in android phone through my eclipse then application launch it self but when i send .apk through command adb install test.apk that time application not launch it self. My question is how to auto start .apk file when i successfully install in phone? Please help me..

    P 1 Reply Last reply
    0
    • M MsmVc

      Hello members Good morning I have a write simple .apk file for android in my eclipse editor.When i send .apk file in android phone through my eclipse then application launch it self but when i send .apk through command adb install test.apk that time application not launch it self. My question is how to auto start .apk file when i successfully install in phone? Please help me..

      P Offline
      P Offline
      parths
      wrote on last edited by
      #2

      try using

      adb shell am start ...

      - type just

      adb shell am start

      for help on the command Check your manifest xml file for details regarding the intent information the activity string can be formatted as

      /.

      "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

      M 1 Reply Last reply
      0
      • P parths

        try using

        adb shell am start ...

        - type just

        adb shell am start

        for help on the command Check your manifest xml file for details regarding the intent information the activity string can be formatted as

        /.

        "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

        M Offline
        M Offline
        MsmVc
        wrote on last edited by
        #3

        Thank for reply I try to use adb shell am start i got some information. i have question about this what i check sir.

        /.

        Here manifest xml please help me

        <?xml version="1.0" encoding="utf-8"?>
        <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.innovantesindia.broadcast_onBoot"
        android:versionCode="1"
        android:versionName="1.0">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".SendSMS_OnBoot"
        android:label="@string/app_name">
        <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        </activity>

        </application>
        

        <uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
        <uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>
        </manifest>

        P 1 Reply Last reply
        0
        • M MsmVc

          Thank for reply I try to use adb shell am start i got some information. i have question about this what i check sir.

          /.

          Here manifest xml please help me

          <?xml version="1.0" encoding="utf-8"?>
          <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.innovantesindia.broadcast_onBoot"
          android:versionCode="1"
          android:versionName="1.0">
          <application android:icon="@drawable/icon" android:label="@string/app_name">
          <activity android:name=".SendSMS_OnBoot"
          android:label="@string/app_name">
          <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
          </activity>

          </application>
          

          <uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
          <uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>
          </manifest>

          P Offline
          P Offline
          parths
          wrote on last edited by
          #4

          OK. try using:

          adb shell am start -n com.innovantesindia.broadcast_onBoot/.SendSMS_OnBoot

          "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

          M 1 Reply Last reply
          0
          • P parths

            OK. try using:

            adb shell am start -n com.innovantesindia.broadcast_onBoot/.SendSMS_OnBoot

            "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

            M Offline
            M Offline
            MsmVc
            wrote on last edited by
            #5

            Thanks it's working

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups