0
votes
0answers
18 views

List<List<String>> return from AsyncTask with callback implementation, UI freezing after completion and only last result in ArrayList

I am trying to return a List> from an AsyncTask that queries data to fill it from the internet. My UI passes the search parameters, the AsyncTask performs the search and returns a list of values. I ...
1
vote
0answers
9 views

Converting 4-Bit grayscale byte array to Bitmap Android

I am retrieving a raw image from a camera and the specs of the image are as follows: 80 x 60 resolution 4-bit grayscale I retrieve the image as a byte array and have an array that is 2400 (1/2 * ...
0
votes
1answer
7 views

Seeking Simple JSOUP example with AsyncTask Implemented

I'm attempting to find a simple example of JSOUP with AsyncTask implemented. I'm attempting to query a url for results (http://www.sheriff.org/apps/arrest/results.cfm?lname=&fname=) but I have yet ...
1
vote
0answers
23 views

Can't use Spinner in android app

I have a spinner in my android app and I can get it to show but the sec. I click it, the app crashes and throws : Unable to add Window -- token android.view.ViewRootImpl$Wfb@ is not valid: is your ...
0
votes
1answer
13 views

Force Close when following ASyncTask Tutorial

I'm getting a force close error when attempting to follow this tutorial: http://www.bango29.com/go/blog/2011/android-asynctask-is-a-beauty-part-2 Any suggestions? I'm really not sure where I went ...
0
votes
0answers
11 views

UI doesnt render when i use Navigation Drawer in my android app

i want to use Navigation Drawer in my app. according google documentation here, i write my UI code like this: <android.support.v4.widget.DrawerLayout ...
1
vote
1answer
37 views

Translating a cpp code with vector<string> toward Android

I wrote a C++ code that compiles in a standard environment. But when I try to translate it towards android shared library, with Swig utility, though I get the source_wrapp.cpp generated, the Android ...
0
votes
2answers
26 views

How to set JAVA_HOME for Android SDK?

I get the following error when I try to build my Android App : Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files (x86)\Java\jre7" The problem is that the system ...
0
votes
1answer
19 views

SharedPreferencs crashes program

I'm making this program that requires a username to run. In the settings, the intent worked fine until I added the Shared Preferences code. I might have added it in the wrong place. Otherwise the ...
3
votes
8answers
112 views

Java - explanation for using “ | ”?

I am new to android and learning java. In recent guide, i came across the method to toggle password field to normal text field. Can someone please explain use of | in this statement ? final ...
0
votes
3answers
10 views

The method findViewById(int) is undefined for the type using AsyncTask for Jsoup Parser

I'm attempting to query a url using jsoup and I'm getting the following error: The method findViewById(int) is undefined for the type Any suggestions? (I'm really not sure what I'm doing wrong at ...
-2
votes
1answer
25 views

ANDROID: Force Close - java.lang.ClassCastException: com.example.httpgetandroidexample.HttpGetAndroidExample cannot be cast to android.app

I'm getting the following force close error: java.lang.ClassCastException: com.example.httpgetandroidexample.HttpGetAndroidExample cannot be cast to android.app When attempting to execute the ...
4
votes
1answer
46 views

Encryption conundrum

I'm in the process of building an app that will send and receive data from a server. Simple enough. In the event of severed connectivity, I have also begun to program the functionality of storing ...
0
votes
0answers
10 views

Android How to refresh LazyAdapter after deleting item

I have a custom LazyAdapter and i'm trying to refresh the the list after delete a row. i've tried everything but nothing work. only to re enter the activity does the job. ...
0
votes
0answers
11 views

BitmapFactory.decodeStream() returns null

I try to pick photo from gallery and to put it into ImageView. i have very simple piece of code: Uri selectedImage = imageReturnedIntent.getData(); BitmapFactory.Options o = new ...
2
votes
2answers
19 views

Android - define groups in R.id

Is there any possibility to group the R.id? android:id="@+id/button1" R.id.button1 I want something like this: android:id="@+id/main/button1" R.id.main.button1 But that does not work.
0
votes
0answers
5 views

Google Calendar API not found - Calendar classes missing

I am trying to make an application that uses Google's API for their calendar service. I am referencing this guide and am now stuck on a step. Specifically, this step. It tells me to import these ...
0
votes
0answers
5 views

Call through SIP using wifi

Actually i am doing call using sip through wifi. bt in this program the problem is that I when i select sip account of the person whom i want to call but when i select the number and press ok then on ...
1
vote
1answer
14 views

Object reference valid for a specified time

Is there some class in Java/Android to hold a object's reference for a specified time (1 minute for example) avoiding the garbage collector to pick the object for that time and allowing it after? I ...
-1
votes
1answer
28 views

TextView over ImageView [on hold]

I want to Drag a TextView on ImageView. My Requirement is to drag a text on Image. Whenever I move Image then Text is Also Move with Image. Text are written in Image Area. I've got custom view which ...
0
votes
1answer
12 views

Implementation of BitmapFactory.Options for Android

I have 60 images that I use for my app. Each image is only (approx) 25KB in size. I use single letter naming convention for upper case, and double letters for lower case. a.png aa.png In my ...
0
votes
0answers
6 views

Intent-filter Browsable for and android Application, not Activity?

In iOS, there is a way to register custom scheme, and it is possible to open a whole app, like new instance or one with some app state (running) and it is not just a single ViewController. For ...
0
votes
1answer
39 views

prevoius result is concatinating with present first value in calculator in android

I am a beginner in android. I start my first app with calculator. I am able to do sum,subtract,multiplication and division and I have C button which clear the EditText and ready to accept new values. ...
0
votes
0answers
10 views

Android: how to create CanvasSubclass From Canvas

don't ask me "why do you use CanvasWithPaint", i want to know "how to initialize my SubClass From ParentType parameter" thanks for your help public class CanvasWithPaint extends Canvas { public ...
-2
votes
1answer
22 views

Need Help Querying URL via Android / Java - Unwanted HTML is Returned Instead

I'm attempting to query the following URL: http://www.sheriff.org/apps/arrest/results.cfm?lname=smith&fname= With the following method shown below however the results are returning a HTML ...
12
votes
2answers
73 views

Do inherited methods count against the Dex method limit in Android?

Dalvik has this well-known limitation on the number of methods it can have in a single .dex file (about 65,536 of them). My question is whether inherited (but not overridden) methods count against ...
-4
votes
0answers
27 views

How to exec an existing project (eclipse) [on hold]

After import project2 to project1 I want to exec project2 when a button is clicked, anyone knows how to do it?
0
votes
0answers
9 views

SMS / JavaScript Loop - Android

I had an issue when I tried to send SMS' programatically, but only a handful actually got sent, so I tried to change tactic, so javascript loops through each number, and does a certain amount of ...
0
votes
2answers
16 views

Android: Making the width and the height of a custom view equal

I am using a custom view (CoordinateGridView) in XML like this: <com.android.catvehicle.CoordinateGridView android:id="@+id/coordinateGrid" android:layout_width="fill_parent" ...
4
votes
4answers
64 views

Portable way to have really short date format

Currently, I'm having private ThreadLocal<DateFormat> shortDateFormat = new ThreadLocal<DateFormat>() { @Override protected DateFormat initialValue() { final DateFormat ...
0
votes
1answer
20 views

findViewById dynamic cast in func?

I would like to make a function that automaticly cast my findViewById-View-from reference. Can i achive this somehow? private View getReferenceForView(View view, int resId) { view = ...
0
votes
0answers
18 views

Resizing Bitmap, then converting from OutputStream to InputStream results in 'OutOfMemoryError'

I have been trying to resize a local image/picture on the Galaxy S3 and upload that image to a server. The procedure I am doing is as follows: Create a sized Bitmap from an InputStream Compress the ...
0
votes
0answers
7 views

X509TrustManager - checkServerTrusted not called - is trusted server cert cached or is there a way to get certificate chain?

In my Android project, I'm using a library (internal to my company) which has a custom HTTP Client with a custom X509TrustManager. We need to allow a user to choose whether they wish to trust or ...
2
votes
2answers
31 views

How can I store a data structure such as a Hashmap internally in Android?

In my Android application I'm trying to store a Map structure such as:Map<String, Map<String, String>>using internal storage. I've looked into using SharedPreferences, but as you know, ...
0
votes
2answers
32 views

Measuring packet loss with Java

I'm developing an app that analyses the quality of your internet connection, and part of that is measuring packet loss. I was thinking of sending packages to an IP address, but how can I send ...
0
votes
0answers
11 views

Problems understanding NsdChat sample app

I'm not sure I understand how this android sample works (NsdChat found in developer.android Tutorials). My first idea was to run 2 istances of the App (with 2 instances of Eclipse on the same ...
0
votes
1answer
26 views

Web server not working in android

I am trying to create a simple multi threaded server in android the code which i am using do not give me any error but warnings please have a look at my code and tell the mistakes which i have the ...
0
votes
1answer
20 views

Issue with BufferedOutputStream getting java.net.SocketTimeoutException: Read timed out

public boolean downloadFileAddPassword(String data, String password) { try { URL url = null; if (!AppInstance.getInstance().isTrial) url = new ...
0
votes
1answer
7 views

ViewFlipper: flipping at random time intervals using random children

I want to create a menu which "flips" at random time intervals between 5 children of a viewflipper in random order. I tried the following code and I can get the System.out.println to display my ...
0
votes
1answer
28 views

How to store multiple byte arrays

I am working on a camera app, I take my picture and the data is gathered as a byte[]...I don't want to store the images on the phones memory, what I want to be able to do is store the byte array for ...
0
votes
1answer
20 views

How to create Contour background in android

I'm drawing rectangle and filling it with solid color. i would like also to add contour to the label background. I want to create something line in outlook when you have a meeting that you didn't ...
0
votes
1answer
23 views

json parser using threads, wont go into the run method android

i am new to programming and I am making a json parser, but my thread method is not accessible, how do I go about doing this. When I debug, it goes into my getjson method but then skips the run method. ...
0
votes
1answer
28 views

TextView not centering for large sets of text

I have a problem with TextViews. I use the code below to center text both horizontally and vertically. But if I put too much text in, is no longer stays centered. How can I work around this? ...
0
votes
2answers
37 views

My app crashes when i press the start button

07-18 16:38:30.393: D/dalvikvm(24807): Late-enabling CheckJNI 07-18 16:38:30.503: E/Trace(24807): error opening trace file: No such file or directory (2) 07-18 16:38:30.698: D/dalvikvm(24807): ...
0
votes
1answer
17 views

Android MediaPlayer Error (-38, 0) “stop called in state 0”

I have looked at various different websites looking for a solution for this problem in my code. It is a basic audio player with 3 buttons: play, pause and stop. Play and pause work ok and so does stop ...
1
vote
1answer
31 views

java.net.SocketTimeoutException: Read timed out issue

07-18 18:57:24.687: W/System.err(7031): java.net.SocketTimeoutException: Read timed out 07-18 18:57:24.773: W/System.err(7031): at ...
1
vote
0answers
25 views

android studio java.lang.NoClassDefFoundError:

I've made pretty much a fresh project. I added in the gson library by google to my projects /libs directory and added it as a library. I also added it into my build.gradle as compile ...
1
vote
1answer
24 views

BufferedWriter.newLine() is not working in Android

I dont know why it is happening. BufferedWriter writer = new BufferedWriter(new FileWriter("mnt/sdcard/Menu.ini")); for (int i = 0; i < AppItem.length; i++) { writer.write(AppItem[i]); ...
0
votes
3answers
31 views

How do I import project by creating another project and then pasting it over it?

So I'm having some problems with importing an existing project, everytime I import it and try to run it, the app crashes. I already did my research and people say that it usually helps to create a new ...
0
votes
0answers
11 views

Dynamically Sized Horizontal Scroll View in Android

I have been looking at the tutorial here for how to get started with horizontalscrollviews so have created a mock program to practice UI elements. I am trying to learn how to populate a horizontal ...

1 2 3 4 5 1011
15 30 50 per page