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,016,851
Perform onClick outside the onCreate
<p>I have a button, on which, i'm trying to <code>perform Click ();</code> outside on Create </p> <p>its a fragment so what i have done is:</p> <pre><code>public class MyFragment extends Fragment { private Button exit; public View onCreateView(LayoutInflater inflater, ViewGroup ...
I have a button, on which, i'm trying to perform Click (); outside on Create its a fragment so what i have done is: [CODE] and i have a method [CODE] i manually call clicker method from another class, but it throws java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.Toggle Button.pe...
android|fragment|onclicklistener
0
2016-05-04T01:15:15.810Z
2,016
5
1
2
341
3
360
36
3
2
true
false
false
false
false
false
zero
37,016,984
Android Studio: NavigationDrawer displaying a black screen
<p>Recently I have been working on using the <code>NavigationView</code> that Android provides, however I have come across an error that displays nothing on the screen at all. The code seems fine, as it is the code sample that is provided <a href="https://developer.android.com/training/implementing-navigation/nav-drawe...
Recently I have been working on using the NavigationView that Android provides, however I have come across an error that displays nothing on the screen at all. The code seems fine, as it is the code sample that is provided with Google's documentation for the drawer, just with a few minor tweaks to the design and the Na...
java|android|android-studio|navigation-drawer
0
2016-05-04T01:31:21.207Z
2,016
5
1
2
1,754
1
650
58
4
3
true
false
false
false
false
false
zero
37,017,055
Android locale mess?
<p>For the function in Android <code>Locale.getISOLanguages()</code> there is the following documentation comment:</p> <pre><code>/** * Returns an array of strings containing all the two-letter ISO 639-1 language codes that can be * used as the language code when constructing a {@code Locale}. */ public static Stri...
For the function in Android Locale.getISOLanguages() there is the following documentation comment: [CODE] But when I log the array I get all kinds of codes: [aa, ab, ace, ach, ada, ady, ae, af, afa, afh, agq, ain, ak, akk, ale, alg, alt, am, an, ang, anp, apa, ar, arc, arn, arp, art, arw, as, asa, ast, ath, aus, av, aw...
java|android|locale
2
2016-05-04T01:41:28.650Z
2,016
5
1
2
364
1
3,013
20
3
1
true
false
false
false
false
false
low
37,017,098
SharedPreferences returns null no matter what method I use
<p>Beginner Java/Android developer here. I know this is an unbelievably over-asked question, but everything I've tried from every other thread I could find DOES NOT WORK. No matter what. Either it will return null, or not work at all and throw an error on the line meant for getting a SharedPreferences object. Apologies...
Beginner Java/Android developer here. I know this is an unbelievably over-asked question, but everything I've tried from every other thread I could find DOES NOT WORK. No matter what. Either it will return null, or not work at all and throw an error on the line meant for getting a SharedPreferences object. Apologies if...
java|android|nullpointerexception|sharedpreferences
-1
2016-05-04T01:46:57.183Z
2,016
5
1
2
108
2
523
58
4
2
true
false
false
false
false
true
negative
37,017,111
E/com.parse.PushService
<p>Hey every body i have a probleme with PushService i had this message </p> <p>ClassLoader referenced unknown path: /data/app/com.merrou.GuideApp-1/lib/x86 05-03 22:53:02.879 28956-28956/com.merrou.GuideApp E/com.parse.PushService: The Parse push service cannot start because Parse.initialize has not yet been called. ...
Hey every body i have a probleme with PushService i had this message ClassLoader referenced unknown path: /data/app/com.merrou.GuideApp-1/lib/x86 05-03 22:53:02.879 28956-28956/com.merrou.GuideApp E/com.parse.PushService: The Parse push service cannot start because Parse.initialize has not yet been called. If you call ...
android|parse-platform
0
2016-05-04T01:49:33.743Z
2,016
5
1
2
99
0
838
23
2
2
true
true
false
false
false
false
zero
37,017,118
Custom Fonts are not Showing Properly With Only One Color Showing
<p>I have been having some troubles with multicolored fonts lately. The font I have uses the colors white and black, but for some reason only black is showing, and the inner white is not showing. Did I do something wrong, or is there a way to get the font color in there? Thank You. Here is the code -- </p> <pre class=...
I have been having some troubles with multicolored fonts lately. The font I have uses the colors white and black, but for some reason only black is showing, and the inner white is not showing. Did I do something wrong, or is there a way to get the font color in there? Thank You. Here is the code -- [CODE] Also, the fon...
java|android|fonts
0
2016-05-04T01:50:51.533Z
2,016
5
1
2
141
1
506
65
3
1
true
false
false
false
false
false
zero
37,017,131
How do I dynamically make this child Fragment's TextView visible/invisible?
<p>I have a main Activity containing a parent Fragment, which in turn contains a child Fragment. I am trying to make a TextView in the child Fragment visible/invisible dynamically.</p> <p>activity_main.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.andro...
I have a main Activity containing a parent Fragment, which in turn contains a child Fragment. I am trying to make a TextView in the child Fragment visible/invisible dynamically. activity_main.xml [CODE] fragment_parent.xml [CODE] fragment_child.xml [CODE] MainActivity.java [CODE] ParentFragment.java [CODE] ChildFragmen...
java|android|xml|android-fragments|fragmenttransaction
2
2016-05-04T01:52:53.890Z
2,016
5
1
2
856
1
436
75
5
6
true
false
false
false
false
false
low
37,017,181
GCM Notifications with Python XMPP
<p>Google provides a python <a href="https://developer.android.com/google/gcm/ccs.html" rel="nofollow">code sample</a> for sending GCM notifications using the Extensible Messaging and Presence Protocol (XMPP). The guide doesn't specifically mention where the '<code>import xmpp</code>' comes from. However this tallies c...
Google provides a python code sample for sending GCM notifications using the Extensible Messaging and Presence Protocol (XMPP). The guide doesn't specifically mention where the ' import xmpp ' comes from. However this tallies closely with xmpppy . Unfortunately this xmpppy project seems to have been abandoned many year...
android|python|google-cloud-messaging|xmpp
0
2016-05-04T01:58:40.020Z
2,016
5
1
2
518
1
702
34
4
1
true
false
false
false
false
false
zero
37,017,325
How to access settings (SharedPreferences?) in Android
<p>I have a file <code>res/xml/preferences.xml</code> with these contents:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;PreferenceCategory android:key="pref_key_development_settings" android:title...
I have a file res/xml/preferences.xml with these contents: [CODE] How do I access pref_webservice from an Activity? I've tried these, and they do not work (it defaults to the second parameter as I presume it can't find the key): [CODE] What am I doing wrong? Do I need to specify that preferences.xml is a shared prefere...
android|xml
0
2016-05-04T02:17:57.080Z
2,016
5
2
2
40
0
444
54
2
2
true
true
false
false
false
false
zero
37,017,399
Why cant I write text?
<p>I have been trying to get this to work for the last three hours, and I need your help now. I simply want to record the text from my editText when the user clicks "done":</p> <pre><code> e.setOnKeyListener(new View.OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { Lo...
I have been trying to get this to work for the last three hours, and I need your help now. I simply want to record the text from my editText when the user clicks "done": [CODE] Here is the XML: [CODE] The problem is that my onKey is not even displaying any toasts, and I am unable to get the user input when they click d...
java|android|xml|string|algorithm
1
2016-05-04T02:25:18.007Z
2,016
5
2
2
51
1
502
22
5
2
true
false
false
false
false
false
low
37,017,441
Error:Attempt to read a write only view of model of type 'org.gradle.model.ModelMap<org.gradle.language.base.FunctionalSourceSet>'
<p>Using <em>classpath 'com.android.tools.build:gradle-experimental:0.7.0-rc1'</em> for ndk application for Android studio i'm having problem implementing gradle script for my library but when using it for an application it's working</p> <pre><code> /*test ndk*/ apply plugin: 'com.android.model.application' model ...
Using classpath 'com.android.tools.build:gradle-experimental:0.7.0-rc1' for ndk application for Android studio i'm having problem implementing gradle script for my library but when using it for an application it's working [CODE] I also see this problem also . Does anyone implemented the ndk implementation for an module...
java|android|android-ndk|android-gradle-plugin
0
2016-05-04T02:31:47.710Z
2,016
5
2
2
540
0
343
130
4
1
true
true
false
false
false
false
zero
37,017,465
Could not find the specific error from Android Device
<p>This is the problem at hand. The app that i was developing worked nicely in an emulator, BlueStack to be more precise. And then when i run the app in my android device lenovo s650 4.4.2, the app crashed as soon as it gets into the main menu. And the logcat isn't very helpful because it did not state where the error ...
This is the problem at hand. The app that i was developing worked nicely in an emulator, BlueStack to be more precise. And then when i run the app in my android device lenovo s650 4.4.2, the app crashed as soon as it gets into the main menu. And the logcat isn't very helpful because it did not state where the error is ...
java|android|fatal-error|android-logcat|android-runtime
0
2016-05-04T02:34:50.697Z
2,016
5
2
2
95
2
924
53
5
1
true
false
false
false
false
false
zero
37,017,497
can't addRange() to listview xamarin.android
<pre><code>public class TrackAdapter:BaseAdapter&lt;TrackModel.Track&gt; { LayoutInflater _inflater; List&lt;TrackModel.Track&gt; _tracks; public TrackAdapter(Context context)//, List&lt;TrackModel.Track&gt; tracks { _inflater=LayoutInflater.FromContext(context); ...
[CODE] I have tested on device but I got null exception at AddRange. If I replace AddMoreList into AddItems then app will run. [CODE]
xamarin|xamarin.android
-1
2016-05-04T02:38:23.920Z
2,016
5
2
2
197
2
133
44
2
2
true
false
false
false
false
true
negative
37,017,525
ButterKnife 8 null pointer exception
<p>I have never had a problem using butter knife until now. I'm assuming it has something to do with the jump from version 7 to 8. This keeps throwing a null pointer exception when I try to set the text. It is inside an activity. Also an @OnClick is not working. Any help would be greatly appreciated. </p> <pre><code>...
I have never had a problem using butter knife until now. I'm assuming it has something to do with the jump from version 7 to 8. This keeps throwing a null pointer exception when I try to set the text. It is inside an activity. Also an @OnClick is not working. Any help would be greatly appreciated. [CODE] EDIT: Here is ...
android|butterknife
0
2016-05-04T02:42:21.013Z
2,016
5
2
2
68
0
334
36
2
2
true
true
false
false
false
false
zero
37,017,563
Error:Execution failed for task :app:transformClassesWithDexForDebug
<p>When I run my app, the Android Studio throws the following error:</p> <pre><code>Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionExce...
When I run my app, the Android Studio throws the following error: [CODE] Following are the external jar libraries included in project: [CODE] I am unable to sort out the problem. Please help me out. Thanks in advance. Now when I create a new project(Hello World), OMG, the project didn't work!!!
android|android-studio
1
2016-05-04T02:48:51.203Z
2,016
5
2
2
706
2
295
68
2
2
true
false
false
false
false
false
low
37,017,585
Android - Accessing a button defined in another layout from MainActivity
<p>I want to access a button defined in a separate xml layout from MainActivity and do things like onClick on the button. I used LayoutInflater as shown below in MainActivity but the onClick method doesn't detect the button being clicked. The button is defined inside a LinearLayout, which is displayed on a custom ListV...
I want to access a button defined in a separate xml layout from MainActivity and do things like onClick on the button. I used LayoutInflater as shown below in MainActivity but the onClick method doesn't detect the button being clicked. The button is defined inside a LinearLayout, which is displayed on a custom ListView...
android
0
2016-05-04T02:52:06.200Z
2,016
5
2
2
1,127
1
750
72
1
1
true
false
false
false
false
false
zero
37,017,596
No class found in android studio
<p>i imported my projected from eclipse to android studio it was working fine and in android studio it works in emulator but in real device</p> <p>here is log</p> <blockquote> <p>05-04 08:14:14.989 8986-9070/com.rcmbusiness E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 ...
i imported my projected from eclipse to android studio it was working fine and in android studio it works in emulator but in real device here is log 05-04 08:14:14.989 8986-9070/com.rcmbusiness E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.rcmbusiness, PID: 8986 java.lang.RuntimeException: An error occur...
java|android|eclipse|android-studio|soap
-2
2016-05-04T02:53:39.730Z
2,016
5
2
2
551
1
1,503
32
5
1
true
false
false
false
false
true
negative
37,017,598
KeyStore operations
<p>I'm new to Java/Android KeyStores, and after reading the documents and some tutorials, I'm still a bit confused as to what the operations do exactly, in particular load and store calls. I'm looking at the following piece of code in a Java method, and have some trouble understanding it. inKeyStore is an input paramet...
I'm new to Java/Android KeyStores, and after reading the documents and some tutorials, I'm still a bit confused as to what the operations do exactly, in particular load and store calls. I'm looking at the following piece of code in a Java method, and have some trouble understanding it. inKeyStore is an input parameter ...
android|x509certificate|keystore|android-keystore
0
2016-05-04T02:53:46.807Z
2,016
5
2
2
692
1
837
19
4
1
true
false
false
false
false
false
zero
37,017,639
PhoneGap/Cordova compiled android app doesn't load external URIs
<p>I'm trying to make a simple geolocation app. The native geolocation works fine in that coordinates are coming in. I'm having a hard time loading a google map, <a href="https://developers.google.com/maps/documentation/javascript/examples/marker-simple" rel="nofollow noreferrer">like in the Simple Markers example here...
I'm trying to make a simple geolocation app. The native geolocation works fine in that coordinates are coming in. I'm having a hard time loading a google map, like in the Simple Markers example here . Turns out you have to whitelist external domains . No problem, I added the following to my config.xml (in root of the p...
javascript|android|cordova|google-maps|phonegap-build
0
2016-05-04T02:58:53.043Z
2,016
5
2
2
150
1
1,131
64
5
2
true
false
false
false
false
false
zero
37,017,647
Android login website with Jsoup
<p>When I goto <a href="https://www.cgv.vn/vn/theaters/showtimes/" rel="nofollow">this URL</a> and get urlLogin. After which, I'm trying to log into urlLogin.</p> <pre><code>Document doc = Jsoup.connect("https://www.cgv.vn/vn/theaters/showtimes/").get(); Element element = doc.getElementById("top_register"...
When I goto this URL and get urlLogin. After which, I'm trying to log into urlLogin. [CODE] Unfortunately, this simply returns the same page in a not-logged-in state. What am I doing wrong?
android|jsoup
0
2016-05-04T02:59:28.377Z
2,016
5
2
2
718
1
189
32
2
1
true
false
false
false
false
false
zero
37,017,672
Android notification icon color is not changed when background color is white
<p>I upgraded android 6.0 and my app have problem.</p> <p>when the status bar background color is not white, notification icon is good. (notification icon png has white and alpha only)</p> <p>but if some apps change background color to white, my notification icon isn't inverted to black.</p> <p>How can I invert white n...
I upgraded android 6.0 and my app have problem. when the status bar background color is not white, notification icon is good. (notification icon png has white and alpha only) but if some apps change background color to white, my notification icon isn't inverted to black. How can I invert white notification icon to blac...
android|colors|notifications|icons
19
2016-05-04T03:04:15.210Z
2,016
5
3
2
26,891
2
704
77
4
2
true
false
true
true
true
false
medium
37,017,684
Prefs not Working
<p>I was recently making a few variables and prefs. I was working on another thing more than just the prefs, yet this is the very basics. I found the root of my problem was in the preferences, so in the code listed below it shows the prefs. I was wondering how to solve the problem because for some reason the prefs ar...
I was recently making a few variables and prefs. I was working on another thing more than just the prefs, yet this is the very basics. I found the root of my problem was in the preferences, so in the code listed below it shows the prefs. I was wondering how to solve the problem because for some reason the prefs are not...
java|android
1
2016-05-04T03:05:45.070Z
2,016
5
3
2
51
0
487
17
2
1
true
true
false
false
false
false
low
37,017,740
Do login in Android with web service PHP
<p>I want to make login with <code>JSON</code>. This is my login web service and my login activity in android studio. When i attempt to login it always response 1. It means it always success. Although the username and password is wrong. </p> <p>Can you tell me why is this happen?</p> <p>For the database, I'm using <...
I want to make login with JSON . This is my login web service and my login activity in android studio. When i attempt to login it always response 1. It means it always success. Although the username and password is wrong. Can you tell me why is this happen? For the database, I'm using mysql login.php [CODE] LoginActivi...
php|android|authentication
1
2016-05-04T03:11:57.607Z
2,016
5
3
2
1,075
2
334
40
3
2
true
false
false
false
false
false
low
37,017,742
Camera API 2 preview in fragment android
<p>I'm currently working on a app where there is a <strong>fragment</strong> that is a <strong>preview of a camera (API 2)</strong>, kind of snapchat's home page camera. I've been looking for the solution everywhere with no luck.That's why i'm asking here today. Here's my code sample: </p> <pre><code>import android.Ma...
I'm currently working on a app where there is a fragment that is a preview of a camera (API 2) , kind of snapchat's home page camera. I've been looking for the solution everywhere with no luck.That's why i'm asking here today. Here's my code sample: [CODE] Every time I run the project, the mistake I get is: [CODE] Whic...
android|android-fragments|android-camera
1
2016-05-04T03:12:17.667Z
2,016
5
3
2
1,504
1
403
40
3
3
true
false
false
false
false
false
low
37,017,772
Android SQLite: Retrieving a list of all data of a table
<p>Actually I can do a loop and log in console all rows of my table:</p> <pre><code> db.getAllPoids(); List&lt;Poids&gt; poids = db.getAllPoids(); for (Poids val : poids) { String log = "Id: " + val.getId() + " ,Date: " + val.getDate_enr() + " ,Poids: " + val.getPoids() + " ,Evolution: " + val.getE...
Actually I can do a loop and log in console all rows of my table: [CODE] DatabaseHandler: [CODE] But now Iwan't to do a better view, I need something like a table or liste, I know that they're listview exemple on google, but not with this method that I use. And in my view I need to have3 rows: get the date in the first...
android|list|sqlite|listview|android-sqlite
0
2016-05-04T03:16:23.073Z
2,016
5
3
2
665
2
616
56
5
8
true
false
false
false
false
false
zero
37,017,813
Loading native C library on Android Studio
<p>I'm trying to load native C library in Android Studio 1.5.1, but get an error. It says,</p> <blockquote> <p>java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.example.sampleApp.MainActivity.stringFromJNI() (tried Java_com_example_sampleApp_MainActivity_stringFromJNI and Java_com_exam...
I'm trying to load native C library in Android Studio 1.5.1, but get an error. It says, java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.example.sampleApp.MainActivity.stringFromJNI() (tried Java_com_example_sampleApp_MainActivity_stringFromJNI and Java_com_example_sampleApp_MainActivity...
java|android|c
2
2016-05-04T03:21:45.397Z
2,016
5
3
2
152
0
440
42
3
3
true
true
false
false
false
false
low
37,017,885
Android httpcore, httpmime and httpclient-android libraries import givs an error
<p>In my <strong>Android</strong> I'm to <strong>upload</strong> a file to a back-end server and thought of doing it using <strong>HTTP post request using MultipartEntity</strong>. In this case I first added <strong>httpcore</strong> and <strong>httpmime</strong> libraries and it gave me a error. so after some googling...
In my Android I'm to upload a file to a back-end server and thought of doing it using HTTP post request using MultipartEntity . In this case I first added httpcore and httpmime libraries and it gave me a error. so after some googling I found that httpclient-android too have to import. so finally my build.gradle file is...
java|android|http
0
2016-05-04T03:30:20.800Z
2,016
5
3
2
616
1
624
80
3
2
true
false
false
false
false
false
zero
37,018,001
MediaCodec config passed, but input resolution is actually not supported
<p>I implemented a video encoder by MediaCodec API to encode 2560x720 videos. I verified it on several devices but I encountered a configuration problem on Samsung Note 2 (Android 4.4.2). The following is my code to prepare the codec instance:</p> <pre><code>Format = MediaFormat.createVideoFormat("video/avc", 2560, 72...
I implemented a video encoder by MediaCodec API to encode 2560x720 videos. I verified it on several devices but I encountered a configuration problem on Samsung Note 2 (Android 4.4.2). The following is my code to prepare the codec instance: [CODE] No exception is thrown during this try-catch block. But after starting c...
android|android-mediacodec
4
2016-05-04T03:40:26.307Z
2,016
5
3
2
1,405
1
1,270
72
2
3
true
false
false
false
false
false
low
37,018,061
Android Google Maps - How to divide Google Maps route in equal segments?
<p>In my custom Google Maps, I draw a route between two locations (say Pune to Mumbai) using this URL</p> <pre><code>https://maps.googleapis.com/maps/api/directions/json?origin=Pune&amp;destination=Mumbai&amp;sensor=false&amp;mode=driving&amp;alternatives=false </code></pre> <p><a href="https://i.stack.imgur.com/lvx9...
In my custom Google Maps, I draw a route between two locations (say Pune to Mumbai) using this URL [CODE] Parsing this response I get number of points between source and destination and store it in ArrayList [CODE] This ArrayList contains around 2600 points. My question is, how can I divide this route in 10 equal segme...
java|android|google-maps
3
2016-05-04T03:47:40.530Z
2,016
5
3
2
1,424
1
716
72
3
2
true
false
false
false
false
false
low
37,018,080
cannot resolve method ' requestLocationUpdate' when i call LocationManger
<p>i'm trying to use <code>locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); </code> but i get an error says that: <a href="https://i.stack.imgur.com/TneUH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TneUH.png" alt="enter image description here"></a></p> <p>i thou...
i'm trying to use locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); but i get an error says that: i thought it might comes from wrong LocationListerner Library but here is all my imported library [CODE] EDITED i think it comes from the last parameters this
java|android|google-maps|android-studio|import
1
2016-05-04T03:49:29.093Z
2,016
5
3
2
276
2
288
73
5
1
true
false
false
false
false
false
low
37,018,083
Prevent CollapsingToolBarLayout from expanding programmatically
<p>I'm using a CollapsingToolBarLayout in my main activity, but only want it to be expandable in some fragments. To do this, I've been using these methods(right after fragment transactions/detatch). These successfully animate the toolbar, but it is still expandable in fragments that have called lockAppBarClosed.</p> <...
I'm using a CollapsingToolBarLayout in my main activity, but only want it to be expandable in some fragments. To do this, I've been using these methods(right after fragment transactions/detatch). These successfully animate the toolbar, but it is still expandable in fragments that have called lockAppBarClosed. [CODE] se...
android|animation|android-fragments|android-toolbar|android-collapsingtoolbarlayout
1
2016-05-04T03:49:41.943Z
2,016
5
3
2
1,775
2
958
63
5
2
true
false
false
false
false
false
low
37,018,167
Android OutputStream ByteArray changes oddly
<p>I writed a little Andoid application to control my self-made tank. The code is pretty much a direct translation from my C# powered controller client which is working fine. Problem is that when I run the Android version on an emulator everything is working just as should, but when I try it with my phone the ByteArray...
I writed a little Andoid application to control my self-made tank. The code is pretty much a direct translation from my C# powered controller client which is working fine. Problem is that when I run the Android version on an emulator everything is working just as should, but when I try it with my phone the ByteArray wh...
android|sockets|bytearray|outputstream
0
2016-05-04T03:59:20.617Z
2,016
5
3
2
24
0
578
44
4
4
true
true
false
false
false
false
zero
37,018,202
Sending variables through post android using URLEncoding
<p>I'm trying to send post variables through UrlEncoding from android to php page which is working for me if i send one variable only. So how to encode more than one variable, i've tried some on my own.</p> <pre><code>protected String doInBackground(String... params) { try { String link = "http://URL.php";...
I'm trying to send post variables through UrlEncoding from android to php page which is working for me if i send one variable only. So how to encode more than one variable, i've tried some on my own. [CODE] This is doing the job but only first variable is accessible through php side.
php|android|post|url-encoding
0
2016-05-04T04:01:50.187Z
2,016
5
4
2
750
2
284
56
4
1
true
false
false
false
false
false
zero
37,018,206
How Do i implement Login and Logout Functionality in my android app?
<p>I Have Created an app. after successful login i get redirected to another activity i.e my main activity but when i close the app i have to login again.. i want to stay logged in unless i click on logout button..how can i do this? p.s i have used php database to hold login information and background worker for redire...
I Have Created an app. after successful login i get redirected to another activity i.e my main activity but when i close the app i have to login again.. i want to stay logged in unless i click on logout button..how can i do this? p.s i have used php database to hold login information and background worker for redirecti...
android
-6
2016-05-04T04:02:17.360Z
2,016
5
4
2
2,402
1
502
68
1
3
true
false
false
false
false
true
negative
37,018,358
Custom TabLayout like Google Play Music app
<p>I implement <a href="http://developer.android.com/reference/android/support/design/widget/TabLayout.html" rel="nofollow noreferrer">TabLayout</a> to similiar <a href="https://play.google.com/store/apps/details?id=com.google.android.music" rel="nofollow noreferrer">Google Play Music</a> app. </p> <ul> <li>Portrait (...
I implement TabLayout to similiar Google Play Music app. Portrait (Google Play Music): Landscape (Google Play Music): This is my layout : [CODE] My code to handle TabLayout : [CODE] But result is TabLayout doensn't have margin on the left : Portrait (my example):: Landscape (my example): I try this article but the resu...
android|material-design|android-tablayout
-1
2016-05-04T04:16:34.937Z
2,016
5
4
2
608
1
410
43
3
2
true
false
false
false
false
true
negative
37,018,388
Where is the correct place to assign an interface listener in adapters?
<p>Sometimes in a RecyclerView adapter it is helpful to call functions when you click on items in each row, so I defined an interface and assigned the listener like so:</p> <pre><code>public class MyRecyclerViewAdapter extends RecyclerView.Adapter&lt;MyRecyclerViewAdapter.RecyclerViewHolder&gt; { private List&lt;S...
Sometimes in a RecyclerView adapter it is helpful to call functions when you click on items in each row, so I defined an interface and assigned the listener like so: [CODE] Is this the correct way to do it? I notice that when people assign listeners in Fragment classes they usually do it in the OnAttach method, which d...
java|android|interface|android-recyclerview|adapter
0
2016-05-04T04:19:46.007Z
2,016
5
4
2
46
2
425
71
5
1
true
false
false
false
false
false
zero
37,018,585
Cardview isn't taking its full width ( gets cropped by 2% from left )
<p>I have a cardview with a the following layout :</p> <pre><code>- Main Relative Layout -- Header Container ( Linear ) -- Body Container ( Linear ) -- Footer Container ( Linear ) </code></pre> <p>The cardview gets cropped from the left by 2%, it's not the full width, you can tell by comparing the border ( radius ) a...
I have a cardview with a the following layout : [CODE] The cardview gets cropped from the left by 2%, it's not the full width, you can tell by comparing the border ( radius ) and the difference between the card and the end . Screenshot : HERE . My layout : [CODE]
java|android|android-layout|android-cardview
1
2016-05-04T04:36:49.780Z
2,016
5
4
2
370
1
263
69
4
2
true
false
false
false
false
false
low
37,018,698
How to communicate between fragments in a deep nested chain?
<p>I am trying to better understand the interplay of interfaces, Activities, and Fragments.</p> <p>According to <a href="http://developer.android.com/training/basics/fragments/communicating.html" rel="nofollow">this link from the Android documentation</a>:</p> <blockquote> <p>Often you will want one Fragment to com...
I am trying to better understand the interplay of interfaces, Activities, and Fragments. According to this link from the Android documentation : Often you will want one Fragment to communicate with another, for example to change the content based on a user event. All Fragment-to-Fragment communication is done through t...
java|android|android-fragments|android-activity|interface
0
2016-05-04T04:47:01.397Z
2,016
5
4
2
249
2
1,279
60
5
2
true
false
false
false
false
false
zero
37,018,823
Item saved value disappears when I scroll down in Listview item android
<pre><code>public class CustomList extends ArrayAdapter&lt;String&gt; { private String[] names; private Integer[] imageid; private Activity context; LayoutInflater inflater; List&lt;String&gt; categories; boolean firstimagevisible = true; boolean secondimagevisible = false; public Cust...
[CODE] This is my code. I'm displaying 10 items in Listview. Each having text and image on imageview. I have putted next and previous image and image changes like if we set first item pic1 and second item I have click next button and image change to pic2 now i have scroll down till 10th item and now again go back to fi...
android|listview
3
2016-05-04T05:00:01.877Z
2,016
5
5
2
412
1
502
71
2
1
true
false
false
false
false
false
low
37,019,012
Undefined index error in PHP file (passing value from Android file)
<p>Please help me to find the error in below code. </p> <p>I have posted a value from an Android file through <code>namevaluepair</code> to a PHP file.</p> <p>I am getting the below error:</p> <blockquote> <p>Notice: Undefined index: city {"result":[]}</p> </blockquote> <pre><code>&lt;?php $host = "localhost"; $u...
Please help me to find the error in below code. I have posted a value from an Android file through namevaluepair to a PHP file. I am getting the below error: Notice: Undefined index: city {"result":[]} [CODE] Android code: [CODE]
php|android
0
2016-05-04T05:16:24.030Z
2,016
5
5
2
108
1
229
67
2
2
true
false
false
false
false
false
zero
37,019,028
Need fully transparent status bar
<p>Hi Friends I want to know can I change status bar color or make it completely transparent.</p> <p>I've tried so many things but I can't get the fully transparent status bar, so here is my code..</p> <p><strong>v21/style.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; ...
Hi Friends I want to know can I change status bar color or make it completely transparent. I've tried so many things but I can't get the fully transparent status bar, so here is my code.. v21/style.xml [CODE] and style.xml [CODE] after it my screen is displayed as... and I want it like this.. can anyone help?Thanks.
android|android-studio|statusbar|transparent
6
2016-05-04T05:17:23.560Z
2,016
5
5
2
4,259
3
317
33
4
2
true
false
true
false
false
false
medium
37,019,044
Can't populatemy ListView from Sqlite
<p>I have created two xml files, and my custom view of 3 rows, 2 firsts are texts, and the last a button to delete data:</p> <p>XML of the activity:</p> <pre><code>&lt;ListView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/listView" /&gt; </code></pre> <p>listp...
I have created two xml files, and my custom view of 3 rows, 2 firsts are texts, and the last a button to delete data: XML of the activity: [CODE] listpoids.xml: [CODE] I did my adaper: [CODE] And the database handler to get all of the rows: [CODE] To finish how I call it: [CODE] But it doesn't work, I'm in a fragment. ...
android|sqlite|listview
-5
2016-05-04T05:18:56.410Z
2,016
5
5
2
21
1
496
37
3
8
true
false
false
false
false
true
negative
37,019,088
How to display image from MySQL after insert from Gallery?
<p>I have a problem when I try to create a new project in android studio. I already connect to MySQL database. in the database there is a user table that has a field : username, password, and image (type data is blob). when I add (insert) data to the user table especially the image field manually from MySQL, then I do ...
I have a problem when I try to create a new project in android studio. I already connect to MySQL database. in the database there is a user table that has a field : username, password, and image (type data is blob). when I add (insert) data to the user table especially the image field manually from MySQL, then I do Get...
php|android|mysql|bitmap|insert
1
2016-05-04T05:20:52.797Z
2,016
5
5
2
59
0
865
58
5
3
true
true
false
false
false
false
low
37,019,104
Validation for bloodgroup and date of birth in android
<p>Hai I am very new to android development. I am trying to put validation for blood group(AB+ OR AB- OR A+ OR A- OR B+ OR B- OR O+ OR O-) and data of birth(DD/MM/YYY) in my application. How to write a code exctly for validation of blood group and date of birth. Below is my code;</p> <pre><code>Main activity:- pa...
Hai I am very new to android development. I am trying to put validation for blood group(AB+ OR AB- OR A+ OR A- OR B+ OR B- OR O+ OR O-) and data of birth(DD/MM/YYY) in my application. How to write a code exctly for validation of blood group and date of birth. Below is my code; [CODE]
android
0
2016-05-04T05:22:44.737Z
2,016
5
5
2
1,370
1
284
54
1
1
true
false
false
false
false
false
zero
37,019,112
segmentation fault with pjsip binary on android device
<p>I want to run pjsip on android device through adb shell.</p> <p>For this i have compiled the pjsip binary for android.I am following the below link.<br> <a href="https://trac.pjsip.org/repos/wiki/Getting-Started/Android#pjsua2" rel="nofollow">https://trac.pjsip.org/repos/wiki/Getting-Started/Android#pjsua2</a> </p...
I want to run pjsip on android device through adb shell. For this i have compiled the pjsip binary for android.I am following the below link. https://trac.pjsip.org/repos/wiki/Getting-Started/Android#pjsua2 Here are some of the specifications i am using while compiling the pjsip. Target_ABI= armeabi-v7a API Level = and...
android|pjsip
1
2016-05-04T05:23:12.567Z
2,016
5
5
2
298
0
1,369
54
2
0
false
true
false
false
false
false
low
37,019,137
How to have other apps know what CONTENT_URI to look for?
<p>I have been researching everything I can on Content Providers, but I cannot grasp the concept of how other apps installed on the phone can have access to the Content I am Providing. How can other apps possibly know what my CONTENT_URIs are???</p> <p>I am making a Contacts app. How can other apps get the contact da...
I have been researching everything I can on Content Providers, but I cannot grasp the concept of how other apps installed on the phone can have access to the Content I am Providing. How can other apps possibly know what my CONTENT_URIs are??? I am making a Contacts app. How can other apps get the contact data I have st...
android|android-contentprovider|android-contacts|contactscontract
1
2016-05-04T05:25:10.233Z
2,016
5
5
2
132
1
1,645
57
4
0
false
false
false
false
false
false
low
37,019,154
Android: how do I set a SharedPreferences counter to a RecyclerView TextView?
<p>I have an Activity where a button click saves a bundle of user input data to a SQLite database that then populates a CardView in a RecyclerView list. I'd like to create a counter that starts with a default value of zero and increments by +1 each time the "Save" button is clicked (a new CardView is created) and then...
I have an Activity where a button click saves a bundle of user input data to a SQLite database that then populates a CardView in a RecyclerView list. I'd like to create a counter that starts with a default value of zero and increments by +1 each time the "Save" button is clicked (a new CardView is created) and then out...
android|sharedpreferences|android-recyclerview
1
2016-05-04T05:26:34.987Z
2,016
5
5
2
1,635
1
836
77
3
2
true
false
false
false
false
false
low
37,019,289
How to make camera photo correct on every device / Android version?
<p>I wrote this camera app, but I cannot got correct image on every device</p> <p>I found that there are two types camera on different devices, so I cannot rotate photo correctly on every device.</p> <p>I have looked into some open source camera app, but don't see any logic to handle this problem, and these apps stil...
I wrote this camera app, but I cannot got correct image on every device I found that there are two types camera on different devices, so I cannot rotate photo correctly on every device. I have looked into some open source camera app, but don't see any logic to handle this problem, and these apps still rotate correctly....
android|camera
1
2016-05-04T05:35:54.497Z
2,016
5
5
2
52
1
407
67
2
1
true
false
false
false
false
false
low
37,019,333
Update the table when the count of particular value is more than one in SqLite
<p>I have a table and I want to update the existing values when the count is greater is 1. </p> <p>Here is my code : </p> <pre><code> public int getCount(String clues) { Cursor c = null; try { db = this.getReadableDatabase(); String query = "select count(*) from " + TABLE_NAME + "where CLUES...
I have a table and I want to update the existing values when the count is greater is 1. Here is my code : [CODE] I am checking based on the column "CLUES_VALUES" . I am getting the values from database and checking if it contains more than one similar value in the column of "CLUES_VALUES" . If it contains then it will ...
android|sqlite|sql-update
1
2016-05-04T05:40:12.837Z
2,016
5
5
2
221
2
510
78
3
2
true
false
false
false
false
false
low
37,019,457
AlertDialog setmessage not working inside Asynctask
<p>Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown.</p> <pre><code> class DownloadFileFromURL extends AsyncTask&lt;String, String, String&gt; { private AlertDialog.Builder alert; priva...
Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown. [CODE] As i have also written a log to show progress update in onProgressUpdate, the log is printed but the alert.setMessage in onProgressUpdate seems no...
android|android-asynctask|android-alertdialog|async-onprogressupdate
3
2016-05-04T05:49:31.600Z
2,016
5
5
2
1,754
2
357
51
4
1
true
false
false
false
false
false
low
37,019,461
set device screen lock unlock using reflection
<p>I am using reflection to unlock my device screen setting keyguard as disabled.my android version is 4.4.2.while invoking i get exception as <strong>java.lang.reflect.InvocationTargetException</strong> and cause as <strong>java.lang.SecurityException: LockSettingsWrite: Neither user 10096 nor current process has and...
I am using reflection to unlock my device screen setting keyguard as disabled.my android version is 4.4.2.while invoking i get exception as java.lang.reflect.InvocationTargetException and cause as java.lang.SecurityException: LockSettingsWrite: Neither user 10096 nor current process has android.permission.ACCESS_KEYGUA...
android|reflection|keyguard
1
2016-05-04T05:49:49.587Z
2,016
5
5
2
650
1
411
46
3
1
true
false
false
false
false
false
low
37,019,472
assigning Images through adapter
<p>I am Making one Medical Application</p> <p>I want to show ListView for Prescription including Medicine Name ,Timing and Image.all values are coming from database except images.</p> <p>Means if Medicine Type from Database is Tablet than I want to Show ImgA an if Medicine Type if Injection then I want to show ImgB i...
I am Making one Medical Application I want to show ListView for Prescription including Medicine Name ,Timing and Image.all values are coming from database except images. Means if Medicine Type from Database is Tablet than I want to Show ImgA an if Medicine Type if Injection then I want to show ImgB in ListView. Here is...
android|listview
1
2016-05-04T05:51:00.320Z
2,016
5
5
2
72
3
681
32
2
6
true
false
false
false
false
false
low
37,019,560
scanpay cancels immediately without showing the scan view
<p>this is my code:</p> <pre><code>public class MainActivity extends AppCompatActivity { private int MY_SCAN_REQUEST_CODE = 100; // arbitrary int Button btn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn = (...
this is my code: [CODE] I've followed all the instructions given here https://we.scanpay.it/integration But still everytime it gets cancelled. Couldn't understand why? Help please.
android
3
2016-05-04T05:56:06.380Z
2,016
5
5
2
82
0
180
57
1
1
true
true
false
false
false
false
low
37,019,983
Floating Action Button causing error and crashing application
<p>When using the floating action button, my Android application crashes and throws an error. When I remove it, my application runs successfully, but I'd rather use the floating action button if I can.</p> <p>This is my complete error log:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentI...
When using the floating action button, my Android application crashes and throws an error. When I remove it, my application runs successfully, but I'd rather use the floating action button if I can. This is my complete error log: [CODE]
java|android
6
2016-05-04T06:22:56.907Z
2,016
5
6
2
6,763
3
236
61
2
1
true
false
true
false
false
false
medium
37,019,987
SMS Broadcast Receiver not working
<p>Alright, I have tried every solution on Stack and nothing works.My current method registers the "SmsListener" receiver from the MainActivity. All I'm trying to do is initialize the onReceive method. There are no errors; It simply isn't picking up a broadcast. What am I doing wrong? Pasting the applicable code here. ...
Alright, I have tried every solution on Stack and nothing works.My current method registers the "SmsListener" receiver from the MainActivity. All I'm trying to do is initialize the onReceive method. There are no errors; It simply isn't picking up a broadcast. What am I doing wrong? Pasting the applicable code here. Any...
java|android|broadcastreceiver|sms|listener
2
2016-05-04T06:23:09.113Z
2,016
5
6
2
7,847
4
779
34
5
3
true
false
true
false
false
false
low
37,020,097
Android Media player getting null pointer exception while trying to pause(Playing via Service)
<p>//This is the Code for my service</p> <pre><code>public class MyService extends Service { MediaPlayer media; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub media=MediaPlayer.create(this, R.raw.song); stopService(intent); return null;...
//This is the Code for my service [CODE] //The click event where starting the service. [CODE] //Now the problem is while I am playing it is playing fine but wile I am try to pause the app crashes with the following exception.But as the service is running mp3 play on. [CODE] //I am stuck on it several times.Please provi...
android|service|nullpointerexception|mp3
1
2016-05-04T06:30:11.433Z
2,016
5
6
2
5,053
3
337
94
4
3
true
false
true
false
false
false
low
37,020,141
simple json parsing using assets folder(local)
<p>Json parsing using assets folder but when I run application xml layout does not showing parsed data. But it's show simple layout without json parse. How do I solve it? please give me suggestion. Below is my logcat information.</p> <pre><code>public class MainActivity extends Activity { static String TAG = "MainActi...
Json parsing using assets folder but when I run application xml layout does not showing parsed data. But it's show simple layout without json parse. How do I solve it? please give me suggestion. Below is my logcat information. [CODE] Assets folder information [CODE] Logcat Information [CODE]
java|android|eclipse
0
2016-05-04T06:33:11.210Z
2,016
5
6
2
79
1
292
46
3
3
true
false
false
false
false
false
zero
37,020,307
findFragmentByTag returns null in Activity at some places
<p>I know this question has been asked so many times but I have tried every thing which was answered like </p> <pre><code>getSupportFragmentManager().executePendingTransactions(); </code></pre> <p>used <code>fragmentTransaction.replace</code></p> <p>my problem is when I use findFragmentByTag, it works at one place a...
I know this question has been asked so many times but I have tried every thing which was answered like [CODE] used fragmentTransaction.replace my problem is when I use findFragmentByTag, it works at one place and does not work at other place. I am not getting where I am doing wrong because findFragmentByTag return frag...
android|android-fragments
0
2016-05-04T06:42:03.407Z
2,016
5
6
2
519
1
474
57
2
4
true
false
false
false
false
false
zero
37,020,324
Android - Using AutoCompleteTextView to detect a word next to `@`
<p>Firstly, I am really new in <code>AutoCompleteTextView</code>, and as can be inferred from the title, I want to use it to <code>Tag</code> people in the social media app I am currently developing.</p> <p>First I've created a class named <code>TagList</code> to contain a list of model class named <code>TagModel</cod...
Firstly, I am really new in AutoCompleteTextView , and as can be inferred from the title, I want to use it to Tag people in the social media app I am currently developing. First I've created a class named TagList to contain a list of model class named TagModel : [CODE] And here's the whole adapter class : [CODE] I've a...
android|autocompletetextview
0
2016-05-04T06:42:57.347Z
2,016
5
6
2
929
2
899
65
2
3
true
false
false
false
false
false
zero
37,020,413
Android: Dex cannot parse version 52 byte code
<p>I just switched to Android Studio 2.1 and this error showed up when trying to compile an app the was previously working:</p> <blockquote> <pre><code>Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or ab...
I just switched to Android Studio 2.1 and this error showed up when trying to compile an app the was previously working: [CODE] I had already updated the main project's gradle.build file to force Java 1.7 code generation: [CODE] I had also updated the module gradle.build as follows to set the java version: [CODE] The s...
java|android|maven|android-studio
94
2016-05-04T06:48:03.623Z
2,016
5
6
2
88,019
15
1,032
46
4
4
true
false
true
true
true
false
high
37,020,483
Android snackbar does not show continuously
<p>I got problem when showing a SnackBar:</p> <p>I have an Activity with 3 Fragments using ViewPager, each Fragment have a RecyclerView</p> <p>When data is shown in RecyclerView, I will have a list item, each item have a button, when I click on the button, it will show a snackbar:</p> <p>When init fragment, i passed...
I got problem when showing a SnackBar: I have an Activity with 3 Fragments using ViewPager, each Fragment have a RecyclerView When data is shown in RecyclerView, I will have a list item, each item have a button, when I click on the button, it will show a snackbar: When init fragment, i passed the activity view to fragm...
android|android-snackbar
0
2016-05-04T06:53:02.087Z
2,016
5
6
2
470
0
790
43
2
3
true
true
false
false
false
false
zero
37,020,566
How can i get all child items (position wise) when clicked on Listview?
<p>Here is my MainActivity Listview listener,</p> <pre><code> listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView&lt;?&gt; parent, View view, int pos...
Here is my MainActivity Listview listener, [CODE] My DetailPackageVO Class, [CODE] How can i get all child items that i have saved in ArrayList<ServiceVo> in DetailPackageVO Class, when clicked on position of listview item. Thanks in advance...
android|listview
-1
2016-05-04T06:57:38.673Z
2,016
5
6
2
48
1
244
71
2
2
true
false
false
false
false
true
negative
37,020,609
Activity is overlapping fragment home
<p>I'm developing a Calorie app where the user can delete an item from the listview.</p> <p>PROBLEM: When the user clicks on the item it goes to the calorie details activity,when they click delete it goes back to the home fragment. As soon as I click on add another entry it crashes. Also when it goes back to fragment...
I'm developing a Calorie app where the user can delete an item from the listview. PROBLEM: When the user clicks on the item it goes to the calorie details activity,when they click delete it goes back to the home fragment. As soon as I click on add another entry it crashes. Also when it goes back to fragment home it doe...
java|android|listview|android-fragments|android-activity
1
2016-05-04T06:59:59.783Z
2,016
5
6
2
266
0
886
37
5
6
true
true
false
false
false
false
low
37,020,855
Sorting numbers in text file android
<p>I am trying to sort the numbers in text file using android. Can you help me? This code is sorting part part not all of them. I mean it sorts 1.A 2.C 20.D 3.C 4.A 5.A like that. It should be 1.A 2.C 3.C 4.A 5.A 6.B 20.D I need to convert integer but how can I do that?</p> <p>try {</p> <pre><code> ...
I am trying to sort the numbers in text file using android. Can you help me? This code is sorting part part not all of them. I mean it sorts 1.A 2.C 20.D 3.C 4.A 5.A like that. It should be 1.A 2.C 3.C 4.A 5.A 6.B 20.D I need to convert integer but how can I do that? try { [CODE]
java|android|file
1
2016-05-04T07:14:28.043Z
2,016
5
7
2
213
2
280
36
3
1
true
false
false
false
false
false
low
37,020,882
How to persist static member in Shared preferences when it is about to be Garbage collected in Android
<p>I have a static member in Utility class, which is being accessed from most of my activities to store history info. I want to persist this static member when Utility class is about to be GCed. I tried below options.</p> <blockquote> <ol> <li>finalize() method implementation:</li> </ol> </blockquote> <p>I have...
I have a static member in Utility class, which is being accessed from most of my activities to store history info. I want to persist this static member when Utility class is about to be GCed. I tried below options. finalize() method implementation: I have overriden finalize() of the Utility class(I know it is not alway...
java|android|garbage-collection|android-sharedpreferences
4
2016-05-04T07:15:42.937Z
2,016
5
7
2
726
6
884
102
4
0
false
false
false
false
false
false
low
37,020,907
How to use server data in MaterialViewPager?
<p>I use this library. <strong>com.github.florent37:materialviewpager:1.1.3@aar</strong> How to use data that come from server in MaterialViewPager? Here, Kitchen", "Pork", "Fish", "Soup" are static, I want to change data that come from server; api. </p> <pre><code>mViewPager.getViewPager().setAdapter(new FragmentStat...
I use this library. com.github.florent37:materialviewpager:1.1.3@aar How to use data that come from server in MaterialViewPager? Here, Kitchen", "Pork", "Fish", "Soup" are static, I want to change data that come from server; api. [CODE] Here, retrofit; data come from server; [CODE] here, api [CODE] FoodCategory.java [C...
android|api|server|retrofit
3
2016-05-04T07:16:49.057Z
2,016
5
7
2
136
2
324
44
4
4
true
false
false
false
false
false
low
37,020,963
Android project in Jenkins build
<p>I have an Android project with more modules. When I tried to build this project in Android Studio 2.1 this, is working fine, but I when I tried to build with Jenkins I get this error:</p> <pre><code>* Where: Build file 'D:\Jenkins\workspace\MyProject\mylibrary\build.gradle' line: 1 * What went wrong: A problem occ...
I have an Android project with more modules. When I tried to build this project in Android Studio 2.1 this, is working fine, but I when I tried to build with Jenkins I get this error: [CODE] build.gradle file of this module (mylibrary): [CODE] Gradle plugin: [CODE] What can by a problem? Thanks for comments.
android|jenkins|android-gradle-plugin|android-studio-2.1
2
2016-05-04T07:19:30.713Z
2,016
5
7
2
354
1
309
32
4
3
true
false
false
false
false
false
low
37,021,004
Keyboard cover the searchview at bottom of layout
<p><a href="https://i.stack.imgur.com/CFZNl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CFZNl.png" alt="layout screen"></a></p> <p>Manifest file android:windowSoftInputMode="adjustPan|adjustResize|stateVisible" I want to show the serachview on the top of Keyboard when keyboard display and titl...
Manifest file android:windowSoftInputMode="adjustPan|adjustResize|stateVisible" I want to show the serachview on the top of Keyboard when keyboard display and title bar should not goes out.Any way? XMl page [CODE]
android|keyboard
1
2016-05-04T07:21:37.660Z
2,016
5
7
2
1,543
4
213
49
2
1
true
false
false
false
false
false
low
37,021,026
Android GestureDetector double tap is never fired
<p>I have a custom <code>DialogFragment</code> which contains a custom <code>ScrollView</code> which has some images. When the user makes double tap I want to change the zoom of images. I did this in <code>onCreateDialog</code> </p> <pre><code>public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog...
I have a custom DialogFragment which contains a custom ScrollView which has some images. When the user makes double tap I want to change the zoom of images. I did this in onCreateDialog [CODE] And the GestureListener class is [CODE] I tried to add return getActivity().onTouchEvent(event); in OnTouch method or/and v.dis...
android|gesturedetector
0
2016-05-04T07:22:39.603Z
2,016
5
7
2
358
0
575
49
2
2
true
true
false
false
false
false
zero
37,021,079
How to improve classes ? Issue with inner classes [Android]
<p>I'm using <strong>Android Studio</strong> to develop my app. I have two activities that does the same thing (except a parameter value) and I have an inner class inside which does the same thing too in the other activity. My inner class extends AsyncTask for background downloading. But, if I extend my second activity...
I'm using Android Studio to develop my app. I have two activities that does the same thing (except a parameter value) and I have an inner class inside which does the same thing too in the other activity. My inner class extends AsyncTask for background downloading. But, if I extend my second activity from my 1st activit...
java|android|optimization|inner-classes
0
2016-05-04T07:24:56.903Z
2,016
5
7
2
100
0
579
59
4
2
true
true
false
false
false
false
zero
37,021,094
Jackson Deserialization - JsonMappingException on a null object reference
<p>I have my object newNote of type Note. I'm composing the object (using Jackson library) by adding values to newNote and that's ok but when I try to do:</p> <pre><code>String bodyRequest = mapper.writeValueAsString(newNote); </code></pre> <p>I have JsonMappingException on a null object reference.</p> <p>I'm trying...
I have my object newNote of type Note. I'm composing the object (using Jackson library) by adding values to newNote and that's ok but when I try to do: [CODE] I have JsonMappingException on a null object reference. I'm trying to compose the body of a POST Request to insert here: [CODE] but I have error also when I try ...
java|android|json|http|jackson
2
2016-05-04T07:25:35.037Z
2,016
5
7
2
2,492
1
454
73
5
6
true
false
false
false
false
false
low
37,021,111
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform
<p>I am facing this error </p> <blockquote> <p>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class</p> </blockquote> <p>i searched online to resolv...
I am facing this error Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class i searched online to resolve this problem but i could find right solution,so pl...
java|android
2
2016-05-04T07:26:04.373Z
2,016
5
7
2
731
0
363
110
2
1
true
true
false
false
false
false
low
37,021,113
Android Kitkat material issue: transparency not working
<p>I've been developing on Android 6 and did not see any problems, until I tested my app on Kitkat - support AppBarLayout went completely blank:</p> <p><a href="https://i.stack.imgur.com/AzyJA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AzyJA.jpg" alt="enter image description here"></a></p> <p>...
I've been developing on Android 6 and did not see any problems, until I tested my app on Kitkat - support AppBarLayout went completely blank: But interestingly enough, it is not blank - it is white on white - all menu items are working, including tabs. Clue to problem is highlighted on the list - rating stars' backgrou...
android|android-4.4-kitkat
0
2016-05-04T07:26:05.787Z
2,016
5
7
2
129
0
608
55
2
1
true
true
false
false
false
false
zero
37,021,121
cancel httpTransport.call using ksoap in android
<p>I using ksoap lib for connecting to my Webservice.<br> my scenario is </p> <ol> <li>showing a progress dialog </li> <li>call my Webservice<br> 3-1. if done dismiss the dialog<br> 3-2. if the user cancels dialog then cancels calling operation</li> </ol> <p>but I don't know how can I cancel call method after run it....
I using ksoap lib for connecting to my Webservice. my scenario is showing a progress dialog call my Webservice 3-1. if done dismiss the dialog 3-2. if the user cancels dialog then cancels calling operation but I don't know how can I cancel call method after run it. this is my call method [CODE] so my question is, is th...
android|android-ksoap2|httptransportse
1
2016-05-04T07:26:25.247Z
2,016
5
7
2
173
0
388
48
3
1
true
true
false
false
false
false
low
37,021,303
GPS locating takes too long to start
<p>I set up a LocationManager in my app to locate the user and show his current position. This is working fine, except of a too long starting time (sometimes >10sec). After the starting time, the service works as expected.</p> <p>Here is a log output. The first line is the <code>LastKnownLocation</code> on startup, th...
I set up a LocationManager in my app to locate the user and show his current position. This is working fine, except of a too long starting time (sometimes >10sec). After the starting time, the service works as expected. Here is a log output. The first line is the LastKnownLocation on startup, the LocationService is sta...
android|location
0
2016-05-04T07:35:18.193Z
2,016
5
7
2
1,890
1
916
36
2
5
true
false
false
false
false
false
zero
37,021,328
Calculator app crash when being run
<pre><code>package com.example.android.kalkulatron; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; import android.widget.Toast; import java.text.DecimalFormat; public class MainActivity extends AppCompatActivity { TextView nom...
[CODE] Here is my calculator prototype for android but it keeps crashing when I test it on my phone. I am making this for just trial and error and here I am stuck with this. Can anybody find the mistake I have made? Thank you so much in advance. (Sorry for bad English) [CODE]
java|android|crash
-2
2016-05-04T07:36:38.937Z
2,016
5
7
2
79
1
276
35
3
2
true
false
false
false
false
true
negative
37,021,427
Change ListView Image at Runtime Delphi 10.1 Berlin
<p>Delphi 10.1 Berlin. ListView.ItemAppearance=DynamicAppearance. I want to change Image in ListViewItem in Runtime. </p> <p><a href="https://i.stack.imgur.com/9fcZx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9fcZx.png" alt="View"></a></p> <p>My code: </p> <pre><code>procedure TForm1.Button2C...
Delphi 10.1 Berlin. ListView.ItemAppearance=DynamicAppearance. I want to change Image in ListViewItem in Runtime. My code: [CODE] end; In result: all pictures red (Image1 too). What am i doing wrong? Project source
android|listview|firemonkey|delphi-10.1-berlin
1
2016-05-04T07:41:25.037Z
2,016
5
7
2
4,174
1
214
51
4
1
true
false
true
false
false
false
low
37,021,465
Null Exception on VideoView in Fragment
<p>I am trying to make a videoview that would display on fragment.</p> <pre><code>VideoView videoView; public First_Fragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inf...
I am trying to make a videoview that would display on fragment. [CODE] But everytime I run it, it always gives me a Null Exception error. [CODE]
android
0
2016-05-04T07:42:44.203Z
2,016
5
7
2
34
0
144
39
1
2
true
true
false
false
false
false
zero
37,021,647
Getting response code 500 while trying to connect to a URL to parse json data android
<p>I am trying to connect to the Url and for that i am sending JSON data to the Url but i am getting response code 500 and I don't know where exactly the problem is .. I am trying to send URI data to get json data back from the URL </p> <pre><code> package practise.c.practise; import android.net.Uri; ...
I am trying to connect to the Url and for that i am sending JSON data to the Url but i am getting response code 500 and I don't know where exactly the problem is .. I am trying to send URI data to get json data back from the URL [CODE]
android|json
0
2016-05-04T07:51:55.743Z
2,016
5
7
2
79
0
235
85
2
1
true
true
false
false
false
false
zero
37,021,663
AdMob shows banner on emulator, not shows on device
<p>Admob shows test banner on emulator, logcat form emulator:</p> <pre><code> 05-03 08:07:44.032 798-798/ru.xxx.xxx I/Ads: Starting ad request. 05-03 08:07:45.572 798-798/ru.xxx.xxx W/Ads: Loading already in progress, saving this object for future refreshes. 05-03 08:07:58.812 798-798/ru.xxx.xxx I/Ads: Scheduling ...
Admob shows test banner on emulator, logcat form emulator: [CODE] but when I run app on device, admob not shows test and real banner. logcat from real device: [CODE] main activity: [CODE] manifest [CODE] admob account is not banned, i tested on 3 devices.permissions in manifest is right
android|libgdx|admob
0
2016-05-04T07:53:02.037Z
2,016
5
7
2
789
2
287
51
3
4
true
false
false
false
false
false
zero
37,021,781
Universal Windows Platform webView override NavigationStarting
<p>I am developing a simple <code>UWP</code> page with a <code>web view</code>. I would like to do the following: if a external link is clicked I open the default brower, but if it is not a external link I want to navigate in my <code>web view</code> and add some extra headers. For this I have overrided the event WebVi...
I am developing a simple UWP page with a web view . I would like to do the following: if a external link is clicked I open the default brower, but if it is not a external link I want to navigate in my web view and add some extra headers. For this I have overrided the event WebViewNavigationStartingEventArgs, this is my...
c#|android|webview|win-universal-app
0
2016-05-04T07:58:48.237Z
2,016
5
7
2
1,110
1
580
62
4
4
true
false
false
false
false
false
zero
37,021,807
Google Play beta version not installable
<p>We want to start closed beta testing for an app which has a production version already published in the Play Store. The production app is for Android TV only, so it has these features set in the manifest:</p> <pre><code>&lt;uses-feature android:name="android.hardware.touchscreen" android:required="false" /&...
We want to start closed beta testing for an app which has a production version already published in the Play Store. The production app is for Android TV only, so it has these features set in the manifest: [CODE] Now the beta app should be for phones only, so the manifest misses the above lines (touchscreen implicitly d...
android|google-play|beta|android-tv
0
2016-05-04T07:59:53.143Z
2,016
5
7
2
127
1
890
40
4
1
true
false
false
false
false
false
zero
37,021,829
Prevent Activity against opening without required data inside Intent
<p>I don't really know if there is any solution for that problem (maybe I'm looking for something impossible or uncommon thing), and I didn't found anything by searching this site or Google. My problem is a little bit complex, so please read the whole story.</p> <p>In 2 of my activities there are parts which are compl...
I don't really know if there is any solution for that problem (maybe I'm looking for something impossible or uncommon thing), and I didn't found anything by searching this site or Google. My problem is a little bit complex, so please read the whole story. In 2 of my activities there are parts which are completely equal...
android|android-intent|android-activity
1
2016-05-04T08:00:58.650Z
2,016
5
8
2
41
1
1,581
68
3
1
true
false
false
false
false
false
low
37,021,846
how to fill picker (android) of react native with fetch
<p>I have a picker in my app and i want to fill this with data fetched in the server, I have the data in a state of the app, but I don't know how to make the app to update the picker when the data is fetched</p> <pre><code>constructor(props) { super(props); this.state = { isLoading: false, client: ...
I have a picker in my app and i want to fill this with data fetched in the server, I have the data in a state of the app, but I don't know how to make the app to update the picker when the data is fetched [CODE] I have this in my view [CODE] and the fetchData function [CODE] the thing is how can I make the picker updat...
android|reactjs|react-native|fetch|picker
6
2016-05-04T08:02:06.910Z
2,016
5
8
2
5,552
1
354
55
5
3
true
false
true
false
false
false
medium
37,021,866
ListView with multiselect
<pre><code> // **Step 1**: setAdapter to your listview. listView.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_multiple_choice, GENRES)); // **Step 2**: set choice mode for listview .The second line of below code represents which checkbox should be checked. listView.set...
[CODE] This is working for me.But If i will uncheck listitem how to remove that item from str . str+=GENRES[sp.keyAt(i)]+","; Can anyone please help me.
android|listview
0
2016-05-04T08:03:02.723Z
2,016
5
8
2
77
2
152
25
2
1
true
false
false
false
false
false
zero
37,021,926
Blank Toolbar when scrolling
<p>My app has a Toolbar that hides when you scroll down the screen and appears when you start scrolling up.</p> <p>In Lollipop it works perfectly, but in Kitkat a blank toolbar is sometimes shown when you scroll up. When you scroll a bit down again, the toolbar shows the correct content.</p> <p>Am I missing something...
My app has a Toolbar that hides when you scroll down the screen and appears when you start scrolling up. In Lollipop it works perfectly, but in Kitkat a blank toolbar is sometimes shown when you scroll up. When you scroll a bit down again, the toolbar shows the correct content. Am I missing something? Here is part of m...
android|scroll|toolbar
0
2016-05-04T08:06:12.793Z
2,016
5
8
2
61
1
333
28
3
1
true
false
false
false
false
false
zero
37,021,932
unable to get the 2 values after decimals but getting zero
<p>Hi friends I want to get two values after decimal,but in my I am getting 0 after the decimal. this is my code below.</p> <pre><code> if (!ed.getText().toString().equals("")) { if (rb1.isChecked()) { int input = Integer.valueOf(ed.getText().toString()); ...
Hi friends I want to get two values after decimal,but in my I am getting 0 after the decimal. this is my code below. [CODE] I referred these sites also: Android : How to get just two digit after the point in decimal value ? dont want to trunc the value Java : how do I get the part after the decimal point? and I tried t...
android|double|decimalformat
0
2016-05-04T08:06:27.143Z
2,016
5
8
2
207
2
426
58
3
2
true
false
false
false
false
false
zero
37,022,025
Signed generated APK does not work the same as inside Android Studio
<p>I have generated an APK using Android Studio and I don't know why the APK behavior is different from installing the software using the usb wire on debug mode. I have two activities in the same application and when I install it from debug, it appears the first of them but if I install it using the APK, it is launched...
I have generated an APK using Android Studio and I don't know why the APK behavior is different from installing the software using the usb wire on debug mode. I have two activities in the same application and when I install it from debug, it appears the first of them but if I install it using the APK, it is launched di...
android|android-studio|android-activity|apk|signed
0
2016-05-04T08:11:42.477Z
2,016
5
8
2
103
1
583
68
5
1
true
false
false
false
false
false
zero
37,022,054
How to design Gridview like guardian app
<p>I am trying to make layout like guardian app. I know what is gridview and how to design it and inflate it with data etc.</p> <p>what i want to design?</p> <p><a href="https://i.stack.imgur.com/9XJty.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9XJty.jpg" alt="enter image description here"></a...
I am trying to make layout like guardian app. I know what is gridview and how to design it and inflate it with data etc. what i want to design? This layout have items with images and not with and there is also lazy loading going on in it. What are the problem i am facing? 1-Confused which viewi should i go with. GridVi...
android|listview|gridview|android-recyclerview
8
2016-05-04T08:13:18.677Z
2,016
5
8
2
1,597
8
1,021
40
4
1
true
false
false
false
false
false
medium
37,022,139
Android Studio: product flavor combination with more than two flavor dimensions (flavor groups)
<p>I am developing an Android application using Android Studio (v 2.1, gradle plugin v 2.1.0). My application has various versions which share a lot of common code so I decided to use flavor dimensions and product flavors to customize code and resources when and where it is requested. This worked fined as long as I onl...
I am developing an Android application using Android Studio (v 2.1, gradle plugin v 2.1.0). My application has various versions which share a lot of common code so I decided to use flavor dimensions and product flavors to customize code and resources when and where it is requested. This worked fined as long as I only h...
android|android-studio|android-gradle-plugin|android-productflavors|android-flavordimension
26
2016-05-04T08:18:05.530Z
2,016
5
8
2
8,408
2
2,033
95
5
5
true
false
true
false
true
false
high
37,022,140
Convert from UTC string to device time - when device time is adjusted
<p>I developed chat application, and the messages time are being saved in the server in UTC.</p> <p>For ex. '2016-05-04T07:44:22.214419Z'.</p> <p>I want to convert this time to the device time &amp; date.</p> <p>I know this way:</p> <pre><code>String dbDate = "2016-05-04T07:44:22.214419Z"; SimpleDateFormat mDBDate...
I developed chat application, and the messages time are being saved in the server in UTC. For ex. '2016-05-04T07:44:22.214419Z'. I want to convert this time to the device time & date. I know this way: [CODE] This works perfectly when the device time is correct. But when I set the android time manually, lets say we'll m...
android|datetime
0
2016-05-04T08:18:06.200Z
2,016
5
8
2
58
0
652
69
2
1
true
true
false
false
false
false
zero
37,022,169
How to generate a .proto file with Wire without using Maven?
<p>For a project I've been using the Google protocol buffers, but now I want to switch to Wire. I want to compile my .proto file using the terminal like this</p> <pre><code>protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/addressbook.proto (this is for the google protobufs) </code></pre> <p>which is straightforward.</...
For a project I've been using the Google protocol buffers, but now I want to switch to Wire. I want to compile my .proto file using the terminal like this [CODE] which is straightforward. In the Wire README they give this as an example: [CODE] I don't know how this works, because I don't have a jar file. Here's my path...
java|android|android-studio|protocol-buffers|square-wire
2
2016-05-04T08:19:27.743Z
2,016
5
8
2
346
0
480
60
5
2
true
true
false
false
false
false
low
37,022,213
Error while Launching activity Android Studio 2.1
<p>Since I've updated Android Studio from 1.5 to 2.1 I've been getting the following error a lot of times (not always). This is the output from the "Run" dialog: </p> <pre><code>05/04 10:15:14: Launching app $ adb push C:\Users\Sition\AndroidStudioProjects\DigginTemp\app\build\outputs\apk\app-debug.apk /data/local/...
Since I've updated Android Studio from 1.5 to 2.1 I've been getting the following error a lot of times (not always). This is the output from the "Run" dialog: [CODE] But strangely enough there is nothing to be found in the logcat. I really don't know what causes this, since the error doesn't tell much about what's goin...
java|android|android-studio
4
2016-05-04T08:22:13.747Z
2,016
5
8
2
7,025
5
714
49
3
5
true
false
true
false
false
false
low
37,022,239
There was no endpoint listening at {0} that could accept the message. This is often cause by an incorrect address or SOAP action. (Xamarin Android)
<p>I can normally run the application on the emulator and do some action before, but for some reason this suddenly appeared even though the webservice runs properly on the browser.</p> <p><a href="https://i.stack.imgur.com/xnRUo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnRUo.png" alt="error">...
I can normally run the application on the emulator and do some action before, but for some reason this suddenly appeared even though the webservice runs properly on the browser. I looked for a solution with similar case as this but I can't seem to figure out how to do it because I am using Xamarin which has a different...
c#|android|wcf|soap|xamarin
-1
2016-05-04T08:23:43.290Z
2,016
5
8
2
610
2
428
147
5
2
true
false
false
false
false
true
negative
37,022,270
How to make bold with array?
<p>I have a string array. i want to make bold with it. i try to <b></b>. But it's not working. How can i make bold with array? please help me?</p> <pre><code>&lt;string-array name="title_actionbars"&gt; &lt;item &gt;Trang chủ&lt;/item&gt; &lt;item&gt;Thẻ game online&lt;/item&gt; &lt;item&gt;Zin...
I have a string array. i want to make bold with it. i try to . But it's not working. How can i make bold with array? please help me? [CODE] My java code. i add arraylist to drawerListMenu. But i want to change bold some item when i show arraylist to drawerListMenu. But is's working! [CODE]
android|android-layout
-1
2016-05-04T08:25:04.117Z
2,016
5
8
2
277
1
290
28
2
2
true
false
false
false
false
true
negative
37,022,318
R cannot resolved to a variable in eclipse android
<pre><code>This is my xml code R file is not generating please tell me where is the error and why R file is not generating &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:l...
[CODE] and this is my java code [CODE] } This is my code R file is not generating please tell me where is the error and why R file is not generating This is my xml code R file is not generating please tell me where is the error and why R file is not generating This is my xml code R file is not generating please tell me...
java|android|xml|eclipse|android-layout
0
2016-05-04T08:26:59.813Z
2,016
5
8
2
97
2
484
50
5
2
true
false
false
false
false
false
zero
37,022,380
I could not get data from Intent after broadcast received
<p>I am writing a program that sends SMS message in Android. After a send button clicked, I want to get the status of the message like Sent, and delivered. This part works fine. The problem is I want to get the telephone no to which the message is sent to and delivered to inside broadcast. This is necessary because the...
I am writing a program that sends SMS message in Android. After a send button clicked, I want to get the status of the message like Sent, and delivered. This part works fine. The problem is I want to get the telephone no to which the message is sent to and delivered to inside broadcast. This is necessary because the SM...
android
0
2016-05-04T08:30:03.077Z
2,016
5
8
2
208
1
633
57
1
2
true
false
false
false
false
false
zero
37,022,445
Failure delivering result ResultInfo{who=null, request=129742, result=-1, data=Intent { (has extras) }} to activity
<p>I have a fragment which contains data to be sent to another activity. Sending and retrieving one extras from the intent is working but not for other byte array. Please look into it.</p> <p><strong>Fragment class</strong></p> <pre><code> String userId = profile.getId(); Bitmap bitmap = getFacebookPro...
I have a fragment which contains data to be sent to another activity. Sending and retrieving one extras from the intent is working but not for other byte array. Please look into it. Fragment class [CODE] MAIN2ACTIVITY [CODE] The third line main2activity throws error : Failure delivering result ResultInfo{who=null, requ...
android|android-fragments|android-intent|bytearray
0
2016-05-04T08:33:40.693Z
2,016
5
8
2
1,313
2
632
115
4
2
true
false
false
false
false
false
zero
37,022,536
AlarmManager keeps bringing activity to foreground
<p>I'm trying to write code that will run in the background and call server APIs. Googling led me to use AlarmManager, here is my code:</p> <pre><code> AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); int interval = 4000; Intent alarmIntent = new Intent...
I'm trying to write code that will run in the background and call server APIs. Googling led me to use AlarmManager, here is my code: [CODE] The problem here though, is when my app is on the foreground (currently in android main menu, or on another app), whenever the alarm fires, it sends my activity to the front. Anyon...
android|android-activity|broadcastreceiver|alarmmanager|background-process
0
2016-05-04T08:38:34.307Z
2,016
5
8
2
291
1
573
50
5
4
true
false
false
false
false
false
zero
37,022,603
Open folder content with default file manager in android
<p>I am working with pdf files in my android app. In a Alert Dialog pressing "Yes" should open the pdf file location in default file manager app. </p> <p>I tried with <a href="https://stackoverflow.com/questions/17165972/android-how-to-open-a-specific-folder-via-intent-and-show-its-content-in-a-file">this</a> but it a...
I am working with pdf files in my android app. In a Alert Dialog pressing "Yes" should open the pdf file location in default file manager app. I tried with this but it always open a chooser. Even-though it(ES File Explorer) opens with "Choose Path" dialog not the folder in the app as normal way of accessing folder. So,...
android|android-intent|intentfilter|android-file
11
2016-05-04T08:41:58.707Z
2,016
5
8
2
9,733
0
736
56
4
1
true
true
true
false
true
false
medium