What is the best GPS application usable without an Internet connection? (Android)
I don't use it by car, just for walking in cities. It would be nice if I could just copy all data relative to a particular city before going there for tourism.
Tracking Valuable Threads from Worldwide Discussion Boards for Android Enthusiasts and Programmers
Android - When devices will get 2.2 FroYo Update
Android 2.2 (FroYo, short for "Frozen Yogurt") was released over the Summer 2010, however not all of the devices that will get this update have received it yet. Each manufacturer and carrier needs to add their custom modifications before it can be officially released.
Android - Apps / ROMs / Benefits from rooting?
This is a common question by those who have just rooted their phones. What apps, ROMs, benefits, etc. do I get from rooting? What should I be doing now?
Android - When will devices receive 2.3 update / Gingerbread?
Android 2.3 (Gingerbread) SDK was released on December 6, 2010. (High-level user highlights)
Of course, not all devices will get this update right away and others wont get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.
When will each device get Android 2.3, either officially or unofficially, if ever?
Of course, not all devices will get this update right away and others wont get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.
When will each device get Android 2.3, either officially or unofficially, if ever?
Labels:
2.3-gingerbread,
SE,
update
Android - How to increase battery life of phone?
What can I do to get better battery life on my Droid? Battery life seems awful. Less than 15 hours or so on normal usage.
Labels:
Battery,
battery-life,
SE
Android - Free Apps in Android Market / Apps worth buying
There are so many free apps out in the Android Marketplace. I'm curious as to what applications other Android users are willing to pay for.
What Android applications do you pay for?
What Android applications do you pay for?
Labels:
applications,
SE
Android - Does constant charging harm cellphone
I usually disconnect my cellphone from the charger some time after it got fully charged because I'm afraid the battery could lose capacity over time if I didn't. However, I believe modern electronics should be able to handle this kind of scenario and automatically stop charging the battery once it's full. Does this apply to modern cellphones? Or do I need to continue disconnecting it all the time?
Labels:
battery-life,
cellphones,
charger,
SE
Android - How to Root
This is a common question by those who have want to root their phones. How exactly do I root my phone?
Android - Making TextView Scrollable
I am displaying text in a textview that appears to be too long to fit into one screen. I need to make my TextView scrollable. How can i do that? Here is the code final TextView tv = new TextView(this);
tv.setBackgroundResource(R.drawable.splash);
tv.setTypeface(face);
tv.setTextSize(18);
tv.setTextColor(R.color.BROWN);
tv.setGravity(Gravity.CENTER_VERTICAL| Gravity.CENTER_HORIZONTAL);
tv.setOnTouchListener(new OnTouchListener(){
public boolean onTouch(View v, MotionEvent e)
{
Random r = new Random();
int i = r.nextInt(101);
if (e.getAction() == e.ACTION_DOWN)
{
tv.setText(tips[i]);
tv.setBackgroundResource(R.drawable.inner);
}
return true;
}
});
setContentView(tv);
tv.setBackgroundResource(R.drawable.splash);
tv.setTypeface(face);
tv.setTextSize(18);
tv.setTextColor(R.color.BROWN);
tv.setGravity(Gravity.CENTER_VERTICAL| Gravity.CENTER_HORIZONTAL);
tv.setOnTouchListener(new OnTouchListener(){
public boolean onTouch(View v, MotionEvent e)
{
Random r = new Random();
int i = r.nextInt(101);
if (e.getAction() == e.ACTION_DOWN)
{
tv.setText(tips[i]);
tv.setBackgroundResource(R.drawable.inner);
}
return true;
}
});
setContentView(tv);
Android - Detect if app was downloaded from Android Market
I have an Android library that uploads data to a test server and production server. I'd like developers using this library to use the test server when developing, and production server when the app is downloaded from Android Market.
Is this possible for an app to tell where it came from (Market or non-Market?) I would imagine one could detect the presence of the signed JAR file.
Is this possible for an app to tell where it came from (Market or non-Market?) I would imagine one could detect the presence of the signed JAR file.
Labels:
Android
Android - Programming languages to be used
Mostly, Android applications are written in Java. But i heard that its also possible to use Scala or some other languages. And I also read that it's possible to include native C/C++ code.
Is there a refernce/list available that shows which languages can be used?
Is there a refernce/list available that shows which languages can be used?
Labels:
Android,
Java,
programming-languages,
Scala,
scripting
Android Multitouch - Possible to test in emulator?
I recently discovered that the Android 2.0 SDK supports multitouch through new functions in the MotionEvent class. You can specify a pointer index when retrieving touch properties, and in cases where multiple fingers are on the screen there should be multiple pointers provided.
Unfortunately, I only have a G1 to test on and it's running Android 1.5 and not 2.0.
Is there any way to test multitouch without a 2.0 device? In the iPhone simulator, you can hold down option and shift option to perform two fingered pinch and two fingered drag, respectively. Is there any similar functionality in the Android emulator? Is it something I should expect to see in the future, or should I just suck it up and buy a new test phone?
Unfortunately, I only have a G1 to test on and it's running Android 1.5 and not 2.0.
Is there any way to test multitouch without a 2.0 device? In the iPhone simulator, you can hold down option and shift option to perform two fingered pinch and two fingered drag, respectively. Is there any similar functionality in the Android emulator? Is it something I should expect to see in the future, or should I just suck it up and buy a new test phone?
Labels:
Android,
Android-emulator,
emulator,
multitouch
Android - Substantial development in Scala
Has anyone had success developing a substantial Android app in Scala? Is it a viable option yet? Are there any mature development environments? Given the state of the Scala Eclipse plug-in, it looks as if there is no good IDE support at all other than possibly IntelliJ Ultimate.
A few people have posted tutorials describing how to fudge Eclipse ADT to sort-of support Scala, and how to slim the Scala libraries using Proguard, but beyond that there has been worryingly little discussion about this topic.
Update 2011-08-01: An interesting article on Android+Scala from the developers behind the Bump app:http://devblog.bu.mp/how-we-use-scala-in-bump-for-android
A few people have posted tutorials describing how to fudge Eclipse ADT to sort-of support Scala, and how to slim the Scala libraries using Proguard, but beyond that there has been worryingly little discussion about this topic.
Update 2011-08-01: An interesting article on Android+Scala from the developers behind the Bump app:http://devblog.bu.mp/how-we-use-scala-in-bump-for-android
Labels:
adt,
Android,
Intellij-idea,
Scala
Android - Kernel Debugging
I have been experimenting with getting kgdb to work the Nexus One.
I have pulled the kernel from android.git.kernel.org and enabled everything to do with KGDB including kgdbts testing using menuconfig. Successfully built the kernel and flashed it to the device (which is unlocked rooted and running CyanogenMod 7)
I have also followed the instructions found on http://bootloader.wikidot.com/android:kgdb to enable the usb connection to act as a serial connection as required by kgdb (and tested communications from ttyACM0 to ttyGS0 successfully).
The following folders exist indicating that kgdboc and kgdbts have been built into the kernel:/sys/modules/kgdboc/parameters
/sys/modules/kgdbts/parameters
The following is the output from dmesg showing the kgdbts testing being done show what (I think) is a successful completion of the tests:# dmesg | grep kgdb
I have pulled the kernel from android.git.kernel.org and enabled everything to do with KGDB including kgdbts testing using menuconfig. Successfully built the kernel and flashed it to the device (which is unlocked rooted and running CyanogenMod 7)
I have also followed the instructions found on http://bootloader.wikidot.com/android:kgdb to enable the usb connection to act as a serial connection as required by kgdb (and tested communications from ttyACM0 to ttyGS0 successfully).
The following folders exist indicating that kgdboc and kgdbts have been built into the kernel:/sys/modules/kgdboc/parameters
/sys/modules/kgdbts/parameters
The following is the output from dmesg showing the kgdbts testing being done show what (I think) is a successful completion of the tests:# dmesg | grep kgdb
<6>[ 12.974060] kgdb: Registered I/O driver kgdbts.
<6>[ 12.981781] kgdbts:RUN plant and detach test
<6>[ 12.995178] kgdbts:RUN sw breakpoint test
<6>[ 13.002441] kgdbts:RUN bad memory access test
<6>[ 13.010864] kgdbts:RUN singlestep test 1000 iterations
<6>[ 13.019042] kgdbts:RUN singlestep [0/1000]
<6>[ 13.077850] kgdbts:RUN singlestep [100/1000]
<6>[ 13.132720] kgdbts:RUN singlestep [200/1000]
<6>[ 13.187500] kgdbts:RUN singlestep [300/1000]
<6>[ 13.242370] kgdbts:RUN singlestep [400/1000]
<6>[ 13.297149] kgdbts:RUN singlestep [500/1000]
<6>[ 13.351928] kgdbts:RUN singlestep [600/1000]
<6>[ 13.406829] kgdbts:RUN singlestep [700/1000]
<6>[ 13.461578] kgdbts:RUN singlestep [800/1000]
<6>[ 13.516540] kgdbts:RUN singlestep [900/1000]
<6>[ 13.570922] kgdbts:RUN do_fork for 100 breakpoints
<6>[ 21.117645] kgdb: Unregistered I/O driver kgdbts, debugger disabled.
I believe that the problem I am running into is getting the kernel to trigger kgdb.# echo -n g > /proc/sysrq-trigger
Just results in dropping me back to the command prompt and (I think) it is suppose to freeze everything and send a prompt over usb which is being used as a psuedo serial port since the phone doesn't have a real one.
From what I gather from my research that prompt is supposed to be the trigger that will allow me to issue(gdb) target remote /dev/ttyACM0
And connect to a debugging session with the kernel.
I have also tested /proc/sysrg-trigger with 'b' and 'c' just confirm that I am able to pass some commands to sysrq.
So my question following my long winded attempt to provide as much information as possible is what is 'g' not triggering the debugger?
This is my first attempt at kernel debugging on any system and I have run out of ways to phrase my search on google so I turn to you.
(I have also tried putting kdgbwait in the kernel command line without success as I believe that this is not yet supported by the android kernel)
<6>[ 12.981781] kgdbts:RUN plant and detach test
<6>[ 12.995178] kgdbts:RUN sw breakpoint test
<6>[ 13.002441] kgdbts:RUN bad memory access test
<6>[ 13.010864] kgdbts:RUN singlestep test 1000 iterations
<6>[ 13.019042] kgdbts:RUN singlestep [0/1000]
<6>[ 13.077850] kgdbts:RUN singlestep [100/1000]
<6>[ 13.132720] kgdbts:RUN singlestep [200/1000]
<6>[ 13.187500] kgdbts:RUN singlestep [300/1000]
<6>[ 13.242370] kgdbts:RUN singlestep [400/1000]
<6>[ 13.297149] kgdbts:RUN singlestep [500/1000]
<6>[ 13.351928] kgdbts:RUN singlestep [600/1000]
<6>[ 13.406829] kgdbts:RUN singlestep [700/1000]
<6>[ 13.461578] kgdbts:RUN singlestep [800/1000]
<6>[ 13.516540] kgdbts:RUN singlestep [900/1000]
<6>[ 13.570922] kgdbts:RUN do_fork for 100 breakpoints
<6>[ 21.117645] kgdb: Unregistered I/O driver kgdbts, debugger disabled.
I believe that the problem I am running into is getting the kernel to trigger kgdb.# echo -n g > /proc/sysrq-trigger
Just results in dropping me back to the command prompt and (I think) it is suppose to freeze everything and send a prompt over usb which is being used as a psuedo serial port since the phone doesn't have a real one.
From what I gather from my research that prompt is supposed to be the trigger that will allow me to issue(gdb) target remote /dev/ttyACM0
And connect to a debugging session with the kernel.
I have also tested /proc/sysrg-trigger with 'b' and 'c' just confirm that I am able to pass some commands to sysrq.
So my question following my long winded attempt to provide as much information as possible is what is 'g' not triggering the debugger?
This is my first attempt at kernel debugging on any system and I have run out of ways to phrase my search on google so I turn to you.
(I have also tried putting kdgbwait in the kernel command line without success as I believe that this is not yet supported by the android kernel)
Android - RFCOMM socket without any input from user
Here s the scenario.
I need to write an application for android to create a RFCOMM socket to a pc with a BT dongle (I'm going to write the server too).
My requirement is that the user doesn't have to pair device manually.
Actually, with a big hack, I'm using the createInsecureRfcommSocket.
A little scenario: I've an android application which exchanges information with a linux box with rfcomm socket opened. I can manually set the PIN on the devices (hardcoding it IS an option)
I'm looking for different roads:
Write a JNI wrapper
As has been done here by Max Kellermann, I can write a jni layer to make all the pairing phase. This should be a good options, but there's a problem:
The NDK 4b does not provide libbluetooth libraries, so -lbluetooth fails, as well as the NDK v.3.
Options:
Find the NDK 1.5 (which includes lib bluetooth). After days of web search I've been not able to find out. Anyone has or knows where I can find it?
Compile libbluetooth for android by myself and use them for -lbluetooth. No lucky there, I'm not able to build them. Any hint?
Use something exposed by the APIs
Any one know how can I use createRfcommSocketToServiceRecord and have the user not to manually pair the device? Is it possible? How should I write the server?
Something I do not know
Maybe (sure!) there is something I do not know. Maybe I can use something else? Not RFCOMM? SDP?
Maybe I can manyally pair with android api?
I hope to have been clear enough, if not just ask. And again, as it's not the first time, I'm in your hands :)
VIEW COMPLETE THREAD WITH REPLIES
I need to write an application for android to create a RFCOMM socket to a pc with a BT dongle (I'm going to write the server too).
My requirement is that the user doesn't have to pair device manually.
Actually, with a big hack, I'm using the createInsecureRfcommSocket.
A little scenario: I've an android application which exchanges information with a linux box with rfcomm socket opened. I can manually set the PIN on the devices (hardcoding it IS an option)
I'm looking for different roads:
Write a JNI wrapper
As has been done here by Max Kellermann, I can write a jni layer to make all the pairing phase. This should be a good options, but there's a problem:
The NDK 4b does not provide libbluetooth libraries, so -lbluetooth fails, as well as the NDK v.3.
Options:
Find the NDK 1.5 (which includes lib bluetooth). After days of web search I've been not able to find out. Anyone has or knows where I can find it?
Compile libbluetooth for android by myself and use them for -lbluetooth. No lucky there, I'm not able to build them. Any hint?
Use something exposed by the APIs
Any one know how can I use createRfcommSocketToServiceRecord and have the user not to manually pair the device? Is it possible? How should I write the server?
Something I do not know
Maybe (sure!) there is something I do not know. Maybe I can use something else? Not RFCOMM? SDP?
Maybe I can manyally pair with android api?
I hope to have been clear enough, if not just ask. And again, as it's not the first time, I'm in your hands :)
VIEW COMPLETE THREAD WITH REPLIES
Labels:
Android,
android-ndk,
bluetooth,
jni,
rfcomm
Android - Configuring Android Web Applications
iPhone web apps have four configuration features available (not including the HTML5 application cache) to configure how web pages behave when you save the web page to the home screen as a
bookmark.
You can specify the home page icon.
You can specify a startup image that displays while the web page is loading.
You can hide the browser UI.
You can change the status bar color.
The four features work by adding tags to the <head> like this:<link rel="apple-touch-icon" href="/custom_icon.png"/>
<link rel="apple-touch-startup-image" href="/startup.png">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
Naturally, none of these "apple-" specific tags do anything in Android. But is there any way to do something equivalent? [At a minimum, I want users to be able to add my web page to their Android home screen (e.g. in Android 2.0) and have a pretty hi-res icon.]
You can specify a startup image that displays while the web page is loading.
You can hide the browser UI.
You can change the status bar color.
The four features work by adding tags to the <head> like this:<link rel="apple-touch-icon" href="/custom_icon.png"/>
<link rel="apple-touch-startup-image" href="/startup.png">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
Naturally, none of these "apple-" specific tags do anything in Android. But is there any way to do something equivalent? [At a minimum, I want users to be able to add my web page to their Android home screen (e.g. in Android 2.0) and have a pretty hi-res icon.]
Android - Create a ListView with rounded corners
I was wondering if there was a way to create a ListView with rounded corners in Android.
Android - Fix NPE in ViewRoot#updateBidiOptions
In the developer console on the Android market we are getting a lot of stack traces like this (sent in by users when our app crashes):
java.lang.NullPointerException at
android.view.ViewRoot.updateBidiOptions(ViewRoot.java:290) at
android.view.ViewRoot.performTraversals(ViewRoot.java:737) at
android.view.ViewRoot.handleMessage(ViewRoot.java:1792) at
android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:143) at
android.app.ActivityThread.main(ActivityThread.java:5068) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:521) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at
dalvik.system.NativeStart.main(Native Method)
We have not been able to reproduce the crash and also when we check the Android source code, there is no method called updateBidiOptions. The user comments seems to suggest that the crash happens when they focus on an EditText. Many of the users also mention that this happens on HTC Desire HD but it is not crashing on the Desires we have here.
android.view.ViewRoot.updateBidiOptions(ViewRoot.java:290) at
android.view.ViewRoot.performTraversals(ViewRoot.java:737) at
android.view.ViewRoot.handleMessage(ViewRoot.java:1792) at
android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:143) at
android.app.ActivityThread.main(ActivityThread.java:5068) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:521) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at
dalvik.system.NativeStart.main(Native Method)
We have not been able to reproduce the crash and also when we check the Android source code, there is no method called updateBidiOptions. The user comments seems to suggest that the crash happens when they focus on an EditText. Many of the users also mention that this happens on HTC Desire HD but it is not crashing on the Desires we have here.
Labels:
Android,
exception-handling
Android - Best option for using GData APIs
What's the least painful and most size efficient way to use the Google Data APIs in an Android application?
After a few quick searches t seems that there is an android-gdata project on Google Code that seems to be the work of a single author. I didn't find any documentation for it and don't even know if it's production ready yet.
An older option, the com.google.wireless.gdata package seems to have been removed from the SDK. It's still available in the GIT repository.
Before I invest too much time with either approach I'd like to know which is the best supported and least painful.
After a few quick searches t seems that there is an android-gdata project on Google Code that seems to be the work of a single author. I didn't find any documentation for it and don't even know if it's production ready yet.
An older option, the com.google.wireless.gdata package seems to have been removed from the SDK. It's still available in the GIT repository.
Before I invest too much time with either approach I'd like to know which is the best supported and least painful.
Subscribe to:
Posts (Atom)
Popular Posts
-
Trying to found out how to enable "diagnostic" mode on an HTC Android device, specifically a T-Mobile G2 / HTC Desire Z. In my sea...
-
Does anyone know information about how to connect the Samsung Fascinate as Diag Mode driver? ie: this type of connection needed for QPST/QX...
-
Even a basic program that can encrypt and decrypt SD card, at least the external SD card would be acceptable. This way we can be assured tha...
-
Joikuspot is a program for Symbian that bridges the WiFi and 3G connection so the phone acts as a hotspot for wireless connection. I figure ...
-
On Android phones SMS messages registered to applications also get sent to the device's inbox. However to prevent clutter, it'd be n...
-
I decided to wipe all data by turning the phone off and then pressing the home key and the power key. From there it went to the recovery men...
-
I am brand new to cell phones so please excuse the very basic questions and problems I am having. I am trying to get QPST to work with my Sp...
-
Go to: 1. Settings 2. Applications 3. Manage Applications 4. Select Filter 5. Select All 6. Select "Maps" application. It w...
-
I'm getting this error from time to time and don't know what causing this: When trying to run/debug an Android app on a real devic...
-
What is the best GPS application usable without an Internet connection? (Android) I don't use it by car, just for walking in cities. I...