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
36,801,537
Using startActivityForResult to Add Data To List
<p>I'm new to Android. I want to create a directory in my app. I will only display names there. I'm using Directory class to display names and AddPerson class to add there. However AddPerson is not working. Here is my Directory:</p> <pre><code> package com.example.user.myapplication; import android.con...
I'm new to Android. I want to create a directory in my app. I will only display names there. I'm using Directory class to display names and AddPerson class to add there. However AddPerson is not working. Here is my Directory: [CODE] This is the AddPerson class: package com.example.user.myapplication; [CODE]
java|android|listview|startactivityforresult
-1
2016-04-22T19:05:26.527Z
2,016
4
19
4
620
3
308
48
4
2
true
false
false
false
false
true
negative
36,801,538
java android gallery image import
<p>So I'm working on a project that will take in an image from the android gallery, open it in the imageview, and display a bunch of statistics for image quality assessment. These stats include brightness, sharpness, image orientation, and contrast, which all seem to be working. Currently I have it working with a folde...
So I'm working on a project that will take in an image from the android gallery, open it in the imageview, and display a bunch of statistics for image quality assessment. These stats include brightness, sharpness, image orientation, and contrast, which all seem to be working. Currently I have it working with a folder t...
java|android|image|android-gallery
0
2016-04-22T19:05:27.697Z
2,016
4
19
4
92
0
1,556
33
4
1
true
true
false
false
false
false
zero
36,801,553
Custom row listview adapter crashing
<p>I tried following <a href="http://www.youtube.com/watch?v=0zQCv0Xb3pk" rel="nofollow">slidenerds youtube 6 part tutorial</a> to create a listview with custom rows. In his tutorial he uses 1 image and 2 textviews, I needed 3 images and 3 textviews, when I run the app it crashes trying to load up the listview.</p> <...
I tried following slidenerds youtube 6 part tutorial to create a listview with custom rows. In his tutorial he uses 1 image and 2 textviews, I needed 3 images and 3 textviews, when I run the app it crashes trying to load up the listview. -------------homesinglerow.xml----------------------- [CODE] ------------------Hom...
java|android|xml|listview|android-custom-view
0
2016-04-22T19:06:18.557Z
2,016
4
19
4
49
1
4,484
36
5
3
true
false
false
false
false
false
zero
36,801,562
Passing an Array to an ArrayAdapter from shared preferences. Android
<p>Afternoon all,</p> <p>I'm pretty new to android and java in general so I'm not sure if what I'm trying to achieve is possible this way.</p> <p>I'm trying to implement a Get and Set method in a shared preference class to save an Array and get it out again when required. In a perfect world I would use the code below...
Afternoon all, I'm pretty new to android and java in general so I'm not sure if what I'm trying to achieve is possible this way. I'm trying to implement a Get and Set method in a shared preference class to save an Array and get it out again when required. In a perfect world I would use the code below: [CODE] My get and...
java|android|sharedpreferences
0
2016-04-22T19:06:38.460Z
2,016
4
19
4
394
2
762
68
3
1
true
false
false
false
false
false
zero
36,801,567
How to make camera take picture when proximity sensor is activated?
<p><strong>I'm interested in knowing how to activate the camera the i have in my program when the proximity sensor is triggered or activated.</strong> I already made a sensor and a camera button that launches the camera on the phone but I can't find a way to make it so the sensor when triggered it launches the camera a...
I'm interested in knowing how to activate the camera the i have in my program when the proximity sensor is triggered or activated. I already made a sensor and a camera button that launches the camera on the phone but I can't find a way to make it so the sensor when triggered it launches the camera and takes the picture...
android
-1
2016-04-22T19:06:55.663Z
2,016
4
19
4
1,404
2
416
67
1
1
true
false
false
false
false
true
negative
36,801,612
Using OR operator with 2 placeholders with same value
<p>I am a newcomer to Android Programming and looking for some help with my query. I am trying to find all fixtures where the <code>id</code> of a selected team is equal to the home team <code>team_1_id</code> or away team <code>team_2_id</code></p> <p>I have the below query, it is only returning results where the <co...
I am a newcomer to Android Programming and looking for some help with my query. I am trying to find all fixtures where the id of a selected team is equal to the home team team_1_id or away team team_2_id I have the below query, it is only returning results where the id is team_1_id and not team_2_id [CODE] Whenever I t...
android|sqlite|android-sqlite
4
2016-04-22T19:09:48.390Z
2,016
4
19
4
60
2
500
53
3
3
true
false
false
false
false
false
low
36,801,790
Got crash after adding Onmarkerclicklistener
<p>Like title, my app crash if I add OnMarkerClickListener or OnInfoWindowClickListener. Please help me. I have updated the code This is my code, sorry I'm newbie :|</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.la...
Like title, my app crash if I add OnMarkerClickListener or OnInfoWindowClickListener. Please help me. I have updated the code This is my code, sorry I'm newbie :| [CODE] ... }
android|google-maps|google-maps-markers|onclicklistener
-1
2016-04-22T19:21:53.407Z
2,016
4
19
4
96
1
175
44
4
1
true
false
false
false
false
true
negative
36,801,836
Android SurfaceView NullPointerException after FragmentTransaction
<p>What the code is doing:<br> Masks a rectangular bitmap image using a circular bitmap mask. This code works if in a layout on it's own, but fails if it's the incomming view in a fragment replace transaction.</p> <pre><code>@Override public void run() { while(isRunnable){ // draw to the canvas /...
What the code is doing: Masks a rectangular bitmap image using a circular bitmap mask. This code works if in a layout on it's own, but fails if it's the incomming view in a fragment replace transaction. [CODE] The Problem: I have two fragements which are being swapped using a FragmentTransaction . The second fragment i...
android|multithreading|android-fragments|nullpointerexception|surfaceview
0
2016-04-22T19:25:16.180Z
2,016
4
19
4
199
0
714
66
5
2
true
true
false
false
false
false
zero
36,801,840
Android calendar api 403 forbidden Insufficient permission error
<p>I am developing a calendar app using google calendar api. I can able to query the list of events add in the google calendar, but I am getting error while creating an event to the google calendar. The following is the error</p> <pre><code>com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidd...
I am developing a calendar app using google calendar api. I can able to query the list of events add in the google calendar, but I am getting error while creating an event to the google calendar. The following is the error [CODE] Here is my code: [CODE] AsyncClass [CODE] Need help to solve this issue. Thanks in advance...
android|google-calendar-api|android-calendar
1
2016-04-22T19:25:39.433Z
2,016
4
19
4
772
1
321
64
3
3
true
false
false
false
false
false
low
36,801,888
Android Studio not recognizing gradle 2.10
<p>This question is kind of two fold, I am trying to update my google app engine backend and i keep getting this error: </p> <pre><code>:contentbackend:appengineUpdate Please enter code: Encountered a problem: No line found </code></pre> <p>I was reading around and saw people saying this issue is related to Android S...
This question is kind of two fold, I am trying to update my google app engine backend and i keep getting this error: [CODE] I was reading around and saw people saying this issue is related to Android Studio and to just manually trigger appengineUpdate like this: [CODE] So everytime i try that im getting this error now:...
google-app-engine|gradle|android-gradle-plugin|gradlew
0
2016-04-22T19:29:39.110Z
2,016
4
19
4
88
1
800
42
4
4
true
false
false
false
false
false
zero
36,801,906
Combining Use Cases/Interactors in Clean Architecture
<p>I'm developing an Android app whose architecture is based on <a href="https://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html" rel="noreferrer">Uncle's Bob Clean Architecture</a>.</p> <p>I've already implemented a lot of my <em>UseCases/ Interactors</em> whithout problems, until now. </p> <p>I h...
I'm developing an Android app whose architecture is based on Uncle's Bob Clean Architecture . I've already implemented a lot of my UseCases/ Interactors whithout problems, until now. I have the following use case: Search Room Main Success Scenario System search for rooms based on given parameters System join the user i...
android|architecture
8
2016-04-22T19:30:29.053Z
2,016
4
19
4
4,355
2
766
53
2
1
true
false
true
false
false
false
medium
36,801,988
proguardFile getDefaultDexGuardFile('dexguard-release.pro') no longer works
<p>When using DexGuard with android studio, there's a line we have always needed to include for our release builds, and that's</p> <pre><code>proguardFile getDefaultDexGuardFile('dexguard-release.pro') </code></pre> <p>I have never been able to figure out how to change the path that getDefaultDexGuardFile looks in fo...
When using DexGuard with android studio, there's a line we have always needed to include for our release builds, and that's [CODE] I have never been able to figure out how to change the path that getDefaultDexGuardFile looks in for dexguard-release.pro, but so far it has always been correctly searching in the /lib fold...
android|android-studio|proguard|dexguard
1
2016-04-22T19:36:24.183Z
2,016
4
19
4
3,002
1
1,131
75
4
2
true
false
true
false
false
false
low
36,802,113
Android ndk nested modules
<p>I have a native project that in frustration with the make system I got working by simply jamming all the code together many years ago. I attempted to port the project properly to gradle-experimental, but that's still a disaster 2.5 years later. I'm now trying to get the Android.mk system to work within the reorgan...
I have a native project that in frustration with the make system I got working by simply jamming all the code together many years ago. I attempted to port the project properly to gradle-experimental, but that's still a disaster 2.5 years later. I'm now trying to get the Android.mk system to work within the reorganized ...
android|c++|android-ndk|java-native-interface
11
2016-04-22T19:43:44.900Z
2,016
4
19
4
526
1
1,208
26
4
4
true
false
false
false
true
false
medium
36,802,117
Background Image AndroidStudio
<p>I want to put image(menumain) as fullscreen background. My code is:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" a...
I want to put image(menumain) as fullscreen background. My code is: [CODE] There is problem because image is not on full screen. There is 'blank' around (image is on center). What should I do for solve this problem? Actually I have: [CODE]
java|android|xml|android-studio
0
2016-04-22T19:43:58.880Z
2,016
4
19
4
56
2
239
30
4
2
true
false
false
false
false
false
zero
36,802,194
FragmentActivity being used in place of getActivity?
<p>This is a strange question, but the <code>getActivity()</code> call in the LogCat is showing up as <code>android.support.v4.app.FragmentActivity</code>, making it return a null object reference...</p> <p>This is the code that throws the exception...</p> <pre><code>public void updateTimerLabel() { Thread durati...
This is a strange question, but the getActivity() call in the LogCat is showing up as android.support.v4.app.FragmentActivity , making it return a null object reference... This is the code that throws the exception... [CODE] And here is the LogCat entry... [CODE] As you can see, i called getActivity() and there is no m...
java|android|android-fragments|android-activity
2
2016-04-22T19:48:14.807Z
2,016
4
19
4
617
0
397
52
4
2
true
true
false
false
false
false
low
36,802,247
GPS Undesired Offset in MapFragment
<p>I have a google map fragment set up in my activity and an onLocationChanged() and getLastKnownLocation running in coherence with it.</p> <p>However when i run my application , my map points to the right city and everything but the location is off from the original location by about a few km or so .</p> <p>To under...
I have a google map fragment set up in my activity and an onLocationChanged() and getLastKnownLocation running in coherence with it. However when i run my application , my map points to the right city and everything but the location is off from the original location by about a few km or so . To understand why this was ...
android|gps|location|maps
0
2016-04-22T19:52:34.047Z
2,016
4
19
4
101
0
1,063
35
4
0
false
true
false
false
false
false
zero
36,802,349
TabHost some time the hosted fragment does not show
<p>Having a TabHost with a few tabs. It works most of the time when switching tabs. But sometime when clicking on one tab it does switch to the tab, and in trace it did call the </p> <pre><code>ft.show(newTab.fragment); </code></pre> <p>but the fragment content does not show. </p> <p>Noticed (i.e. it has three tabs)...
Having a TabHost with a few tabs. It works most of the time when switching tabs. But sometime when clicking on one tab it does switch to the tab, and in trace it did call the [CODE] but the fragment content does not show. Noticed (i.e. it has three tabs), the first tab, which is default one to be opened first will alwa...
android|android-tabhost
0
2016-04-22T19:59:45.333Z
2,016
4
19
4
60
1
471
51
2
2
true
false
false
false
false
false
zero
36,802,356
can't get Json from AsyncTask
<p>The problem is that i cant get the JSON result from my doInBackground. I know i need a handler and work with onPostExecute, but i cant make it work. I have a controller whos in charge of making the conection extending from AsyncTask. I call that controller.execute() on the main thread and it gives me an AsyncTask ob...
The problem is that i cant get the JSON result from my doInBackground. I know i need a handler and work with onPostExecute, but i cant make it work. I have a controller whos in charge of making the conection extending from AsyncTask. I call that controller.execute() on the main thread and it gives me an AsyncTask objec...
android|json|android-asynctask|handler|okhttp
1
2016-04-22T20:00:19.453Z
2,016
4
20
4
940
2
547
29
5
2
true
false
false
false
false
false
low
36,802,495
How would code written to upload an Image differ from Uploading a PDF on Android?
<p>I have been looking at a tutorial to upload an Image to a Server and I want to alter the code so that I can upload a PDF. </p> <p>I'm a little confused if the bitmap information would change or not?</p> <p>This is the code I'm looking at:</p> <pre><code> public String getStringImage(Bitmap bmp){ ByteArrayOutp...
I have been looking at a tutorial to upload an Image to a Server and I want to alter the code so that I can upload a PDF. I'm a little confused if the bitmap information would change or not? This is the code I'm looking at: [CODE] What would I need to change in the code?
java|pdf|bitmap|android-asynctask|image-uploading
0
2016-04-22T20:08:39.760Z
2,016
4
20
4
48
1
271
81
5
1
true
false
false
false
false
false
zero
36,802,523
KeyPairGeneratorSpec replacement with KeyGenParameterSpec.Builder equivalents - Keystore operation failed
<p>The following method is deprecated</p> <pre><code>KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"); KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(this) .setAlias(alias) .setSubject(new X500Principal("CN=Sample...
The following method is deprecated [CODE] The replacement I came upon looks like this [CODE] Although I am able to use this to generate a keypair entry and encrypt the value, I am unable to decrypt it [CODE] in the decrypt method, the following command fails: [CODE] with [CODE] I think it has to do with the KeyGenParam...
java|android|encryption|rsa|key-generator
5
2016-04-22T20:10:16.763Z
2,016
4
20
4
8,929
2
627
105
5
5
true
false
true
false
false
false
low
36,802,588
Error while Launching activity
<p>I recently downloaded <strong>Android Studio 2.0</strong> and create a new startup app and did not add anything code by myself. After running the app, android studio installs the APK on emulator successfully but does not launch the app instead it gives the following error:</p> <pre><code>$ adb shell am start -n "co...
I recently downloaded Android Studio 2.0 and create a new startup app and did not add anything code by myself. After running the app, android studio installs the APK on emulator successfully but does not launch the app instead it gives the following error: [CODE] I searched it on google and found that it was asked befo...
android|android-studio
20
2016-04-22T20:14:36.927Z
2,016
4
20
4
41,743
20
515
30
2
4
true
false
true
true
true
false
medium
36,802,600
Can't change adapter in Fragment after Activity being destroyed
<p>I want to change fragment's adapter when user change filter options (Semester in this case).</p> <p>This is my activity:</p> <p><a href="https://i.stack.imgur.com/K8jGI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K8jGI.jpg" alt="My activity"></a> . </p> <p>The following code at first moment...
I want to change fragment's adapter when user change filter options (Semester in this case). This is my activity: . The following code at first moment works fine: My Activity handles the semester change [CODE] Then my pagerAdapter ... [CODE] And finally, my fragment : [CODE] BUT... After activity being destroyed, code ...
android
0
2016-04-22T20:15:36.090Z
2,016
4
20
4
377
1
703
63
1
5
true
false
false
false
false
false
zero
36,802,694
Sending a string between two devices through a socket using TCP when server is on a private network
<p>I am trying to send a string (and later also an image) from one Android app, to another Android app when each app is on a different device and <strong>the receiving device is on a private Wifi Network.</strong> (The server is listening on a private IP: 192.xx.xx.xx). This code works when the server is connected to a...
I am trying to send a string (and later also an image) from one Android app, to another Android app when each app is on a different device and the receiving device is on a private Wifi Network. (The server is listening on a private IP: 192.xx.xx.xx). This code works when the server is connected to a public IP, but not ...
java|android|sockets|networking|tcp
0
2016-04-22T20:21:57.837Z
2,016
4
20
4
1,930
1
1,280
99
5
3
true
false
false
false
false
false
zero
36,802,850
Creating a lag-free 2D game loop on Android
<p>I have spent some time learning how to create a 2D rendering game loop on Android anno 2016. </p> <p>I would like achieve the following:</p> <ul> <li>Smooth animations</li> <li>Hardware accelerated</li> <li>Lag-free (60 fps)</li> <li>Using a normal <a href="http://developer.android.com/reference/android/graphics/C...
I have spent some time learning how to create a 2D rendering game loop on Android anno 2016. I would like achieve the following: Smooth animations Hardware accelerated Lag-free (60 fps) Using a normal Canvas Simplicity (no OpenGL) The myth about SurfaceView: First of all there is several posts recommending SurfaceView ...
android|2d|android-canvas|surfaceview|ondraw
4
2016-04-22T20:32:21.120Z
2,016
4
20
4
3,651
1
1,444
43
5
1
true
false
true
false
false
false
low
36,802,977
"Cannot attach empty file" - when sharing Image from Internal memory to Gmail
<p>I am trying to share image stored in Internal memory using Intent. The process is as follows</p> <ul> <li>Generate bitmap of a layout </li> <li>Save this bitmap to a file in Internal</li> <li>memory Share this file using intent (to Gmail)</li> </ul> <p>Only empty file seem to be generated on execution (hence, cann...
I am trying to share image stored in Internal memory using Intent. The process is as follows Generate bitmap of a layout Save this bitmap to a file in Internal memory Share this file using intent (to Gmail) Only empty file seem to be generated on execution (hence, cannot be attached to Gmail). I am not sure where the c...
java|android
1
2016-04-22T20:40:05.590Z
2,016
4
20
4
960
1
1,424
77
2
6
true
false
false
false
false
false
low
36,803,029
It shows the desktop version. I want to show mobile version(now it is ok)
<p>I tried lots of things about it from the previous same questions but I can not solve my problem. Thanks for helping!!(writing for more detail error........................................)</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js pr...
I tried lots of things about it from the previous same questions but I can not solve my problem. Thanks for helping!!(writing for more detail error........................................) [CODE]
javascript|java|android
0
2016-04-22T20:44:12.347Z
2,016
4
20
4
31
0
195
73
3
1
true
true
false
false
false
false
zero
36,803,071
ReactiveUI Google Maps
<p>Question: I have a <code>IReactiveDerivedList&lt;SensorViewModel&gt;</code> in my ViewModel and want to subscribe to changes on it including what's already in the list before I observe it. This then gets fed into GoogleMaps for Xamarin Android.</p> <p>This seems to work when I add something :</p> <pre><code>publi...
Question: I have a IReactiveDerivedList<SensorViewModel> in my ViewModel and want to subscribe to changes on it including what's already in the list before I observe it. This then gets fed into GoogleMaps for Xamarin Android. This seems to work when I add something : [CODE] But I also need to keep track of the Circle r...
xamarin.android|reactiveui
1
2016-04-22T20:47:54.477Z
2,016
4
20
4
100
1
457
22
2
1
true
false
false
false
false
false
low
36,803,202
What's wrong with my dynamically placed Fragment?
<p>I want to rewrite my activities to dialogs, and I want to replace dialogs programmatically. I tried fragments staticaly and it is works fine. When I programmatically call fragment and debug it with breakpoints I don't understand why its lifecycle starts from onCreate() and ends on it... Why from onCreate() and don't...
I want to rewrite my activities to dialogs, and I want to replace dialogs programmatically. I tried fragments staticaly and it is works fine. When I programmatically call fragment and debug it with breakpoints I don't understand why its lifecycle starts from onCreate() and ends on it... Why from onCreate() and don't fr...
java|android|android-fragments
0
2016-04-22T20:58:18.283Z
2,016
4
20
4
43
1
686
49
3
3
true
false
false
false
false
false
zero
36,803,211
Call number when click list view item
<p>I have a contact list activity but want to add some functionality so that when you click on a contact it will begin calling their phone number. I have tried this code snippet but nothing happens when I tap on a contact:</p> <pre><code> view.setOnClickListener(new View.OnClickListener() { @Override ...
I have a contact list activity but want to add some functionality so that when you click on a contact it will begin calling their phone number. I have tried this code snippet but nothing happens when I tap on a contact: [CODE] All Contact activity code: [CODE]
java|android|listview
0
2016-04-22T20:59:09.460Z
2,016
4
20
4
85
1
260
37
3
2
true
false
false
false
false
false
zero
36,803,233
Google Analytics compile Error Execution failed for task ':app:processDebugGoogleServices?
<p>I downloaded and compiled the analytics sample app from:</p> <p><a href="https://developers.google.com/analytics/devguides/collection/android/v4/start" rel="nofollow">https://developers.google.com/analytics/devguides/collection/android/v4/start</a></p> <p>I downloaded and saved my configuratition file to:</p> <pr...
I downloaded and compiled the analytics sample app from: https://developers.google.com/analytics/devguides/collection/android/v4/start I downloaded and saved my configuratition file to: [CODE] When I build I get: [CODE] File: build.gradle (Project: analytics) [CODE] File: build.gradle (Module: app) [CODE] What am I mis...
android|google-analytics|google-analytics-sdk|google-analytics-firebase
1
2016-04-22T21:01:01.843Z
2,016
4
21
4
474
0
480
90
4
4
true
true
false
false
false
false
low
36,803,262
Android Chromecast: Casting local audio file fails
<p>I'm trying to cast a local device audio file to the Chromecast device. I have a URI, for example <code>content://settings/system/alarm_alert</code> and when casting it to Chromecast it simply does not work - <code>RemoteMediaPlayer</code> returns result of 2100, which means <a href="https://developers.google.com/and...
I'm trying to cast a local device audio file to the Chromecast device. I have a URI, for example content://settings/system/alarm_alert and when casting it to Chromecast it simply does not work - RemoteMediaPlayer returns result of 2100, which means FAILED . The same approach but with files from the server, for example ...
android|audio|chromecast|google-cast|android-mediasession
1
2016-04-22T21:03:13.613Z
2,016
4
21
4
592
1
611
50
5
0
false
false
false
false
false
false
low
36,803,327
Upgrading to com.android.tools.build:gradle 2.0 causes JavaLaunchHelper conflict during compilation
<p>When I upgraded my project Android Studio 2.0 (which triggered me to upgrade com.android.tools.build:gradle:1.50 to com.android.tools.build:gradle:2.0), I get the following error:</p> <pre><code>Error:objc[17636]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Conten...
When I upgraded my project Android Studio 2.0 (which triggered me to upgrade com.android.tools.build:gradle:1.50 to com.android.tools.build:gradle:2.0), I get the following error: [CODE] The error seems to be benign and I tried some of the suggestions at https://code.google.com/p/android/issues/detail?id=204797 and it ...
android-studio|gradle|android-gradle-plugin
4
2016-04-22T21:08:28.473Z
2,016
4
21
4
179
1
504
99
3
1
true
false
false
false
false
false
low
36,803,595
ViewPager and TabLayout in Fragment. setAdapter on a null object reference
<p>I'm trying to add viewPager in Fragment. But when I start my application I receive this: </p> <blockquote> <p>java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference</p> </blockquote> <p>...
I'm trying to add viewPager in Fragment. But when I start my application I receive this: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference My MainFragment: [CODE] Layout: [CODE]
java|android|android-fragments|android-viewpager
0
2016-04-22T21:28:55.823Z
2,016
4
21
4
2,107
2
309
74
4
2
true
false
false
false
false
false
zero
36,803,646
Android application swap between activitys stops
<p>Hei guys. I am new to Android programming. I am trying to make an app that controls a rc car (Arduino). In this app are the next activities:</p> <ol> <li>Button Commands</li> <li>Tilt Command</li> <li>Vocal Command</li> <li>Instructions</li> <li>About</li> </ol> <p>When I open the app it suddenly stops and I don't...
Hei guys. I am new to Android programming. I am trying to make an app that controls a rc car (Arduino). In this app are the next activities: Button Commands Tilt Command Vocal Command Instructions About When I open the app it suddenly stops and I don't know why. Can someone help me by looking at the code and tell me wh...
java|android|android-activity
0
2016-04-22T21:33:25.957Z
2,016
4
21
4
45
1
361
48
3
1
true
false
false
false
false
false
zero
36,803,836
How to upload an image to SQLite Database?
<p>I am trying to create an application where the user uploads a picture and it gets saved in SQLite Database. So far i have successfully managed to upload the image to the application while following a tutorial , however i am not sure what to do to save it in SQLite so that when the activity closes and opens again the...
I am trying to create an application where the user uploads a picture and it gets saved in SQLite Database. So far i have successfully managed to upload the image to the application while following a tutorial , however i am not sure what to do to save it in SQLite so that when the activity closes and opens again the im...
java|android|sqlite|qsqldatabase
1
2016-04-22T21:49:26.580Z
2,016
4
21
4
1,217
1
352
42
4
1
true
false
false
false
false
false
low
36,803,862
Linker error with shared_ptr_base.h and gnu-libstdc++ 4.9 / 4.8
<p>I try to compile <a href="https://github.com/personalrobotics/OpenChisel/tree/master/open_chisel" rel="nofollow">https://github.com/personalrobotics/OpenChisel/tree/master/open_chisel</a> to use it for rendering on a <a href="https://developers.google.com/project-tango/" rel="nofollow">google tango device</a></p> <...
I try to compile https://github.com/personalrobotics/OpenChisel/tree/master/open_chisel to use it for rendering on a google tango device I've tried to compile it for Android 4.4, ndk r10e and NDK_TOOLCHAIN_VERSION=4.9 (gcc 4.9) with the following flags: [CODE] Including the latest Eigen Version 3.2.8 I tried it also wi...
android-ndk|eigen|google-project-tango|eigen3|gcc4
0
2016-04-22T21:51:36.563Z
2,016
4
21
4
459
1
4,573
63
5
1
true
false
false
false
false
false
zero
36,803,932
Android: read JSON
<p>I'm trying to read from a url the following data:</p> <pre><code>{"to": "DKK", "rate": 7.4417, "from": "EUR"} </code></pre> <p>And I'm trying to read it with this code:</p> <pre><code>JSONObject obj = new JSONObject(); JSONObject obj2 = obj.getJSONObject(site); String to = (String)obj2.get("to"); Double rate = ob...
I'm trying to read from a url the following data: [CODE] And I'm trying to read it with this code: [CODE] And I get the following error: [CODE] Can you please help me?
android|json
0
2016-04-22T21:57:53.057Z
2,016
4
21
4
148
1
167
18
2
3
true
false
false
false
false
false
zero
36,804,003
Android: removing recycler view through fragment
<p><strong>Question:</strong></p> <p>I'm adding views into a recyclerview with a click. When I click a view it opens a DialogFragment, how do I remove that view through the DialogFragment (by clickign on a button inside it)?</p> <p><strong>Adapter:</strong></p> <pre><code>public class SubjectsAdapter extends Recycle...
Question: I'm adding views into a recyclerview with a click. When I click a view it opens a DialogFragment, how do I remove that view through the DialogFragment (by clickign on a button inside it)? Adapter: [CODE] Adding views in the activity: [CODE] What I have from Lucas Crawford answer, although I'm not getting it r...
java|android|android-recyclerview
0
2016-04-22T22:04:04.387Z
2,016
4
22
4
895
1
491
48
3
6
true
false
false
false
false
false
zero
36,804,005
Android service pausing on certain device
<p>My app uses a service which I have designed. Problem is the app works fine on some phones (like Gionee, Asus phones) but does not work on Nexus, One Plus or Moto. On theses devices the service pauses on minimising the app. These are my corresponding classes.</p> <pre><code>public class Sync extends AppCompatActivit...
My app uses a service which I have designed. Problem is the app works fine on some phones (like Gionee, Asus phones) but does not work on Nexus, One Plus or Moto. On theses devices the service pauses on minimising the app. These are my corresponding classes. [CODE] and [CODE] Initially I thought using android M was the...
android|android-service|android-6.0-marshmallow
0
2016-04-22T22:04:09.083Z
2,016
4
22
4
65
0
405
41
3
2
true
true
false
false
false
false
zero
36,804,158
Android Studio is automatically adding slashes to string that I don't want
<p>I have the following string:</p> <blockquote> <p>\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40 good **** go౦ԁ ****\uD83D\uDC4C thats \u2714 some good\uD83D\uDC4C\uD83D\uDC4C****right\uD83D\uDC4C\uD83D\uDC4Cthere\uD83D\uDC4C\uD83D\uDC4C\uD8...
I have the following string: \uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40\uD83D\uDC4C\uD83D\uDC40 good **** go౦ԁ ****\uD83D\uDC4C thats \u2714 some good\uD83D\uDC4C\uD83D\uDC4C****right\uD83D\uDC4C\uD83D\uDC4Cthere\uD83D\uDC4C\uD83D\uDC4C\uD83D\uDC4C right\u2714there ...
android|string
2
2016-04-22T22:18:42.920Z
2,016
4
22
4
565
1
1,196
74
2
1
true
false
false
false
false
false
low
36,804,221
Android sound ins't playing when button is clicked because of layout bug
<p>I'm making a soundboard and when the user clicks the buttons a sound byte is supposed to play. I'm pretty sure that my logic in the code is correct to set the sounds to each button as I searched for an off by one error in my for loop. For some reason there is always only one random button on the screen that doesn't ...
I'm making a soundboard and when the user clicks the buttons a sound byte is supposed to play. I'm pretty sure that my logic in the code is correct to set the sounds to each button as I searched for an off by one error in my for loop. For some reason there is always only one random button on the screen that doesn't pla...
android|xml|imagebutton
0
2016-04-22T22:24:58.657Z
2,016
4
22
4
45
1
561
72
3
2
true
false
false
false
false
false
zero
36,804,242
Android N Developer Preview: Camera support takes a third value
<p>I have a Nexus 6P. I'm investigating why <a href="http://opencamera.sourceforge.net" rel="nofollow">OpenCamera</a> has stopped working on Android N Developer Preview (I'm not a developer, just a user). I have found the following piece of code that might be causing the problem: <a href="https://sourceforge.net/p/open...
I have a Nexus 6P. I'm investigating why OpenCamera has stopped working on Android N Developer Preview (I'm not a developer, just a user). I have found the following piece of code that might be causing the problem: CameraControllerManager2.java:62 I created a new Android project, and added the following function: [CODE...
android|android-camera2
0
2016-04-22T22:27:42.950Z
2,016
4
22
4
155
1
569
63
2
2
true
false
false
false
false
false
zero
36,804,263
Clarification on inner workings of IntentService
<p>I'm trying to understand a particular bit of logic in <code>IntentService</code>, specifically, in <code>ServiceHandler</code>:</p> <pre><code>private final class ServiceHandler extends Handler { public ServiceHandler(Looper looper) { super(looper); } @Override public void handleMessage(Mes...
I'm trying to understand a particular bit of logic in IntentService , specifically, in ServiceHandler : [CODE] From what I can tell, stopSelf() is being called multiple times - once for every startService call. If there are multiple items to handle, will stopSelf not interrupt the flow of the pending items? Clearly tha...
android|android-service
2
2016-04-22T22:29:21.093Z
2,016
4
22
4
94
2
583
48
2
1
true
false
false
false
false
false
low
36,804,268
Can't get OpenFL URLLoader to work on Android (works fine with Haxe/Neko)
<p>I have an Android app that I've written in Haxe that uses openfl.net.URLLoader to fetch the JSON for an array (it's a game and the high scores are stored on a web server). I'm using FlashDevelop 5.1.1.1 for the IDE.</p> <p>When I compile the app to Neko it runs fine and gets the JSON string from the webserver no pr...
I have an Android app that I've written in Haxe that uses openfl.net.URLLoader to fetch the JSON for an array (it's a game and the high scores are stored on a web server). I'm using FlashDevelop 5.1.1.1 for the IDE. When I compile the app to Neko it runs fine and gets the JSON string from the webserver no problem. When...
android|json|haxe|openfl
1
2016-04-22T22:29:51.593Z
2,016
4
22
4
284
1
1,061
73
4
1
true
false
false
false
false
false
low
36,804,377
Can't get accepted requests with PHP and MySQL
<p>I'm developing an application for Android where user can send some challenge request to the other user and after that challenge request is accepted i'm updating status in that table for particular row and now i should be able to retrieve those accepted requests. I'm retrieving successfully pending challenge requests...
I'm developing an application for Android where user can send some challenge request to the other user and after that challenge request is accepted i'm updating status in that table for particular row and now i should be able to retrieve those accepted requests. I'm retrieving successfully pending challenge requests, b...
php|android|mysql
0
2016-04-22T22:39:44.793Z
2,016
4
22
4
56
1
1,064
46
3
4
true
false
false
false
false
false
zero
36,804,464
Why my Text to Speech setup does not initialize successfully?
<p>For some reason, stautus in the onInit method will never be TextToSpeech.SUCCESS. Why?</p> <pre><code>package me.ruben.learningproject; import android.app.Activity; import android.speech.SpeechRecognizer; import android.speech.tts.TextToSpeech; import android.support.v7.app.ActionBarActivity; import android.os.Bun...
For some reason, stautus in the onInit method will never be TextToSpeech.SUCCESS. Why? [CODE] It doesn't even work after a reboot and I don't get any compilation errors in Android Studio. Any idea what it might be?
android|text-to-speech
2
2016-04-22T22:49:05.180Z
2,016
4
22
4
1,655
3
214
61
2
1
true
false
false
false
false
false
low
36,804,489
Android auto text reply using broadcast receiver sending multiple texts.
<p>The following code sends a text to the incoming calling number, however it sends a different amount of texts every time. Sometimes it only sends one, but it varies up to 6. When monitoring my code while it functions I also get different numbers of broadcasts. What am I doing wrong?</p> <p>Receiver:</p> <pre><code>...
The following code sends a text to the incoming calling number, however it sends a different amount of texts every time. Sometimes it only sends one, but it varies up to 6. When monitoring my code while it functions I also get different numbers of broadcasts. What am I doing wrong? Receiver: [CODE] Manifest: [CODE] Mai...
java|android|android-studio|broadcastreceiver|smsmanager
1
2016-04-22T22:50:45.420Z
2,016
4
22
4
1,004
2
337
72
5
3
true
false
false
false
false
false
low
36,804,534
Issue with OpenCV Warp perspective and euclidean distance
<p>My program uses a C# port of OpenCV to find the largest rectangle in the scene and warps the perspective. It almost works, but has one very annoying bug that I just can't figure out.</p> <p>Using it on a square works perfectly, but it will only work correctly on rectangles in one orientation. </p> <p>For example, ...
My program uses a C# port of OpenCV to find the largest rectangle in the scene and warps the perspective. It almost works, but has one very annoying bug that I just can't figure out. Using it on a square works perfectly, but it will only work correctly on rectangles in one orientation. For example, if I give it an imag...
java|c#|android|opencv|euclidean-distance
1
2016-04-22T22:55:37.223Z
2,016
4
22
4
786
1
533
57
5
1
true
false
false
false
false
false
low
36,804,727
How to get stable connection stream on MediaPlayer with low internet
<p>I got a server with Mp3 files. In case of slow connection (2G) it takes like a minute to prepare and start, which it is unacceptable. So i would like to reduce quality of mp3's or something that reduce prepare time.</p> <p>Here is the code:</p> <pre><code>public class Reproduce extends AsyncTask&lt;String,Void,Boo...
I got a server with Mp3 files. In case of slow connection (2G) it takes like a minute to prepare and start, which it is unacceptable. So i would like to reduce quality of mp3's or something that reduce prepare time. Here is the code: [CODE]
android
0
2016-04-22T23:20:27.127Z
2,016
4
23
4
91
0
240
68
1
1
true
true
false
false
false
false
zero
36,804,773
handling listener on toolbar onOptionsItemSelected - android
<p>My toolbar has a radiogroup(with 2 radiobuttons) and a button. I can easily handle button clicks by using <code>item.getItemId() == R.id.button</code> on <code>onOptionsItemSelected</code> method but when I use it on my radiogroup it never runs. (ex: <code>item.getItemId() == R.id.mySwitch</code>), I'm guessing its ...
My toolbar has a radiogroup(with 2 radiobuttons) and a button. I can easily handle button clicks by using item.getItemId() == R.id.button on onOptionsItemSelected method but when I use it on my radiogroup it never runs. (ex: item.getItemId() == R.id.mySwitch ), I'm guessing its a radiogroup and not a selectable object....
android|listener|toolbar
0
2016-04-22T23:27:17.800Z
2,016
4
23
4
409
0
892
60
3
3
true
true
false
false
false
false
zero
36,804,826
What type of error is this Error: ENOENT: no such file or directory, open
<p>I am getting stuck at this error and not able to resolve this issue.</p> <blockquote> <p>Error: ENOENT: no such file or directory, open 'C:\Users\sagarkumar\AppData\Loca l\Temp;C:\Program Files\Java\jdk1.7.0_51\bin\8852-120drlh.jpg'</p> </blockquote> <pre><code>This is app.js file var express = require('expr...
I am getting stuck at this error and not able to resolve this issue. Error: ENOENT: no such file or directory, open 'C:\Users\sagarkumar\AppData\Loca l\Temp;C:\Program Files\Java\jdk1.7.0_51\bin\8852-120drlh.jpg' [CODE] This is route.js file [CODE] This is android code(client side) making json request(Only requesting p...
android|node.js
4
2016-04-22T23:34:59.693Z
2,016
4
23
4
11,584
2
443
73
2
3
true
false
true
true
false
false
low
36,804,898
Write to File from string in android
<p>i trying to make an app that will book a vacant classroom however when i am reading from the file its fine but when i write a get null pointer reference error its a string that i am trying to store in file here is my code. when i click on the button of the previous intent to come to this intent app crashes.but if i ...
i trying to make an app that will book a vacant classroom however when i am reading from the file its fine but when i write a get null pointer reference error its a string that i am trying to store in file here is my code. when i click on the button of the previous intent to come to this intent app crashes.but if i com...
android|string|file|file-handling
-1
2016-04-22T23:43:54.487Z
2,016
4
23
4
467
1
21,696
36
4
2
true
false
false
false
false
true
negative
36,804,919
Create an inclinometer Android
<p>I'm trying to replicate the behaviour of the <a href="https://play.google.com/store/apps/details?id=com.plaincode.clinometer" rel="nofollow">Clinometer</a> app but without luck. What I'm looking for is pure inclination (sideways tilt, see image) independent of the backwards and forward tilt. The said Clinometer does...
I'm trying to replicate the behaviour of the Clinometer app but without luck. What I'm looking for is pure inclination (sideways tilt, see image) independent of the backwards and forward tilt. The said Clinometer does excactly that. Image of phone orientations So far I have this code to get azimuth, pitch and roll. Pit...
java|android|android-sensors
2
2016-04-22T23:47:28.573Z
2,016
4
23
4
496
0
862
30
3
1
true
true
false
false
false
false
low
36,804,955
How I can load a file and save this in a list of objects in Android?
<p>Hey I have a Problem with my Android App. I'm a rookie in Android Development and try a little Android App. I want to save input in a file and load this. I want to save a object (or list of objects) serialize in the file. My Idea is to load this file if this exist and fill my ListView with them else I have a text me...
Hey I have a Problem with my Android App. I'm a rookie in Android Development and try a little Android App. I want to save input in a file and load this. I want to save a object (or list of objects) serialize in the file. My Idea is to load this file if this exist and fill my ListView with them else I have a text messa...
java|android|android-studio|serialization|fileinputstream
1
2016-04-22T23:50:48.217Z
2,016
4
23
4
452
2
789
68
5
4
true
false
false
false
false
false
low
36,804,967
Android Studio 2.0 using external projects with jar and source files
<p>i've been searching all the web for a definitive solution for this simple problem of adding an external directory with .java files and .jar libraries to my Android Studio project. </p> <p>Here's what I want to do:</p> <p>Create a default project in Android Studio, and import from git the library I will work on, wh...
i've been searching all the web for a definitive solution for this simple problem of adding an external directory with .java files and .jar libraries to my Android Studio project. Here's what I want to do: Create a default project in Android Studio, and import from git the library I will work on, which is a bunch of .j...
java|android|linux|git|android-studio
0
2016-04-22T23:51:44.687Z
2,016
4
23
4
1,073
2
1,507
68
5
4
true
false
false
false
false
false
zero
36,805,202
Sending data from Main to Detail and Updating Object in MainViewMode
<p>I have the following <code>recyclerview</code> where it contains list of <code>TestViewModel</code> objects. In this object I have <code>age</code>, <code>gender</code> and <code>name</code> properties. I am trying to achieve when user click on a list item, it takes user to detail view where user could able to upda...
I have the following recyclerview where it contains list of TestViewModel objects. In this object I have age , gender and name properties. I am trying to achieve when user click on a list item, it takes user to detail view where user could able to update and click on the save button, then it updates the selected item p...
data-binding|xamarin|xamarin.android|mvvmcross
0
2016-04-23T00:29:36.833Z
2,016
4
0
5
55
2
799
68
4
9
true
false
false
false
false
false
zero
36,805,274
Retrieving Users Account
<p>I have this app which gets users data from the database using the username they logged in with. The user name is passed once they login to the page which retrieves their account information. The app crashes saying retrieving the information was wrong, can anyone help?</p> <p>The database code</p> <pre><code>public...
I have this app which gets users data from the database using the username they logged in with. The user name is passed once they login to the page which retrieves their account information. The app crashes saying retrieving the information was wrong, can anyone help? The database code [CODE] The code which wants to re...
java|android|sqlite
-1
2016-04-23T00:39:16.653Z
2,016
4
0
5
38
1
342
24
3
2
true
false
false
false
false
true
negative
36,805,318
How to stop Infinite scroll with recyclerview and database cursor adaptor being jumpy when loading new data
<p>So our android app uses recyclerview with a cursor adaptor and then we are using <a href="https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews" rel="nofollow">https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews</a> for endless scrolling with a loader res...
So our android app uses recyclerview with a cursor adaptor and then we are using https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews for endless scrolling with a loader reset event (that will on the next create loader increase the limit for the amount of data we load) that will then upda...
android|android-recyclerview|android-cursoradapter
1
2016-04-23T00:45:43.557Z
2,016
4
0
5
719
0
1,221
107
3
0
false
true
false
false
false
false
low
36,805,419
heroku H12 error with Volley
<p>I recently wrote a android app with volley to do the http request, At first,I used local host to work as a server,it worked perfectly. However, as I moved my node.js code to heroku server, my app will often get timeout error. The log from heroku like</p> <pre><code>2016-04-23T00:59:01.653405+00:00 heroku[router]: a...
I recently wrote a android app with volley to do the http request, At first,I used local host to work as a server,it worked perfectly. However, as I moved my node.js code to heroku server, my app will often get timeout error. The log from heroku like [CODE] And my android app request code is like this [CODE] And my nod...
android|heroku|android-volley
2
2016-04-23T01:02:01.070Z
2,016
4
1
5
144
0
392
28
3
3
true
true
false
false
false
false
low
36,805,448
view scrolls down to tabhost when fragment opened
<p>When I open fragment with scrollview and tabhost inside the scrollview, it automatically scrolls down to the start of the tabhost hiding the top part of the scrollview. I've tried changing various things, nothing worked so far. Will keep trying, just throwing this here in hopes someone can help me. Here is the relev...
When I open fragment with scrollview and tabhost inside the scrollview, it automatically scrolls down to the start of the tabhost hiding the top part of the scrollview. I've tried changing various things, nothing worked so far. Will keep trying, just throwing this here in hopes someone can help me. Here is the relevant...
android|android-fragments|android-tabhost|android-scrollview
1
2016-04-23T01:07:15.993Z
2,016
4
1
5
135
0
664
49
4
4
true
true
false
false
false
false
low
36,805,533
How do I send a json object from Android app to a web service written in C#?
<p>I'm trying to send a json object from my Android code to a webservice written in C# but could not invoke the webservice. I've setup a private network to which my system which is running webservice and android phone which is running android code are connected. To check whether webservice ever gets invoked, I installe...
I'm trying to send a json object from my Android code to a webservice written in C# but could not invoke the webservice. I've setup a private network to which my system which is running webservice and android phone which is running android code are connected. To check whether webservice ever gets invoked, I installed a...
java|c#|android
1
2016-04-23T01:21:32.360Z
2,016
4
1
5
68
0
974
76
3
1
true
true
false
false
false
false
low
36,805,588
Reasons for using GitHub with Android Studio
<p>This is not a technical "How do I do it" question, it's more of a "best practices" question. I have done some research and can only find tutorials on HOW to link GitHub and Android Studio.</p> <p>I am a 'hobbiest' programmer, not professional, but I am trying very hard to follow what the pros do because when I reti...
This is not a technical "How do I do it" question, it's more of a "best practices" question. I have done some research and can only find tutorials on HOW to link GitHub and Android Studio. I am a 'hobbiest' programmer, not professional, but I am trying very hard to follow what the pros do because when I retire from the...
android-studio|github|synchronization|dropbox|project-management
0
2016-04-23T01:29:16.050Z
2,016
4
1
5
41
1
1,523
44
5
0
false
false
false
false
false
false
zero
36,805,683
Unknown protocol with Oauth2 on Android
<p>I am trying to auth using Oauth2 on android, but my app keeps crashing because it throws the following error : <strong>Unknown protocol: kiactiv</strong>.</p> <p>See below : </p> <pre><code> 04-23 02:34:11.440 19202-19202/android.kiactiv I/OAuthAndroid: shouldOverrideUrlLoading: kiactiv://oauth_callback?code=T...
I am trying to auth using Oauth2 on android, but my app keeps crashing because it throws the following error : Unknown protocol: kiactiv . See below : [CODE] My gradle file includes these libs : [CODE] and I am excepting the deep link in my manifest file : [CODE] My source code is very similar to this one what I found ...
java|android|oauth-2.0|android-manifest|deep-linking
0
2016-04-23T01:43:38.553Z
2,016
4
1
5
247
0
397
39
5
3
true
true
false
false
false
false
zero
36,805,695
Audio tracks while merging multiple videos using FFMPEG in Android?
<p>I have problem in video processing in Android.</p> <p>To merging multiple videos, I'm now using ffmpeg c++ library and JavaCV.</p> <p>Here is my code:</p> <pre><code>protected Void doInBackground(String... params) { String firstVideo = params[0]; String secondVideo = params[1]; String outPutVideo = pa...
I have problem in video processing in Android. To merging multiple videos, I'm now using ffmpeg c++ library and JavaCV. Here is my code: [CODE] First video has no sound, and second video has audio tack. Audio of second video starts from start of result video. I tried and had search many hours, but cannot find solution....
android|c++|video|ffmpeg|javacv
1
2016-04-23T01:45:11.050Z
2,016
4
1
5
144
0
368
67
5
1
true
true
false
false
false
false
low
36,805,878
Really slow launch time for Sencha/PhoneGap app on android
<p>So I have a Sencha Touch/PhoneGap + Crosswalk app whose Android startup duration I have struggled with for a while. Baseline, on first launch is around 10 seconds on a Samsung S3. After poking around and experimenting, I've learned some stuff about app launch time but don't know what I can do with it at the moment, ...
So I have a Sencha Touch/PhoneGap + Crosswalk app whose Android startup duration I have struggled with for a while. Baseline, on first launch is around 10 seconds on a Samsung S3. After poking around and experimenting, I've learned some stuff about app launch time but don't know what I can do with it at the moment, or ...
android|performance|cordova|sencha-touch|crosswalk
3
2016-04-23T02:14:27.507Z
2,016
4
2
5
223
0
1,550
58
5
0
false
true
false
false
false
false
low
36,805,933
Service not repeating
<p>MyBroadCast</p> <pre><code>public class BackupBroadCast extends WakefulBroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent i = new Intent(context, BackupService.class); context.startService(i); } } </code></pre> <p>MyServ...
MyBroadCast [CODE] MyService [CODE] how i start the Service on App start: [CODE] but for unknow reason the Alarm is not executing the service each 10 seconds (like i configured) it has a random time [CODE] how can i make it run the onCommand every x time (i will give user option to do backup in a predefined time)
android|android-service
0
2016-04-23T02:21:10.613Z
2,016
4
2
5
88
1
314
21
2
4
true
false
false
false
false
false
zero
36,806,074
how to parse json result without array name in android
<p>I am trying to parse json result without array name. I tried differet methods but non of it works these are my code. So please someone tell me how to parse json result without using array name</p> <p>thanks in advance.</p> <p><strong>My JSON</strong></p> <pre><code>[{"id":"710","name":"app","address":"k","gender"...
I am trying to parse json result without array name. I tried differet methods but non of it works these are my code. So please someone tell me how to parse json result without using array name thanks in advance. My JSON [CODE] I'm trying to parse this JSON [CODE] I expect it like this [CODE]
android|arrays|json
1
2016-04-23T02:46:08.610Z
2,016
4
2
5
299
3
292
54
3
3
true
false
false
false
false
false
low
36,806,112
Error- Run Time Exception Error (Possible Bind Butterknife)
<p><strong>I am running into this problem. I am getting a Java RuntimeException Error. Here is the Error Log</strong></p> <pre><code>04-22 21:11:02.129 17677-17677/com.example.andrewjakevillegas.stormy E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.andrewjakevillegas.stormy, PID: 17677 java.lang.Ru...
I am running into this problem. I am getting a Java RuntimeException Error. Here is the Error Log [CODE] Here is my MainActivity.java [CODE] Here is my activity_main.xml - this is my layout. [CODE] And here is my AndroidManifest.xml [CODE] Any help will be greatly appreciated. Thank you.
java|android|bind|butterknife
2
2016-04-23T02:53:45.820Z
2,016
4
2
5
806
1
288
59
4
4
true
false
false
false
false
false
low
36,806,155
Updating Widget Listview
<p>In my widget, I have a refresh button that I use to tell the (custom) listview the dataset has changed. Right now, I have my onRecieve callback being called when the refresh button is clicked, but the intent bundle being passed is null so I can't call onUpdate on the IDs. </p> <p>I checked in the function where I a...
In my widget, I have a refresh button that I use to tell the (custom) listview the dataset has changed. Right now, I have my onRecieve callback being called when the refresh button is clicked, but the intent bundle being passed is null so I can't call onUpdate on the IDs. I checked in the function where I add the extra...
android|listview|android-widget
1
2016-04-23T03:01:35.080Z
2,016
4
3
5
308
1
555
24
3
2
true
false
false
false
false
false
low
36,806,221
Could not add padding to checkboxes in android
<p>I've introduced 2 checkboxes in my UI screen and I want these checkboxes to some distance apart (50dp). I've put padding in my second checkbox (@+id/chkbox2) but the padding does not seem to be working. The second checkbox is placed immediately next to first checkbox. I'm new to Android and I've been trying for the ...
I've introduced 2 checkboxes in my UI screen and I want these checkboxes to some distance apart (50dp). I've put padding in my second checkbox (@+id/chkbox2) but the padding does not seem to be working. The second checkbox is placed immediately next to first checkbox. I'm new to Android and I've been trying for the pas...
android
1
2016-04-23T03:12:00.750Z
2,016
4
3
5
39
1
478
46
1
2
true
false
false
false
false
false
low
36,806,476
Not getting live step counter updates from Google Fit
<p>I want to check whether someone is walking using the Google Fit API by checking whether their step count delta is > 0. It seems simpler than using the History API to get daily step counts and figuring out whether it increased from the previous query.</p> <p>I followed the code <a href="https://github.com/googlesamp...
I want to check whether someone is walking using the Google Fit API by checking whether their step count delta is > 0. It seems simpler than using the History API to get daily step counts and figuring out whether it increased from the previous query. I followed the code here but instead of location tracking, I do delta...
android|google-fit|google-fit-sdk
2
2016-04-23T03:58:29.873Z
2,016
4
3
5
627
1
572
53
3
1
true
false
false
false
false
false
low
36,806,565
Android - Middle Tab Error in TabLayout in Fragment
<p>I am having an issue in one of my fragments which contains a TabLayout. The TabLayout and the data inside each tab works fine but I still get a <code>moveToState</code> error (This error does not come up when I switch between the first and last one, only from first to middle and last to middle). My application still...
I am having an issue in one of my fragments which contains a TabLayout. The TabLayout and the data inside each tab works fine but I still get a moveToState error (This error does not come up when I switch between the first and last one, only from first to middle and last to middle). My application still works fine with...
java|android|android-fragments|android-tablayout|fragmentstatepageradapter
2
2016-04-23T04:15:54.683Z
2,016
4
4
5
705
1
554
51
5
3
true
false
false
false
false
false
low
36,806,579
AdMob crashes when start App
<p>I'm completely new to Android Studio and Java, but managed to make my own app through many tutorials. The problem is that whenever I click my app in the home screen(Start Up / Boot Up), it'll immediately make me leave the apk(Crashes). I'm unsure why. I believe it's connected to my Main_Activity file, but I'm unsure...
I'm completely new to Android Studio and Java, but managed to make my own app through many tutorials. The problem is that whenever I click my app in the home screen(Start Up / Boot Up), it'll immediately make me leave the apk(Crashes). I'm unsure why. I believe it's connected to my Main_Activity file, but I'm unsure. I...
java|android|android-studio|crash|admob
1
2016-04-23T04:18:17.323Z
2,016
4
4
5
101
1
822
28
5
6
true
false
false
false
false
false
low
36,806,622
Android Service Connect To Server
<p>I'm currently working with an android app that retrieves data from MySQL database thru PHP and for this i used service but i cant connect to MySQL. Is there anyone who has an idea on this or is service support this? thanks much.</p> <pre><code>public class MyAlarmService extends Service{ private NotificationManage...
I'm currently working with an android app that retrieves data from MySQL database thru PHP and for this i used service but i cant connect to MySQL. Is there anyone who has an idea on this or is service support this? thanks much. [CODE] } PHP file [CODE]
php|android|mysql|android-service
1
2016-04-23T04:25:49.530Z
2,016
4
4
5
443
1
253
33
4
2
true
false
false
false
false
false
low
36,806,635
list is not displayed after loading the data but when the display is turned off and on list is displayed
<p>list view is not displayed after loading the data but when the screen display is turned off and on list is displayed.don't know whats happening.i am using xiamoi mi phone to test the app if any other activities code requires just let me know</p> <pre><code>import java.util.ArrayList; import java.util.List; import ...
list view is not displayed after loading the data but when the screen display is turned off and on list is displayed.don't know whats happening.i am using xiamoi mi phone to test the app if any other activities code requires just let me know [CODE]
android|listview|android-arrayadapter
1
2016-04-23T04:27:26.750Z
2,016
4
4
5
108
1
248
104
3
1
true
false
false
false
false
false
low
36,806,637
I don't want to change the position of the listview in android when I reload ListView
<p>I am just fetching the values from the online database and showing in the listview that is working fine but I am trying to update the <code>ListView</code> for every second so I am using thread for refresh the <code>Listview</code>.</p> <p>I don't want to change the position of <code>ListView</code> to the default ...
I am just fetching the values from the online database and showing in the listview that is working fine but I am trying to update the ListView for every second so I am using thread for refresh the Listview . I don't want to change the position of ListView to the default position for every reload of the ListView it want...
android
3
2016-04-23T04:27:40.303Z
2,016
4
4
5
106
4
383
85
1
1
true
false
false
false
false
false
low
36,806,656
Need Explanation for OpenCV Android Behavior
<p>I am trying to write an image stitching app for Android. I am using Android NDK for the native part of OpenCV. There are 3 different behaviors that should not happen and I would love any explanation as to why they do happen.</p> <ol> <li><p>Only some images (from the same camera on device / same resolution) do no...
I am trying to write an image stitching app for Android. I am using Android NDK for the native part of OpenCV. There are 3 different behaviors that should not happen and I would love any explanation as to why they do happen. Only some images (from the same camera on device / same resolution) do not crash. The error whe...
java|android|c++|opencv|android-ndk
1
2016-04-23T04:30:12.780Z
2,016
4
4
5
295
1
1,407
44
5
3
true
false
false
false
false
false
low
36,806,689
All videos are playing in Recycler\view through TextureView
<p>I need to pause all video in my RecyclerView.I'm using TextureView to play video and now,wneh I start my app all video's playing and RecyclerView have big lags.I need to see video,but not playing.Play video when click for item.How play video when I click fo RecyclerView I know,but now I must implement all this video...
I need to pause all video in my RecyclerView.I'm using TextureView to play video and now,wneh I start my app all video's playing and RecyclerView have big lags.I need to see video,but not playing.Play video when click for item.How play video when I click fo RecyclerView I know,but now I must implement all this video in...
android|android-recyclerview|textureview
1
2016-04-23T04:37:58.633Z
2,016
4
4
5
912
0
568
59
3
2
true
true
false
false
false
false
low
36,806,703
I want to create more than one horizontal view like flipkart main page
<p>I have to create like flip cart main page, so I need use more than one horizontal view how to create that programmatically in android. In that horizontal view inside Vertical orientation using images, price, product name will display in android.</p> <p>Thank in Advance<br> I just created Like this as mention below ...
I have to create like flip cart main page, so I need use more than one horizontal view how to create that programmatically in android. In that horizontal view inside Vertical orientation using images, price, product name will display in android. Thank in Advance I just created Like this as mention below code: [CODE]
android|android-layout|android-fragments|android-studio
1
2016-04-23T04:39:12.393Z
2,016
4
4
5
767
0
317
70
4
1
true
true
false
false
false
false
low
36,806,732
ListView Elements Not Displaying
<p>ListView elements are not displaying even though I've used almost identical code before. Sorry that I have to ask this type of question, but I seriously just don't understand why it's not working. None of the other similar questions I looked at were useful.</p> <p>The heights of the items and ListView should be fin...
ListView elements are not displaying even though I've used almost identical code before. Sorry that I have to ask this type of question, but I seriously just don't understand why it's not working. None of the other similar questions I looked at were useful. The heights of the items and ListView should be fine. Not sure...
java|android|listview|android-adapter
1
2016-04-23T04:44:03.713Z
2,016
4
4
5
77
2
748
32
4
5
true
false
false
false
false
false
low
36,806,746
Why android GridView item cannot click when button inside?
<p><code>GridView</code> onItemClick not working.<code>Button</code> OnClickListener is work. When I remove button from it, <code>GridView</code> onItemClick work.<br> Any solution please help me.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.co...
GridView onItemClick not working. Button OnClickListener is work. When I remove button from it, GridView onItemClick work. Any solution please help me. [CODE]
android|gridview|android-button
2
2016-04-23T04:46:19.627Z
2,016
4
4
5
691
1
158
58
3
1
true
false
false
false
false
false
low
36,806,859
Changing visibility with LinearLayout and weight
<p>So I have a <code>LinearLayout</code> with two view and I am setting weight to each views. </p> <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_layout1" android:layout_width="match_parent" andr...
So I have a LinearLayout with two view and I am setting weight to each views. [CODE] Now at first I set the visibility to GONE from activity. Then on some button press I set the visibility to VISIBLE but I am not able to see the view. However when visibility is INVISIBLE and then if I change it to VISIBLE its working f...
android|android-layout|android-layout-weight
2
2016-04-23T05:04:14.627Z
2,016
4
5
5
2,113
3
404
48
3
1
true
false
false
false
false
false
low
36,806,933
Imageview wrap at bottom and right position in android
<p>I have implemented the the tag image in my app.If i touch inside the layout tag image get visible.That tag images are not wrap at left and Top position.But it will be wrap on right and bottom position.What to do for implementing the tag image without wrapping on right and bottom position.The first image shows withou...
I have implemented the the tag image in my app.If i touch inside the layout tag image get visible.That tag images are not wrap at left and Top position.But it will be wrap on right and bottom position.What to do for implementing the tag image without wrapping on right and bottom position.The first image shows without w...
android
0
2016-04-23T05:15:24.930Z
2,016
4
5
5
46
0
443
54
1
2
true
true
false
false
false
false
zero
36,807,013
How to SHOW/TOAST the related item of the string array on spinner selected from xml parsing
<p>How to <strong>Toast</strong> the related value to the string value selected FROM THE SPINNER. </p> <p><a href="https://i.stack.imgur.com/U72Q8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U72Q8.png" alt="enter image description here"></a></p> <p>I am able to get the <strong>spinner data</str...
How to Toast the related value to the string value selected FROM THE SPINNER. I am able to get the spinner data from the below xml format but not able to pass its id to them for toast. ** [CODE] ** MainActivity.java [CODE] Update :1 On making changes to the above code like below,I am getting all the ids if the first sp...
java|android|xml|xml-parsing
1
2016-04-23T05:26:30.707Z
2,016
4
5
5
400
1
498
91
4
3
true
false
false
false
false
false
low
36,807,029
Using Switch in RecyclerView srcoll
<p>I have use the <code>Switch</code> in the <code>RecyclerView</code>. It have facing the issue of recycling behaviour. When I switch on the 1st position ,it automatically on the switch at 10 postion ... I think it due to reuse of the view. How to fix it. find the screenshot: <a href="https://www.dropbox.com/s/4ms2jf...
I have use the Switch in the RecyclerView . It have facing the issue of recycling behaviour. When I switch on the 1st position ,it automatically on the switch at 10 postion ... I think it due to reuse of the view. How to fix it. find the screenshot: https://www.dropbox.com/s/4ms2jf9e28fyc7u/error.png?dl=0 [CODE] This h...
java|android|android-recyclerview
3
2016-04-23T05:28:23.783Z
2,016
4
5
5
5,158
2
346
35
3
1
true
false
true
false
false
false
low
36,807,073
how to get only specific data we want from json
<p>i have trouble to load somedata, i already database and has query name "tipe" (type), in query tipe only has 2 type of string ("1" and "2") So, how to load data if im only want load sepecific data tipe="1"....</p> <p>this my code in android :</p> <p>MovieFragment.java</p> <pre><code> // Pa...
i have trouble to load somedata, i already database and has query name "tipe" (type), in query tipe only has 2 type of string ("1" and "2") So, how to load data if im only want load sepecific data tipe="1".... this my code in android : MovieFragment.java [CODE]
java|android|json
-1
2016-04-23T05:35:31.287Z
2,016
4
5
5
77
1
261
47
3
1
true
false
false
false
false
true
negative
36,807,091
Android app not installaing from playstore on Kitkat
<p>Our app is not getting installed on phones running on Android KitKat. However the same app is getting installed when trying to install the apk directly. It is also working fine on other android versions. It is failing with Error Code -2. Have tried all the options which is there in the google support link but didn't...
Our app is not getting installed on phones running on Android KitKat. However the same app is getting installed when trying to install the apk directly. It is also working fine on other android versions. It is failing with Error Code -2. Have tried all the options which is there in the google support link but didn't he...
android
6
2016-04-23T05:38:30.543Z
2,016
4
5
5
1,309
2
345
52
1
1
true
false
false
false
false
false
medium
36,807,093
make fullScreenVideoView
<p>I am creating my custom video player in android. I need requirement that when device is in portrait mode the height of <code>VideoView</code> is half of the screen and when i rotate device in landscape mode it should be fullScreen mode. But I cant not achieve this functionality</p> <p>below is my xml code</p> <pre...
I am creating my custom video player in android. I need requirement that when device is in portrait mode the height of VideoView is half of the screen and when i rotate device in landscape mode it should be fullScreen mode. But I cant not achieve this functionality below is my xml code [CODE] and below is my activity c...
android|android-video-player
2
2016-04-23T05:39:10.530Z
2,016
4
5
5
392
4
330
24
2
2
true
false
false
false
false
false
low
36,807,099
How to run time update data from edit-text and spinner to database
<p>I am try to update data from edit-text and spinner to my database . but I found problem when scrolling list-view and also update data. My data is fluctuation after scrolling , so enable to save updated data. </p> <p>below is my demo code.. please tall me where I am wrong.</p> <p><strong>Activity code:(MainActivity...
I am try to update data from edit-text and spinner to my database . but I found problem when scrolling list-view and also update data. My data is fluctuation after scrolling , so enable to save updated data. below is my demo code.. please tall me where I am wrong. Activity code:(MainActivity.java) [CODE] Adapter Code:(...
java|android|android-layout|listview|textwatcher
2
2016-04-23T05:40:25.437Z
2,016
4
5
5
201
1
457
66
5
4
true
false
false
false
false
false
low
36,807,174
android spinner displays blank items no error displayed
<p>I have tried to use Spinner to display data from SQLite. There was no errors but the spinner displayed nothing. Can anyone solve this problem before. Below is my code CategoryBO.java</p> <pre><code>package com.giao.ordersystem; /** * Created by Long on 2/13/2016. </code></pre> <p>*/</p> <pre><code>public class ...
I have tried to use Spinner to display data from SQLite. There was no errors but the spinner displayed nothing. Can anyone solve this problem before. Below is my code CategoryBO.java [CODE] */ [CODE] DishDAO.java [CODE] Menu_Event.Java [CODE] style.xml [CODE] CategoryDAO [CODE]
java|android
0
2016-04-23T05:51:48.190Z
2,016
4
5
5
226
0
278
55
2
6
true
true
false
false
false
false
zero
36,807,229
App Indexing with a ViewPager that pages fragments
<p>I have an activity that has a ViewPager and a FragmentStatePagerAdapter. Each page displayed by the activity is a single fragment. Each fragment has different content.</p> <p>I'm adding App Indexing to this activity. I've read lots of stuff including <a href="https://developers.google.com/app-indexing/android/publi...
I have an activity that has a ViewPager and a FragmentStatePagerAdapter. Each page displayed by the activity is a single fragment. Each fragment has different content. I'm adding App Indexing to this activity. I've read lots of stuff including https://developers.google.com/app-indexing/android/publish#add-app-indexing-...
android|android-viewpager|android-app-indexing|google-app-indexing
0
2016-04-23T05:58:40.840Z
2,016
4
5
5
282
1
1,679
50
4
1
true
false
false
false
false
false
zero
36,807,299
Android: onSharedPreferenceChanged does not change a summary of PreferenceScreen
<p>I have a subscreen:</p> <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;PreferenceCategory android:title="Hra"&gt; &lt;PreferenceScreen android:key="pref_game_plus_category" android:title="@string/operation_plus" android:persistent="fa...
I have a subscreen: [CODE] I instantiate the Preferences in [CODE] Here I detect a state of the checkbox and set the parent screen subtitle: [CODE] When I debug this code, "pref_game_plus_category" has updated its summary but when I return to the root preferences the summary is not changed though. PS when I restart the...
android|android-preferences
4
2016-04-23T06:05:53.873Z
2,016
4
6
5
1,249
2
671
80
2
5
true
false
false
false
false
false
low
36,807,307
Reading multiple textfile (.txt) from Asset / Raw Folder
<p>I have multiple text files in my raw folder, I want to show them 1 by 1 according to the selected item on listview.</p> <p>For example i have seleceted "TwinkleTwinkle" from the listview, the text file would be shown must be TwinkleTwinkle.txt</p> <p>I have read raw folder file where it has only one text file.But ...
I have multiple text files in my raw folder, I want to show them 1 by 1 according to the selected item on listview. For example i have seleceted "TwinkleTwinkle" from the listview, the text file would be shown must be TwinkleTwinkle.txt I have read raw folder file where it has only one text file.But dont know read mult...
android|listview|android-studio
0
2016-04-23T06:07:14.780Z
2,016
4
6
5
745
1
616
56
3
1
true
false
false
false
false
false
zero
36,807,313
AndroidStudio adding two images to a button
<p>I am using Android Studio and I was wondering is there any way <strong>to add two images to a button and only one of them to be visible(active) at a time</strong>?</p> <p>Now I am using the following technique: In my activity I have 4 buttons and to all of them I have register an <code>View.OnTouchListener</code> a...
I am using Android Studio and I was wondering is there any way to add two images to a button and only one of them to be visible(active) at a time ? Now I am using the following technique: In my activity I have 4 buttons and to all of them I have register an View.OnTouchListener and I manage the events in it like this: ...
java|android|xml|android-studio
2
2016-04-23T06:08:12.653Z
2,016
4
6
5
1,032
2
852
43
4
2
true
false
false
false
false
false
low
36,807,351
Can Android drawable's clip-path layer be rotated?
<p>I've just starting using clip-paths in vector drawables. I want to rotate the clip-path, but it's not possible to rotate any path without it being in a group, so that it could have pivotX and pivotY properties. However, when put in a group, it doesn't clip paths outside of a group anymore (and so becomes useless). I...
I've just starting using clip-paths in vector drawables. I want to rotate the clip-path, but it's not possible to rotate any path without it being in a group, so that it could have pivotX and pivotY properties. However, when put in a group, it doesn't clip paths outside of a group anymore (and so becomes useless). Is t...
android|android-drawable|vector-graphics
6
2016-04-23T06:12:25.580Z
2,016
4
6
5
3,219
2
446
50
3
1
true
false
true
false
false
false
medium
36,807,375
Eclipse - Emulator - eglSurfaceAttrib not implemented
<p>This is my Code</p> <p>ClaimRegisterPage.activity</p> <pre><code>package com.clip.android; /** * * @author abhishek * */ import java.util.ArrayList; import java.util.List; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogI...
This is my Code ClaimRegisterPage.activity [CODE] Next Activity [CODE] ERROR 04-23 03:59:49.370: W/EGL_emulation(1986): eglSurfaceAttrib not implemented 04-23 03:59:49.370: W/OpenGLRenderer(1986): Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f7eefd4ad00, error=EGL_SUCCESS 04-23 03:59:50.990: W/EGL_emulation(1986): egl...
android
1
2016-04-23T06:15:09.340Z
2,016
4
6
5
107
0
990
53
1
2
true
true
false
false
false
false
low
36,807,377
Error on inserting values to SQLite DB ?Can anyone solve this?
<p>Below is the DB coding for creating Table Visitors to store name and adress of place </p> <p>public class DbFav {</p> <pre><code>/** for database */ static final String DataBaseName = "Favdb"; /** for register table */ static final String favtable = "Visiters"; static final String VisitID = "visitid"; sta...
Below is the DB coding for creating Table Visitors to store name and adress of place public class DbFav { [CODE] Values to be saved to the DB from below coding which gives the exception of Visitors contain no Col named (Name, Address) [CODE] [CODE]
android|sqlite
-2
2016-04-23T06:15:15.080Z
2,016
4
6
5
83
1
248
62
2
3
true
false
false
false
false
true
negative
36,807,459
ActionBar Cuts off Left-Right Side?
<p><a href="https://i.stack.imgur.com/zUapm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zUapm.png" alt="enter image description here"></a></p> <p>Please Look at below Picture,</p> <p>And here is code :</p> <pre><code> ActionBar actionBar = getSupportActionBar(); if (actionBar != null) {...
Please Look at below Picture, And here is code : [CODE] R.layout.action_bar: [CODE]
android|android-actionbar
-1
2016-04-23T06:26:56.777Z
2,016
4
6
5
236
2
83
35
2
2
true
false
false
false
false
true
negative
36,807,463
Parceler and SimpleXml as stated in Parceler's readme
<p>Parceler's readme states that it can be used with other POJO based libraries, in particular SimpleXML.</p> <p>Are there any examples available demonstrating the usage?</p> <p>I've used Parceler with GSON successfully:</p> <pre><code>Gson gson = new GsonBuilder().create(); ParcelerObj parcelerObj = gson.fromJson(j...
Parceler's readme states that it can be used with other POJO based libraries, in particular SimpleXML. Are there any examples available demonstrating the usage? I've used Parceler with GSON successfully: [CODE] However, I'm not sure where to start with SimpleXML. I currently have the following SimpleXML class: [CODE] T...
java|android|simple-framework|parceler
1
2016-04-23T06:27:39.883Z
2,016
4
6
5
88
1
742
53
4
4
true
false
false
false
false
false
low
36,807,482
How to Implement onItemClickListerner for ListView?
<p>I'm trying to implement <code>onItemClickListerner</code> for <code>ListView</code> (see code below); When running it, i get this error:</p> <pre><code>Error:(32, 37) error: incompatible types: List cannot be converted to OnItemClickListener </code></pre> <p><strong>List.java</strong></p> <pre><code>import androi...
I'm trying to implement onItemClickListerner for ListView (see code below); When running it, i get this error: [CODE] List.java [CODE]
java|android|android-fragments|onitemclicklistener
0
2016-04-23T06:29:40.717Z
2,016
4
6
5
61
3
134
51
4
2
true
false
false
false
false
false
zero