I'm building a C library we have using the Android NDK build chain. Things are working in general, but the following section is causing problems:
#include <netdb.h>
...
struct addrinfo* addr_result;
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
...
So I have an android application that needs to connect to a socket server. That's simple enough if the socket server was running on my development machine. However the socket server is running on a server not only not on my own machine, but on a different subnet. How would I connect my emulator to the socket server? I understand how the ...
I am trying to have an image be at the left, to the right of that, a vertical list (title, address, and date), and to the right of all the url. I can't seem to get the url to display anywhere but on top of the title. Can anyone point me in the right direction?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
I would like to use a custom skin for my Datepickers and Timepickers. Changing the background in XML doesn't do the trick (it changes the background to the set, not each of its buttons). The API is painfully short and has nothing about appearance ( http://developer.android.com/reference/android/widget/DatePicker.html ). Is it possible to...
I try to increase the value of an integer key in a row in my table. However, nothing really seems to happen.
db.rawQuery("UPDATE table SET key = key + 1 WHERE name=?", new String[] {name});
However, this code works fine (just sets the key to a hard-coded value):
ContentValues values = new ContentValues();
values.put("key", 2...
Hello, I'm playing around with reading the signal strengths in a small Android App, and was wondering if anyone has tested this (or just knows) of the documented values (0-31, 99) which value is better.
By asking which is better, I mean, does 0 represent no signal, or perfect signal.
I'm running an HTC Incredible on Verizon, so I can...
I am interested in integrating Scala (or some other non-Java JVM-language) into the android platform. I am not referring to writing an android application with Scala, that I did early early on, but actually hooking into the build process that builds the android platform source tree. I imagine this will be a matter of hooking into the mak...
Hello all,
I'm creating an app that targets Android 1.5 and up and I can't seem to find a way to pause/resume/cancel a running animation. Does anyone here know how to do these 3 things?
More Info:
I create a custom AnimationSet (which I add 2 ScaleAnimations to when needed) and set at AnimationSet as the animation for an ImageView. I ...
I was wondering if there are ways to run Android on XWindows (Xorg) without any emulation and using X11 (or a window) to render graphics... I've read that Android uses the FB device (and I don't know how does this fit with OpenGl).
Does anyone have some information about this? Are there projects or other?
...
When I trying run Android Emulation, i Have error message:
$ tools/emulator -avd Default -verbose -debug-all
emulator: found SDK root at /opt/android-sdk-linux_86
emulator: /home/jupeter/.android/avd/Default.ini: parsing as .ini file
emulator: 1: KEY='target' VALUE='android-8'
emulator: 2: KEY='path' VALUE='/home/jupeter/.android...
Hi, I would like to install an APK from within an Android application. Can anyone give me an example of how to do this?
EDIT:
Also how do I open the install applications from unknown resources preference page so that users can change it?
EDIT:
I actually meant open the screen using code, so I can immediately open the preference page ...
The default time setting in Android is for a 24-hour clock. I would like to set it (the default, not the setting) to be a 12-hour clock instead. How do I do this?
...
Hi Guys,
I am creating a multiple stop watch application for which there will be multiple timers running parallel, and each notification binded to each timer.
I am able to create multiple timers with the following code.
private void updateNotification(int notificationId, int clockStatusID, CharSequence text) {
// notificationMana...
Just interested on a purely theoretical basis. I've no current issues with YAFFS, but then I have no current Android.
Is there some sort of hierarchy between EXT3 (which I would assume as the base) and JFS and ZFS (which might be encumbered by patents) and the dreaded EXT4?
...
Following the "Hello, World" and "Hello, Testing" tutorials I created an android application created with Eclipse, along with a corresponding Android Test Project.
The tests run fine... once. After that, in order for me to run the tests again, I have to close the emulator.
If I don't close the emulator, the Eclipse console get stuck ...
Hey guys!!
Is there a way to know all the threads that are currently running in background inside of an Android application??
Thanks!!
...
This is a continuation of my previous question which I posted when I wasn't a registered user. As a refresher, I'm trying to resume the downloading of a large file from my Yahoo! web site server when the download gets interrupted. I previously thought the interruption was due to a 100 second timeout limit (because Yahoo! enforces that ...
I'm trying to build a project in Android 1.5 that references another Android (library) project compiled against Android 1.5 and I keep seeing this error in the Console in Eclipse:
Target 'Android 1.5' does not support building project with libraries.
I'm running Eclipse 3.5, and version 0.9.7 of the ADT.
I followed the instructions he...
Hi
i download Android 2.2 SDK and install nbandroid plugin on netbeans.
when i run project i get this message on netbeans out put and emulator did not start !!!
init:
deps-jar:
Compiling 1 source file to C:\Users\mahdi\Documents\NetBeansProjects\Hello Android\build\classes
compile:
=C:\Users\mahdi\Documents\NetBeansProjects...
I need to test, with Selenium or a similar automated testing tool, how my webapp behaves on iPhone's Mobile Safari and on Android browser. How can I do that?
I usually test my app by hand setting Safari 5 with User Agent = "Mobile Safari", I used iPhoney as well but it's too buggy IMO.
...