Troid New Sight for Android

by Android_Troid » Fri, 27 Jun 2008 07:48:58 GMT


Sponsored Links
 i was thinking for mutli - versions of GMobile and Android system, so
i started thinking with a millitary version, we can develop set of
applications that can be used for military purposes, i have lot of
idea to develop and produce such type of applications and i can share
it with all Android developers, i have new algorithms related to
security, encryption, decryption and etc..

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



Other Threads

1. How to fill remained available space if i want to put a button to bottom?





Use the "weight" or "layoutWeight" property on the ScrollView (can't
remember which it is, look it up).

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

2. Cannot Play Audio Files In The RAW Folder

At the moment im working on an application which uses audio files and
the issue is when ever my audio file gets called it gives me this
error:

20:51:12.061    916     ERROR   AndroidRuntime  Uncaught handler: thread main
exiting due to uncaught exception
20:51:12.092    916     ERROR   AndroidRuntime  java.lang.RuntimeException:
Unable to start activity ComponentInfo{org.me.zx/
org.me.zx.MainActivity}: android.content.res.Resources
$NotFoundException: File res/raw/a.ogg from drawable resource ID
#0x7f040000
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
20:51:12.092    916     ERROR   AndroidRuntime      at 
android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1692)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.os.Handler.dispatchMessage(Handler.java:99)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.os.Looper.loop(Looper.java:123)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.ActivityThread.main(ActivityThread.java:3948)
20:51:12.092    916     ERROR   AndroidRuntime      at
java.lang.reflect.Method.invokeNative(Native Method)
20:51:12.092    916     ERROR   AndroidRuntime      at
java.lang.reflect.Method.invoke(Method.java:521)
20:51:12.092    916     ERROR   AndroidRuntime      at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
20:51:12.092    916     ERROR   AndroidRuntime      at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
20:51:12.092    916     ERROR   AndroidRuntime      at
dalvik.system.NativeStart.main(Native Method)
20:51:12.092    916     ERROR   AndroidRuntime  Caused by:
android.content.res.Resources$NotFoundException: File res/raw/a.ogg
from drawable resource ID #0x7f040000
20:51:12.092    916     ERROR   AndroidRuntime      at
android.content.res.Resources.openRawResourceFd(Resources.java:814)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.media.SoundPool.load(SoundPool.java:172)
20:51:12.092    916     ERROR   AndroidRuntime      at
org.me.zx.SoundManager.addSound(SoundManager.java:27)
20:51:12.092    916     ERROR   AndroidRuntime      at
org.me.zx.MainActivity.onCreate(MainActivity.java:22)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
20:51:12.092    916     ERROR   AndroidRuntime      ... 11 more
20:51:12.092    916     ERROR   AndroidRuntime  Caused by:
java.io.FileNotFoundException: This file can not be opened as a file
descriptor; it is probably compressed
20:51:12.092    916     ERROR   AndroidRuntime      at
android.content.res.AssetManager.openNonAssetFdNative(Native Method)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.content.res.AssetManager.openNonAssetFd(AssetManager.java:412)
20:51:12.092    916     ERROR   AndroidRuntime      at
android.content.res.Resources.openRawResourceFd(Resources.java:811)
20:51:12.092    916     ERROR   AndroidRuntime      ... 16 more


This is what I have tried:
-Using MediaPlayer
-Using Audio Player
-Trying MP3 files, OGG, WAV Files
-Using eclispe to compile instead of netbeans
-Deleting my raw folder and adding the files again
-Deleting my R.java file

The file is only 2kb mp3 and 30kb .ogg and 130kb wav

Does anyone have any suggestions on how do I fix this?

-- 

3. How to unregister listener after application get closed

4. Spinner-SimpleCursorAdapter

5. Send SQLite db to web server

6. How to get Gmail address registered on the phone ?

7. How to unregister listener after application get closed