android

Android Live Wallpaper - not showing background image?

Hi, I started implementation of android live wallpaper, following the examples and tutorials found on the internet, and I can't include png background as wallpaper. Also checked with similar problems here, and still can't make it work. This is the code: public class LiveWallpaper extends WallpaperService { /* IDs of recurces needed f...

How to pass a Multidimensional array from one activity to another in Android

Hi, How to pass a Multidimensional array from one activity to another in Android? Please give me one example which shows how to solve this problem? Thank you.. ...

how to send a json string to a .NET REST service from java?

hi, i am trying to send a json string from my android client to my .net Rest service... can anyone help me in this issue? HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost("http://myURL"); JSONObject json = new JSONObject(); json.put("name", "i am sample"); StringEntity str = new StringEntity(json.toString()...

Android Bluetooth Where can I get UUID?

Hi I want to connect 3 devices via Bluetooth.As for example I use BluetoothChat. So How I understand I should use different UUID for this devices. I have been trying to connect via such UUID=766c82f0-e1b4-11df-85ca-0800200c9a66, which I 've get it from Web UUID generator. But it doesn't work at all. I have succesfully connected (to 1 d...

Unit Testing Android project gets a NoClassDefFoundError for 3rd Party Jars

I'm trying to run unit tests on my Android app and I'm getting a NoClassDefFoundError when referencing 3rd party jars. The classes in those jars are only referenced by the app itself, not the unit tests. The jars are on the apps classpath and have been exported in the eclipse settings to allow tyhem to be found by dependant apps - which...

ServerSocket accept() not accepting connections on Android

Hi, I am trying to setup at ServerSocket on my Android phone, and send a char or int or anything from my computer. The code on the phone creates a ServerSocket and then blocks whilst waiting for a connection: ServerSocket serverSocket = ServerSocketFactory.getDefault() .createServerSocket(4444); Log.d("Host...

writing to and reading from a file simultaneous

Hi, I'm trying to read from a file while it still opened for witing. How it can be done? Thanks, Eyal. ...

Relative layout alignment goes wrong on a multiline textview.

I have a relative layout with various text view aligned in it.But the alignment goes wrong if value of any textview goes multiline.is there any way to avoid it? The view required is something like : Name: Abc address: 23,abc street,fhjhg apartments,Country Email: [email protected] address text view has width set as wrap-content...

how can I change color part of a TextView??

text = text + CepVizyon.getPhoneCode() + "\n\n" + getText(R.string.currentversion) + CepVizyon.getLicenseText(); activationText.setText(text); myTextView.setText(text); I want to change color for CepVizyon.getPhoneCode()'s string... how can I do this?? ...

Is there a way to disable line wrap in a List View in android?

I have a list view holding text views and when the text gets too big, it wraps and the item takes up two spaces. I am wondering if there is a way to turn off line wrap in this case, and if it should be done in the textview or the listview. ...

Supporting Right to Left languages

Hi, How can I localize my application to support some Right to Left languages? How can I localize my application to support Hebrew? Arabic? and other languages? Thanks, Eyal. ...

Calling the clickHandler method and passing a value.

Hello, I have the following code for a spinner: public class MyOnItemSelectedListener implements OnItemSelectedListener { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { String TABLE_NAME = parent.getItemAtPosition(pos).toString(); int spinnerYearsPos = parent.getSelectedItemPosi...

Augmented Reality Toolkit - Android

Hello, I have been searching around for free or commercial AR toolkits and need some advice on the best one! I don't want to have one that recognises a pattern and creates a shape. The idea I have uses the local location and uses POI's from a server to present them onto an AR view. Any ideas? ...

Android Creating List of Lists

Hello all, I am working on application wherein I need to create a List of lists. For example EmployeeGroup1 GroupName, GroupId, JobType Empployee1 Name, Designation Empployee2 Name, Designation Empployee3 Name, Designation Empployee4 Name, Designation EmployeeGroup2 GroupName, GroupId, JobType Empployee5 Name, Designation Empployee6 Na...

Restricting Previous Dates in DatePicker Dialog Android

I want to customize the DatePicker dialog which i am using in my Android application so that it allows the user to select only the current and the future dates. Is there any way this can be done ? ...

android - get apk file from device

Hi,, how to get the apk file from android device ? or how to transfer the apk file from device to system .Please help me. Thanks in advance. ...

Problems using pedometer application - http://code.google.com/p/pedometer/

I m using the followinf application ==> pedometer As i run this pedometer application on my emulator it starts showing some random values ...so could you please suggest me some ways in order to run this application on android emulator! THANK YOU ...

socket exception socket not connected android

Hello In my android application i am trying to run a application using GPRS connection and not WIFI. When tried to run in wifi the app runs fine. The browser works fine with the APN settings set but when trying to connect to server using my application it gives me socket exception. I am using the below permissions in manifest file. <u...

Android emulator access redir port from other host

Hi Have a server-socket running in an android application, which I debug using the emulator. Using the emulators console and "redir add tcp:8888:8888" I can make the service available to a program running on my development machine (as localhost:8888). The redir port is however not available on any other network interface, meaning I can...

TextView should be displayed with ... character at the end

Hello, i have created a textview with the below code: <TextView android:id="@+id/txtDescription" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="16dip" android:textStyle="bold" android:maxLines="5"> As above, i have set the 5 Lines as maximum for the textview. But ...