0
votes
0answers
6 views

Android client-server app - readLine() does't work

I'm writing an a client(android)-server(java) app based on Socket. My problem is that I need to handle two types of message on server (MINDWAVE and SPHERO). The mindwave message is well processed by ...
-2
votes
0answers
12 views

AndEngine - Get rid of Sprite Artifacts

I'm Using AndEngine Gles2. I read about this "known issue" and selutions but they didn't work for me. The prooblem is that sometimes some of my sprite get a black border around them (the png files are ...
0
votes
1answer
27 views

App isn't designed for tablets

I just got this: Your Production APK needs to meet the following criteria: Your layout should make use of the available space on tablets In my Google Play Developer Console and I am wondering why is ...
0
votes
0answers
6 views

Bring custom soft keyboard to font of custom dialog

I'm trying to develop an Android app using in-app custom soft keyboard. So I followed this topic on xda-developers to make my own keyboard: [GUIDE] The right Soft Keyboard (+adding a CustomKeyboard) ...
-1
votes
0answers
14 views

Android: Close app from background when memory cleaner program are used

How can I force my app to close if a program like Clean Master is used by the user? I don't want to leave the app in background if that event happens.
0
votes
2answers
21 views

Nullpointer setadapter in spinner

this is my code where there is an error. i think that every its ok but i dont know where is the error this is my code: public class MainActivity extends Activity implements OnItemSelectedListener{ ...
0
votes
1answer
8 views

Sending Multiple Nested NameValue Arrays in Android MultipartMode POST

Question: How do you send embedded associative (name => value) sub-arrays on a multipart http POST, instead of just the ordinary single dimensional, top level name => value pairs? I searched far and ...
0
votes
2answers
18 views

How do I use custom Java Annotation Processor in Gradle?

I've been working on a simple java annotation processor that extends AbstractProcessor. I've been able to successfully test this using javac -Processor MyProcessor mySource.java The problem is ...
0
votes
1answer
16 views

Google Maps intent doesn't start

I have an activity which shows a list (dynamically getting items from a json document) of places. The list is correctly displayed but on tap, I want Google Maps app to open up and show the tapped ...
-1
votes
1answer
32 views

How to get call stack of my methods in Eclipse?

I used to code on C++ in Visual Studio. There I always have a great call stack, where I can get all variables values before any functions' calls and other much useful things. Now I program on java ...
0
votes
1answer
23 views

Multiple Timers in Android Application

I'm writing this post because I'm desperate and do not have any more ideas. I have a task to implement an Android application that has to display ten timers in one screen. These timers can be ...
0
votes
0answers
12 views

ACTION_UP before actually removing finger (occurs randomly)

Ok so my problem is that my touch events are (or seem) incredibly unreliable. I am getting ACTION_UP events even when I don't remove a finger. However, it seems like it doesn't always do it. It most ...
0
votes
0answers
11 views

cloud endpoints return error 401 unauthorized request

So i have made a few cloud endpoints to be used in an application and am going through the process of securing them in an android client. Everytime i try and consume data in the android client code, i ...
0
votes
1answer
10 views

MediaPlayer service, ViewPagerAdapter on Orientation Change

I’m trying to build a simple MusicPlayer and I am having trouble with orientation changes. I am using a service that handle the MediaPlayer so it plays in the background (even if the Activity is not ...
0
votes
1answer
7 views

Android: Mediaplayer stream from LAN

i have a classical server client tcp socket system to send messages from client to a server. That works quiet fine. Now I am trying to play a sound remote. The client should send the path to the ...
0
votes
1answer
11 views

Android.LibGDX. 3d Particle System not working (Billboard)

I'm using 3d particle System (Billboards ar particles) as desribed in LibGDX blog: https://github.com/libgdx/libgdx/wiki/3D-Particle-Effects It doesn't work. It doesn't crash. It just doesn't appear ...
0
votes
0answers
8 views

Reading Data from Bluetooth Data Transfer on Android

I am looking to get/read the Data I passed after I connected a couple of Android Devices, so far I pair, connect and transmit the information between them, but not sure how to implement the reading ...
0
votes
0answers
10 views

Android - Developing to work with PS3 Controller

I have recent purchases a Sony Z2 and relised it is in fact very easy to connect a PS3 controller to the phone. Therefore, I was wondering if there is an easy way to develp my app to be compatable ...
0
votes
1answer
26 views

How can I send android object using Bundle?

I know that there is a possibility to send object that implements Serializable or Parcelable via put/get-Serializable, put/get-Parcelable using Intents and Bundles accordingly. I need to send a ...
-1
votes
7answers
52 views

Different Random Numbers Without Duplicates

In this code a random number appears in a textview when the button is clicked. But sometimes 2 or more numbers of the same Kind appear. For example: 1,5,4,3,3,1,4,5,5,5,.... What do I Need to Change ...
-1
votes
3answers
15 views

How to make the keyboard ready in a EditText(Android Studio)

I have in my layout a EditText and I don't want the user to click on it of the keyboard to appear but to be ready, I think this is something you put in the layout file but I really don't what it is.
0
votes
1answer
21 views

A button link to an ImageView with zooming

I am trying to make a link button to an ImageView, it's working but without the zooming, before that, it used to work with zooming only if it was when you run it through your mobile when it's without ...
0
votes
0answers
18 views

How can I get my application to show up in the global-search?

I've been trying to write a simple app that allows me to search from the global-search but no matter what I do, I can't seem get my application to show up in the global-search? package ...
0
votes
0answers
13 views

TimePickerDialog not recognizing onTimeSet

I'm working on implementing a TimePickerDialog that displays on a button press. I've followed the Android documentation found at Android Dev Topic and i've placed the TimePicker class inside of the ...
-1
votes
0answers
12 views

Transferring image over TCP from python server to Android device

So i have a very simple python server that extracts an image from a robot then sends it as a string over TCP to another python client that receives it by calling socket.recv(921600). Server from ...
-1
votes
0answers
14 views

Gson can't parse JSON to Map

I use Gson to parse JSON into java class. Code: Errors errs = gson.fromJson(setsErrors.toString(), Errors.class); Logger.dd(errs.toString()); public class Errors { private Map<String, ...
0
votes
0answers
16 views

Android ViewBadger not showing

I am trying to use a badge in android by exploiting https://github.com/jgilfelt/android-viewbadger To this end I am inflating a TextView like TextView target = (TextView) ...
0
votes
2answers
14 views

Can't modify Navigation drawer using supportv7

I would implement the nav drawer with supportv7 library so i will use the app even with 2.3 Android.. I can't do it.. I follow some example but still have errors.. This is what i have written so far: ...
-1
votes
1answer
32 views

Create a Base Activity for all my other Activities

I want to create a BaseActivity for all my other Activities, in this Base Activity there should be a TextView and a Spinner, i am not sure how to achieve this exactly. my starting activity looks like ...
0
votes
1answer
25 views

How to get current url from webview?

I am developing an android application in which I am using Webview object. I am sending an url and couple parameters to Webview object. Please check below line. String url = "www.myurl.com"; ...
-1
votes
3answers
33 views

Android - how to switch activity on image click

Here I've got this code switchact.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent act2 = new ...
0
votes
2answers
20 views

How to get position imageView in ListView Android

I have a list with pictures for each item, when I click on an image I need the position of the list. how can I get this? I tried to do View.getTag().ToString() but by mistake. Here's the code: ...
-1
votes
2answers
18 views

How to get value of textviews on button click from a listview?

i have a listview with a custom adapter class . Each of the list items contain 2 text view and one Button . i want to get the data of those text views while i click on the Button inside the list . ...
-1
votes
2answers
31 views

Rounding to no decimal places (value is returned with 10 decimal places?)

So, I have this code implemented and working: try { float healthF = Float.parseFloat(getHealth); healthchest.setText(Float.toString((healthF * 100) * 0.30f)); } But the value ...
0
votes
1answer
11 views

How to use OpenGL ES extensions on Android

I am developing a OpenGL ES 3.0 application on Android, mainly in Java and I need to use floating point render textures. GLES30.glGetString(GLES30.GL_EXTENSIONS) returns a string containing ...
0
votes
1answer
18 views

Disable the facility of WebView in android?

In order to display Epub, I used WebView.There for , by this [WebView] I can select the Text by touching and holding and some facility appears like copy , find , share etc. After that, I used Swipe to ...
-3
votes
0answers
31 views

Xml File Convert To Java Code

its my android xml file. i must write programmatically with java. i want to design an UI without xml code. this xml file it work. but i convert to java code. please help ... ...
0
votes
2answers
27 views

Custom onClickListner in custom widget - how?

I have a custom widget thats extends Linear layout. It just block of text with litle. Here is xml of widget: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
0
votes
0answers
12 views

Android GridView. Avoid bounce/bumps while scrolling

I have a GridView in my project using the StaggeredGridView (https://github.com/etsy/AndroidStaggeredGrid). Every item is composed by a ImageView and a TextView and the height of the differents ...
-1
votes
0answers
16 views

Android - Restlet 2.2 server - Bind to the specific IP Address (Default Gateway)

I have this code to create Restlet server: private void createWebServer() { mWebServerComponent = new Component(); mWebServerComponent.getClients().add(Protocol.FILE); ...
1
vote
2answers
41 views

Using different fonts for different screen densities

I'm developing an Android app on my Nexus 5 device (~445 ppi) and I'm using Roboto Light as the font for a few sections in the application. When displayed in my device, the Roboto Light text looks ...
0
votes
1answer
33 views

Dynamic change text size for maintain 1 line?

I'm 17 and I'm italian. This is my first app. I've foolishly thought this code for maintain 1 line on my switch independently from the screen: Inside at OnCreate() while(SWITCH.getLineCount()>1) ...
0
votes
0answers
7 views

How to send and receive data from Android to BLE(cc2541)?

I am developing an android app that one of the requirements is to sending a lot of data in encrypted way to c2541(ble module) and also receive as much as of data from cc2541 side.so i dont want to ...
0
votes
2answers
19 views

Android - programmatically change the state of a switch without triggering OnCheckChanged listener

I'm looking for a method of programmatically changing the state of an Android Switch widget using switch.setChecked(true); without triggering OnCheckedChangedlistener. My first thought was to swap it ...
0
votes
1answer
43 views

Getting NullPointerException when passing the current activity to a class

I'm creating an object called gm and setting a property called a in a class to the activity. //This is in the Activity GameConfiguration gm = new GameConfiguration(); gm.setA(this); And then in ...
-1
votes
0answers
25 views

onCreate() close duplicated activity : android?

I am implementing a Splash screen for my app. here I used SplashScreen.java to make splash screen. the splash is working fine, but getting a force close message after splash screen. I believe that the ...
0
votes
0answers
9 views

Error : While automating mobile Application using Selendroid Exception

At command prompt I Entered this command : java -jar selendroid-standalone-0.11.0-with-dependencies.jar - aut selendroid-test-app-0.11.0.apk Following Error occured : Error occurred while ...
1
vote
1answer
54 views

java.lang.NullPointerException while using jar file of a java project in android

I need to port a Java project onto an Android smart phone and display the results in an Android application. I am using eclipse with android plugin (Android SDK 20). Process: Exported the jar file ...
-8
votes
3answers
59 views

Developing a backend for mobile app [on hold]

I'm working on mobile application for iOS and Android. Something like todo list. I would like to add backend to be able sync data between different devices with login. Not very difficult. What ...
0
votes
0answers
14 views

Opengl-es 2.0 and multithreading

Recently I've come up with an idea to load all the data, textures and shaders in a separate thread in android. There's unfortunately really little information about multithreading connected with ...