Hi all,
I am working on a paint application for Android. Now I want to implement an eraser to allow erasing parts of a loaded bitmap by using touch input and making the bitmap transparent along the finger's path.
A very good example of what I try to achieve is shown in the application Steamy Window for Android. Steamy Window simulates...
In the examples, they create Intent as:
Intent intent = new Intent(this, AlarmReceiver.class);
But suppose my AlarmReceiver class is in another app, how do I create this intent?
I've tried with
new Intent("com.app.AlarmReceiver")
but nothing happens.. It was not called..
Any idea?
--Broadcast definition added using the manifest ...
This was my code:
<android:id="@+id/carrotsmileanim></android:id>
I fixed it because it was missing a quotation mark, but now eclipse won't recognize the quotiations nor the @ sign! What do I do?!?
...
I am trying to play a wave file(VoiceMail) in Android. The file is downloaded from a remote server and written to sdcard.
I use the following code to play the Wave file usign the MediaPlayer class bundled with the SDK:
FileDescriptor fd = new FileInputStream(songFile).getFD();
MediaPlayer mMediaPlayer = n...
I have a custom CursorAdapter that is taking items from a database and displaying them in a listview. If possible, I would like to display only certain elements based on some boolean value within a database element. Here is something similar to what I would like to do:
package itp.uts.program;
import android.content.Context;
import and...
Hey. I have the activity:
public class Mtest extends Activity {
Button b1;
Button b2;
public void onCreate(Bundle savedInstanceState) {
...
b1 = (Button) findViewById(R.id.b1);
b2 = (Button) findViewById(R.id.b2);
b1.setOnClickListener(myhandler);
b2.setOnClickListener(myhandler);
...
}
View.OnClickList...
Hi all
Im trying to understand how the Android drawings work.
I hoping that someone can explain how the drawing components relate to each other (View, Drawable, Canvas, Bitmap)
It all seems very confusing and the documentation doesnt do a very good job explaining it.
Does the bitmap inside the Canvas object you get injected in your V...
I know how to drag a Ball around by extending View and overriding OnDraw and then calculating the new coordinates and redrawing my Ball.
What if I have hundreds of shapes inside that view and need the entire view moved around with all the shapes together. Recalculating for every single shape doesn't seem feasible.
On the Iphone I can dr...
I'm running through the notepad exercises on the android dev website, currently working on exercise (found here http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html). I came to the end of the tutorial and found that I had several errors in the main two java files regaurding R file relations, such as 'setContentView(R...
In the same way a web or desktop app might have 3 or n tiers - UI, Business, Data for example - what is the suggested structure for an Android application? How do you group classes together, what layers do you have etc?
I'm just starting Androi dev (an internet based app that must respond to incoming notifications) and have no real fee...
I am planning to implement the Bluetooth SAP Server role for the Android platform.
Can any one tell me whether there are any APIs for the required SIM access?
thanks,
Krishna
...
Hello all,
To be able to do some accurate calculations that I want for my app, I need to be able to get an accelerometer reading every 100ms. I haven't found a way to do this on android, it seems like the only way to get accelerometer readings is to put a listener that can listen at different intervals. Basically, is there a way to get ...
I'd like to enable a "silent send" from my application-- that is, I'd like to catch the SEND intent in a Service, not an Activity. How does the default Android web browser send that intent? Is it possible to handle it in a Service, or in an Activity that never sets a View?
...
I'm developing an application that tracks the user's current position and stores it into a SQLite database. Everything works fine, but now I have the problem when querying the database for a track with more than 1000 records it takes nearly 1.5 minutes. On my Desktop it just takes 1 second.
I know it's a query with many subselects but I...
I just started using Net Beans. I am wanting to try my hand at developing android apps. I got the android sdk downloaded and everything is working well. I can create little apps and run them in the emulator. However, the intelisense popup for the android methods says that the Javadoc isn't found. Is there a way to add it?
...
I have some resources in my app that are going to be loaded optionally for different brands. I don't want to set up entirely different projects each time we re-brand the app so I want to know if the resources that are not used will be always packaged in and if there is a way to avoid this. Here's an example:
MyProject
/res
/layout...
I have some quetions:
Should I buy any license to distribute my applications?
Which profit from the sale of applications?
(sorry, I dont speak english very well :P )
...
My application uses in-app search, dynamically builds search suggestions on each request, puts them in a MatrixCursor and returns the suggestions to be displayed. Info on search suggestions here:
http://developer.android.com/guide/topics/search/adding-custom-suggestions.html
This works perfectly fine in 2.1-update1, but when I loaded it...
I ask if there is a simple way because there is a google issue report saying that using decodeByteArray isn't possible. But that report originated in 2008 and I was hoping there was a solution not posted on there. The method listed on the issue report was to decode the format yourself, but I'd prefer to not have to put that in and slow d...
In my android app, I wanted to start an activity 'B' from initial activity 'A'. I have created classes for both of these. However when using following code to start B, I get runtime error as application has stopped unexpectedly, try again.
Intent myIntent = new Intent(this, AddNewActivity.class);
startActivity(myIntent);
When I added...