0
votes
0answers
10 views
Get complete path from URI - Nexus specific
We have a code running to convert the local URI path to a complete path. But the code doesn't seem to work on nexus series (android 4.1+ jelly bean).
Code
String[] proj = { ...
0
votes
0answers
7 views
Java Android WebView - how to launch javascript function from a separate .js file?
I don't know html and javascript and need to start some certain function from javascript.
I've found that you can start some javascript function simply by myWebView.loadUrl("javascript:function()"); ...
-2
votes
0answers
24 views
Sending email from android app without using built-in android app
I am making a reminder application on android that sends an auto generated email to the user when the alarm goes off. It is absolutely essential that the email has to be autogenerated - at no cost ...
-2
votes
0answers
10 views
add new field to OrmLiteSqliteOpenHelper database and managing migration
I'm developing an android application which has a OrmLiteSqliteOpenHelper database. The application has several sql files which manage database upgrade and downgrade. all works fine.
My problem is ...
0
votes
0answers
11 views
Test multiple android applications with same integration tests?
I think this is a long shot, but...
We have such project structure:
common-library
- denmark
- application
- france
- application
- application-xxxxxx
- ...
1
vote
0answers
8 views
How does offScreenPageLimit work for viewpager
After you go out of the offScreenPageLimit, what does the system call to get a new view or page back?
0
votes
1answer
12 views
Libgdx - Serialization Platform Issue
so lately I have been struggling with Libgdx's serialization tools. I have currently trying to write both my player class and my GameEntry class onto a file that I can access later when the user ...
1
vote
4answers
72 views
Why is my method returning in the middle?
The following method is only executing half-way:
public void onLocationChanged(Location newLocation) {
double lat = newLocation.getLatitude();
double lon = newLocation.getLongitude();
...
0
votes
0answers
11 views
Can I filter application by available codecs?
My application is basically just a videoview that users can interact with. I have it working great on most devices, but some devices apparently don't ship with any hardware/software decoders for ...
2
votes
3answers
49 views
a href link with java
my app retrieves data from a server online. If I insert the server like Hello in the app if you tap above do not lead anywhere. Why? This is the source
MyText = (TextView) ...
1
vote
0answers
14 views
parse iTunes RSS Atom feed with Android using XMLPullParser
Link to the iTunes chart:
The song title,the link to the album image and the song's web link, should show in list view.
static final String KEY_ENTRY = "entry";
static final String KEY_TITLE = ...
2
votes
1answer
24 views
How to display parameter in a single item's detail and not in a single listview item
i'm trying to solve something that i'm not sure about. I wants to show a parameter call "decription" in the single item's detail when the single listview item is selected but the "decription" should ...
3
votes
0answers
32 views
Viewpager but not responding to clicklistener/
I have a bug which I kind of know what is going on but not sure hoo to solve it.
I have a viewpager where each individual fragment also contains two more fragment -- a front side and a back side. ...
2
votes
0answers
23 views
Bluetooth low energy APIs in java
I am working with Bluetooth Low energy . Is there any APIs or open source SDK for BLE in java ? My goal is to run my pc as a BLE peripheral . And what I have tried is , just searched for the APIs ...
2
votes
0answers
22 views
Android - Customizing DiaglogFragment Window
I want to resize the width and height of my DiaglogFragment window but the code below does not give the resized version of my dialog window but instead the main activity view has been modified. I also ...
1
vote
0answers
36 views
Android - Fatal Exception Main Error
I had been tasked to modify a aplication. I confuse error in main.
Where is error of main ?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
0
votes
4answers
43 views
Read and split text file into an array - Android
I have gone through loads of these questions but still cant seem to figure it out. I have a text file split into rows. Each row consists of 5 pieces of data separated by a ",". I am trying to read ...
1
vote
0answers
13 views
HoloColorsGenerator and ActionBarSherlock crashing
Here is what I did:
Create new Android project
Added ActionBarSherlock
Added Action Bar Color generator files
TESTED APPLICATION - Running on 2.x and 4.x with my action bar colors
Create files ...
0
votes
2answers
25 views
Runs in Virtual Divice manager but force closes on phone
package com.example.arduino;
import java.io.IOException;
import java.io.OutputStream;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
...
0
votes
1answer
10 views
Android - DialogFragment not Showing
I wanted to display a dialog by the time I press back button but the code below does not execute and display the FragmentDialog. Thanks in advance.
//BackPress
public void onBackPressed() {
...
2
votes
1answer
52 views
How to read special characters in java
I have this text on a text file which is encoded in UTF-8 o|▰╹ェ╹|ツ end (◕□◕✿) end ┐(❛△❛;) when i try to read this in java the output is always like this ?o|??ェ?|ツ end (?□??) end ┐(?△?;) i even try to ...
3
votes
2answers
22 views
Methods for giving best estimate of Location from three Android location providers
After reading this older post, Good way of getting the user's location in Android , I wondered if anyone has any theories on how to solve this problem for finding the best estimate of location. ...
-2
votes
4answers
46 views
Comparing Two strings in Java (If/Else statement) — Android App
I am working on a login page in an Android App.
As you know, the app must check if the username and password are valid, and then grant the user access to the application.
I have used the following ...
0
votes
1answer
12 views
why Android fetch declared fields of a class disordeded?
Suppose we have this class
Animal.java
public class Animal {
private String name;
private String owner;
private String breed;
}
MainActivity.java
public class MainActivity extends ...
-1
votes
0answers
18 views
How to keep ordering in php JSON and read them in order in java?
In my android app, I create a JSON string in php and send it back to my android app. The problem is the string would be like for example:
[{"loc1":"abc..."}, {"loc2":"abc..."}, {"loc3":"abc..."}, ...
0
votes
2answers
49 views
How to get resource id from String
I have a database column with list of image names. I want to put the in imageview using setImageResource. In my other application I managed to that like this, but in this application the imageview is ...
0
votes
1answer
25 views
Android - how to programmatically add and populate spinners?
I have been looking for quite some time on the web for the most efficient and clean way of programmatically adding elements to views in general in Android but I've never quite found a way for what I ...
1
vote
1answer
36 views
Cannot save value in SharedPreferences
I am encountering a problem in my Android application where my app crashes when I try to save a value. I am making an online currency converter. Here is my part of my code:
View.OnClickListener ...
0
votes
1answer
13 views
Android itext pdf library OutOfMemoryError
I am using itext library in order to create a pdf of images and text. The following code works fine on 3 out of 4 devices but on the 4th device I get OutOfMemoryException. The code is being run inside ...
2
votes
3answers
47 views
problems with R - ANDROID
when i create a layout called " main.xml ":
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
0answers
16 views
Java based code that replicates Netstream and netconnection
Is there a java api that allows you to use Netstream and netconnection functions from adobe? I'm working on my android app and I am trying to add a video chat feature on the app. Since the rest of the ...
0
votes
0answers
20 views
Concurrent execution of TimerTask or Runnable, etc
I have a Timertask that is designed to gather metrics at a specific interval. However it is possible that the period of the task execution is less than the time of task execution (occasionally if ...
0
votes
2answers
35 views
HTTP Post not working JAVA
The Problem
Whenever I click the login button on my mobile app, the app just force closes. There are a ton of errors that fill the console..
Basically what I'm trying to do is send what the user has ...
3
votes
2answers
107 views
Why this if statement is being skipped?
Can anyway tell me why the following if statement is being skipped?
I want to check if my mAlphabetCode contains 0-9 literal, not 0 to 9.
// check if alphabet code is numeric
if ...
0
votes
1answer
23 views
Communication between imported library and main activity
I'm currently using eclipse on a mac to develop an android application. Right now I have my core application starting certain activities in the imported library, but I need to then come back from the ...
1
vote
1answer
19 views
Can the Spell Checker Framework used for code hinting?
I was looking at the Spell Checker Framework and was wondering if I can use this to implement code hinting in my app. Can I implement a custom 'code' dictionary? Just wondering if this is a possible ...
1
vote
1answer
52 views
I need help starting one method right after another method finishes, not during it
I am making a game and after someone clicks, a ball moves across the screen which takes some time. I am trying to do a method after the ball stops moving. I tried sleep and it didnt work. I also ...
0
votes
1answer
25 views
Executing 2 or more Runnables causes performance issues
I need to factor a 64-bit number (n = pq).
So I implemented a method which searches consequentially all numbers in range of [1; sqrt(n)].
It took a 27 secs to execute on Android with 1,2 GHz ...
0
votes
1answer
14 views
Android Rear Facing Camera Take Photo without preview
I have followed the tutorial by Lars Vogel at Tutorial Link
While this tutorial works perfectly for the front facing camera I unfortunately cannot get the rear camera to take a photo. Its getting ...
0
votes
1answer
36 views
Sqlite columns to string array
How can i put every column from an android sqlite database into a different string array ?
I have a database with 4 columns :id,one in which i store the date,another for the hour and another for a ...
0
votes
0answers
11 views
Simulating clicks on items using Robolectric
I figured this type of question would have already been asked but I can't seem to find an answer that does what I need. I have an ExpandableListView and the last child in each group is clickable. I ...
1
vote
0answers
15 views
Android - Is it possible to access raw capacitive input data?
Does the Android platform have a public API for accessing the raw capacitive data coming from the touch screen?
The multi-touch input points are derived from a basic two-dimensional grid of binary ...
0
votes
1answer
64 views
transferred computers with Android Studio and now have Gradle error
I had a gradle error at first where I needed to change the version. I read about this problem on the android studio website, and I followed there directions and changed this line in the gradle file:
...
0
votes
0answers
14 views
How to authenticate requests coming from my android app to the server using a session?
I'm new in Android.
It seems that when I request something coming out from my android app, the requests aren't attaching the session id to their headers so that the apache server can authenticate ...
-5
votes
1answer
43 views
High Score in Android [on hold]
I am totally broke with the high score leaderboard in android... I want to display the top five high scores in the game.. How can I do it... I have the scores and names stored in the database... What ...
-1
votes
1answer
23 views
Android app development Save feature
I have this app that I am trying to add a save feature to. I am trying to save them values of a few arrays and then retrive them from a sd card or computer. I wrote all the values to an outputstream , ...
0
votes
1answer
8 views
Android library to stream local stored audio via RTP
Is it possible to transmit a local stored audio file (e.g. mp3) via RTP? E.g. there is mp3 file that is taken as input and converted/packed into RTP packets and send over the network.
Are there any ...
0
votes
1answer
12 views
RuntimeException: Unable to instantiate receiver
I am attempting to launch an activity after the screen is unlocked and am getting the error log below. I looked at the other posts regarding my issue but now of them solved my problem
...
1
vote
1answer
23 views
Android 16-Bit Color Image to Bitmap
I am trying to get a 16-bit color image that is 80 x 60 resolution from an embedded camera (datasheet here). I am successfully able to get 9600 (80 * 60 * 16 / 8) bytes from the camera, but I have a ...
0
votes
3answers
32 views
Handling click event in ListView items views in Android
Suppose I have a ListView which items are layouts who contain three buttons. How can I know efficiently when the user has clicked the, for example, second button of the item number 5?
Cheers,