Thanks for the responses. I've decide to implement an SQLite database,
this will be created by the library, each application will create a
category record and all the resources will be stored in another table
associated with the appropriate category.
When the application reboots it will load
Well, you can define a placeholder resource in the library (so its code can
reference it) and overide it (use same id) in the application(s).
Or you can make Application subclasses with onCreate: not my preferred way
of doing this, but a good match for this particular case.
Either way, you will w
I really want to keep the data and the application code seperate...my
application activity really does nothing except add the data from a
resource and call the library routines.
The library which is common to all applications is where the boot
recevier resides, so I need some way to get to the
Really depends on what kind of array it is and where it originaly comes from
(a constant in the code, or from a file).
It sounds like you already have correct initialization code, it's just not
getting called at the right time.
Two ways to ensure it gets called are: a lazy-initialize singleton, o
In that case I should probably create the array in a persistent store
and load it when required?
On 12/06/2011 11:04 AM, Kostya Vasilyev wrote:
No.
An Activity is just one of the components that make up an application
(package).
http://developer.android.com/guide/topics/fundamentals.html#Comp
No.
An Activity is just one of the components that make up an application
(package).
http://developer.android.com/guide/topics/fundamentals.html#Components
http://developer.android.com/guide/topics/fundamentals/activities.html
Since you have a receiver for boot_completed, and there is an event
During testing, I have shutdown all processes including the application
before shutting down the phone.
When I power up the phone I can see that the application has been
restarted and is resident, so I should be able to get the activity
shouldn't I?
On 12/06/2011 9:51 AM, Kostya Vasilyev wr
There may not be an instance of your activity - definitely not when we're
talking about processing boot_completed.
At that point, the only components involed are a broadcast receiver and
possibly your wakeful intent service (IIRC). Since the user at that point
has never run your application, there
Hi,
I've managed to find out why my application wasn't restarting correctly
after a boot up and it was an uninitialised array that is normally set-up by
the main activity when the application starts.
The question now ishow do I get the main application activity?
The reason it isn't so strai
9 matches
Mail list logo