Android/Linux native executable

I have C++ code for Android in an Android Studio project and want to add a Linux native executable in C++ that shares most of the existing C++ code. So there must be 3 subprojects (I think): Android, Linux and a library with the shared code. Are the...
more »

2017-04-20 23:04 (0) Answers

Android equivalent of Core spotlight

Is there any library in android which is similar to iOS core spotlight framework. I searched a lot I found some Java libraries which can provide search. Is there any pure android based solutions !? ...
more »

2017-04-20 19:04 (0) Answers

Retrofit says auth token exists when logged out

When I log into my account in my app, I save an auth token in my SharedPreferences, like this: PreferenceUtils.setAuthToken(LoginActivity.this, authToken); Here is my PreferenceUtils class: public class PreferenceUtils { public static SharedP...
more »

2017-04-20 02:04 (2) Answers

Custom Search Suggestions Android

I am trying to make search suggestions. What I am trying to do is when user enters query I send HTTP Requests to server and fetch the JSON response and save it in database using Content Provider and Content Resolver. @Override public boolean o...
more »

2017-04-19 11:04 (0) Answers

Hiding middle view first in coordinator layout

I have a layout as follows Layout1 Layout2 ScrollView When scrolling I need Layout2 disappear first then Layout1. For example look at the following gif middle view disappear first then top view disappear. I suspect I need some custom behavior c...
more »

2017-04-19 07:04 (2) Answers

How to sync javascript between iframes?

I am trying to sync a navigation on a web mobile site that uses iframes. When the page loads, I load two iframes, on the first one a table chart, on the second iframe (code below) a set of images, that loads one by one. On the first iframe the table...
more »

2017-04-19 04:04 (0) Answers

Retrofit 2- how to get data from complicated JSON

I want to retrieve the data from list but i am not able too. I've tried like this: double t=response.body().getList().get(0).getTemp().getMax(); But I get a Null Pointer Exception Th...
more »

2017-04-19 03:04 (3) Answers

ListView Scrolls to Top when EditText Grows

I have a listview with edittexts in every cell. Whenever I add text to the point that the edittext grows 1 line, the ListView scrolls to the top (and usually removes the edittext from view by doing so). I found a few questions about this but they on...
more »

2017-04-18 18:04 (1) Answers

How to edit json file with data and save it

I have a json file with a lot of objects. This file is located in res/raw. Im reading this file and showing objects in list in my UI. And after user closing activity with this list, changes that user made most be saved in file that was read. ...
more »

2017-04-18 14:04 (3) Answers

Remove glare from photo opencv

So, im using opencv to capture a document, scan it and crop it. When there is no lighting in the room, it works perfectly. When there is some light in the room, and there is a glare on the table and the document is near it, it also grabs the glare as...
more »

2017-04-18 13:04 (1) Answers

Toolbar doesn't hiding while scrolling

trying to hide toolbar on listview scroll by using appbar_scrolling_view_behavior + scroll flags, but has no result, this is xml code, can't understand what's wrong with this <?xml version="1.0" encoding="utf-8"?> <
more »

2017-04-18 12:04 (3) Answers

Subscribe to ANCS on Android

Based on the services listed here, I'm trying to subscribe to a service from an Android device, but can't get the solicitation part working. Tried to advertise using 7905F431-B5CE-4E99-A40F-4B1E122D00D0 but the peripheral is not showing up on the iPh...
more »

2017-04-18 02:04 (2) Answers

how to parse JSON using Volley

i am using volley library for post data over here the Content-Type is "application/json" .... how can i implement this type of json data : URL: Base_URL + dorequisition { "submitted_by_employee_id": 1, "name": "Technolive SF for TC", ...
more »

2017-04-17 21:04 (1) Answers

Accessing app R class from my Android library

I'm developing a library that needs to access layout items of the app implementing it. The only way I know how to do it is with reflection. In other words, if I create a constructor to my Library API like this: public MyLibraryAPI(String packageName...
more »

2017-04-17 10:04 (1) Answers