Chrobione Robinson

Greenhorn
+ Follow
since Dec 06, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Chrobione Robinson

In eclipse at top under window..you should see AVD "Android Virtual Device" I would suggest doing a google search "Android beginner guide with eclipse" and spend a couple of hours getting familiar with the IDE, Integrated Development Environment... It will help ya a lot just knowing where stuff is and what it is called.....that is half the battle...


Also as far as optimal setting, not sure you got much options...


Chrobi
12 years ago
Umm have you thought about just emailing the the SMS to the phone, still have data rates that apply.. I know here in the states I can text my friend via email and have a two way conversation with them on their cell and me in gmail.


http://www.livejournal.com/tools/textmessage.bml?mode=details


hope this helps..

-chrobione
12 years ago
You can call me chrobione... ;)

Is this a laptop?

I think you have enough cpu and memory , to run it, but my guess is the lag is coming from the internal graphics card, intel has been notorious for lagging in that department.

Here is the cpu compairison.. from intel http://ark.intel.com/compare/30783,55626

I am also running 2GB less on the memory but 1GB NVIDA GeFORCE 9600GT for video.


I have two emulators I run One is GalaxyTab from Samsung and a Android generic that I mostly use right now..

Generic info:

SD = 16MIB
Snapshot: Enabled
Skin Built-in: WVGA800
Hardware:
Accelerometer = yes
Abstracted LCD Density = 240
Max VM Application heap size = 24
Camera Support = yes

When I manually launch this one from AVD it takes about 35-40 seconds to get to unlock screen..and about 45-50 seconds for the Galaxy Tab..

If your Emulator configuration is like mine.. I would really look at the graphics card as the issue with the long load times.

You do not have to shut down the Emulator each time to mess around with the code, so you can manually start it, and once it is ready then click on the debug button in Eclipse...

Hope this helps...

-Chrobione

12 years ago


This is where your issue is....location.getLongitude() returns a double.

Instead of figuring out how to get the double to a int the better question what are you trying to feed that needs an int value?
12 years ago

Fandy Akhmad wrote:

Tim Moores wrote:

Fandy Akhmad wrote:Nothing errors i found..


You need to look into whatever log file PHP writes to, and in the Android logcat output.



Here is logcat 'error'

12-02 09:23:27.497: E/Zygote(33): setreuid() failed. errno: 2
12-02 09:23:38.707: E/Zygote(33): setreuid() failed. errno: 17
12-02 09:23:42.097: E/BatteryService(69): usbOnlinePath not found
12-02 09:23:42.097: E/BatteryService(69): batteryVoltagePath not found
12-02 09:23:42.097: E/BatteryService(69): batteryTemperaturePath not found
12-02 09:23:42.169: E/SurfaceFlinger(69): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
12-02 09:23:50.036: E/EventHub(69): could not get driver version for /dev/input/mouse0, Not a typewriter
12-02 09:23:50.036: E/EventHub(69): could not get driver version for /dev/input/mice, Not a typewriter
12-02 09:23:50.377: E/System(69): Failure starting core service
12-02 09:23:50.377: E/System(69): java.lang.SecurityException
12-02 09:23:50.377: E/System(69): at android.os.BinderProxy.transact(Native Method)
12-02 09:23:50.377: E/System(69): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-02 09:23:50.377: E/System(69): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-02 09:23:50.377: E/System(69): at com.android.server.ServerThread.run(SystemServer.java:184)
12-02 09:23:52.717: E/SoundPool(69): error loading /system/media/audio/ui/Effect_Tick.ogg
12-02 09:23:52.736: E/SoundPool(69): error loading /system/media/audio/ui/KeypressStandard.ogg
12-02 09:23:52.746: E/SoundPool(69): error loading /system/media/audio/ui/KeypressSpacebar.ogg
12-02 09:23:52.757: E/SoundPool(69): error loading /system/media/audio/ui/KeypressDelete.ogg
12-02 09:23:52.767: E/SoundPool(69): error loading /system/media/audio/ui/KeypressReturn.ogg
12-02 09:23:55.177: E/ThrottleService(69): Could not open GPS configuration file /etc/gps.conf
12-02 09:23:56.937: E/logwrapper(149): executing /system/bin/tc failed: No such file or directory
12-02 09:23:57.007: E/logwrapper(150): executing /system/bin/tc failed: No such file or directory
12-02 09:23:57.127: E/logwrapper(151): executing /system/bin/tc failed: No such file or directory
12-02 09:24:14.124: E/HierarchicalStateMachine(69): TetherMaster - unhandledMessage: msg.what=3



Those logs are showing a different issue that is happening before your code is even ran...

Thins I would confirm:

I would check to make sure that my php code is working by passing the following url code through the browser on the phone and on the dev computer.... ******Please change validuser and valid password to a user and password in the database and see if it gets a response. ******

Also clear the log view on logcat prior to running the application and also use the debug mode on eclipse.

hope this helps

-chrobi

12 years ago
Here is a link that I found describing close to what you are asking, but I saw some people at the bottom giving both positive and negative feedback.. hope the link helps...

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/


In my own adventure of trying to push a database to the location was unsuccessful.
Instead I just ended up coding a class to handle the database build with all of my tables and initial values in code to make use of the oncreate() and database versioning android provides, for database upgrades.

My understanding of this is that andriod with the will check to see if the database is actually there, if not create.
Then when I change to db version 2 it will automatically with and a little extra coding. It will give me the ability to truely migrate the database to the new version with out losing data.

If you would like more information on how I did the oncreate part let me know..
-chrobi
12 years ago

Kamanashis Biswas wrote:Project.apk file is not installing in emulator-5554 . Why ???

I am new to this Android world . When i am try to run the "HelloWorld" program, "emulator-5554" is lunching , and then its showing in the screen "ANDROID" , but no view !!! Console is giving " [2011-12-04 14:20:49 - Lab1] Waiting for HOME ('android.process.acore') to be launched....... " and then [2011-12-04 14:23:03 - Lab1] Failed to install Lab1.apk on device 'emulator-5554! '....... Please find me a solution .

Thanks to All.
B.Biswas



With the emulator you should get what appears to be a fully functional phone system. The black android screen should disappear and give way to a lock screen, which you have to manually unlock, unless you code like the phone app where it has the access rights to automatically unlock the phone..

From here I am making a few assumptions.

You are using Eclipse
Your helloworld program and emulator is started by using the Eclipse Debug or Run command/button....

The one I can't guess on is the operating system you are using. If it is windows vista or better I would disable the firewall to see if it helps, code in Ubuntu and have not had as many issues as when I was trying with M$ OS.


But here are some of the things I look for when I have crazy errors..

Again assuming Eclipse is the IDE, I have had problems with application failing to launch on emulator and my phone.

The very first thing I do is delete the "R.java" file.

This file can be located on the left hand side of the IDE under the package view.
To get this file click to expand the gen[Generated Java Files].
Then click to expand the helloworld sub-item and you will see the R.java file.
Right click on the file and select delete.
This file will be regenerated by eclipse immediately after the delete.

I would test again from there.
I would also test the app on a physical device if available otherwise here are some more things to try.

In AVD Manager I would create a new Virtual device based on the Samsung Galaxy and test again.
The AVD can be downloaded by Android SDK Manager.

It would be helpful to understand the OS and computer configuration:

1. OS vendor and version
2. CPU specs
3. Memory Specs - RAM and Freespace.


Hope this gives you a starting place in the wonderful world of troubleshooting.
12 years ago