hello,I used ListView to dynamic add item,but there is a problem about not Smooth add.
there are textView and button in my listActivity,Iwant to Press button ,then textView"s text can auto add to listView,but i Pressed button ,it donot work,unless after i enter content , press "OK"Key ,then Pressed button ,textView"s text can auto add to...
Hello, i am starting to develop Android applications and i would like to know if there are any tips for creating lightweight applications. This is my first attempt to write applications on a mobile platform but i hope that my experience in programming will help.
I have in mind the "Better, Faster, Lighter Java" book, but will this be "t...
I'm looking to create a mobile version of our website/web app. What's a good way to provide the best, most fully featured version.
Part of the reason for creating it is instead of an iPhone app, so I'd like to offer an iPhone web app that takes full advantage of the iPhone's version of WebKit (so CSS animations, being able to rely on go...
How I can create apk application from two different dex file ?
I did'nt find any way to link many dex files with the android tools.
...
I have a GridView, in my activity, that displays about 30 thumbnails fetched from a remote server. I am doing 2-level caching for the images:
there is an in-memory cache(HashMap using softReferences)
Secondly, all the images fetched are written to Sdcard(so as to avoid refetches when in-memory bitmaps are GC'd).
From the getView of...
I have an ubuntu 8.04 x86_64 system. I installed the ia32 libraries and manually installed(i.e. untarred) Eclipse Galileo JEE. I then installed android's ADT-0.9.5 by downloading the zip file and pointing the software source as archive.
Now I need to add the android SDK in Windows->preferences->android. However, when I select the SDK di...
On pressing the back button, I'd like my application to go into the stopped state, rather than the destroyed state.
In the Android docs it states:
...not all activities have the behavior that they are destroyed when BACK is pressed. When the user starts playing music in the Music application and then presses BACK, the application ov...
I used the layout editor in eclipse to mock up my ui layout and then I created the code to populate it dynamically and things are showing up as different sizes. The XML I use to add the star images looks like this:
<ImageView
android:src="@drawable/star_gold"
android:layout_height="22sp"
android:layout_width="22sp"
android:adjustViewBo...
Vista 64; Eclipse 3-5-1.
I'm getting this error when I work on main.xml:
ERROR Error: No resource found that matches the given name (at 'text' with value '@string/get_text').
To eliminate variables I've created a new Android Project
Opened main.xml and pasted this in
When I hit save I get the above error in a red X next to the
T...
I am trying to use reflection to access some advanced features of the telephony api not published. Currently I am having trouble instantiating a serviceManager object that is needed to get the "phone" service as a binder which I can then use to instantiate a telephony object which is needed to make a call, end call, etc...
currently wh...
How can I make certain pixels of an DrawableBitmap transparent?
...
Hi!
The problem is this:
I make an internet connection to some url
and receive an HttpResponse with an app_example.apk.
Then I want to create a file (an .apk) in the sdcard with this data
so that this downloaded application can be installed later.
How can I convert the HttpResponse to an .apk file?
Thank you all
...
I am doing an Android application and I want to get the last 25 sent mails from a certain email account.
For Gmail I might use http://g4j.sourceforge.net/ and there is Mail Web Service API for Yahoo at http://developer.yahoo.com/mail/.
But I couldn't find something to do it with Hotmail.
Do you know if it is possible?
Also I am worri...
Is there a way to programmatically list all available content providers on a device? No real use case, I just thought it might be neat to see what apps I have installed on my phone that have exposed content providers.
...
Hi!
The problem is this:
I make an internet connection to some url and receive an HttpResponse with an app_example.apk.
Then I want to create a file (an .apk)
in the sdcard with this data so that this downloaded application
can be installed later.
How can I convert the HttpResponse to an .apk file?
Let's clear some details:
I have...
I have an Android ListView created with a SimpleAdapter that has more items in it than fit in the screen. After the list has been scrolled, I need to get the position in the data model of the first visible item in the list.
Basically I want a function like: listView.getChildAt(0).getPositionInDataModel().
Adapter has a few functio...
Hello,
after I found out (sadly) that there is no easy way to create a simple border around a View, I was forced to use the 9-patch-image approach to get a border around my View.
So I read the short thing there is on the 9-patch and its easy enough to understand. I started the "Draw 9-patch" application that came with the Android SDK,...
Is there a way to get the current Context instance by using a static method?
I'm looking for that way because i hate saving the context instance each time it changes.
Bests :)
...
Hi,
I have local HTML files with hebrew text that I'm trying to display on a webview in the android emulator but I only get squares and not the actual text.
I guess it's got to do with fonts not being supported.
Is there any way to display non latin text on the emulator?
Thanks!
...
I have a listview with a bunch of items in it.
I want to be able to check if the bottom edge of one of the list's child views is off the bottom of the listview and by how much.
Is there any way to do this?
...