Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Wrong apk starts-up
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
katarina  
View profile  
 More options Sep 24 2012, 10:19 am
From: katarina <kdjako...@hotmail.com>
Date: Mon, 24 Sep 2012 07:17:47 -0700 (PDT)
Local: Mon, Sep 24 2012 10:17 am
Subject: Wrong apk starts-up
Dear friends,

we are developing a new mms application that works in parallel with
the original/phone provided mms application. They work on the same
content provider.
All works fine, except, we have two different icons for them, but when
we click on icon 1 -> apk 2 starts up and the other way around. The
behaviour is inconsistent, sometimes clicking icon 1 starts up apk 1 -
which is fine, but the system does not behave consistently. Basically,
it is not predictable which apk will start on clicking either of the
icons.

Does anybody have any idea why is this happening?

Many thanks for any help indeed.

Katarina


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Anderson  
View profile  
 More options Sep 24 2012, 1:37 pm
From: Justin Anderson <magouyaw...@gmail.com>
Date: Mon, 24 Sep 2012 11:34:51 -0600
Local: Mon, Sep 24 2012 1:34 pm
Subject: Re: [android-developers] Wrong apk starts-up

What does your manifest look like?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
katarina  
View profile  
 More options Oct 8 2012, 10:21 am
From: katarina <kdjakovi...@gmail.com>
Date: Mon, 8 Oct 2012 07:19:43 -0700 (PDT)
Local: Mon, Oct 8 2012 10:19 am
Subject: Re: Wrong apk starts-up
Hi Justin,

sorry for not coming back immediatelly I hope you will read this
message...

This is a part of the manifest file:

 <application android:name="com.android.mms.MmsApp"
android:label="@string/app_label" android:icon="@drawable/
ic_launcher_smsmms" android:taskAffinity="android.task.mms"
android:allowTaskReparenting="true" android:debuggable="true">

- <activity android:name="com.android.mms.ui.ConversationList"
android:label="@string/app_label" android:configChanges="orientation|
keyboardHidden" android:launchMode="singleTop">
- <intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
- <intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.DEFAULT" />
  <data android:mimeType="vnd.android.cursor.dir/mms" />
  </intent-filter>
- <intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.DEFAULT" />
  <data android:mimeType="vnd.android-dir/mms-sms" />
  </intent-filter>
  </activity>

Can it be because we have another application on the phone with the
same name - com.android.mms.MmsApp and another activity (in a
different application) with the same name
com.android.mms.ui.ConversationList?

What has to be unique on the system - application name, activity
name?

Thanks in advance for any possible hints,
Katarina

On Sep 24, 7:37 pm, Justin Anderson <magouyaw...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RichardC  
View profile  
 More options Oct 8 2012, 11:48 am
From: RichardC <richard.crit...@googlemail.com>
Date: Mon, 8 Oct 2012 08:48:28 -0700 (PDT)
Local: Mon, Oct 8 2012 11:48 am
Subject: Re: Wrong apk starts-up

Can it be because we have another application on the phone with the

> same name - com.android.mms.MmsApp and another activity (in a

The Package name MUST be unique


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Latimerius  
View profile  
 More options Oct 8 2012, 12:03 pm
From: Latimerius <l4t1m3r...@gmail.com>
Date: Mon, 8 Oct 2012 18:01:03 +0200
Local: Mon, Oct 8 2012 12:01 pm
Subject: Re: [android-developers] Re: Wrong apk starts-up

On Mon, Oct 8, 2012 at 4:19 PM, katarina <kdjakovi...@gmail.com> wrote:
> Can it be because we have another application on the phone with the
> same name

Hm, I don't think this is even possible - how do you achieve this?
IIRC if you try to "adb install" an .apk with a package name that's
installed already it will return an error and do nothing (unless you
use -r that is, but that would make it a different operation).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lew  
View profile  
 More options Oct 8 2012, 2:14 pm
From: Lew <lewbl...@gmail.com>
Date: Mon, 8 Oct 2012 11:14:24 -0700 (PDT)
Local: Mon, Oct 8 2012 2:14 pm
Subject: Re: [android-developers] Re: Wrong apk starts-up

latimerius wrote:
> katarinawrote:
> > Can it be because we have another application on the phone with the
> > same name

> Hm, I don't think this is even possible - how do you achieve this?
> IIRC if you try to "adb install" an .apk with a package name that's
> installed already it will return an error and do nothing (unless you
> use -r that is, but that would make it a different operation).

Also. you aren't supposed to name applications with someone else's domain.

So unless you own android.com, you aren't supposed to name your app
com.android.anything.

--
Lew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
katarina  
View profile  
 More options Oct 9 2012, 3:31 am
From: katarina <kdjakovi...@gmail.com>
Date: Tue, 9 Oct 2012 00:30:06 -0700 (PDT)
Local: Tues, Oct 9 2012 3:30 am
Subject: Re: Wrong apk starts-up
Hi All,

thanks very much for your answers, we didn't know about domains, will
have to change that.

Actually the apk file has a different name, but within the Manifest we
have application and activity names the same as the original mms
application - do you think this can produce the cofusion too?

Can it be because of the applicaiton name inside the Manifes or
activity name inside the Manifest - do they have to be unique across
all Manifest files?

Thanks again very much for your answers, we are novices with Android
and ignorant of many things.

Regards,
Katarina

On Oct 8, 8:14 pm, Lew <lewbl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Latimerius  
View profile  
 More options Oct 9 2012, 10:40 am
From: Latimerius <l4t1m3r...@gmail.com>
Date: Tue, 9 Oct 2012 16:36:45 +0200
Local: Tues, Oct 9 2012 10:36 am
Subject: Re: [android-developers] Re: Wrong apk starts-up

On Tue, Oct 9, 2012 at 9:30 AM, katarina <kdjakovi...@gmail.com> wrote:
> Actually the apk file has a different name, but within the Manifest we
> have application and activity names the same as the original mms
> application - do you think this can produce the cofusion too?

> Can it be because of the applicaiton name inside the Manifes or
> activity name inside the Manifest - do they have to be unique across
> all Manifest files?

I believe the APK file name doesn't really matter much.  It's what you
put into your manifest - specifically, the <manifest> element has a
"package" attribute whose value is your package name.  This package
name has to be unique - I don't think Android package manager would
let you install two different APKs on the same device whose manifests
both declared the same package name.

I guess it would be useful if you post more details about what exactly
you do - at least the manifests and how you install your APKs on your
device.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicholas Campion  
View profile  
 More options Oct 9 2012, 2:13 pm
From: Nicholas Campion <camp...@gmail.com>
Date: Tue, 9 Oct 2012 11:13:39 -0700 (PDT)
Local: Tues, Oct 9 2012 2:13 pm
Subject: Re: [android-developers] Re: Wrong apk starts-up

I have seen this, historically, on older phones using HTC's sense ui. The
application launcher would cache the invokable target using properties of
the AndroidManifest. It seemed to eventually go away, specifically if the
device was restarted. I noticed this specifically when we changed the name
of the Application class on these devices.

Is it possible you are hitting that issue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RichardC  
View profile  
 More options Oct 9 2012, 2:53 pm
From: RichardC <richard.crit...@googlemail.com>
Date: Tue, 9 Oct 2012 11:53:07 -0700 (PDT)
Local: Tues, Oct 9 2012 2:53 pm
Subject: Re: [android-developers] Re: Wrong apk starts-up
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
katarina  
View profile  
 More options Oct 10 2012, 3:15 am
From: katarina <kdjakovi...@gmail.com>
Date: Wed, 10 Oct 2012 00:13:58 -0700 (PDT)
Local: Wed, Oct 10 2012 3:13 am
Subject: Re: Wrong apk starts-up
Hi again,

this is an extract of the Manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Mmsfro.app">
  ....
- <application android:name="com.android.mms.MmsApp"
android:label="@string/app_label" android:icon="@drawable/
ic_launcher_smsmms" android:taskAffinity="android.task.mms"
android:allowTaskReparenting="true" android:debuggable="true">
      ...
  - <activity android:name="com.android.mms.ui.ConversationList"
android:label="@string/app_label" android:configChanges="orientation|
keyboardHidden" android:launchMode="singleTop">
- <intent-filter>
  ....

The package name is unique accross the system, but the application
name and the activity name are the same as names of a different (stock
mms) application.
As I understood from the link RichardC posted, the name of a component
is a unique identifier as a combination of the Manifest package name,
so in our case even though activity and application name have their
clones in other packages, they should be unique as identifiers. But
could this again produce the confusion when launchig up? Or it is the
cashing issue as Nicolas mentioned?

Thanks a lot to everybody!

On 9 окт, 20:53, RichardC <richard.crit...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
katarina  
View profile  
 More options Oct 11 2012, 4:58 am
From: katarina <kdjakovi...@gmail.com>
Date: Thu, 11 Oct 2012 01:56:21 -0700 (PDT)
Local: Thurs, Oct 11 2012 4:56 am
Subject: Re: Wrong apk starts-up
Hello again,

just to let you know that the problem was that we've put the
taskAffinity="android.task.mms" for the application to be the same as
for the original mms application, and then they were considered to be
same tasks and the activities were randomly called by the launcher.

Makes sense, and thanks for all yor advice, we'll have to put
apropriate names to our items.

All the best,
Katarina

On 10 окт, 09:15, katarina <kdjakovi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »