Hey,
i would like to transform and crop a given image in android.
Therefore i have 4 source and 4 destination points to specify the transformation matrix.
i use
float[] src = new float[8];
src[0] = rp[0].getX();
src[1] = rp[0].getY();
src[2] = rp[1].getX();
src[3] = rp[1].getY();
src[4] = rp[2].getX();
sr...
Hello,
In my app I'm developing, I have a spinner in an alert dialog box.
The spinner works fine, but when I added the following lines to add the array to the spinner, my app crashing a few seconds after starting up:
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.newFileTypeArray, android.R.layo...
Hey i need to wake my sleeping android device up at a certain time.
Any suggestions?
P.S. Wake up: turn display on and maybe unlock phone
...
I was wondering if it is possible to set the priority of an IntentService like you can with a Thread. So far I have not found anything.
...
The users of my app will purchase any batches of 10 credits.
My question is, where should I store the current number of credits?
My goals are:
I want to make it not easy to steal
I want to make it reliable, I don't
want users to lose their credits
I need to tell the user when they run
out
Ideas:
Store # credits on phone DB
Store #...
I have a ListActivity that was originally using an ArrayAdapter. Each item in my ListView contains a checkbox.
I changed Adapters to a CursorAdapter. Everything is working fine except checkboxes are out of control. For example: When I click the checkbox in position 1, the checkbox in position 4 gets checked. If I click the checkbox ...
I am trying to pass an integer value for each possible radio selection from a multiple selection list.
Select radio button for a category, then call that file for questions within that category.
...
Hi there.
I'm building an android app that is basicaly a directory of up to 10 local radio.
The app should allow the user to listen to any of thosne radios. All i got for those radio i a stream URL (pls/asx,/m3u/mp3).
How should i implement the MediaPlayer to stream all those format?
thansk in advance.
...
I am trying to print Hello + written text in text box (As I posted earlier). Here's the code I have done. But instead of printing Hello+written text, its only printing Hello after clicking the button.
Any suggestion will be appreciated. Thanks.
public class myActivity1 extends Activity {
@Override
public void onCreate(Bundle savedInst...
Hello,
I need to store an retrieve a vector of an unknown number of objects in an android sqlite database.
Essentially, the setup is this: I am developing a task management app, where the user can add as many notes as they like to their tasks. My current setup uses one database, with one row per task. This presents a problem when I need...
The first time my app loads it starts my main activity, and inside my main activity i automatically start a service:
Intent s = new Intent(this, Soc.class);
startService(s);
//start the service for the first time
I need to make sure that when the user is opening the app NEXT TIME, it kills the old service, and recreate the service:
@...
I want to pass a value from one Activity to another to update an integer. So basically I want Activity2 to send Activity1 a value it has garnered from user input. Seems like it should be simple just not sure how. Is it possible to run a function from another Activity and give it this value as an argument?
...
I have a program that displays info based on the day. Everything has been working fine up till today. for some reason when have the calendar roll back one day to get yesterdays date it goes straight to august 30th. it skips august 31st. It will grab todays date fine (septermber 1st) but when i trace it, it goes right past the 31st. ...
I'd like to be able to display a set of image thumbnails and allow the user to long-press, then drag the image to change the order. I've been looking at the events, and I think there's a way to do this, but it will be painful to code well. Just wondering if there's a component out there that does it.
The "Gallery" component is also an...
I'm just curious, who in the world names a class R ? Is there any history behind this convention?
Thanks,
Teja.
...
I followed @seanhodges sample of the footer bar (android navigation bar bottom) :
http://stackoverflow.com/questions/2369975?tab=votes#tab-top
Is it possible to call it from include tag and then access each button at runtime
<LinearLayout android:layout_alignParentBottom="true"
android:layout_height="wrap_content" android:layout_w...
What I did was create two .java files. One that can compile and run on a 1.5 phone (SDK3) and then one that works on 2.0(SDK5) So for this example i'll call the 1.5 file ExampleOld and the new one Example. I was wondering if i just made activity like this if it would work sort of like a "portal" and pick the activity to load depending on...
I have a ViewFlipper that contains Layouts.
Is there a way I can hook up a Class to manage each layout seperately?
Kind of like setContentView(R.layout.main); but I'm not sure how to reference the 3 different layouts in code.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/an...
I am a complete noob to android but I have been programing c# for a long time. I am writing an android application and have gotten to a point where the c# programmer in me wants to start creating a loosely coupled design and and moving code into different layers, using interfaces, etc.
But then I stumble upon the Designing for performa...
I don't get the Android Intent matching concept! I must be missing something, but I read and re-read the docs and don't get it. Maybe some kind soul can shed some light on this?
I am able to start an Activity if I specify a Category filter "android.intent.category.DEFAULT" in the manifest:
...
<activity
android:name="...