Custom installation

by Vladyslav Namashko » Fri, 02 Apr 2010 15:22:08 GMT


Sponsored Links
 Hi all,

Is there a possibility to create custom installation for android app
with possibilities to:
1) include user agreement in the installation procedure
2) make one installation for two .apk packages, that should be
installed successively in appropriate order.

I think it's possible to create another app for installation, which
should be just show agreement text and them install .apk one by one,
but is there another way?

Regards

--



Custom installation

by Mark Murphy » Fri, 02 Apr 2010 19:19:20 GMT


 


No, not using the SDK. You will need to display the user agreement when
the application is run and not let the user proceed in the application
until they accept the agreement.


No, not using the SDK. An APK is an APK -- an APK is not two APKs. You
can have an APK download another APK and ask to have it installed, but
the user will then need to go through the screens to review and accept
that second installation, and you will have two entries in the user's
"Manage Applications" list.

You could also have an APK have another APK inside of it (e.g., in
assets/), but then you will be taking up a *lot* of extra on-board flash
space, which will not make you popular. And, the user will still need to
go through the screens to review and accept that second installation,
and you will still have two entries in the user's "Manage Applications"
list.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android 2.x Programming Books:  http://commonsware.com/books 

--


Sponsored Links


Custom installation

by Chris Ross » Fri, 02 Apr 2010 23:48:58 GMT


 




  Not that I'm sure of this, but couldn't there be an application that did the 
installation, and after installing the one or two APK's packaged within it, it 
could then delete itself?  That would avoid the "extra flash space usage" issue.

  There would still be the issue of having to interact with the user for the 
later installation(s), but...

                    - Chris

--



Custom installation

by Mark Murphy » Fri, 02 Apr 2010 23:58:51 GMT


 


I am not aware of a way for an application to delete itself. You can
remove yourself from the launcher by disabling that activity, but you're
still installed.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Beginning Android 2_ from Apress Now Available!

--



Other Threads

1. two threads, the main closes the DB but the second is still running and need to use the DB!

Hi everyone,

I have two threads:
- the main one in charge of the UI
- a second one that takes care of network calls, parsing responses and
database updates.

The main threads open the database, retrieves information into a
Cursor that is used to feed a listView.

My problem is the following: When I close the application the activity
is destroyed, the second thread can still be running and thereby still
can update the DB. Since the main thread open the DB, I want to close
it to do the stuffs properly.

However if I close it within the onDestroy method and if the second
thread is running and is about to update the DB, I get an error.

What is the best way to handle this situation?

Thanks a lot
Polo
--~--~---------~--~----~------------~-------~--~----~

2. dobule framebuffer problem when porting android on versatile

I have a platform, that is versatile, arm926ejs.
I want to porting android on this platform, but failed.
I just get a blank screen after launching /init.
The log message from strace is "writev(4, [{"\5", 1},
{"EGLDisplaySurface\", 18}, {"page flipping not supported
(yres_virtual=640,  requested=1280)\", 63}], 3) = 82".
I thought I have a page flipping problem. Therefore, I want to insert
some code in amba-clcd driver to support double framebuffer.
In fact, I have inserted some codes after I referenced other work on
double framebuffer.
e.g.

    http://elinux.org/Android_on_OMAP#Page_flipping_frame_buffer

    http://androidzaurus.seesaa.net/article/87808061.html

Although, I added the pan function and changed the properties of some
variables, it still doesn't  work. I still get the page flipping not
supported message.

Did anyone try to port android on versatile platform?
Could you give me some suggestion?
Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. SurfaceView overriding onDraw

4. Touch Screen Driver Issue on ARM9 Board

5. save image file in sqlite db

6. ApiDemos MapViews no show (Proxy problems?)

7. Generating MD5 Fingerprint of the SDK Debug Certificate