android

Android "Advanced" Gradients - 'thumb' positions?

Hello -- I am trying to create a gradient drawable to depict a ratio of something. As a general example, lets say you were looking at a listview containing a fleet of cars. The background could be a fuel gauge - I don't want a smooth, wide transition. I want a very tight transition, and I want to be able to set where that transition ...

XMLRPC fault code in an Android app

I am developing an android application that handles data from XMLRPC web services.I have successfully used web services with level1 authentication but when I am trying to connect to level2 web services, I encounter a fault code. How do I look at this issue? What could be the possible reasons and how do I go about it? ...

Why is only my first widget visible when I open my slidingdrawer?

I created a sliding drawer in XML but when I run the app in the emulator and open the drawer, only the first button widget is visible in the drawer. The drawer does open all the way but only displays the first widget. Can anyone explain why this happens and a solution? (the code) <?xml version="1.0" encoding="utf-8"?> ...

Android create your own menu

I want to build my own menu from the beginning so to be able to put more then 3 items on a raw and put a custom theme. I know it's possible because I saw in other applications, but I am new in Android and I don't know how to do this. Thanks in advance. ...

Overriding software keyboard events

I want to develop my ime keyboard is there any help? I've stuck on how to send data back to my application when a key on soft keypad is pressed. any help will be appreciable. ...

Android separate responsibilities examples.

Hi All One thing about Android development i would like to see some examples on are, separating responsibilities in Android, right now i have Activities and i feel its quite unpleasant, how i put all my event handling, UI construction/updating and communication with my data persistence into a single Activity. This makes my Activities ex...

How to check if phone locale has changed?

Assume an application that has some locale-based raw resources. But the resources are not "corrensponding" to each other - one locale has less resources than another one. Application stores it's state when closed. So, user can launch the application in one locale, close it (app remembers its state), then user changes phone locale, and r...

listview showing whole list without scrollbar

I need to show 6 listview in linear layout. East listview should show all the items without scroll bar. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" an...

Slow streaming in android

I get a very slow streaming in android. When i get in VLC 200 kb, then in android i get 50kb. VLC 120kb-> android 30 kb Why? What is the solution for this? ...

Passing a int value from one class to another

Hi, I have been trying to get "getExtra" to work but without success, I have a listview with 4 choices which launch a webpage within a webView class, when the user selects the option lets say option 3 I want to pass the value of 3 to the webView class so that it will load the correct webpage, at the moment I get no errors, but the app f...

How to identify Tabhost tabs ID from another activity.

Hello, i have tabs in a TabActivity that is being populated by a listview from a method in another Activity. when i click on the listview in the tab, i am trying to delete an item in the listview from onContextItemSelected and let the tab in the tabhost callback the same method in the Activity that populated the listview. please does any...

Any ideas for useful(not for fun) Android applications?

I am studying in Android programming and would like to develop an useful Android application for my project, but I still could't get any good ideas after searching on the internet. Any suggestions that an app is useful in our dailylife even achieve the society such as about public health, education, security? ...

linearlayout inflation set text of the TextView

I want to add iems to linearlayout dynamically, and want to change the text of the textviews in the inflated layout. The background of all the 14 orders is set but only text of the top textview is set. Rest of the blocks are blank String infService = Context.LAYOUT_INFLATER_SERVICE; inflater = (LayoutInflater)getBas...

Developign x-platform mobile apps on ubuntu

Hi all, I'm a junior iphone developer and got familiar with developing on xcode on top of Mac OS. I wanna build some Cross-Platform apps in the near future and wanna Use Ubuntu as my Operating system. I found many solutions that run only on Mac OS or need mac to build apps for iphone but this is not what i need . i need something which c...

Text that doesn't fit into EditText - scroll it to the left

If I set text to my EditText and the text is bigger, the default behaviour is that the text is scrolled to right. Can I scroll it to left? Example with EditText 8 characters long and text "Sample text": Normal behaviour: [ple text] What I want: [Sample t] ...

Displaying list items in ListView

I've got the following main.xml: <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <ListView android:id="@+id/listview" android:layout_width="315px" android:la...

Android Video player not worke on device & emulator????

Uri uri = Uri.parse("http://64.250.238.26:1111/clips/Wailea.mp4"); videoView = (VideoView) findViewById(R.id.surface); videoView.bringToFront(); videoView.setVideoURI(uri); mediaController = new MediaController(this); mediaController.setAnchorView(videoView); videoView.setMediaController(mediaController); ...

How to store event.getX & event.getY in an array for android

How to retrieve the coordinate from event.getX or getY and store into an array? I want to use the coordinate store in array to redrawn in Canvas each time the user touch action. ...

To find out the default APN programmatically?

i wish to find out the functionality for checking the default APN... i.e active APN on a handset . ...

Connection refused when calling SOAP Webservice using Android

I developed a webservice in .net and I'm trying to call it in Android. To call the webservice I'm using ksoap2. The WDSL's URL is: http://localhost/Cidadaos_Cidade/Open.asmx?WSDL Here's the WSDL <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/...