Android app with two different apks -
i facing strange problem on android app.when run app in emulator runs app when checked on installed app list on emulator, shows 2 apps same name "simplifimed" (my app name) installed.when clicked on other app icon runs app separately shows old version screens.i have tried uninstalling both apps , tried running app again same 2 apps installed.
previously app working fine upload google play store have change package name.so have changed package name com.example.simplifimed com.medical_ocr_app.simplifimed used android tools->rename application package eclipse
i have checked manifest , everywhere new package name added properly.also new application works fine without error in emulator.only problem installs 2 apps (different apk) can me this?
my andriod manifest file follows,
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.medical_ocr_appln.simplifimed" android:versioncode="4" android:versionname="1.4" > <uses-sdk android:minsdkversion="11" android:targetsdkversion="21" /> <uses-feature android:name="android.hardware.camera" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.internet" /> <!-- <uses-permission android:name="android.permission.get_accounts" /> --> <uses-permission android:name="android.permission.wake_lock" /> <!-- <uses-permission android:name="com.google.android.c2dm.permission.receive" /> --> <!-- network state permissions detect internet status --> <uses-permission android:name="android.permission.access_wifi_state" /> <uses-permission android:name="android.permission.access_network_state" /> <!-- permission vibrate <uses-permission android:name="android.permission.vibrate" /> <permission android:name="com.example.simplifimed.permission.c2d_message" android:protectionlevel="signature" /> <uses-permission android:name="com.example.simplifimed.permission.c2d_message" /> android:debuggable="false" --> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/appcompattheme" android:testonly="false" > <activity android:name="com.medical_ocr_appln.simplifimed.dashboardactivity" android:label="@string/app_name" android:logo="@drawable/rx" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <!-- login activity dashboardactivity mainactivity medlistactivity --> <activity android:label="my schedule" android:name="com.medical_ocr_appln.simplifimed.tabbar"></activity> <!-- login activity dashboardactivity mainactivity medlistactivity --> <activity android:label="login account" android:name="com.medical_ocr_appln.simplifimed.loginactivity"></activity> <!-- register activity --> <activity android:label="register new account" android:name="com.medical_ocr_appln.simplifimed.registeractivity"></activity> <!-- edit contact activity --> <activity android:label="edit contact" android:name="com.medical_ocr_appln.simplifimed.editcontact"></activity> <!-- notifications activity --> <activity android:label="my notifications" android:name="com.medical_ocr_appln.simplifimed.mynotiifcations"></activity> <!-- photo intent activity --> <activity android:label="photointentactivity" android:name="com.medical_ocr_appln.simplifimed.photointentactivity"></activity> <!-- medconfirmation activity --> <activity android:label="medconfirmation" android:name="com.medical_ocr_appln.simplifimed.medconfirmation"></activity> <!-- save med db activity --> <activity android:label="save medicine" android:name="com.medical_ocr_appln.simplifimed.savemedtodb"></activity> <!-- firstlast activity --> <activity android:label="first last dose activity" android:name="com.medical_ocr_appln.simplifimed.firstlastdose"></activity> <!-- changepassword activity --> <activity android:label="change password activity" android:name="com.medical_ocr_appln.simplifimed.changepassword"></activity> <!-- password reset activity --> <activity android:label="password reset activity" android:name="com.medical_ocr_appln.simplifimed.passwordreset"></activity> <!-- newcontactactivity activity --> <activity android:label="add new contact" android:name="com.medical_ocr_appln.simplifimed.newcontactactivity"></activity> <!-- newcontactactivity activity --> <activity android:label="set notify reminder" android:name="com.medical_ocr_appln.simplifimed.setnotifyreminder"></activity> </application>
thanks, sangram
i posting solution may one.. since not able solution problem carry out rename package once again following steps , worked me,
- go , edit manifest , gen folder.
- remove every old package name in manifest , in gen folder
- put instead of old package name, new package name in every location inside manifest. might have classes (activities is) need direct package name references.
- save manifest.
- then right click package name inside project.
- select "refactor".
- select "rename".
- type new package name.
- select "update references".
- press ok , you're done , watch out should done replace new name.
- don't forget update layout xml files new package name. might have custom view. them.
thanks..
Comments
Post a Comment