Hi All,
I need to load several ImageViews into a layout. The ImageViews are used to show a rating using 'star' icons. The number of stars (i.e. the rating is determined during loading by reading a configuration file.
The ImageViews are sitting inside a RelativeLayout layout.
Currently I am using something like this:
RelativeLayout l...
I've seen a few questions about this but no solid answers.
I have a MapView that can generate up to 1600 locations on the map, based on how far the user zooms in or out. As of now, I have my marker simply set to a drawable within my application. How can I detect if a user has zoomed in/out, then scale the marker accordingly. I'm not con...
Look at the Title
I don't wont to make anything in the main.xml
...
Hello all... I have recently written a socket server in PHP that will be handling communication between an Android phone application and my PHP webserver. Due to the fact that Android doesn't natively support push style notifications we are going to be using our webserver as the middleware layer to handle our 'pushes'.
The socket se...
I've run into an organizational problem with an application I am working on, on the Android platform. The application uses sensors as input and OpenGL as output.
The traditional method is something
like organizing the project into an
MVC where I have the main activity
class load an OpenGL view and a
sensor handling class and will then...
How to get the current time in Android?
When i use
int hours = java.sql.Time.this.getHours();
i get the error:
No enclosing instance of the type Time is accessible in scope
...
hello,
I am trying to reproduce the behaviour of this simple layout :
<?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"
android:background="#0000ff"/>
a linearlayo...
I'm trying to architect a REST-heavy application.
Following one of the models proposed by Virgil in his Google I/O presentation, I've set up my application like so:
My Activity calls upon a "Service Helper" which is a singleton. This singleton instantiates a Service which, upon start, uses a ContentProvider to hit my application's dat...
Rather than do this by just creating a lot of strings (which I've already managed), I want to add an integer and then print those list to the screen. At the moment, I'm just trying to get one integer on the screen without even adding it, but the app is "force closed" in the emulator. Why doesn't this work?
Code:
package com.monkeez.co...
I see some apps which place an icon in the notification bar on my device. how do i do that with my app ?
...
Hi,
I'm developing an app similar to piano. I am unable to play sounds as the user moves his finger over various piano bars without lifting the finger. I looked at gestures but couldn't do it.
Can anyone pls. help me.
Thanks,
...
Hi,
I'm developing an android app similar to piano. I am unable to play sounds as the user moves his finger over various piano bars without lifting the finger. I looked at gestures but couldn't do it.
Can anyone pls. help me.
Thanks,
...
I launch an activity from another activity with a startActivityForResult. This activity gets a LOCATION_SERVICE. All works very well up to the point where I upload the app to my hardware.
It works ok there, as well until I shut the app down. The LOCATION_SERVICE appears to continue running
and even continues to give me Toast updates unti...
Two parts to this question
1) I am working with a group of six others in a computer science class and will be creating an Android application over the next 3 or 4 months. I am looking for suggestions as to how we can come up with an idea that is not only practical but also possible to complete in the time given. I am the only one in the...
Sharing an Options Menu between Activity and MapActivity.
Is this possible?
I have an Options Menu shared between multiple Activities but now I need that menu in a MapActivity.
...
My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy lifting in another thread, and using a progress dialog which I set as non-cancellable. However, I noticed that if I rotate my phone it restarts the activity which is REALLY bad for the process that was running, and I get a ...
How can I make it so that my application is seen on the Android Market only by devices with mdpi and hdpi densities.
There is the <supports-screens> tag and there is the anyDensity parameter but I don't see how I can say what I want. If I set anyDensity to false, what does that mean? Where do I specify which densities I do support?
...
Hi all, I am try to use reflection to invoke the "List Camera.Parameters.getSupportedFocusModes()" function with the following codes:
Camera.Parameters params = mCamera.getParameters();
Method method = params.getClass().getDeclaredMethod("getSupportedFocusModes", (Class[]) null);
Object o = method.invoke(params, (Object[]) null);
the ...
I want to play a alarm on my app so i need to know how to include it and to access
...
I have a ListView with some elements on it. Each row has a TextView and a Button. It looks like this:
| Some text in a row (Button) |
Now, when I click on this text nothing happens. Simply no one function is called. But when I click on the button I can handle the event. I use onListItemClick()
So what should I use instead of this Text...