I have a button that says "Sort" and when a user normal/short presses the button, I want a menu to appear with the various sort options. Looking around online there doesn't seem to be a straight forward answer to which route is considered best practice. I'm looking to have a menu that looks similar to this: http://farm3.static.flickr.c...
Hi,
I have am developing an android app for V2.2 onwards.
The app is for numeric data input for the elderly
To keep things nice and simple, I am using the phone style input method. This also has the advantage of using nice big keys for them.
In landscape mode, I would like to move the virtual keyboard and position it on the right h...
Here is what I want to develop
Let's say there is an application called 'A'.
When 'A' is running, 'A' checks if it is available on the Market.
If it is in the Market, 'A' launches Market and is redirected to the market detail page.
If it is not in the market, 'A' keeps running without launching the Market
I know an application can laun...
Google is suggesting that developers might want to obfuscate byte code:
http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html
I followed Google's instructions to get an obfuscated Android app that, at first glance, seemed to work. But there were some strange bugs introduced that are not in the un-obf...
I have a query in my android app that pulls all image paths from a custom table and displays them to a gallery. The problem is with my database I cant seem to get a row of the database to a String[]. I can easily get the results to a listArray but I need the image path in a string or string array. I want to be able to click on an image...
Hello everyone, could you please have a look at this
if(current.getTimeInMillis() < cal.getTimeInMillis()){
//current.add(Calendar.MINUTE, 15);
alarms.setRepeating(AlarmManager.RTC_WAKEUP, current.getTimeInMillis(), AlarmManager.INTERVAL_FIFTEEN_MINUTES, alarmIntent);
Toast.makeText(this, "Alarm will go of 15mins from ...
If I call a requestLayout() on a View, shouldn't it call invalidate() on the same View, forcing the view to be drawn after the layout recalculations are done?
...
My Android app is experiencing this crash randomly during operation, and I think it is due to a pending MotionEvent that is dispatched to a null object, but not sure.
here is the crash output:
java.lang.NullPointerException
at android.webkit.BrowserFrame.getRequestInterceptor(BrowserFrame.java:1108)
at android.webkit.FrameLoader.handle...
Can someone please tell me where I'm going wrong with this piece of code? Basically I want the app to download a .png file, display it to the user and also save it to the sd card for future reference. It seems to be all going fine until the while ((len = webstream.read(buffer)) > 0) part; as the debugger doesn't reach the breakpoint I've...
I want to be able to have two projects, one that contains production code and one that contains test code.
This shouldn't necessarily be an Android-specific question, but I'm want to write some unit tests for some non-platform-specific Android code on the host PC.
I created a new Java project so I can run the unit tests on the PC a...
when the orientation changes, the seekbar drawing is messed up. See voice call and alarm below:
...
Hi. I'm developing an Android application, but I want to restrict my application to only be accessible by hardware that is not running a rooted/custom ROM. I know about Android's Forward Locking content protection, but would like to double check this protection from within my app. Is there any way to get the signature of the device along...
I have a GLSurfaceView with a drawable as background, however only the background is visible when rendered without surfaceView.setZOrderOnTop(true)
I need to avoid using setZOrderOnTop(true) because there are static TextView's being used on top of the GLSurfaceView.
Any suggestions for getting this to work?
...
I created an NTLM authenticating SOAP client based on KSOAP-Android and JCIFS. The implementation looks something like this:
public class NtlmServiceConnection implements ServiceConnection
{
public NtlmServiceConnection(final SoapConnectionInfo connectionInfo, String path)
{
httpclient = new DefaultHttpClient();
...
I'm working on an Android class that extends MapActivity. I have set the OnTouchListener and everything works okay for the first MotionEvent. After the first MotionEvent, the system stops either generating MotionEvents or receiving them or both. Does anybody know what I have to do to keep receiving MotionEvents? Thanks.
@Override public...
I am writing a teleprompter app for the Android and i am trying to get the script to automatically scroll at a definable rate. I have attempted to do so by extending Scrollview and writing a new SmoothScrollBy function. Here is my code.
Custom ScrollView:
import android.content.Context;
import android.util.AttributeSet;
import android....
1 Do you use appcelerator?
2 Would you recommend it? Has it lead you to a dead end, and you thought to yourself why did I ever use appcelerator now im stuck!?
3 Where do you get started? cant seem to find many tutorial sites online?
...
I've seemingly tried every setting in various articles on the internet including excluding all of my classes through -keep public class.
What settings should be used to not force close? At this point if I could get obfuscation with nothing else would be fine.
Below are sample configurations I've tried and my app still force closes. A...
I'm working on displaying a set of images, then if the users wishes, to have the ability to save the image to the SD card. I need help saving them to external storage. Can someone help me out with this?
Grid View:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Gri...
Hello.
I want combine two audio files. (A audio file + B audio file = AB audio file)
So, my search result is:
1. useing an AudioTrack.
2. decode PCM from audio file.
3. combine PCM.
This is currect?
It there another way?
Or, example and Lib?
...