0
votes
0answers
7 views

Can't pass int value between two activities

I tried to pass values from my main activity to my finish activity but I always got error in my finish activity. I don't know what's wrong with my code. Here's my code from my Level1 class: Note: ...
0
votes
0answers
13 views

Reading lots of data returned by API

I am reading from an API provided by a company, but the problem is that one of the accounts from which I am getting the data has around 22000 json objects, it reads fine with small amounts of data, i ...
0
votes
0answers
28 views

Can't send a variable to javascript from java

I'm fetching a url and trying to send it's text content to a javascript function inside a webview. I do this from the java code: HttpClient client = new DefaultHttpClient(); HttpGet request = new ...
0
votes
1answer
11 views

App crash when receiving data size 30 MB is loaded about 50% from bluetooth

i am new Android DEV and my app developing is about send data that format to byte array via bluetooth and i have use bluetooth library here.it easy to use and lite weigth. ,app is running fine when ...
0
votes
1answer
31 views

How to count the word in a speech?

I want to count the number of the words in a speech when user say from "Speech to Text" app. So how can i do it?
1
vote
1answer
37 views

what is a good way to stop a thread in android

I am trying to pass-through the input obtained from the microphone to the speaker (the goal is to be able to perform audio processing in real time in the future). This is the code: public class ...
-1
votes
1answer
27 views

Could one write an Android app in pure Go using no Java or XML? [on hold]

Could you write an android app in 100% Go or would you have to use some Java and XML too?
0
votes
1answer
19 views

can't getPreferences but it keeps changes (can see in manu layout)

I've made a special preferences layout. <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" > <CheckBoxPreference ...
0
votes
1answer
13 views

setBackground and getBackground method for Build.version < 16

I have a problem with getBackground() and setBackground() method. I have designed an application, but now I found out that I didn't check which version is user android system (I am beginner to android ...
0
votes
0answers
18 views

How to use the AppBaseTheme

My values-v14 style has the following XML: <!-- Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and ...
0
votes
1answer
31 views

Switch statement in non-anonymous private OnClickListener class not working?

I've tried quite a few different tactics to achieve my desired result, but nothing is making these buttons do what they're 'sposed to... Basically I have 14 buttons. Four with the text "X", ...
-7
votes
0answers
46 views

Java or Android - List<> what does that mean? [duplicate]

I have something like this in a code (in android): private List<ThisIsAClass> object; ThisIsAClass is a different class I have in my project. And in another part of the code we initialize ...
0
votes
1answer
29 views

Know when phone enters building on android device

I was wondering if there is a way for me to detect if the users device is being "obstructed" by a building or roof of some sort. Im developing a very precise location based app and its KEY that my ...
0
votes
0answers
7 views

Cocos2dx / Android : 'FATAL EXCEPTION: GLThread' with no apparent reason

I have got an Android Cocos2dx app. I call from the C++ code some Java code relative to inapp-purchase (it could be any code) using JNI. The method I call using JNI is the following : public void ...
0
votes
0answers
18 views

Strange error since upgrading to Android 4.2.2 - Activity has leaked IntentReceiver

I upgraded my Samsung Galaxy Tab 2 to Android 4.2.2 last night, and have since spotted some strange errors in LogCat which didn't appear before I 'upgraded'. I was hoping that it was highlighting a ...
0
votes
3answers
48 views

findViewById must be void but can't make it void

I am trying to use findViewById in my code, but it must be void, what is wrong? I don't want to have the Method clickbutton but if I take it out, it says it must be void. Is there any way I can do ...
0
votes
0answers
20 views

how to increase listview height as the user is scrolling down

I'm trying to make a list view witch will grow to be fuLLscreen (height) as the user is scrolling down, if the user scrolled lets say 30dp, the whole list's height will be increased by 30 dp, how ...
0
votes
1answer
11 views

Android setPrompt custom font

I have got a spinner set up and I have the spinnerMode set to dialog. I am using custom font everywhere in my program, and I want to know how to set the prompt of the spinner to use my custom font. I ...
-4
votes
2answers
38 views

Array initialization in Android OS [on hold]

I was in the first phone development class using dhtml way back when offered by nextel. I am not up to date on what is going on now or since then. I am creating a simple text file driven quiz program ...
0
votes
1answer
25 views

&& Syntax Error AGP for Dummies

So, I am currently learning off of the Android Game Programming For Dummies book, and have run into the problem where (On page 128) I'm given the code case MotionEvent.ACTION_DOWN: if (X > ...
1
vote
3answers
35 views

java.net.URLEncoder.encode encodes space as + but I need %20

As the title says: which encoder would give me space as %20 as opposed to +? I need it for android. java.net.URLEncoder.encode gives +
0
votes
1answer
24 views

How can I associate a value with each checkbox in a ListView?

I have created a custom ListView using a custom adapter. I have an xml file that defines each row, and each row has a checkbox defined in this xml file. My app is a judging app where each item on ...
0
votes
1answer
32 views

how to decrypt a large file in java / android

main i am looking for a way to encrypt a file and then decrypt it on an android device. currently my best solution was: encrypt file with openssl then decrypt it in java using the method shown here. ...
0
votes
3answers
25 views

How to parse this JSON in android (returned from .NET webservice)

I have ASP.NET webservice which return Person object in JSON format. Please see following Webservice code: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public Person person() { ...
0
votes
0answers
15 views

Android/Qt Access Databases

I need to access the file, /data/data/com.google.android.music/databases/music.db It's currently denied. I'm using Qt to target the Android platform. I think it's easier to just use Qt's methods to ...
0
votes
1answer
29 views

how to get a region out of an image?

Lets say I use a black key jpg image as my layout in Java Code. Is there an easy way to get the region out of an image so I can use region.Contains() for my onTouchListener? I've looked for them and ...
0
votes
1answer
24 views

is it posible backup and RESTORE a database file in android? non root devices

in my app I need get a backup of my database, but after I'll need restore it again, i have read somethings, but i do not sure if this is necesary to have a rooted device, i need backup/restore the ...
0
votes
1answer
22 views

android- setAdapter on AlertDialog not working

I am making a list of the user's tumblr blogs in a pop-box. All of this happens within a Handler. Here is the code: private class PicHandler extends Handler{ Context c; String name; ...
-1
votes
4answers
51 views

java - access incremented static variable from another class

I have a static variable and updating it's value in class. But when i access this variable from another class , it shows unupdated value. CLASS A public static int postID = 1; public static ...
0
votes
0answers
18 views

Android audio recording using Android API Guide

I'm learning how to record audio using http://developer.android.com/guide/topics/media/audio-capture.html#example Everything works fine, but I want to switch: mFileName = ...

1 2 3 4 5 1755
15 30 50 per page