Java Supported by Android

by Arigead » Mon, 03 Nov 2008 08:31:09 GMT


Sponsored Links
 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello All,
    I'm just starting out here and scouting out the area so to speak. I
know that Android Applications are written in JAVA Source Code but I'm
trying to find a web page which details the JAVA that is supported by
the Android platform. What version of Java is supported and what
libraries are and are not supported. I've read somewhere that the Java
Database libraries are not supported. But I'm looking for a full list.

The reason I ask as I wonder are there issues with porting Java Source
to the android. Are there omissions which make the job non trivial?

Thanks for any pointers, advice or help.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -  http://enigmail.mozdev.org 

iD8DBQFJDra2XlbjSJ5n4BARAsM3AKDEc6G+ew9wWX0CQmNHW4GgwvcyVACfV6Bh
FbtuEtgppTO5K9gk5nvUw/s=
=rbRZ
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Not loading Phone.apk on emulator

Hi All,

I am porting s3c6410 on emulator (only platform side not kernel). I
removed the hardware dependencies (from hardware folder). when i am
running emulator it's not able to load Phone.apk showing following :

Could not find end-of-central-directory in Zip
D/asset   (  634): failed to open Zip archive '/system/app/Phone.apk'
W/PackageParser(  634): Unable to read AndroidManifest.xml of /system/
app/Phone.apk
W/PackageParser(  634): java.io.FileNotFoundException:
AndroidManifest.xml
W/PackageParser(  634):         at
android.content.res.AssetManager.openXmlAssetNative(Native Method)
W/PackageParser(  634):         at
android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
471)
W/PackageParser(  634):         at
android.content.res.AssetManager.openXmlResourceParser
(AssetManager.java:439)
W/PackageParser(  634):         at
android.content.pm.PackageParser.parsePackage(PackageParser.java:265)
W/PackageParser(  634):         at
com.android.server.PackageManagerService.scanPackageLI
(PackageManagerService.java:1759)
W/PackageParser(  634):         at
com.android.server.PackageManagerService.scanDirLI
(PackageManagerService.java:1709)
W/PackageParser(  634):         at
com.android.server.PackageManagerService.<init>
(PackageManagerService.java:464)
W/PackageParser(  634):         at
com.android.server.PackageManagerService.main
(PackageManagerService.java:261)
W/PackageParser(  634):         at com.android.server.ServerThread.run
(SystemServer.java:119)

and later it crash:

: Unable to start service Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService} }: not found
W/AccountMonitor(  634): Couldn't connect to Intent
{ action=android.accounts.IAccountsService comp=
{com.google.android.googleapps/
com.google.android.googleapps.GoogleLoginService} } (Missing service?)
I/SystemServer(  634): Starting System Content Providers.
I/ActivityThread(  634): Publishing provider sync:
android.content.SyncProvider
I/SystemServer(  634): Starting Battery Service.
I/SystemServer(  634): Starting Hardware Service.
D/qemud   (  547): fdhandler_accept_event: accepting on fd 10
D/qemud   (  547): created client 0xe078 listening on fd 8
D/qemud   (  547): client_fd_receive: attempting registration for
service 'hw-control'
D/qemud   (  547): client_fd_receive:    -> received channel id 2
D/qemud   (  547): client_registration: registration succeeded for
client 2
W/HAL     (  634): load: module=/system/lib/hw/lights.goldfish.so
error=Cannot find library
W/HAL     (  634): load: module=/system/lib/hw/lights.s3c6410.so
error=Cannot find library
W/HAL     (  634): load: module=/system/lib/hw/lights.default.so
error=Cannot find library
E/ActivityThread(  634): Failed to find provider info for settings
W/dalvikvm(  634): threadid=31: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime(  634): Uncaught handler: thread PowerManagerService
exiting due to uncaught exception
E/AndroidRuntime(  634): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime(  634): java.lang.NullPointerException
E/AndroidRuntime(  634):        at android.content.ContentQueryMap.<init>
(ContentQueryMap.java:65)
E/AndroidRuntime(  634):        at
com.android.server.PowerManagerService.initInThread
(PowerManagerService.java:418)
E/AndroidRuntime(  634):        at com.android.server.PowerManagerService
$1.onLooperPrepared(PowerManagerService.java:378)
E/AndroidRuntime(  634):        at android.os.HandlerThread.run
(HandlerThread.java:59)



Has anyone any idea what is the issue, why it's not loading Phone.apk,
why emulator is crashing . I am not able to debug it also using
eclipse, is there any other way of debugging which i can use.

Thanks for your time and support
Vishnu Pratap Singh
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to specify parameters used in XML, in code instead?

I'm trying to do part of my Activity layout in code rather than XML,
but I realize not all the parameters are available in code. For
example

with HorizontalScrollView, there are
android:scrollbarSize
android:scrollbarTrackHorizontal
android:scrollbarThumbHorizontal

corresponding setter methods are not available in code,
unlike android:background that has setBackgroundResource

I'm hoping there's something similar to addRule in LayoutParams, where
I specify the parameter as the first argument, and the value as the
second argument.

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. Populating Listview....

4. How update TextView?

5. Dynamically enable menu items

6. What is the name of the browser inside of Android?

7. Where are the Android Sources, like strings display on the device,where are they?