Yes, this trick is commonly used to share things (resources, code, shared
memory) between apps by a common author.
On Dec 26, 2012 6:53 PM, "Lew" wrote:
> Lew wrote:
>
>> Erik wrote:
>>
>>> Lew wrote:
I'm confused by your use of the terms "application" and "process" as
different
Thanks, tried it and it works...
On Thursday, December 27, 2012 11:53:51 AM UTC+2, Massycat wrote:
>
> From the second app, you can create a Context that is the same as that of
> the first app using createPackageContext(),
> http://developer.android.com/reference/android/content/Context.html#cr
>From the second app, you can create a Context that is the same as that of
the first app using createPackageContext(),
http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String,
int)
This Context will give access to the ClassLoader used by the fir
Lew wrote:
> Erik wrote:
>
>> Lew wrote:
>>>
>>> I'm confused by your use of the terms "application" and "process" as
>>> different things. Each Android app runs in its own process.
>>
>>
>> This is incorrect. Applications are allowed to share processes. See
>> http://developer.android.com/gui
Erik wrote:
> Lew wrote:
>>
>> I'm confused by your use of the terms "application" and "process" as
>> different things. Each Android app runs in its own process.
>
>
> This is incorrect. Applications are allowed to share processes. See
> http://developer.android.com/guide/components/fundament
On Sunday, December 23, 2012 1:24:08 AM UTC-8, Lew wrote:
>
> I'm confused by your use of the terms "application" and "process" as
> different things. Each Android app runs in its own process.
This is incorrect. Applications are allowed to share processes. See
http://developer.android.com/guide
It has to do with class loaders is Java and not processes or applications.
Java language: A class is identified by its fully qualified name
Java Virtual Machine: A class object is identified by its fully qualified
name and defining class loader
Instances of classes loaded by the same classload
AndroidCompile wrote:
> I created two Android applications that share the same user Id
> (sharedUserId) as well as the same process. In the first app, on startup, I
> set a static int variable to 1 (it's default is 0). In the second app, I
> load (using reflection) the same class from the other
8 matches
Mail list logo