I want to know if its possible/legal(not against terms of service) to use the google checkout api for an android app to support in app purchases. The types of items being purchased would be something like extra coins where they can be purchased multiple times.
I know that this would require getting the user's credentials or pointing the...
Hello all,
I'm trying to create an application for Android that uses encryption to save user information and I cannot figure out what I'm doing wrong. I'm trying to create an instance of the SecretKeyFactory using the "PBKDF2WithHmacSHA1" algorithm, but the application keeps on throwing exceptions at that point in the program (it doesn...
Hello all,
I'm trying to create an application for Android that uses encryption to save user information and I cannot figure out what I'm doing wrong. I'm trying to create an instance of an AES cipher but the application keeps on throwing "InvalidKeyExceptions." Consider the following code:
public static final byte[] IV = new byte[]
{...
I'm trying to port a CLI app to Android. This app depends on several dynlibs which we already ported, but haven't tested yet. We built an .apk that provides an simple app, the libs and the executable. The app opens the .apk, extracts the libs and the executable and that's it. We took all this ideas from the Mono port to Android[3]. We al...
I have a basic calculator app I'm making. Two activities, the main one and ResultView.
I've made it where I click a button on activity A to go to activity B. The log says activity B is started and "displayed" successfully, the title for the new activity loads, but the body does NOT show. I added a simple Text view with static text.. see...
Say I have a TextView of a particular size (doesn't really matter what... fill_parent, 20dip, whatever). Is it possible to tell the text to shrink/grow in size to fit the available space without doing a lot of math?
...
How is state kept when accessing methods through JNI? In the example below my Java code is calling the native method drawFromJni, will my native class _nc be persisted between calls?
If there were better native debugging tools for the NDK this would be pretty easy to find out, but I'm really having problems with the NDK and C++.
exter...
Hello everyone. I'm trying to find a website or a list of websites that I can reference when trying to integrate some of the built-in Android resources into my applications and I'm wondering what everyone else uses.
For instance, I want to find a site that lists all the different animations in "android.R.aim" and shows what each animati...
Hello, I'm having trouble creating a simple rounded rectangle using XML. Every time I try to add the "corners" element to the custom shape I get:
java.lang.UnsupportedOperationException
at
android.graphics.Path.addRoundRect(Path.java:514)
at
android.graphics.drawable.GradientDrawable.draw(GradientDrawable.java:314)
at...
I am currently trying to use a ListView inside of a ScrollView. I know from what I've read that this is looked down upon, but I'm trying to get the ListView to expand completely by showing all of its rows so there is no need for it to scroll. I've been struggling, however, with how to tell the ListView to completely expand to show all ...
I would like to have the color of the progress bar (specifically the secondary progress that is updated with setSecondaryProgress) to change dynamically at runtime when it crosses a certain point.
I am already able to substitute my own drawable into the bar during my Activity's onCreate function (changing color from yellow to green) by ...
Hello all,
I have written a simple app which has an 'About' screen (activity) that is shown when the user selects the 'About' item in the Options Menu from the main activity. The 'About' screen has a button named 'Close' on it.
The behaviour I want is that when the user clicks the 'Close' button, she/he should be taken to the previous...
Short version: What is the best way to get data encoded in an MP3 (and ideally in an
AAC/Ogg/WMA) into a Java array or ByteBuffer that I can then
manipulate?
I'm putting together a program that has slowing down and speeding up
sound files as one of its features. This works fine for WAV files,
which are a header plus the exact binary da...
Hi,
I am trying to implement a shoutcast client on android, but simply parsing a .pls and supplying the stream link to the android mediaplayer does not work. Can anyone please suggest a way I can go about this?
If I have to implement something like a proxy server and buffer the stream data manually, can someone please describe what need...
Hello, I need help coming up with a way of executing the following sequence using some type of view or layout combination in Android:
I have 3 image objects... say object A, B, and C...
[all objects invisible and layered, one on top of the other... A/B/C, like in a RelativeLayout]-->[fade in object A]-->[display A for 200ms]-->[simulta...
Hello,
I'm trying to extend a RelativeLayout object and include an embedded SurfaceView object that uses a png file in my /res/drawable folder as its background but I keep getting an error in the XML Layout editor. See the following code:
public class StopMotionRelativeLayout extends RelativeLayout
{
private Context myContext;
...
Hi
I have a View implementation whose parent layout is a ScrollView. I would like to be called back when the IME is shown/hidden so that I can resize the View accordingly. I understand that onSizeChanged() should be called each time the IME is shown or hidden, but in my code this is not happening.
I've written a test application in o...
Does the Android SDK have the ability to to trap a Dropped Call event? If so, what is it called? I've been prowling the documentation looking for it.
Is there a difference between a hang up, and a dropped call?
...
I'm having some trouble achieving adequate real-time performance from my application and am wondering if I've architected it suboptimally. The requirement is for the application to play a sound and draw a line on a Canvas at a user specified time interval.
I have a Thread that sleeps for the user-specified time interval, wakes up and u...
Is it possible to update the launcher icon dynamically?
Currently it seems that it can only be set statically at build time using the android:icon attribute in the AndroidManifest.xml file. For example, to display a unique icon based on the device's location?
Is this something that can be achieved using aliases? If so, can an alias's ...