One android application, two startup view, two two icons -


i have simple notepad application. display input text , save button when launching. works fine.

now want keep app logic, use "second icon" launch app other initial view (i want set numbers filter on input text).

in other words:

  • first icon runs general notepad app, user can input wants
  • second icon runs notpad accepts numbers.

is there method create second icon/widget w/e inform app should run in other way?

add activity application,

also add activyty androidmanidest with

different icon , intent-filter action=main , catagory=launcher

just see:

<application android:label="@string/app_name" > <activity android:icon="@drawable/icon1" ^^^^^^ android:name=".firstactivity" ^^^^^^ android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:icon="@drawable/icon222" ^^^^^^^^ android:name=".secondactivity" ^^^^^^ 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> 

also add xml number type input if needed.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -