id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
37,890,187
Compare a button color to another color - android
<p>I'm trying to compare a button color , to see if it's red or green, because based on its background color, it's color is going to change onClick. The click part is not a problem, but comparing the colors is. I know that there are topics about things like this, but none of them answered my question. To make it easier...
I'm trying to compare a button color , to see if it's red or green, because based on its background color, it's color is going to change onClick. The click part is not a problem, but comparing the colors is. I know that there are topics about things like this, but none of them answered my question. To make it easier to...
android|button
0
2016-06-17T20:49:32.737Z
2,016
6
20
4
1,042
1
404
49
2
1
true
false
false
false
false
false
zero
37,842,641
Toolbar animation with fade off and fade in
<p>How to achieve this?</p> <ol> <li><p>Toolbar is not visible when screen is shown.</p></li> <li><p>When user scrolls up, toolbar will start appearing with its child view and disappear when scrolls down again like in glass door app.(job details screen) </p></li> <li><p>The scroll also must be smoothed because layout ...
How to achieve this? Toolbar is not visible when screen is shown. When user scrolls up, toolbar will start appearing with its child view and disappear when scrolls down again like in glass door app.(job details screen) The scroll also must be smoothed because layout behaviour in Appbar layout causes non smooth scroll. ...
android|android-layout
0
2016-06-15T18:03:07.953Z
2,016
6
18
2
1,298
1
499
43
2
0
false
false
false
false
false
false
zero
37,985,423
Creating an auto-slider in android with images and videos?
<p>I'm new to android and I want to make an app which will be displaying images automatically at a given interval. This app will not only contain images but videos also, and it should slide through all of these (images and videos), and when somebody clicks anywhere on the window a new activity should start. Any help on...
I'm new to android and I want to make an app which will be displaying images automatically at a given interval. This app will not only contain images but videos also, and it should slide through all of these (images and videos), and when somebody clicks anywhere on the window a new activity should start. Any help on ho...
android|android-layout|user-interface|android-sliding
0
2016-06-23T07:55:21.313Z
2,016
6
7
3
1,810
1
582
58
4
0
false
false
false
false
false
false
zero
38,042,199
How to do a select all using GreenDAO?
<p>Does anyone know how to do a simple <code>select * from table</code> in greenDAO and place it into an entity? I have done some research on this and I am unable to get any simple example. This is what I have so far: </p> <pre><code>public void storeAppTimeUsageData(AppTimeUsage stats) { List&lt;AppTimeUsage&gt; ...
Does anyone know how to do a simple select * from table in greenDAO and place it into an entity? I have done some research on this and I am unable to get any simple example. This is what I have so far: [CODE]
java|sqlite|android-studio|orm|greendao
4
2016-06-26T19:08:25.573Z
2,016
6
19
6
2,322
1
208
38
5
1
true
false
false
false
false
false
low
37,935,608
How to convert Mat to Interger Array in OpenCV java?
<p>any suggestion on how to convert a Mat to an Integer array in OpenCV. I tried one of the suggestions from <a href="http://answers.opencv.org/question/33596/convert-mat-to-byte-in-c/" rel="nofollow">http://answers.opencv.org/question/33596/convert-mat-to-byte-in-c/</a> but it gives me the following error: "java.lang....
any suggestion on how to convert a Mat to an Integer array in OpenCV. I tried one of the suggestions from http://answers.opencv.org/question/33596/convert-mat-to-byte-in-c/ but it gives me the following error: "java.lang.UnsupportedOperationException: Mat data type is not compatible: 24" Please let me know if I am doin...
java|android|opencv|feature-detection
2
2016-06-21T04:27:58.207Z
2,016
6
4
1
8,466
1
625
52
4
2
true
false
true
false
false
false
low
37,670,114
Modfiying inflated inflated view in a dialogfragment after calling show()
<p>Let's say you have a <code>dialogfragment</code> with a <code>listView</code>. The title of the dialog is a custom view which is inflated in <code>onCreateDialog()</code>. Is it possible to toggle visibility of the inflated view when the list item is clicked.</p>
Let's say you have a dialogfragment with a listView . The title of the dialog is a custom view which is inflated in onCreateDialog() . Is it possible to toggle visibility of the inflated view when the list item is clicked.
android|dialogfragment
0
2016-06-07T03:45:42.073Z
2,016
6
3
1
19
1
222
73
2
0
false
false
false
false
false
false
zero
37,897,919
First and Second guessings are the same
<p>I am new to Java and I am developing a Number Guessing Game. When I click the random button , I get a random number that's okay but When I try this second time, second and first random numbers are the same.</p> <p>How can I solve it? Here is my code:</p> <pre><code>int KullaniciTahmini; @Override protected void ...
I am new to Java and I am developing a Number Guessing Game. When I click the random button , I get a random number that's okay but When I try this second time, second and first random numbers are the same. How can I solve it? Here is my code: [CODE]
java|android|numbers
-2
2016-06-18T14:14:18.400Z
2,016
6
14
5
19
1
250
39
3
1
true
false
false
false
false
true
negative
37,795,616
Titanium appcelerator model and collections persistance
<p>I am about to retrieve datas from remote and create model and collections, here are each part of the app (the controller, the view and the model). If i really understand using model in titanium is like storing into database so the data persists even if there is no internet connection after i get all datas. Below cod...
I am about to retrieve datas from remote and create model and collections, here are each part of the app (the controller, the view and the model). If i really understand using model in titanium is like storing into database so the data persists even if there is no internet connection after i get all datas. Below code w...
titanium|titanium-mobile|titanium-alloy|appcelerator-titanium|titanium-android
1
2016-06-13T17:18:08.357Z
2,016
6
17
0
275
1
874
55
5
3
true
false
false
false
false
false
low
38,026,194
Porting Java to C# for Xamarin Android Library
<p>I created an Android Binding Library for my Xamarin project, using an AAR.</p> <p>I am now trying to implement that library.</p> <p>Here is the java snippet of code using the library:</p> <p>The java code:</p> <pre><code>new AsyncOperation.CompletionHandler&lt;RouteManager&gt;(){ @Override public void su...
I created an Android Binding Library for my Xamarin project, using an AAR. I am now trying to implement that library. Here is the java snippet of code using the library: The java code: [CODE] I am trying to port this code to C#. My C# code, from C# wrapper created from binding library: [CODE] I am getting an error in t...
java|c#|android|xamarin|shared-libraries
1
2016-06-25T07:41:45.593Z
2,016
6
7
5
275
1
563
46
5
2
true
false
false
false
false
false
low
37,814,851
Android: DetailActivity has leaked ServiceConnection
<p>I have a <code>ViewPager</code> which is dynamically populated by a list of <code>Fragment</code>s. All these <code>Fragment</code>s have a <code>RecyclerView</code> consisting of multiple types of elements (each <code>ItemView</code> is different from the other and there is no way of knowing which type of view woul...
I have a ViewPager which is dynamically populated by a list of Fragment s. All these Fragment s have a RecyclerView consisting of multiple types of elements (each ItemView is different from the other and there is no way of knowing which type of view would be at which position). To populate this RecyclerView , we are us...
android|android-fragments|memory-leaks|android-youtube-api
1
2016-06-14T14:26:37.973Z
2,016
6
14
1
787
1
1,371
52
4
3
true
false
false
false
false
false
low
37,769,438
Gradle DSL method not found android()
<p>I open a friend project at Android Studio, my AS version is greater than his. <br><br> Here is the error:</p> <pre><code>Error:(27, 0) Gradle DSL method not found: 'android()' Possible causes:The project 'firstapp' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file Th...
I open a friend project at Android Studio, my AS version is greater than his. Here is the error: [CODE] Here is the build.gradle: [CODE] How can i get this fixed?
android|gradle
0
2016-06-11T23:38:36.833Z
2,016
6
23
5
2,323
1
162
37
2
2
true
false
false
false
false
false
zero
37,949,051
E/SQLiteLog: (1) near ",": syntax error
<p>I somehow cannot create a new table. I've checked my syntax and searched other people having the same error but I can't find what the error is.</p> <pre><code>private static final String DATABASE_NAME = "food_database"; private static final String TABLE_NAME = "food_table"; private static final String UID = "_id"; ...
I somehow cannot create a new table. I've checked my syntax and searched other people having the same error but I can't find what the error is. [CODE]
android|sqlite
0
2016-06-21T15:49:14.137Z
2,016
6
15
1
2,835
1
150
39
2
1
true
false
true
false
false
false
zero
38,033,068
Android AudioRecord won't initialize
<p>I'm trying to implement an app that listens to microphone input (specifically, breathing), and presents data based on it. I'm using the Android class AudioRecord, and when trying to instantiate AudioRecord I get three errors.</p> <pre><code>AudioRecord: AudioFlinger could not create record track, status: -1 AudioRe...
I'm trying to implement an app that listens to microphone input (specifically, breathing), and presents data based on it. I'm using the Android class AudioRecord, and when trying to instantiate AudioRecord I get three errors. [CODE] I found this excellent thread: AudioRecord object not initializing I have borrowed the ...
java|android|multithreading|audiorecord
9
2016-06-25T21:19:23.257Z
2,016
6
21
5
11,795
1
1,411
36
4
3
true
false
true
true
false
false
medium
37,664,599
Can gradle imports ever suddenly fail?
<p>In the Gradle you can import code other people have written by adding lines such as</p> <pre><code>compile 'com.domain.android:nameoflibrary:2.1.1' </code></pre> <p>What if the owners of this code suddenly decide to pull their libraries? Or if a site goes down somewhere? Does this suddenly break your app/code at a...
In the Gradle you can import code other people have written by adding lines such as [CODE] What if the owners of this code suddenly decide to pull their libraries? Or if a site goes down somewhere? Does this suddenly break your app/code at all? Or by doing compile, is it downloading these dependencies to local copies i...
android|maven|gradle|dependencies
0
2016-06-06T18:38:03.837Z
2,016
6
18
0
20
1
379
38
4
1
true
false
false
false
false
false
zero
37,767,785
Service unable to send sms through build-in app
<p>I have an application with only a service. Following is my code of the service, it is unable to call the device's build-in sms app. </p> <pre><code>public class smsservice extends Service { private static final String TAG = "MyService"; @Override public IBinder onBind(Intent intent) { return null; } @Override...
I have an application with only a service. Following is my code of the service, it is unable to call the device's build-in sms app. [CODE] } I have include the permission in the manifest file [CODE] Is there something I am missing or is it even possible
android
0
2016-06-11T19:33:11.783Z
2,016
6
19
5
20
1
253
47
1
2
true
false
false
false
false
false
zero
37,995,936
How to scroll fixed view up while scrolling gridview below?
<p><a href="http://i.stack.imgur.com/mUeIe.png" rel="nofollow">The marked area should scroll up while sliding up the gridview contentsand should get back to position while I reach back to top while sliding down the gridview items</a></p>
The marked area should scroll up while sliding up the gridview contentsand should get back to position while I reach back to top while sliding down the gridview items
android
0
2016-06-23T15:29:41.980Z
2,016
6
15
3
20
1
166
59
1
0
false
false
false
false
false
false
zero
38,010,912
Are Azure App Service and Notification Hub shareable with 2 or more android apps?
<p>Azure newly introduced App Service and Notification hub with C# back end shareable with 2 or more android Apps?</p>
Azure newly introduced App Service and Notification hub with C# back end shareable with 2 or more android Apps?
android|azure|azure-mobile-services|azure-notificationhub
0
2016-06-24T10:12:16.470Z
2,016
6
10
4
20
1
111
81
4
0
false
false
false
false
false
false
zero
37,839,879
Starting Activity with a Floatingbutton
<p>So I have my List class which has a floatingbutton. I want to make it so that when i click that button it goes into another one of my activities, MainActivity. This is the code I have for my list class.</p> <pre><code>public class List extends Activity { ImageButton floatButton; @Override protected void onCreate(Bu...
So I have my List class which has a floatingbutton. I want to make it so that when i click that button it goes into another one of my activities, MainActivity. This is the code I have for my list class. [CODE] It seems like it should work, but every time i click the button, this error code pops up. [CODE] How do I fix ...
android|button|floating-action-button|start-activity
0
2016-06-15T15:36:53.033Z
2,016
6
15
2
276
1
325
39
4
2
true
false
false
false
false
false
zero
37,792,454
Is Creating Ionic App for Android is Secure?
<p>I am learning Ionic,I feel any one can steal our UI in ionic app,I seen by extracting our app apk,our UI is available in asset so Any one can crack our App UI from Asset.Is it Safe for our App UI when we build it in Ionic</p>
I am learning Ionic,I feel any one can steal our UI in ionic app,I seen by extracting our app apk,our UI is available in asset so Any one can crack our App UI from Asset.Is it Safe for our App UI when we build it in Ionic
android|security|user-interface|ionic-framework
1
2016-06-13T14:32:11.070Z
2,016
6
14
0
532
1
221
44
4
0
false
false
false
false
false
false
low
37,854,668
pending intent / alarm not working second time
<p>My code is like this, on button click i execute </p> <pre><code> Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()+(1000*5)); Intent intent = new Intent(LogoFrontScreen.this,Doubletest.class); PendingIntent alarmIntent =...
My code is like this, on button click i execute [CODE] then on receiver there is a log but that log is called only once, why this is happening ?
android|alarmmanager|android-pendingintent
1
2016-06-16T09:07:38.080Z
2,016
6
9
3
532
1
144
46
3
1
true
false
false
false
false
false
low
37,667,450
Android trouble with crash reports in developer console
<p>So I'm building my app with proguard which obfuscates the code, and I am uploading my mapping.txt to the deobfuscation files. My crash reports show the class and method names, but they don't show line numbers.</p> <p>In my build.gradle:</p> <pre><code> buildTypes { release { minifyEnabled true ...
So I'm building my app with proguard which obfuscates the code, and I am uploading my mapping.txt to the deobfuscation files. My crash reports show the class and method names, but they don't show line numbers. In my build.gradle: [CODE] So then I upload as a deobfuscation file: ProjectFolder/app/build/outputs/mapping/r...
android|google-play|proguard|obfuscation|developer-console
2
2016-06-06T21:53:58.170Z
2,016
6
21
0
1,044
1
575
55
5
1
true
false
false
false
false
false
low
37,650,999
android mediaplayer() supported file formats
<p>Would like to know the audio formats supported by android mediaplayer class. I tried testing with .mp3, .wav and .ogg file. Which other file formats are supported?</p> <p>I am using <strong>Xamarin</strong> for developing the app. Would it be any difference for native and xamarin apps?</p>
Would like to know the audio formats supported by android mediaplayer class. I tried testing with .mp3, .wav and .ogg file. Which other file formats are supported? I am using Xamarin for developing the app. Would it be any difference for native and xamarin apps?
c#|android|xamarin|file-format
0
2016-06-06T06:40:58.917Z
2,016
6
6
0
1,556
1
262
44
4
0
false
false
false
false
false
false
zero
37,723,159
How do I prevent a scaled up View from overlapping the actionbar?
<p>I have a view that I scale up like so:</p> <pre><code>vpImagePreview.findViewWithTag("pos" + 0).setScaleX(1.15f); vpImagePreview.findViewWithTag("pos" + 0).setScaleY(1.15f); </code></pre> <p>On some screens, when scaled up, this view hides a small part of the ActionBar behind itself. How do i make the ActionBar al...
I have a view that I scale up like so: [CODE] On some screens, when scaled up, this view hides a small part of the ActionBar behind itself. How do i make the ActionBar always be on top?
android
0
2016-06-09T10:18:36.893Z
2,016
6
10
3
21
1
185
65
1
1
true
false
false
false
false
false
zero
37,778,004
can we send request to server which forward that request to some other IP address
<p>I am making an android application which can control the user's PC or laptop remotely. Is this possible that I send any request from the android application to the server and then server forward that request to the corresponding IP/Port address of user's. A software would also be running on user's system which will ...
I am making an android application which can control the user's PC or laptop remotely. Is this possible that I send any request from the android application to the server and then server forward that request to the corresponding IP/Port address of user's. A software would also be running on user's system which will rec...
java|php|android
0
2016-06-12T19:00:08.177Z
2,016
6
19
6
21
1
523
81
3
0
false
false
false
false
false
false
zero
37,888,242
In-app billing, buying all locked modules at once
<p>I am building an app, consisting of different modules. I want some of them to be free, whereas some others - paid. The payment is done once - you pay and all of the items are unlocked. While building, I am following this tutorial <a href="http://www.techotopia.com/index.php/An_Android_Studio_Google_Play_In-app_Billi...
I am building an app, consisting of different modules. I want some of them to be free, whereas some others - paid. The payment is done once - you pay and all of the items are unlocked. While building, I am following this tutorial In-app-billing . However, here the all of the methods are implemented for one item only. H...
android|in-app-billing
1
2016-06-17T18:38:05.747Z
2,016
6
18
4
21
1
397
49
2
0
false
false
false
false
false
false
low
37,933,518
Xamarin: Some resource id still sitting inside the generated file in Resource Designer.cs
<p>why Resource designer.cs file contain a id which I can't find it on my solution project.</p> <pre><code>global::SharedLibrary.Resource.Id.btnSave = global::blah blah .Resource.Id.btnSave; </code></pre> <p>When I search through the file in my solution, the btnSave id still sitting in the Resource Designer.cs file b...
why Resource designer.cs file contain a id which I can't find it on my solution project. [CODE] When I search through the file in my solution, the btnSave id still sitting in the Resource Designer.cs file but couldn't find it in my Solution. I tried to clean the project but the error still there. Do anyone here can see...
xamarin|resources|android-resources
0
2016-06-20T23:47:20.807Z
2,016
6
23
0
21
1
338
89
3
1
true
false
false
false
false
false
zero
38,015,633
Export release key while using shared crosswalk platform in android eclipse
<p>i am using x_walk_view as its web view in shared mode platform for android version 4.4 and below version.It works fine but when i try to export in a release mode,It starts giving error "YOUR APP STOPPED WORKING".does i have to enable something to use crosswalk ? I am new to this crosswalk platform please help </p>
i am using x_walk_view as its web view in shared mode platform for android version 4.4 and below version.It works fine but when i try to export in a release mode,It starts giving error "YOUR APP STOPPED WORKING".does i have to enable something to use crosswalk ? I am new to this crosswalk platform please help
android|eclipse|release|crosswalk-runtime
0
2016-06-24T14:18:50.930Z
2,016
6
14
4
21
1
310
75
4
0
false
false
false
false
false
false
zero
38,057,294
How to place buttons in both the center and the right of a Linear Layout
<p>My applications looks like this with all the buttons/images centered: <a href="https://i.stack.imgur.com/SS90x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SS90x.png" alt="enter image description here"></a></p> <p>However, I want it to look like below with the blue icon all the way on the righ...
My applications looks like this with all the buttons/images centered: However, I want it to look like below with the blue icon all the way on the right side: I am unable to get the blue icon to the right side no matter what I try. Any advice? [CODE]
android-layout
0
2016-06-27T15:01:22.157Z
2,016
6
15
0
21
1
249
72
1
1
true
false
false
false
false
false
zero
37,696,000
WebSocket Not Working With Xamarin.Android
<p>I am trying to use <code>websocket</code> in my <code>xamarin.android</code> application, but am unable to connect with server using <code>websocket class</code>.</p> <p>Using <code>WebSocket4net</code> NuGet Package, but it's not working.</p> <p><strong>Code</strong></p> <pre><code>WebSocket websocket = new WebS...
I am trying to use websocket in my xamarin.android application, but am unable to connect with server using websocket class . Using WebSocket4net NuGet Package, but it's not working. Code [CODE]
xamarin.android|websocket4net
0
2016-06-08T07:31:36.593Z
2,016
6
7
2
277
1
193
42
2
1
true
false
false
false
false
false
zero
37,792,372
Does ProGuard work in reverse mode?
<p>It seems that by default ProGuard obfuscates everything and you have to add <code>keep</code> statements if you want something to exclude. Can it work in reverse mode? I want ProGuard to obfuscate only specific files and leave everything else untouched. </p>
It seems that by default ProGuard obfuscates everything and you have to add keep statements if you want something to exclude. Can it work in reverse mode? I want ProGuard to obfuscate only specific files and leave everything else untouched.
proguard|android-proguard
2
2016-06-13T14:28:36.437Z
2,016
6
14
0
277
1
240
35
2
0
false
false
false
false
false
false
low
37,867,683
How to detect motion with sensor accelerometer in android
<p>Here is my code in activity, but the values of <code>mAccel</code> always <code>0</code>. I want to compare values of <code>mAccel</code> with value of sensivity. Can somebody help me with this problem?</p> <pre><code> private float mAccel; private float mAccelCurrent; private float mAccelLast; privat...
Here is my code in activity, but the values of mAccel always 0 . I want to compare values of mAccel with value of sensivity. Can somebody help me with this problem? [CODE]
java|android|accelerometer
1
2016-06-16T19:18:37.090Z
2,016
6
19
3
533
1
171
57
3
1
true
false
false
false
false
false
low
37,796,212
Android Applications crashes only on first launch only after downloading from Google Play
<p>My Application works fine if I install from sdcard using apk file. but on downloading from google play it crashes with toast </p> <blockquote> <p>application shortcut is already available.</p> </blockquote> <p>It crashes only on first session with the error log that I got from google play </p> <blockquote> <p...
My Application works fine if I install from sdcard using apk file. but on downloading from google play it crashes with toast application shortcut is already available. It crashes only on first session with the error log that I got from google play java.lang.RuntimeException: Unable to instantiate receiver com.google.ad...
android|unity3d|google-play|admob|google-play-services
1
2016-06-13T17:54:01.800Z
2,016
6
17
0
789
1
485
89
5
0
false
false
false
false
false
false
low
37,942,706
Adding the Open Mobile API library to an Android device to get APDU-based access to the SIM
<p>I have a device without NFC. This device also does not support the Open Mobile API. I need access to the SIM applet on that device.</p> <p>Now I wonder if I could add that functionality...If I have a copy of the Open Mobile API library, would it work if pushed that Open Mobile API library to my device through ADB? ...
I have a device without NFC. This device also does not support the Open Mobile API. I need access to the SIM applet on that device. Now I wonder if I could add that functionality...If I have a copy of the Open Mobile API library, would it work if pushed that Open Mobile API library to my device through ADB? Could I the...
android|nfc|apdu|sim-card|open-mobile-api
0
2016-06-21T11:04:11.667Z
2,016
6
11
1
1,045
1
356
91
5
0
false
false
false
false
false
false
zero
37,988,339
Auto Answer Incoming call Android programmatically
<p>I am using this code:</p> <pre><code> try { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); Class&lt;?&gt; c = Class.forName(tm.getClass().getName()); Method m = c.getDeclaredMethod("getITelephony"); m.setAccessible...
I am using this code: [CODE] This code needs Modify_Phone_State permission which is depreciated. Any alternative way to auto answer the incoming calls?
android|call
0
2016-06-23T09:59:37.690Z
2,016
6
9
3
3,349
1
151
50
2
1
true
false
true
false
false
false
zero
37,729,337
Button On X & Y coordinates of Image
<p>I am trying to place a button dynamically on an Image when a user touches it. Can someone help.</p> <p>I've tried this code but every time the button gets disappeared</p> <pre><code> rl.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { ...
I am trying to place a button dynamically on an Image when a user touches it. Can someone help. I've tried this code but every time the button gets disappeared [CODE]
android
0
2016-06-09T14:50:52Z
-1
-1
-1
-1
22
1
166
36
1
1
true
false
false
false
false
false
zero
37,772,620
Which Json structure suitable for this work?
<p>This function generate dummy data for this Structure .</p> <pre><code>private void createDummyData() { for (int i = 1; i &lt;= 10; i++) { VerticalDataModel dm = new VerticalDataModel(); dm.setSectionTitle("Section " + i); ArrayList&lt;SingleItemModel&gt; singleItem = new ArrayList&lt;...
This function generate dummy data for this Structure . [CODE] Know for generating this data from internet , i need json structor for this work .(I use volley library) Thanks <3
android|json|android-recyclerview
0
2016-06-12T09:21:22.180Z
2,016
6
9
6
22
1
176
44
3
1
true
false
false
false
false
false
zero
37,900,281
Pressing top back navigation how to show initial results ,when searchResults are in the same main Activity?
<p>The main activity which represent list of data,(received from server), on top have searchView, the search results received from server, the data is the same as the data in the main activity, I want to know it's good idea to represent the search results in new searchActivity, or in the same main activity, I think us...
The main activity which represent list of data,(received from server), on top have searchView, the search results received from server, the data is the same as the data in the main activity, I want to know it's good idea to represent the search results in new searchActivity, or in the same main activity, I think using ...
android|searchview
0
2016-06-18T18:25:41.440Z
2,016
6
18
5
22
1
483
107
2
0
false
false
false
false
false
false
zero
38,029,054
View style change when add them with button
<p>I have create a block xml:</p> <p><a href="http://i.stack.imgur.com/tcmrC.png" rel="nofollow">xml block</a></p> <p>I want add this block when the user click the botton. </p> <p>The java code:</p> <pre><code>private Button add_Link; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreat...
I have create a block xml: xml block I want add this block when the user click the botton. The java code: [CODE] But on the hardware device and the emulator this is display: Result The first block isn't create with button but is already present in the file XML R.layout.activity_ip while the second block is create with ...
xml|android-studio
0
2016-06-25T13:31:18.947Z
2,016
6
13
5
22
1
637
43
2
1
true
false
false
false
false
false
zero
37,609,436
Issue in using a self signed certificate in IBM MobileFirst android
<p>I am trying to connect to a https mobilefirst server from my android app. using a self signed certificate but not sure if its a self signed CA certificate.</p> <p>I used the following code. certificate file name :mycer.der I have put this certificate in assets folder.</p> <p>Now I am using the following code to va...
I am trying to connect to a https mobilefirst server from my android app. using a self signed certificate but not sure if its a self signed CA certificate. I used the following code. certificate file name :mycer.der I have put this certificate in assets folder. Now I am using the following code to validate the certific...
android|ibm-mobilefirst|mobilefirst-server
1
2016-06-03T08:22:05.703Z
2,016
6
8
4
278
1
1,546
67
3
0
false
false
false
false
false
false
low
37,741,476
Android update imageview after adapter notifyDataSetChanged
<p>in my adapter and retrieve data from server i can reload <code>recyclerview</code>, in my <code>recyclerview</code> items i have simple <code>imageView</code> and after retrieve data from server and image status, i must be change image in that, but my adapter could not update image after reload data and <code>notify...
in my adapter and retrieve data from server i can reload recyclerview , in my recyclerview items i have simple imageView and after retrieve data from server and image status, i must be change image in that, but my adapter could not update image after reload data and notifyDataSetChanged . i can retrieve data from serve...
android|android-recyclerview|android-adapter
0
2016-06-10T06:39:06.757Z
2,016
6
6
4
278
1
552
59
3
3
true
false
false
false
false
false
zero
37,910,238
How to know if an `InputMethod` is enabled?
<p>I am writing a custom <code>InputMethod</code> from scratch and would like to show the user a button in my <code>Activity</code> to enable my <code>InputMethod</code> in case it is disabled...</p> <p>I would need to find out programmatically if my <code>InputMethod</code> is enabled in the device or not.</p> <p>Ho...
I am writing a custom InputMethod from scratch and would like to show the user a button in my Activity to enable my InputMethod in case it is disabled... I would need to find out programmatically if my InputMethod is enabled in the device or not. How can I do that?
android|android-input-method
0
2016-06-19T18:03:35.107Z
2,016
6
18
6
278
1
265
43
2
0
false
false
false
false
false
false
zero
38,032,026
Weight doesn't limit width of layout
<p>I have a list of items I would like to show. I have written the following code<br> for each item's view: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap...
I have a list of items I would like to show. I have written the following code for each item's view: [CODE] But when the text in receipt_item_name is too long it makes the next textview shift right. How can I make sure each view's weight is solid? or What else can I do to get the same effect?
android|xml|android-layout|android-studio|android-recyclerview
3
2016-06-25T19:07:20.923Z
2,016
6
19
5
278
1
293
36
5
1
true
false
false
false
false
false
low
37,694,618
Marshmallow,the MediaMetadataRetriever does not working
<p>On the Marshmallow the MediaMetadataRetriever with OPTION_CLOSEST, <code>OPTION_CLOSEST_SYNC</code>, <code>OPTION_NEXT_SYNC</code>, <code>OPTION_PREVIOUS_SYNC</code> does not work.</p> <p>The <code>OPTION_CLOSEST</code> works fine with all versions of Android except Marshmallow. I tried to extract 30fps from video....
On the Marshmallow the MediaMetadataRetriever with OPTION_CLOSEST, OPTION_CLOSEST_SYNC , OPTION_NEXT_SYNC , OPTION_PREVIOUS_SYNC does not work. The OPTION_CLOSEST works fine with all versions of Android except Marshmallow. I tried to extract 30fps from video. Below is the code I used: [CODE] where, i-->1,2,3,...(next f...
android
1
2016-06-08T06:16:50.003Z
2,016
6
6
2
534
1
374
55
1
1
true
false
false
false
false
false
low
37,772,998
How to resolve android studio installation error("Your android studio installation is corrupt and will not work properly.")?
<p>I had my Android studio 2.2 prev 2 initially and then it asked for an update. I downloaded it and i found the files that were there in the download was similar to the folder Android\Android Studio in my C: drive. So I backed up the older files in the Android folder and moved the downloaded ones. Then when I opened a...
I had my Android studio 2.2 prev 2 initially and then it asked for an update. I downloaded it and i found the files that were there in the download was similar to the folder Android\Android Studio in my C: drive. So I backed up the older files in the Android folder and moved the downloaded ones. Then when I opened andr...
android|android-studio|android-studio-2.2
0
2016-06-12T10:07:54.403Z
2,016
6
10
6
534
1
413
124
3
0
false
false
false
false
false
false
zero
37,899,406
Want to map zoomed image coordinates with actual image coordinates in android imageview
<p>I am currently using this gitup touchimageview <a href="https://github.com/MikeOrtiz/TouchImageView" rel="nofollow">https://github.com/MikeOrtiz/TouchImageView</a> library.... After zoom,based on the zoom percentage I want to map the longpress coordinates to original image coordinates. Any help will be appreciated ...
I am currently using this gitup touchimageview https://github.com/MikeOrtiz/TouchImageView library.... After zoom,based on the zoom percentage I want to map the longpress coordinates to original image coordinates. Any help will be appreciated
android|touchimageview
-1
2016-06-18T16:50:28Z
-1
-1
-1
-1
534
1
242
87
2
0
false
false
false
false
false
true
negative
37,660,349
How to set AppBarLayout overlaying the content?
<p>This is my current XML:</p> <pre><code>&lt;android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content"...
This is my current XML: [CODE] Right now "some_layout" is above the "recycler_view" and scrolls together with it. I want to change it in such way that "some_layout" overlays the recycler view but the scrolling behavior remains (basically both views should be top-aligned when there is no scrolling and "some_layout" shou...
android|android-layout|android-coordinatorlayout|android-appbarlayout
1
2016-06-06T14:43:36.847Z
2,016
6
14
0
790
1
398
47
4
1
true
false
false
false
false
false
low
37,696,930
Android USB cannot read complete data through bulkTransfer
<p>I am using Android USB Host API to send and receive data using FT232. I am using two threads for the sending part and the reading part. I can send and receive data but the data read is not equal to what the data sent. For example, when I send byte[1, 2, 3, 4, 5]. The data read is sometimes byte[1, 2, 5]. Sometimes t...
I am using Android USB Host API to send and receive data using FT232. I am using two threads for the sending part and the reading part. I can send and receive data but the data read is not equal to what the data sent. For example, when I send byte[1, 2, 3, 4, 5]. The data read is sometimes byte[1, 2, 5]. Sometimes the ...
android|usb|usbserial|ftdi
2
2016-06-08T08:18:27.280Z
2,016
6
8
2
2,070
1
461
58
4
3
true
false
false
false
false
false
low
37,906,168
MySQL doesn't start: [ERROR] Failed to create a socket for IPv4 '127.0.0.1': errno: 13
<p>I'm about to set up a low traffic web server onto an old Android phone in a chrooted environment. A Debian is installed onto the phone and works properly for some months (so this is a kind of special Linux environment).</p> <p>Apache2 and Python are up and running.</p> <p>But when I start mysqld:</p> <pre><code>r...
I'm about to set up a low traffic web server onto an old Android phone in a chrooted environment. A Debian is installed onto the phone and works properly for some months (so this is a kind of special Linux environment). Apache2 and Python are up and running. But when I start mysqld: [CODE] In /etc/mysql/my.conf: [CODE]...
android|mysql|networking|debian|pymysql
4
2016-06-19T10:19:11.823Z
2,016
6
10
6
3,862
1
900
86
5
2
true
false
true
false
false
false
low
37,739,843
Opening a child dialog that overrides parent dialog dimension
<p>I want to create a dialog from another dialog's button click. I want the second dialog to occupy the whole screen, but the parent dialog itself is small. So, the second one ends up with the size of parent dialog. </p> <p>Is there any way to achieve this? Making the child dialog bigger than the parent dialog?</p>
I want to create a dialog from another dialog's button click. I want the second dialog to occupy the whole screen, but the parent dialog itself is small. So, the second one ends up with the size of parent dialog. Is there any way to achieve this? Making the child dialog bigger than the parent dialog?
android|dialog
0
2016-06-10T04:21:16.773Z
2,016
6
4
4
23
1
301
61
2
0
false
false
false
false
false
false
zero
38,004,799
Disable nested scrolling provided by v-13 support file
<p>I migrated an eclipse project to Android Studio and updated the support libraries. The project had some nested scrolling functionality which was not supported then. Now the support library itself provides support for nested scrolling so that is causing problem. All the screens which have nested fuctionality, get scr...
I migrated an eclipse project to Android Studio and updated the support libraries. The project had some nested scrolling functionality which was not supported then. Now the support library itself provides support for nested scrolling so that is causing problem. All the screens which have nested fuctionality, get scroll...
android|android-support-library
2
2016-06-24T02:36:10.633Z
2,016
6
2
4
23
1
788
54
2
0
false
false
false
false
false
false
low
38,052,856
Variable is empty in SQLite in Android
<p>My provider is</p> <pre><code>public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { if(uriMatcher.match(uri) == TEXTS_ID) selection = DBOpenHelper.text_ID + "=" + uri.getLastPathSegment(); return database.query(DBOpenHelper.TABLE_textS, DB...
My provider is [CODE] I am calling this with: [CODE] As you see, I want text when my textId=0 [CODE]
android|sqlite
0
2016-06-27T11:32:00.697Z
2,016
6
11
0
23
1
100
38
2
3
true
false
false
false
false
false
zero
37,897,229
How to use Volley in Android programming and keep code clean? (callback issues)
<p>Right now I have working code for my Android application. I use Volley, but, because of callbacks, I don't feel like my code is as clean as could be.</p> <p>Two functions of my code right now are:</p> <pre><code>private void updateSettings() { ... HTTP.requestObject(Request.Method.GET, url, null, new R...
Right now I have working code for my Android application. I use Volley, but, because of callbacks, I don't feel like my code is as clean as could be. Two functions of my code right now are: [CODE] The point here is that I want to make a "call", which isn't very important, but before that I need to update my settings fr...
java|android|callback|android-volley|code-cleanup
0
2016-06-18T12:58:25.390Z
2,016
6
12
5
279
1
840
79
5
1
true
false
false
false
false
false
zero
37,925,020
Combine two observables without using toList() because of SQLBrite under the hood
<p>1) I have method Observable> moviesWithoutGenres() which returns List of movies but movie's genres field is null</p> <p>2) I have method Observable> movieGenres(Movie m) that returns list of genres for specified field</p> <p>I need to implement method that should returns Observable> and each movie in the list will...
1) I have method Observable> moviesWithoutGenres() which returns List of movies but movie's genres field is null 2) I have method Observable> movieGenres(Movie m) that returns list of genres for specified field I need to implement method that should returns Observable> and each movie in the list will have list of genre...
java|android|sqlite|system.reactive|sqlbrite
1
2016-06-20T14:25:00.093Z
2,016
6
14
0
279
1
936
81
5
1
true
false
false
false
false
false
low
37,959,413
Is android foreground service state affected by blocking notification?
<p>In android as we know there is a feature to block notifications introduced in lollipop on. So if I have a service running as foreground and then user goes and blocks notification of the app, does it affect the foreground state of the service, i,e the service is no longer foreground and more likely to be killed by an...
In android as we know there is a feature to block notifications introduced in lollipop on. So if I have a service running as foreground and then user goes and blocks notification of the app, does it affect the foreground state of the service, i,e the service is no longer foreground and more likely to be killed by andro...
android
2
2016-06-22T05:39:49.403Z
2,016
6
5
2
279
1
323
70
1
0
false
false
false
false
false
false
low
38,057,945
Send GSM Module data to server and Retrieve from android phone
<p>We have a electronic board on which there is sim card.</p> <p>We want to</p> <ol> <li>every 1 minute send some data (e.g. temperature, humidity...) to our server.</li> <li>have server save data on database</li> <li>retrieve these data on our android phone.</li> </ol> <p>So far I wrote a simple java program as a s...
We have a electronic board on which there is sim card. We want to every 1 minute send some data (e.g. temperature, humidity...) to our server. have server save data on database retrieve these data on our android phone. So far I wrote a simple java program as a server that opens a socket and read the data and saves them...
java|android|sockets
0
2016-06-27T15:32:53.760Z
2,016
6
15
0
279
1
432
62
3
0
false
false
false
false
false
false
zero
37,992,344
Take picture without saving it
<p>I want to call the android's native camera and don't save it in the storage, because I save it myself after processing image. It works almost for all devices, except Motorola XT1032 (Android 5.1, API 22). So is there a way to tell the camera not to save the picture? Here is how I call the camera intent.</p> <pre><c...
I want to call the android's native camera and don't save it in the storage, because I save it myself after processing image. It works almost for all devices, except Motorola XT1032 (Android 5.1, API 22). So is there a way to tell the camera not to save the picture? Here is how I call the camera intent. [CODE]
java|android|android-intent
0
2016-06-23T12:57:46.620Z
2,016
6
12
3
535
1
311
30
3
1
true
false
false
false
false
false
zero
38,054,275
Choose a Location on mapview on view Touch
<p>in my app, I want the user to choose a location on a map with tapping on a view that is on top of MapView.<br/> this is my code:<br/><br/> map_fragment.xml</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="mat...
in my app, I want the user to choose a location on a map with tapping on a view that is on top of MapView. this is my code: map_fragment.xml [CODE] MapFragment.java [CODE] I have tested this code on 4 devices . in two of them, it works. and the Log prints but in other two devices, it doesn't work. it just moves the map...
android|osmdroid|android-event
3
2016-06-27T12:41:10.943Z
2,016
6
12
0
535
1
652
42
3
4
true
false
false
false
false
false
low
38,053,578
How to set up automatic Google Support Repository update for Android project?
<p><strong>I'm trying to set up automatic Google Support Repository update for my Android project on Jenkins</strong>. I found two ways to do that- <strong>Jake Wharton's SDK Manager Plugin</strong>, or <strong>Android Emulator Plugin for Jenkins</strong>, but both of those solutions seem to be deprecated. The docs for...
I'm trying to set up automatic Google Support Repository update for my Android project on Jenkins . I found two ways to do that- Jake Wharton's SDK Manager Plugin , or Android Emulator Plugin for Jenkins , but both of those solutions seem to be deprecated. The docs for SDK Manager Plugin point out that: This plugin is ...
android|jenkins|build-tools
4
2016-06-27T12:07:25.630Z
2,016
6
12
0
1,047
1
564
77
3
0
false
false
false
false
false
false
low
37,792,389
Soft keys and layout height: How to fit the layout above the soft keys?
<p>I have a tabbed AppBarLayout with Fragments. On my soft key phone (Sony Xperia Z1 Compact) my App shows below the status bar (as it should be), but behind the soft keys.</p> <p>Is there a way to set the bounds of the activity (CoordinatorLayout) to end above the soft keys?</p> <p>I found some solutions for API 19,...
I have a tabbed AppBarLayout with Fragments. On my soft key phone (Sony Xperia Z1 Compact) my App shows below the status bar (as it should be), but behind the soft keys. Is there a way to set the bounds of the activity (CoordinatorLayout) to end above the soft keys? I found some solutions for API 19, but my minVersion ...
android|android-layout|softkeys
0
2016-06-13T14:29:20.820Z
2,016
6
14
0
1,303
1
440
71
3
0
false
false
false
false
false
false
zero
37,888,344
How can i add this popup.xml to this fragment?
<p>Hello i want to add a popup window to a fragment i tried a lot of things still nothing i have. If someone helps me it will be great.</p> <p>Here is my Fragment code;</p> <pre><code>public class Info extends Fragment { public Info() { // Required empty public constructor } @Override public void onCreate(Bundl...
Hello i want to add a popup window to a fragment i tried a lot of things still nothing i have. If someone helps me it will be great. Here is my Fragment code; [CODE] Here is my fragment.xml [CODE] Here is my popup.xml [CODE]
android|android-fragments
0
2016-06-17T18:43:58.033Z
2,016
6
18
4
24
1
224
46
2
3
true
false
false
false
false
false
zero
38,019,792
Declaring ListView In Fragment?
<p>I am not getting any compilation error. But The problem is when i start the app it's not showing anything except a blank screen. So I am going to provide the codes below. package layout;</p> <p>Fragment</p> <pre><code>import android.content.Context; import android.net.Uri; import android.os.Bundle; import android....
I am not getting any compilation error. But The problem is when i start the app it's not showing anything except a blank screen. So I am going to provide the codes below. package layout; Fragment [CODE] And yes i added the fragment to activity_main.xml file .
android|listview|android-fragments
0
2016-06-24T18:19:15.613Z
2,016
6
18
4
24
1
259
31
3
1
true
false
false
false
false
false
zero
38,044,921
Im having an issue with emulating or using my xperia z1 with android studio.It says "/dev/kvm is not found"
<p>Im very new to android studio. I cant test an app that I made. Im having an issue with emulating or using my xperia z1 with android studio.It says "/dev/kvm is not found" I enabled bios virtualization installed intel HAXM. My system is windows 7 32 bit. I used the emulator and the phone in my windows 10 64bit in my ...
Im very new to android studio. I cant test an app that I made. Im having an issue with emulating or using my xperia z1 with android studio.It says "/dev/kvm is not found" I enabled bios virtualization installed intel HAXM. My system is windows 7 32 bit. I used the emulator and the phone in my windows 10 64bit in my des...
android
1
2016-06-27T01:58:50.283Z
2,016
6
1
0
24
1
409
107
1
0
false
false
false
false
false
false
low
37,922,388
How to set off screen gesture Programmatically?
<p>I want to set OnGesturePerformedListeners. </p> <p>I created one service and one broadcast receiver when to set OnGesturePerformedListener.</p> <p>How to detect when I draw round gesture in off screen?</p>
I want to set OnGesturePerformedListeners. I created one service and one broadcast receiver when to set OnGesturePerformedListener. How to detect when I draw round gesture in off screen?
android|gesture
0
2016-06-20T12:16:28.510Z
2,016
6
12
0
280
1
186
47
2
0
false
false
false
false
false
false
zero
38,026,929
How to manually enable android hardware acceleration after setContentView?
<p>In my SplashActivity, sometimes it will display a image view , and sometimes it will display gif. I use <a href="https://github.com/koral--/android-gif-drawable" rel="nofollow">android-gif-drawable</a> to play gif. But I found, if I don't set activity <code>&lt;activity android:hardwareAccelerated="true" /&gt;</code...
In my SplashActivity, sometimes it will display a image view , and sometimes it will display gif. I use android-gif-drawable to play gif. But I found, if I don't set activity <activity android:hardwareAccelerated="true" /> , gif will play under normal rate. Only I enable hardwareAccelerated, it plays normal. However, a...
android|gif
-1
2016-06-25T09:24:04.767Z
2,016
6
9
5
280
1
804
74
2
1
true
false
false
false
false
true
negative
37,826,815
How can i use phone to phone call feature using sinch sdk
<p>I have implemented app to app calling &amp; app to phone calling using but How can i use phone to phone call feature using sinch sdk. I have seen this feature in REBTEL app as local call setting. i can not find any tutorial related to this on sinch official website.</p>
I have implemented app to app calling & app to phone calling using but How can i use phone to phone call feature using sinch sdk. I have seen this feature in REBTEL app as local call setting. i can not find any tutorial related to this on sinch official website.
android|sinch|android-sinch-api
1
2016-06-15T05:27:04.787Z
2,016
6
5
2
536
1
262
57
3
0
false
false
false
false
false
false
low
37,982,899
How to Drag and Drop Item (Use ImageView) from One GridView to another GridView in same layout in android?
<p>How to possible for Drag and Drop image from one GridView to another GridView?</p> <p>I am using only ImageView for one GridView.</p> <p>TextView and ImageView using for second Gridview.</p> <p>My screenshot is:</p> <p><a href="https://i.stack.imgur.com/Wwsad.jpg" rel="nofollow noreferrer"><img src="https://i.st...
How to possible for Drag and Drop image from one GridView to another GridView? I am using only ImageView for one GridView. TextView and ImageView using for second Gridview. My screenshot is: Image set using Piccaso (use Image path). Not download image from server, directly set path using Picasso and display image in Gr...
android|image|gridview
2
2016-06-23T05:17:53.867Z
2,016
6
5
3
792
1
381
106
3
0
false
false
false
false
false
false
low
37,640,238
can not able to play mp3 files in android development
<p>here i am trying to play an mp3 file located in sdcard/music/audioex.m4a but its not playing any sound. here is my code and i am also getting a warning says"MediaPlayer finalized without being released"</p> <pre><code>package com.example.me.audioplay; import android.media.AudioManager; import android.media.MediaPl...
here i am trying to play an mp3 file located in sdcard/music/audioex.m4a but its not playing any sound. here is my code and i am also getting a warning says"MediaPlayer finalized without being released" [CODE]
android
0
2016-06-05T09:11:17.527Z
2,016
6
9
6
25
1
209
53
1
1
true
false
false
false
false
false
zero
37,690,106
value disapears when trying to get it back on second Fragment
<p>I opening <strong>Fragment B</strong> from <strong>Fragment A</strong> with <strong>startActivityForResult</strong> when <strong>Fragment B</strong> closes I get String value from <strong>EditText</strong> to <strong>Fragment A</strong> and everything works fine but now I opening same <strong>Fragment B</strong> fro...
I opening Fragment B from Fragment A with startActivityForResult when Fragment B closes I get String value from EditText to Fragment A and everything works fine but now I opening same Fragment B from Fragment A and I want it to have that earlier returned value but it disappears here I'm storing purposeText value from e...
java|android|android-fragments|android-edittext
0
2016-06-07T21:57:50.730Z
2,016
6
21
1
25
1
680
61
4
3
true
false
false
false
false
false
zero
37,719,019
Custom PieProgress in android
<p>Hi i want to draw a PieProgress like an attached image.</p> <p><a href="https://i.stack.imgur.com/JNvRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JNvRa.png" alt="enter image description here"></a></p> <p>Any Suggestion ?</p> <p>I can draw this Progress but how can i place this parallel im...
Hi i want to draw a PieProgress like an attached image. Any Suggestion ? I can draw this Progress but how can i place this parallel image on the center of this progress bar.
android|progress-bar|custom-view
0
2016-06-09T07:06:11.627Z
2,016
6
7
3
25
1
173
29
3
0
false
false
false
false
false
false
zero
37,790,007
How to get more control and syncronization with Service?
<p>Currently I'm developing an App which run a service. This service is not binded to any activity and even is launched alone(with no ui or activity) at the boot of the device.</p> <p>This service setting makes really hard to have control of the service or to have a good syncronization/communitcation with UI activiti...
Currently I'm developing an App which run a service. This service is not binded to any activity and even is launched alone(with no ui or activity) at the boot of the device. This service setting makes really hard to have control of the service or to have a good syncronization/communitcation with UI activities when it i...
android|android-service
1
2016-06-13T12:35:31.137Z
2,016
6
12
0
25
1
443
56
2
0
false
false
false
false
false
false
low
37,999,646
I have trouble figuring out how to come up with a menu like this one on Truedialer
<p>I am developing an app where I have several items in a list and I want to show a menu like in truedialer whereby it pull from the bottom of the screen but does not fill. When I drag it upwards it can still fill the screen.. I have the menu items in an stand alone activity. Can Someone help me figure out how o have ...
I am developing an app where I have several items in a list and I want to show a menu like in truedialer whereby it pull from the bottom of the screen but does not fill. When I drag it upwards it can still fill the screen.. I have the menu items in an stand alone activity. Can Someone help me figure out how o have to a...
android|listactivity
0
2016-06-23T18:54:23.567Z
2,016
6
18
3
25
1
457
82
2
0
false
false
false
false
false
false
zero
37,648,902
How to add the photos to ReferrenceScreen on android?
<p>Now create an Fragment subclass that will show your ImageView and provide a container that will hold your preferences:</p> <pre class="lang-html prettyprint-override"><code>public class More : Android.Support.V4.App.Fragment { private MainActivity mainActivity; public override void OnCreate (B...
Now create an Fragment subclass that will show your ImageView and provide a container that will hold your preferences: [CODE] I want to set image inside PreferenceScreen as below picture Settings Create a PreferenceFragment subclass that will display just your preferences, I copy/pasted yours into a file Resources/layo...
android|xamarin|xamarin.android
0
2016-06-06T02:47:40.523Z
2,016
6
2
0
281
1
389
53
3
2
true
false
false
false
false
false
zero
37,897,644
phonegap build is run but java -version error
<p>My system is in install some application like:</p> <p>Phonegap v6.2.5</p> <p>node v5.6.0</p> <p>java jdk1.8.0_60</p> <p>java jre1.8.0_91</p> <p>I am build android app using phonegap, but some error, like:</p> <p><strong>[phonegap]</strong> executing 'cordova build'...</p> <p>Error: Failed to run "java -versio...
My system is in install some application like: Phonegap v6.2.5 node v5.6.0 java jdk1.8.0_60 java jre1.8.0_91 I am build android app using phonegap, but some error, like: [phonegap] executing 'cordova build'... Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www...
android|cordova|phonegap-build
0
2016-06-18T13:42:17.990Z
2,016
6
13
5
281
1
427
45
3
0
false
false
false
false
false
false
zero
37,907,031
Value changed in .json file on server changes back to initial value after some time
<p>I have a small PHP app in Cloud9 and I hosted it at Heroku using the Git terminal of Cloud9. </p> <p>The point of the web app is that there are some configuration values (essentially name value pairs) which an administrator can set in the web app. These values are then stored in a <code>.json</code> file. The web ...
I have a small PHP app in Cloud9 and I hosted it at Heroku using the Git terminal of Cloud9. The point of the web app is that there are some configuration values (essentially name value pairs) which an administrator can set in the web app. These values are then stored in a .json file. The web app offers those configura...
android|rest|heroku|android-volley|cloud9
0
2016-06-19T12:04:46.120Z
2,016
6
12
6
281
1
1,381
83
5
0
false
false
false
false
false
false
zero
37,985,171
Opening images saved inside app folder
<p>Relatively new to android and beginner with Gallery functionality . Having said that, In my app, I am saving images inside gallery folder (Gallery/MyAppFolder). I am displaying these folder inside a GridView. Till here it is working fine as expected. Now I am trying to implement a click listener on gridview which ...
Relatively new to android and beginner with Gallery functionality . Having said that, In my app, I am saving images inside gallery folder (Gallery/MyAppFolder). I am displaying these folder inside a GridView. Till here it is working fine as expected. Now I am trying to implement a click listener on gridview which shoul...
android|gridview|android-gallery
0
2016-06-23T07:42:13.920Z
2,016
6
7
3
281
1
749
38
3
1
true
false
false
false
false
false
zero
37,775,885
Handle touch listeners in ViewPager with an inner fragment within a fragment
<p>I'm using a <code>ViewPager</code> with an <code>FragmentStatePagerAdapter</code> in order to show a list of fragments <code>Group A</code>, thats allows me to swipe between fragments by touch. Each fragment from <code>Group A</code> holds an inner fragment <code>Group B</code>.</p> <p>In one of the fragments from ...
I'm using a ViewPager with an FragmentStatePagerAdapter in order to show a list of fragments Group A , thats allows me to swipe between fragments by touch. Each fragment from Group A holds an inner fragment Group B . In one of the fragments from Group B , there is a Chart object which enables a horizontal scrolling whi...
android|user-interface|android-fragments|android-viewpager
0
2016-06-12T15:19:47.717Z
2,016
6
15
6
793
1
691
76
4
0
false
false
false
false
false
false
zero
37,965,827
Cant unscribe firebase cloud messaging android
<p>Sorry for my english. I try use FCM for my test application, everething work fine i use documentation, and in this documentation write if you want unsubscribe from topik use <code>unsubscribeFromTopic</code>, and i use it like this:</p> <pre><code> public void unscribeChannel(final String chanel) { Firebase...
Sorry for my english. I try use FCM for my test application, everething work fine i use documentation, and in this documentation write if you want unsubscribe from topik use unsubscribeFromTopic , and i use it like this: [CODE] but after this nothink happens, I still get notifications( Then i try delete token like this...
android|push-notification|firebase-cloud-messaging
2
2016-06-22T10:49:29.507Z
2,016
6
10
2
793
1
375
46
3
2
true
false
false
false
false
false
low
37,753,501
Cross platform recurring app subscriptions
<p>I have been researching this topic for several days now and I have not found a conclusive answer.</p> <p>I am working on an event sharing app that uses cloud storage. I want to charge users a recurring monthly subscription for the storage. There will be an Android, iOS and web version of this app. For the iOS and A...
I have been researching this topic for several days now and I have not found a conclusive answer. I am working on an event sharing app that uses cloud storage. I want to charge users a recurring monthly subscription for the storage. There will be an Android, iOS and web version of this app. For the iOS and Android comp...
android|ios|subscription|recurring|in-app
1
2016-06-10T16:54:21.767Z
2,016
6
16
4
1,049
1
698
42
5
0
false
false
false
false
false
false
low
37,718,820
Android Tv - Losing Focus in Details Fragment
<p>I am developing a Android Tv application using <code>lean-back</code> library. I am losing focus when pressing down in <code>DPAD</code>. Description is not seeing completely. First Focus going to Action Row and then navigate to the last Row . How to give focus to the description ? I am using <code>FullWidthDetailsO...
I am developing a Android Tv application using lean-back library. I am losing focus when pressing down in DPAD . Description is not seeing completely. First Focus going to Action Row and then navigate to the last Row . How to give focus to the description ? I am using FullWidthDetailsOverviewRowPresenter and DetailsDes...
android|android-tv|television|leanback
1
2016-06-09T06:55:48.750Z
2,016
6
6
3
1,561
1
359
45
4
0
false
false
false
false
false
false
low
37,688,142
Intent-Filter implementation for customized file Extensions on Xamarin
<p>I want to open files with customized extensions in my app. It can come from email, downloads, Bluetooth etc. Whenever user taps on those files my application should open and perform some tasks. I need a reference/help for xamarin platform. I am literally new in this. </p> <p>My android menifest</p> <pre><code>&lt...
I want to open files with customized extensions in my app. It can come from email, downloads, Bluetooth etc. Whenever user taps on those files my application should open and perform some tasks. I need a reference/help for xamarin platform. I am literally new in this. My android menifest [CODE] Activity Code [CODE] Gett...
android-intent|xamarin|xamarin.android
2
2016-06-07T19:52:29.303Z
2,016
6
19
1
1,817
1
731
70
3
2
true
false
false
false
false
false
low
37,892,159
Cannot resolve symbol Configuration when initializing Parse
<p>Im trying to initializing Parse on the oncreate function but it cant find the static class Configuration.</p> <p>here's the initialization from documentation:</p> <pre><code> Parse.initialize(new Parse.Configuration.Builder(this) .applicationId("myAppId") .clientKey(null) ....
Im trying to initializing Parse on the oncreate function but it cant find the static class Configuration. here's the initialization from documentation: [CODE] The Configuration in Parse.Configuration is marked red. I have also added the latest dependency: [CODE] Not sure why it cant find the configuration class.
android|parse-platform|initialization
2
2016-06-18T00:35:32.430Z
2,016
6
0
5
2,073
1
313
59
3
2
true
false
false
false
false
false
low
37,620,350
Joomla: disabling iphone and android view for a template
<p>I am currently trying to disable the iphone and android view for a specific template within my site. I don't have much experience with joomla but I've been using google to find some answers but so far no luck.</p> <p>I've tried removing the files 'index-iphone' and 'index-android' from the template xml but on mobil...
I am currently trying to disable the iphone and android view for a specific template within my site. I don't have much experience with joomla but I've been using google to find some answers but so far no luck. I've tried removing the files 'index-iphone' and 'index-android' from the template xml but on mobile it stills...
android|iphone|templates|joomla|content-management-system
0
2016-06-03T17:30:33.323Z
2,016
6
17
4
26
1
481
56
5
0
false
false
false
false
false
false
zero
37,633,445
Code referencing internal library not working
<p>I am trying to make my first library to learn and see how things work. What is supposed to happen is that my main activity (in the sample or whatever app uses the local library) will show a loading animation from the library. But when I add in the code, it does not show in the sample. I'm not getting any errors or a...
I am trying to make my first library to learn and see how things work. What is supposed to happen is that my main activity (in the sample or whatever app uses the local library) will show a loading animation from the library. But when I add in the code, it does not show in the sample. I'm not getting any errors or anyt...
java|android|xml|shared-libraries
0
2016-06-04T18:05:25.933Z
2,016
6
18
5
26
1
574
45
4
3
true
false
false
false
false
false
zero
37,905,567
Location of a permission
<p>I am making an AAR for licensing functionality. I plan to use it in multiple applications.</p> <p>As per documentation, licensing implementation needs a permission in manifest file: "com.android.vending.CHECK_LICENSE"</p> <p>I am not sure where should this permission be kept,in application's manifest file or libra...
I am making an AAR for licensing functionality. I plan to use it in multiple applications. As per documentation, licensing implementation needs a permission in manifest file: "com.android.vending.CHECK_LICENSE" I am not sure where should this permission be kept,in application's manifest file or library project's manife...
android|google-license-manager
0
2016-06-19T09:03:50.417Z
2,016
6
9
6
26
1
328
24
2
0
false
false
false
false
false
false
zero
38,019,644
Adapt Gradle of Module to experimental Android
<p>Which changes do I need for this Gradle from one module if I am sing the experimental tools gradle in my top gradle project?</p> <pre><code>buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' } } apply plugin: 'com.android.library' re...
Which changes do I need for this Gradle from one module if I am sing the experimental tools gradle in my top gradle project? [CODE] Thanks for your help.
android|android-gradle-plugin|gradle-experimental
0
2016-06-24T18:09:05.223Z
2,016
6
18
4
26
1
153
46
3
1
true
false
false
false
false
false
zero
38,031,235
Autoincrement VersionCode Gradle task not executing as expected
<p>I wanted to automate android gradle versioning my requirement is </p> <p>Ver Code Version Name</p> <p><a href="https://i.stack.imgur.com/PHh94.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PHh94.jpg" alt="enter image description here"></a></p> <p>So i have runned code in java application</p>...
I wanted to automate android gradle versioning my requirement is Ver Code Version Name So i have runned code in java application Code: [CODE] And my code is working as expected but in gradle for the same code [CODE] Run :> gradlew firstTask output is different why i am getting like this
android|gradle|android-gradle-plugin
0
2016-06-25T17:41:15.943Z
2,016
6
17
5
26
1
287
63
3
2
true
false
false
false
false
false
zero
38,041,782
Debugging an App, that needs a URL to a server
<p>I have a Xamarin Solution with an Android, iOS, and Windows mobile solution. I also have a Web Server that sits on localhost:XXXX. I need to be able to access the URI endpoints on my local, while debugging on Mobile.</p> <p>While the Web Server is running I go to fiddler, and compose <code>http://localhost:XXXX/api...
I have a Xamarin Solution with an Android, iOS, and Windows mobile solution. I also have a Web Server that sits on localhost:XXXX. I need to be able to access the URI endpoints on my local, while debugging on Mobile. While the Web Server is running I go to fiddler, and compose http://localhost:XXXX/api/Locations and ev...
android|ios|rest|debugging
0
2016-06-26T18:30:20.787Z
2,016
6
18
6
26
1
578
46
4
0
false
false
false
false
false
false
zero
37,614,412
How does PacketZoom work?
<p>I want to track all HTTP requests from my android app (including the requests made by libraries used in the app), by just adding some kind of interceptor. But it isn't obvious how should I do it. Here is a SDK which claims that it does optimisations on network requests, so you just have to add it to your project and...
I want to track all HTTP requests from my android app (including the requests made by libraries used in the app), by just adding some kind of interceptor. But it isn't obvious how should I do it. Here is a SDK which claims that it does optimisations on network requests, so you just have to add it to your project and it...
android|http|networking|java-native-interface|httpurlconnection
0
2016-06-03T12:28:08.190Z
2,016
6
12
4
282
1
715
25
5
0
false
false
false
false
false
false
zero
37,777,134
Check for internet on all activity and show message WHILE net is disconnected
<h2>AIM</h2> <p>Here is what I want to do:</p> <ol> <li>Check for internet connection at all the times in all the activities of my application (I have like 13 activities so far).</li> <li>If net is working then all is fine.</li> <li>If net is not working, show a message (using RelativeLayout) which will be displayed ...
AIM Here is what I want to do: Check for internet connection at all the times in all the activities of my application (I have like 13 activities so far). If net is working then all is fine. If net is not working, show a message (using RelativeLayout) which will be displayed WHILE user is offline i.e. until net works ag...
android|android-intent|android-broadcastreceiver
3
2016-06-12T17:32:20.203Z
2,016
6
17
6
538
1
1,237
77
3
5
true
false
false
false
false
false
low
37,963,065
Cannot compile branch.io on Android Studio, Gradle build error
<p>Cannot compile branch.io on Android, Gradle build error</p> <p>with the message</p> <blockquote> <p>Error:Failed to resolve: com.crashlytics.sdk.android:answers:1.3.6</p> </blockquote> <p>Last time its has no errors!</p>
Cannot compile branch.io on Android, Gradle build error with the message Error:Failed to resolve: com.crashlytics.sdk.android:answers:1.3.6 Last time its has no errors!
android-studio|android-gradle-plugin|branch.io
0
2016-06-22T08:52:54.963Z
2,016
6
8
2
794
1
168
62
3
0
false
false
false
false
false
false
zero
37,679,672
Android release in play market
<p>I post my application in play market and I get compatible platform as common-io.jar and compatible devices is 0. I tried a lot of approaches but still cannot solve this problem. Can anybody help?</p>
I post my application in play market and I get compatible platform as common-io.jar and compatible devices is 0. I tried a lot of approaches but still cannot solve this problem. Can anybody help?
android|apache|release
0
2016-06-07T12:40:36.033Z
2,016
6
12
1
27
1
195
30
3
0
false
false
false
false
false
false
zero
37,691,721
How to add website hypelink in android app's menu?
<p>I want to add my websites hyperlink in android application menu, Menu Image <a href="http://i.stack.imgur.com/lxXKK.jpg" rel="nofollow">Here</a>, as i am a web developer so i dnt have android codding knowledge, i can only edit android code plz see the code and make and example code for me</p> <pre><code> package...
I want to add my websites hyperlink in android application menu, Menu Image Here , as i am a web developer so i dnt have android codding knowledge, i can only edit android code plz see the code and make and example code for me [CODE]
android|android-studio
0
2016-06-08T01:01:26.943Z
2,016
6
1
2
27
1
233
50
2
1
true
false
false
false
false
false
zero
37,718,317
How to login app by Microsoft Azure?
<p>I have set facebook authentication up on Microsoft Azure. Now I want to use it in Xamarin android. How to do that?</p>
I have set facebook authentication up on Microsoft Azure. Now I want to use it in Xamarin android. How to do that?
azure|xamarin|xamarin.android
0
2016-06-09T06:25:34.387Z
2,016
6
6
3
27
1
114
36
3
0
false
false
false
false
false
false
zero
37,741,707
Ability to change the attributes of the default selector when uploading through android
<p>We have a website where on mobile and specifically android devices when people want to change their "avatar" image the options that show up when we click on "upload" does not have the "Gallery". Instead it has "Documents" is there a way to define what to show and what not to show?</p> <p>We are using PHP if that ma...
We have a website where on mobile and specifically android devices when people want to change their "avatar" image the options that show up when we click on "upload" does not have the "Gallery". Instead it has "Documents" is there a way to define what to show and what not to show? We are using PHP if that matters at al...
android|web|responsive
0
2016-06-10T06:51:02.113Z
2,016
6
6
4
27
1
362
87
3
0
false
false
false
false
false
false
zero
37,763,542
Different One-time screens
<p>I am Wondering about one-time screens. I'll need to use few one-time screens on my app. </p> <p>First of all:</p> <p>One-time screen, that SAVES user selection from 3 options (I use image buttons) and let him go further, but next time user comes to this activity, it opens the activity of the option that user selec...
I am Wondering about one-time screens. I'll need to use few one-time screens on my app. First of all: One-time screen, that SAVES user selection from 3 options (I use image buttons) and let him go further, but next time user comes to this activity, it opens the activity of the option that user selected earlier. I know ...
java|android
0
2016-06-11T12:08:22.627Z
2,016
6
12
5
27
1
393
26
2
0
false
false
false
false
false
false
zero
37,793,769
Android - Listing of all in app Google purchaseable items for an app - Does it still not exist?
<p>I've seen this asked 2 and 3 years ago without a simple solution of how to query for all of the items in my in app purchase dashboard. With it being 2016 is there a way to do this now. I still don't see anything in the doc of how to query all of the product sku's that then you can get the details on.</p> <p>UPDAT...
I've seen this asked 2 and 3 years ago without a simple solution of how to query for all of the items in my in app purchase dashboard. With it being 2016 is there a way to do this now. I still don't see anything in the doc of how to query all of the product sku's that then you can get the details on. UPDATE: so is ther...
android|android-billing
0
2016-06-13T15:32:54.077Z
2,016
6
15
0
27
1
517
95
2
0
false
false
false
false
false
false
zero
37,840,973
what is the best template to use if scrolling required in app
<p>I wish to create an app in android studio which will require scrolling. Which template should I select when I begin? Thanks.</p>
I wish to create an app in android studio which will require scrolling. Which template should I select when I begin? Thanks.
android-studio
1
2016-06-15T16:31:40.740Z
2,016
6
16
2
27
1
124
61
1
0
false
false
false
false
false
false
low
37,864,765
Toolbar is not responding to anything
<p>I am stuck on a very interesting problem that I have tried to solve for quite some time. I have added toolbars to views in Android before, but have never faced the below problem.</p> <p>When accessing the Toolbar directly, or assigning it by <code>setSupportActionBar(myToolbar)</code> The toolbar itself will not be...
I am stuck on a very interesting problem that I have tried to solve for quite some time. I have added toolbars to views in Android before, but have never faced the below problem. When accessing the Toolbar directly, or assigning it by setSupportActionBar(myToolbar) The toolbar itself will not be modifiable in any way. ...
java|android|xml|toolbar
1
2016-06-16T16:33:01.573Z
2,016
6
16
3
27
1
923
37
4
4
true
false
false
false
false
false
low
38,010,927
How to fetch .net web service in android?
<p>I have a web service written in .net whose url is <a href="http://aaplasatara.absoftwaresolution.com/Service.svc?wsdl" rel="nofollow">http://aaplasatara.absoftwaresolution.com/Service.svc?wsdl</a> I want to fetch the data from web service and save it to sqlite database. I don't want to use php.Please give solution.....
I have a web service written in .net whose url is http://aaplasatara.absoftwaresolution.com/Service.svc?wsdl I want to fetch the data from web service and save it to sqlite database. I don't want to use php.Please give solution...
android|.net
-1
2016-06-24T10:13:00.163Z
2,016
6
10
4
27
1
230
41
2
0
false
false
false
false
false
true
negative
37,812,573
How to authenticate and remember user within native app (Android/iOS)?
<p>This might have been duplicate, as there are many similar question on SO, but I haven't find my answer on any of other questions..</p> <p>I have an Android/iOS client apps and a server that provides resources to the client apps. Client communicates with server via REST api. Android/iOS app requires logged user for ...
This might have been duplicate, as there are many similar question on SO, but I haven't find my answer on any of other questions.. I have an Android/iOS client apps and a server that provides resources to the client apps. Client communicates with server via REST api. Android/iOS app requires logged user for it's work. ...
android|rest|security|authentication|oauth-2.0
1
2016-06-14T12:51:11.507Z
2,016
6
12
1
283
1
1,051
70
5
0
false
false
false
false
false
false
low