0

How to set android.intent.action.MAIN for 2 or more Java classes? How to set two or more Java class Run same time using the MAIN action?

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

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

I try this, but first main action class only worked. How can I run two class same time using in Android studio?

Vukašin Manojlović
  • 3,717
  • 3
  • 19
  • 31
  • why would you need that, you can always fork a thread to to perform asynchronous operations. can you explain requirement ? – Sahil May 13 '18 at 00:02
  • how can I get location using sms in my application..sms give latitude and longitude..how can i get location in my map view using the msg. – nicol andz May 14 '18 at 18:24
  • checkout https://stackoverflow.com/questions/848728/how-can-i-read-sms-messages-from-the-device-programmatically-in-android – Sahil May 15 '18 at 05:13
  • I try to pass value using Intent.but StartActivity() method not find.how can i fix it?I cant Extends the class.because it allready extend AppCompatActivity. – nicol andz May 15 '18 at 13:53
  • post code with explanation what you are trying to achieve. – Sahil May 15 '18 at 15:25

0 Answers0