Hello,
I am working on developing an application that requires me to
establish multiple client-server based connections. Connection can be
of two types where the Android device can be a server or a client. I
can have up to 6 - 8 connections. Once the connections are set-up they
need to be running in the background and are not typically ...
Hello,
I have a question on List.
Basically I have an application(API) I am testing.
When a start() method is called on the API, a bunch of things happen including starting a background service.
I have written / modified some code from the Web:
public boolean isServiceRunning(String serviceName){
boolean isRunning = false;
A...
I am writing a commercial Android app to take survey, which should also give option to edit survey.
What is the best approach to link UI fields to database without writing explicit logic to do that.
...
I am trying to compare dates and I have found where my code goes wrong, but I don't know why.
I am trying to compare a date with todays date (using Gregorian Calendars only). I have printed out todays date where ever it is mentioned in the code and in one place it magically changes from year 2010 to year 3910 (todays year + 1900).
Doe...
Hi All,
I am trying to make use of Runtime.getRuntime.exec() command to copy a
folder from one location to another on sdcard.
But it seems like it doesn't work
Below is the code snippet where I am trying to copy the contents from /
sdcard/etc/data to /sdcard/etc/temp/
try
{
Process process = Runtime.getRuntime().exec("cp -r /sdc...
Hi all
I want to start Android development but I just don't like Eclipse. (Yes, I am picky. lol)
Is there any other good IDE rather than Eclipse that really WORKS with Android SDK? (QT maybe?)
Thanks in advance
Ignacio
UPDATE:
I am on Mac OS X. Is there any plugin for Xcode that makes the trick of linking Android SDK with it?
...
Thank you all for your answers and time!
Hello,
I've been trying to call a non-static method, located in my main application Class, from the Preferences Class.
Because the method I call is not static, I instantiate the main class and then try to call the specific method I want but it's force closing.
Preferences.class (from where I ca...
I'd like to allow possible inputs of 0-9, "," or "-" for EditText and couldn't find an answer.
I know using the "|" as an separator is possible:
android:inputType="number|text"
But how can I archive something like this (too bad it doesn't work):
android:inputType="number|,|-"
Does anyone know?
Regards,
cody
Addition to the co...
Hi,
The code below is executed as the jpeg picture callback after TakePicture is called. If I save data to disk, it is a 1280x960 jpeg. I've tried to change the picture size but that's not possible as no smaller size is supported. JPEG is the only available picture format.
PictureCallback jpegCallback = new PictureCallback() {
publ...
Hello!
I am writing a small app that at the moment generates a random map of textures.
I am drawing this map as a 10 x 15 group of "quads" which are infact all triangle strips. I use the "map" to grab an int which I then take as the location of the texture for this square in the textureAtlas. so for example 0 is the bottom left "tile"....
My app needs to allow users to drag and drop elements outside of their parent. I have a TableView with N number of elements in it. Each element is draggable. If an element is dragged to a certain location outside of it's parent view, it disappears. Think of dragging an element to a trash can, but the trash can is in a different tableview...
I am downloading a JSONObject from a web site. The entries are however HTML-encoded, using
"
and
&
tags. Is there an easy way to get these to Java strings? Short of writing the converter myself, of course.
Thanks RG
PS: I am using the stuff in a ListView. Probably I can use Html.fromHTML as I can for TextView. Don't ...
I have Activity for displaying search results. It extends ListActivity. I need to show search results in listview grouping several items. So, how do I add grouping to my listview?
...
I have some strange socket behavior going on. I've set an timeout of 5 seconds using setSoTimeout. This should be plenty of time in my situation. According to online java documentation a SocketTimeoutException should be thrown if it times out. It also says that the socket is still valid. So I want to catch it and then continue. How...
Hi,
I want a GridView, or other view more suitable, that fills the full screen size. It should have 3 columns and 4 rows. Each cell should contain an image. If it is a big screen the grid size (3x4) should not change. Instead should each cell expand and each image as well. If it is a small size screen cell and photo should reduce in siz...
I'm looking to create a listview screen similar to the Sound Setting screen (in the built in Settings app, see image below), i.e I want some rows to have text + checkboxes, other rows to have text + "pop up" buttons, some rows should have text only etc.
What is the best way to accomplish this?
...
I have an Activity I would like to automate testing on. The start up of the Activity is like this:
Get data from Intent
Bind to service and obtain some objects specific to that Activity's intent data
Query these objects and print information to screen
I have a basic grasp of testing Activities but given how this Activity depends quit...
I have been reading the Android documentation and I am wondering if anyone can shed some light on what happens to a service instance when a service started with START_STICKY has it's process killed. I am assuming that the local state data (instance variables) are also lost. Does Android do anything to help re-populate the local state w...
i am a newbie android developer. I am using scrollView in my application. The application will take some profile information from user and will save it in database. There are 2 EditText fields which are broken in scrollView. I have tried my best to solve it but failed. Please help me if anyone knows what is the problem. here is my layout...
I recently rebuilt my Android project to target 2.2 from 2.1.
In the old project, I did not specify a target SDK (the manifest did not contain something like: android:minSdkVersion="8"). This gave me an error in the console when running, but everything worked fine so I didn't fool with it.
The new project now uses android:minSdkVersion...