Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application is OverWritten

 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have recentky started with androids and i came across this problem

The thing is whenever i would create a new project and run it in emulator the earlier Application would be over-written.
On much R&D i found out that this could be case because the package structure that i have given is src folder is same for all the applications that were replaced

Can Anyone help on this!!!
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For every application give new package name.
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that is easy ,but was not the type of solution that i was looking for

What i meant was that is there a way to get around it.
That beacause the Emulator or the Android Device the does not resolves the applications by name but rather its package structure.
What if two different application has same package structure the the older one is bound to be replaced.

Hope I am able to convey what i want to...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would two different applications ever have the same package structure?
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I understand that two apps cannot have might not have same structure but what i want to know is
why two applications wid just same name of packages but different application.Cannot be on a same device.
Does this imply that Applications are stored in differently.
This also may mean that application may be replaced by newer version of same app that has same structure.

I am just curious why does this happen ....
As in computers dont do these way....


 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would two different applications ever have the same package structure?



As i said earlier I am new with android and while i was practising i just used "com.vishal.android" as default package for all the applications.

And I believ due to this ,they were replaced by the newer app every time i would run one...

I was curious to know that why should any thing lke this happen.Since the files have different application name.

Is This the feature of Android devices that they link intenal structure to install apps or APPLICATION_NAME.apk to store and install
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, applications are identified by their package names, not by their display names. Note how you uninstall applications using "adb uninstall ..."
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yess. That is right

But I have also seen Eclipse Console showing

Installing AppName.apk...

But thanks for the solution
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, installs are done by the file name of the apk file, but not uninstalls. This is all described in the JDK docs.
 
Vishal Trivedi
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Very Much....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic