Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Multiple Activities
    primarykey
    data
    text
    <p>I am doing experiment and trying to combine these 2 projects into single project: <a href="http://marakana.com/forums/android/examples/65.html" rel="nofollow noreferrer">http://marakana.com/forums/android/examples/65.html</a> <a href="http://www.codeofaninja.com/2013/01/copy-files-from-assets-folder-to-sd.html" rel="nofollow noreferrer">http://www.codeofaninja.com/2013/01/copy-files-from-assets-folder-to-sd.html</a> I would like to make the "Using intent demo" has extra functionality of copy asset to SD card. What I did was copied the java files from "AssetsToSdCard" to "IntentActionDemo". Then I added the following line to IntentActionDemo manifest:</p> <pre><code>&lt;activity android:name="MainActivity"&gt;&lt;/activity&gt; </code></pre> <p>However, the files won't copy to SD card. If I replace the "IntentActionDemo" to "MainActivity", then the files will be copied to SD card.</p> <pre><code> &lt;activity android:name=".IntentActionDemo" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>It seems like in order to get the copy asset to SD card work, I have to put it as the first activity and put intent.action.MAIN as well as intent.category.LAUNCHER.</p> <p>What I should do if I want IntentActionDemo as the first activity, IntentA as the second and MainActivity (AssetsToSdCard) as the third activity? I would like the files copied to SD card automatically on first startup, not onclick.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload