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,862,031
Save a list of discoverable bluetooth LE devices?
<p>How can I save a list of discoverable BLE devices in Android?</p> <p>Follow my implementation of <strong>startDeviceScan()</strong> method:</p> <pre><code>private String[][] mNearestDevices; // ... public String[][] startDeviceScan() { Log.i(TAG, "Start device scan"); mNearestDevices = new String[n][2]; ...
How can I save a list of discoverable BLE devices in Android? Follow my implementation of startDeviceScan() method: [CODE] This is the device scan callback : [CODE] Another question. How can I wait the completion of scan?
android|bluetooth|runnable|android-bluetooth|android-ble
0
2016-04-26T10:18:49.650Z
2,016
4
10
1
118
1
221
49
5
2
true
false
false
false
false
false
zero
36,862,127
Menu items do not appear in navigation drawer
<p>I'm stuck with this thing: I'm trying to create the layout of a navigation drawer. Unfortunately I cannot make items of my menu to show up, even though the header happens to be at the right place. I'm going to provide my .xml of the layout file. Please, help me out!</p> <pre><code>&lt;?xml version="1.0" encoding="u...
I'm stuck with this thing: I'm trying to create the layout of a navigation drawer. Unfortunately I cannot make items of my menu to show up, even though the header happens to be at the right place. I'm going to provide my .xml of the layout file. Please, help me out! [CODE] MainActivity code [CODE] Menu code [CODE] I ju...
android|android-layout|navigation-drawer
2
2016-04-26T10:22:37.410Z
2,016
4
10
1
3,174
2
493
45
3
3
true
false
true
false
false
false
low
36,862,144
How to add prebuilt shared library in aosp system apps
<p>My structure is</p> <pre><code> packages/apps/myapp //No Java source file | Android.mk / first Makefile, jni __ | source.c Android.mk // 2nd Makefile libs // Prebuilt libs </code></pre> <p>First Amdroid.mk</p> <pre><code>LOCAL_PATH := $(call my-dir) include $(call all-...
My structure is [CODE] First Amdroid.mk [CODE] Second Android.mk [CODE] But this always gives me error : [CODE] Any help would be appreciated.
android|android-source|android.mk
1
2016-04-26T10:23:29.447Z
2,016
4
10
1
1,333
0
142
54
3
4
true
true
false
false
false
false
low
36,862,152
get data from POST request
<p>Im trying to get data from a POST request to build logic in my app.</p> <p>For example; if code==200 start main Activity, else build error message.</p> <p>But, when I'm trying to get this data from response value(parameter onResponse method) I have NPE, and in stack trace I see that response.body()=null.</p> <p>I...
Im trying to get data from a POST request to build logic in my app. For example; if code==200 start main Activity, else build error message. But, when I'm trying to get this data from response value(parameter onResponse method) I have NPE, and in stack trace I see that response.body()=null. In stack trace I also see th...
android|retrofit|retrofit2
0
2016-04-26T10:23:39.430Z
2,016
4
10
1
116
1
594
26
3
5
true
false
false
false
false
false
zero
36,862,165
java.lang.IndexOutOfBoundsException: Invalid index 15, size is 15
<p>Getting this error at the end of my listview . when i am sliding down my list item its showing "unfortunately meltwish has stopped .</p> <p>i am totally new in android and coding so i cant figure out what is the exact problem . may be its a minor problem but for me its irritating </p> <p>here is my code</p> <pre>...
Getting this error at the end of my listview . when i am sliding down my list item its showing "unfortunately meltwish has stopped . i am totally new in android and coding so i cant figure out what is the exact problem . may be its a minor problem but for me its irritating here is my code [CODE] logcat [CODE]
android|listview|layout
-3
2016-04-26T10:24:13.373Z
2,016
4
10
1
507
2
310
65
3
2
true
false
false
false
false
true
negative
36,862,215
Android Studio Button color & border
<p>The buttons are fine. But when I set a new background color for every button. The border of every button disappears. The lines between the buttons disappears. How can I bring back the borders? or the lines around the buttons. btw im using relative layout.</p> <p>This is the xml code:</p> <pre><code> xmlns:tools="h...
The buttons are fine. But when I set a new background color for every button. The border of every button disappears. The lines between the buttons disappears. How can I bring back the borders? or the lines around the buttons. btw im using relative layout. This is the xml code: [CODE] Thanks.
android|android-studio|border|calculator|textcolor
0
2016-04-26T10:26:17.170Z
2,016
4
10
1
358
2
292
36
5
1
true
false
false
false
false
false
zero
36,862,244
Android - How to set own text in Button/TextView using data-binding
<p>I just started working around with android <code>data-binding</code>. And I wanted to change button text according user login status but I got below error.</p> <p>Log says Syntax error, tried but I found nothing.<br> <strong>Code</strong><br> <a href="https://i.stack.imgur.com/gkMZu.png" rel="nofollow noreferrer"><...
I just started working around with android data-binding . And I wanted to change button text according user login status but I got below error. Log says Syntax error, tried but I found nothing. Code Logcat error Error:|', '?', ':', '??'} Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.lang.Runtim...
android|android-layout|android-studio|android-databinding
1
2016-04-26T10:27:26.643Z
2,016
4
10
1
3,726
2
760
67
4
0
false
false
true
false
false
false
low
36,862,346
@hide class not found
<p>The ContentResolver class has a hidden method called <a href="https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/content/ContentResolver.java#2332" rel="nofollow noreferrer"><code>getSyncStatus(...)</code></a>.</p> <p>To make it public visible I try to add a wrapper meth...
The ContentResolver class has a hidden method called getSyncStatus(...) . To make it public visible I try to add a wrapper method in ContentResolverCompat from support v4 lib. This works so far in Eclipse but when I call make it fails with the following errors: [CODE] My thought was that @hide is a documentation thing ...
android|android-source|android-build
0
2016-04-26T10:31:54.287Z
2,016
4
10
1
473
0
718
21
3
1
true
true
false
false
false
false
zero
36,862,445
How to use a layout over and over?
<p>I am building a simple quiz app.A question with four options(radio buttons). I am using JSON to fetch data.At a time, I only want to show one questions with the four options and on pressing next button the next question will come and so on until all the question get over. Till now I am able to show the first questi...
I am building a simple quiz app.A question with four options(radio buttons). I am using JSON to fetch data.At a time, I only want to show one questions with the four options and on pressing next button the next question will come and so on until all the question get over. Till now I am able to show the first question w...
android|json|android-activity
0
2016-04-26T10:36:37.060Z
2,016
4
10
1
124
4
527
34
3
1
true
false
false
false
false
false
zero
36,862,462
Front camera not working on different devices
<pre><code>public class camera extends Activity { private static final String LOG_TAG = "photo"; private int cameraId = 1; private Camera camera = null; Button b1, b2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentVi...
[CODE] I have written this code for the front camera but it is not working in all Android devices, in some devices it reboots the phone and in some devices it shows an unfortunate error and in some devices it works properly.
java|android|android-camera|front-camera
0
2016-04-26T10:37:03.953Z
2,016
4
10
1
97
0
224
45
4
1
true
true
false
false
false
false
zero
36,862,494
Data Binding for alternative layouts
<p>I have faced with an issue with data binding for different layouts. I have layout file for different orientation. For portrait mode: </p> <pre><code>&lt;layout xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_par...
I have faced with an issue with data binding for different layouts. I have layout file for different orientation. For portrait mode: [CODE] and for landspace mode: [CODE] And when I use it for binding via [CODE] I have no access for extraContainer from current binding. Possible solution to add the view with same id and...
android|android-databinding
6
2016-04-26T10:38:35.363Z
2,016
4
10
1
1,922
2
375
36
2
3
true
false
false
false
false
false
medium
36,862,545
Issue with POST JSON
<p>Im trying send JSON file an http POST request, with 1 int and 2 list[]. Server get my request, but json is empty always. Whats wrong with my code?? When I POST HashMap login+pass, it works good, but with json something wrong..</p> <pre><code> try { JSONObject jsonParam = new JSONObject(); ...
Im trying send JSON file an http POST request, with 1 int and 2 list[]. Server get my request, but json is empty always. Whats wrong with my code?? When I POST HashMap login+pass, it works good, but with json something wrong.. [CODE]
android|json|http-post
1
2016-04-26T10:40:40.640Z
2,016
4
10
1
35
0
233
20
3
1
true
true
false
false
false
false
low
36,862,547
AndroidStudio - Images for multiple screens makes size of apk grow exceptionally large
<p>I am making an android project with AndroidStudio and I have a problem with the <strong>physical</strong> size of the images that I am using. </p> <p>Basically I have 15 activities and all of them have different <code>.png</code> files for their background and their buttons. These pictures are in FullHD(1080x1920)....
I am making an android project with AndroidStudio and I have a problem with the physical size of the images that I am using. Basically I have 15 activities and all of them have different .png files for their background and their buttons. These pictures are in FullHD(1080x1920). I created different "variations" for each...
android|android-studio|android-drawable|screen-size|screen-density
1
2016-04-26T10:40:42.177Z
2,016
4
10
1
248
3
1,018
86
5
0
false
false
false
false
false
false
low
36,862,584
Failed to allocate a 105949236 byte allocation with 16777120 free bytes and 40MB until OOM
<p>I am getting the following error when I am trying to move to a maps activity in my android app. I have tried loads of different ways to fix it by reading other similar questions but I am unable to fix it. If anyone can please help, Thank you.</p> <p>This is the error in the log file I am receiving. </p> <pre><code...
I am getting the following error when I am trying to move to a maps activity in my android app. I have tried loads of different ways to fix it by reading other similar questions but I am unable to fix it. If anyone can please help, Thank you. This is the error in the log file I am receiving. [CODE] Gradle File: [CODE]
android|google-maps|out-of-memory
-4
2016-04-26T10:42:47.357Z
2,016
4
10
1
4,420
2
319
90
3
2
true
false
true
false
false
true
negative
36,862,624
Slow files loading in file browser app
<p>I am working on a android filebrowser project, in which there will be four fragments under TabLayout. Four fragments are for Images, videos,audio and docs respectively. After laoding files, get displayed in associated fragment recyclerviews. Like Image files get loaded into recyclerview of Images Fragment(tab). </p>...
I am working on a android filebrowser project, in which there will be four fragments under TabLayout. Four fragments are for Images, videos,audio and docs respectively. After laoding files, get displayed in associated fragment recyclerviews. Like Image files get loaded into recyclerview of Images Fragment(tab). Code : ...
android|android-fragments|android-file|file-browser
0
2016-04-26T10:44:30.983Z
2,016
4
10
1
307
1
751
38
4
2
true
false
false
false
false
false
zero
36,862,644
Card looking Layout
<p>I'm making a Dialog which has a card-like corners. But I can't quite make it look like a card.I can make corners but still part above the red radius color is being shown on the dialog. I tried everything but I can't make it work. Can someone help me? My main layout is cardView and I put my shape layout in the backgr...
I'm making a Dialog which has a card-like corners. But I can't quite make it look like a card.I can make corners but still part above the red radius color is being shown on the dialog. I tried everything but I can't make it work. Can someone help me? My main layout is cardView and I put my shape layout in the backgroun...
android|android-layout|android-cardview
0
2016-04-26T10:45:19.210Z
2,016
4
10
1
70
2
357
19
3
2
true
false
false
false
false
false
zero
36,862,675
Android SD Card Write Permission using SAF (Storage Access Framework)
<p>After a lot of findings about how to write(and rename) a file in SD Card (android 5 and above), I think the new SAF provided by android will be required to take permission from user to write SD card file. </p> <p>I have seen in this File Manger Application <strong>ES File Explorer</strong> that initially it takes r...
After a lot of findings about how to write(and rename) a file in SD Card (android 5 and above), I think the new SAF provided by android will be required to take permission from user to write SD card file. I have seen in this File Manger Application ES File Explorer that initially it takes read and write permission the ...
android|android-5.0-lollipop|android-sdcard|storage-access-framework|documentfile
25
2016-04-26T10:46:56.183Z
2,016
4
10
1
28,701
1
561
69
5
1
true
false
true
true
true
false
high
36,862,968
Android custom ArrayAdapter with custom object
<p>I am new for Android development. </p> <p>I was trying to implement a custom <code>ArrayAdapter</code> to accept custom object in Android Studio.</p> <p>I have referenced the source code from some tutorial, but my screen output was improper that the custom object only fill in the <code>TextView</code> which link w...
I am new for Android development. I was trying to implement a custom ArrayAdapter to accept custom object in Android Studio. I have referenced the source code from some tutorial, but my screen output was improper that the custom object only fill in the TextView which link with the textViewResourceId of ArrayAdapter , b...
java|android|android-arrayadapter
0
2016-04-26T10:59:50.780Z
2,016
4
10
1
3,188
4
900
46
3
4
true
false
true
false
false
false
zero
36,863,025
base class for fragment manager android
<p>here's is a big deal.I have android project which has multiple activities with different packages, some activities has list view with custom adapter with button and spinner. as same other activities have list view but different widget. for example. A employee list view with custom adapter where button click in list ...
here's is a big deal.I have android project which has multiple activities with different packages, some activities has list view with custom adapter with button and spinner. as same other activities have list view but different widget. for example. A employee list view with custom adapter where button click in list vie...
android|android-fragments
0
2016-04-26T11:01:58.863Z
2,016
4
11
1
490
1
1,104
39
2
1
true
false
false
false
false
false
zero
36,863,129
Notification bar disappears after showing download complete
<p>I am implementing a download service in which I am downloading an Image from URL. As soon as the service starts, a notification should pop up showing download in progress with progress bar. The progress bar should be updated everytime and it should show "download completed" when download is finished. However what ha...
I am implementing a download service in which I am downloading an Image from URL. As soon as the service starts, a notification should pop up showing download in progress with progress bar. The progress bar should be updated everytime and it should show "download completed" when download is finished. However what happe...
android|android-notifications|intentservice
0
2016-04-26T11:06:35.090Z
2,016
4
11
1
163
1
527
59
3
1
true
false
false
false
false
false
zero
36,863,140
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value
<p>As I am working on the google maps , I am facing the issue of having a problem in the manifest.XML , I don't know what is the problem , as I read many answers on the same problem , but all were about you have to place your meta tag outside your activity tag which I am already doing .</p> <p><strong>AndroidManifes...
As I am working on the google maps , I am facing the issue of having a problem in the manifest.XML , I don't know what is the problem , as I read many answers on the same problem , but all were about you have to place your meta tag outside your activity tag which I am already doing . AndroidManifest.xml [CODE] Logcat [...
java|android|xml|google-maps|android-manifest
0
2016-04-26T11:07:25.177Z
2,016
4
11
1
1,147
0
325
114
5
2
true
true
false
false
false
false
zero
36,863,165
android Lazy image load of ListView not working properly
<p>I am tying to lazy load images into my ListView, the images are loading fine, but I've a problem. While loading the images get interchanged. </p> <p>Let's say that the ListView has 10 rows. It loads the images for 1st row, it displays it in the 1st row, then it loads the image for the 2nd row. It displays in the 2n...
I am tying to lazy load images into my ListView, the images are loading fine, but I've a problem. While loading the images get interchanged. Let's say that the ListView has 10 rows. It loads the images for 1st row, it displays it in the 1st row, then it loads the image for the 2nd row. It displays in the 2nd row for a ...
android|image|listview
0
2016-04-26T11:08:12.853Z
2,016
4
11
1
134
2
850
56
3
2
true
false
false
false
false
false
zero
36,863,188
How to make condition in android?
<p>I have a Broadcast receiver in my app and get a url from server response from server response url I split package name and save in shared preference,now scenario is that when any app is added in device it will check that app package name from my saved package name if match then pass intent. problem is that when vari...
I have a Broadcast receiver in my app and get a url from server response from server response url I split package name and save in shared preference,now scenario is that when any app is added in device it will check that app package name from my saved package name if match then pass intent. problem is that when variabl...
android
0
2016-04-26T11:09:09.713Z
2,016
4
11
1
48
0
470
33
1
1
true
true
false
false
false
false
zero
36,863,264
android logback does not rollover on time based policy
<p>I am using android logback to write into an internal folder.</p> <p>my logger configuration looks like this:</p> <pre><code>&lt;configuration debug='true'&gt; &lt;property name="LOG_DIR" value="logs" /&gt; &lt;appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender"&gt; &lt;tagEncoder&gt; ...
I am using android logback to write into an internal folder. my logger configuration looks like this: [CODE] the file name pattern "log-%d{yyyy-MM-dd-HH-mm}.txt" should create a new log file for every minute (since minutes are the smallest unit). the rollback is triggered, but it fails and the debug message just says: ...
android|logback
1
2016-04-26T11:12:20.613Z
2,016
4
11
1
456
1
806
54
2
2
true
false
false
false
false
false
low
36,863,370
Android SDK External Store, File Not Found
<p>I've been struggling with storing an ArrayList on the SD card of an Galaxy S4. For reasons that I can't seem to figure out on my own, i keep getting File Not Found Exception in this piece of code:</p> <pre><code>File file = new File(Environment.getExternalStorageDirectory(), name); if(file.exists()) file.d...
I've been struggling with storing an ArrayList on the SD card of an Galaxy S4. For reasons that I can't seem to figure out on my own, i keep getting File Not Found Exception in this piece of code: [CODE] EDIT: After properly adding permissions i no longer get File Not Found Exception, but instead IOException. I noticed...
java|android|ioexception|android-external-storage
1
2016-04-26T11:16:45.917Z
2,016
4
11
1
62
2
2,722
42
4
1
true
false
false
false
false
false
low
36,863,449
ImageView Glitching AsyncTask
<p>Im pulling images from the server with asyncTask and drawing them on imageViews. The problem is that Images sometimes get "shuffled" and it takes them couple of seconds to deploy proper image. And it can get laggy too. Is there any easier way to do that? Am I doing something wrong?</p> <pre><code> class JSONAsyncTa...
Im pulling images from the server with asyncTask and drawing them on imageViews. The problem is that Images sometimes get "shuffled" and it takes them couple of seconds to deploy proper image. And it can get laggy too. Is there any easier way to do that? Am I doing something wrong? [CODE] and this is the MainActivity: ...
android|android-asynctask|imageview|android-arrayadapter
0
2016-04-26T11:20:59.833Z
2,016
4
11
1
33
0
356
29
4
3
true
true
false
false
false
false
zero
36,863,510
SQLite data in a ListView inside a Fragment
<p>I have created half of my app and I am stuck where I need to retrieve the data from the SQLite database and show them in a ListView inside a Tab Fragment.<br> I have two tabs and one of them will show the list of data from SQLite database. </p> <p>Some people on stackoverflow suggested to use a RecyclerView instead...
I have created half of my app and I am stuck where I need to retrieve the data from the SQLite database and show them in a ListView inside a Tab Fragment. I have two tabs and one of them will show the list of data from SQLite database. Some people on stackoverflow suggested to use a RecyclerView instead of a ListView b...
android|sqlite|listview|android-fragments|android-sqlite
0
2016-04-26T11:23:16.237Z
2,016
4
11
1
5,625
1
1,079
43
5
5
true
false
true
false
false
false
zero
36,863,527
I can't implement a custom getter on realm result because `this(realmObject).propertyName` is null always yet data is there
<p>When I fetch records from my web API it adds reference of the repeated and nested object instances like this.</p> <pre><code>[{ Id:1, "Customer_Id": 39, "Customer": { "$id": "2", "$type": "Entities.Customer, Wit.Trade", "CourtesyTitle": "Mr", "FirstName": "Ahmad" } }, { Id:2, "Customer_Id": 3...
When I fetch records from my web API it adds reference of the repeated and nested object instances like this. [CODE] Now when I fetch the records as RealmResults I want to check these references and replace them with non null/ non $ref real data objects from their corresponding table. Hence I implemented this custom ge...
java|android|realm
0
2016-04-26T11:23:58.860Z
2,016
4
11
1
123
0
767
123
3
2
true
true
false
false
false
false
zero
36,863,589
response = 0,through Retrofit
<p>Im trying to make POST Retrofit response,but I must to have data from this response.In stack tace I saw that request is OK and code==200,but response =0.But this request must give me data,I checked this from Postman service.How can I get data from my request?</p> <p><strong>stack trace with fragment and result from...
Im trying to make POST Retrofit response,but I must to have data from this response.In stack tace I saw that request is OK and code==200,but response =0.But this request must give me data,I checked this from Postman service.How can I get data from my request? stack trace with fragment and result from Postman: [CODE] Re...
android|retrofit|retrofit2
1
2016-04-26T11:26:45.460Z
2,016
4
11
1
582
2
483
29
3
7
true
false
false
false
false
false
low
36,863,615
Android.App.Activity is a type but a variable was expected
<pre><code>string[] arrays = new string[] { "A", "B", "C", "D", "E", "F" }; ListView lstItems; protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from t...
[CODE] In CustomerAdapter I have a string[] Data parameter. After in OnCreate I got this problem at lstItems.Adapter = new CustomAdapter(Activity, arrays) . I don't understand. I was trying to create a header listview on xamarin android. I saw several samples but that code has much errors.
c#|xamarin|xamarin.android
0
2016-04-26T11:28:03.190Z
2,016
4
11
1
113
2
290
58
3
1
true
false
false
false
false
false
zero
36,863,631
Expected BEGIN_OBJECT but was BEGIN_ARRAY : Retrofit2 Android
<p>I am new in JSON parsing and trying to parse the following JSON:</p> <pre><code>[ { "id" : 1, "title" : { "rendered": "a link" }, "categories": [ 4,9,11 ], "links":{ "featuredmedia":[ { "href": link } ] } }, ... ] </code></pre> <p>My Interface is:</p> <pre><c...
I am new in JSON parsing and trying to parse the following JSON: [CODE] My Interface is: [CODE] My model classes are: [CODE] ... [CODE] ... [CODE] and Client code is: [CODE] I only need to get the link inside "featuredmedia" so I only included those in the models. I also got some idea about the error from here but the ...
android|json|runtime-error|retrofit2
0
2016-04-26T11:28:32.150Z
2,016
4
11
1
3,718
2
391
61
4
6
true
false
true
false
false
false
zero
36,863,699
RecyclerView crashes when fast scroll with load more android
<p>I have implemented a load more on <code>RecyclerView</code>. It works fine when you scroll normally. But when you scroll fast (like super fast) it crashes and gives following log</p> <pre><code>java.lang.NullPointerException: Attempt to read from field 'int android.support.v7.widget.RecyclerView$ItemAnimator$ItemHo...
I have implemented a load more on RecyclerView . It works fine when you scroll normally. But when you scroll fast (like super fast) it crashes and gives following log [CODE] at android.view.Choreographer.doFrame(Choreographer.java:606) Here is the is the code where i am setting up my RecyclerView [CODE] this is when th...
android|android-recyclerview
1
2016-04-26T11:31:22.813Z
2,016
4
11
1
835
0
571
60
2
4
true
true
false
false
false
false
low
36,863,763
Oracle MAF 2.3.0 Jdeveloper 12.2.1 can't deploy applications
<p>i'm developing an android app with MAF 2.3.0 in Jdeveloper 12.2.1 on a Ubuntu x64 OS and i have android SDK emulator running but everytime i want to deploy my apps i get an error :</p> <pre><code>[03:40:37 PM] ---- Deployment started. ---- [03:40:37 PM] Target platform is (Android). [03:40:37 PM] Beginning deplo...
i'm developing an android app with MAF 2.3.0 in Jdeveloper 12.2.1 on a Ubuntu x64 OS and i have android SDK emulator running but everytime i want to deploy my apps i get an error : [CODE]
java|android|oracle|jdeveloper|oracle-maf
0
2016-04-26T11:34:30.477Z
2,016
4
11
1
368
1
187
60
5
1
true
false
false
false
false
false
zero
36,863,873
sharing things too the same app open's up the app again and again and showing in the recent task 2 times
<p>I have added this in my manifest to make my app visible in the share intent chooser..</p> <pre><code> &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" /&gt; ...
I have added this in my manifest to make my app visible in the share intent chooser.. [CODE] But when i am sharing something to my chat section, my app is opening again and again and showing wot or more than two times in recent task. i do not know what i am doing wrong can any one help me out?
android|image|share
0
2016-04-26T11:39:19.090Z
2,016
4
11
1
48
0
294
104
3
1
true
true
false
false
false
false
zero
36,863,938
Unable to get on click particular item of side menu screen
<p>I have used navigation slider menu for side menu screen But unable to get on click particular item in list.I am adding my code. When i am click on the side menu'content it should be open another screen . But unable to open other screen. For a Example : If i am clicking on profile. it is not opening profile screen. ...
I have used navigation slider menu for side menu screen But unable to get on click particular item in list.I am adding my code. When i am click on the side menu'content it should be open another screen . But unable to open other screen. For a Example : If i am clicking on profile. it is not opening profile screen. & dr...
android|android-fragments|drawerlayout|navigation-drawer
0
2016-04-26T11:41:58.757Z
2,016
4
11
1
1,168
2
584
58
4
6
true
false
false
false
false
false
zero
36,864,036
change spinner promt on spinner selection
<p>I have a spinner with three options ("one", "two" "three"). When user selects "One" the spinner prompt changes to "One". When user picks "Three" a <code>DatePickerDialog</code> starts and based on user input i want to change the prompt to a custom message.<strong>At the same time</strong> I want the spinner to keep ...
I have a spinner with three options ("one", "two" "three"). When user selects "One" the spinner prompt changes to "One". When user picks "Three" a DatePickerDialog starts and based on user input i want to change the prompt to a custom message. At the same time I want the spinner to keep the values "one", "two" "three"....
android|android-spinner
-1
2016-04-26T11:46:07.010Z
2,016
4
11
1
71
2
440
41
2
3
true
false
false
false
false
true
negative
36,864,122
I have more than 100000 files, How to read those files using the Hashmap in android?
<p>I am working on android expansion files, during the process I am using the Hashmap functions to store the files and read. While reading the files, only 21900 files can be read but I actually have more than 100000 files. The remaining files can not be read from the OBB file. How to read the whole files? </p> <pre><c...
I am working on android expansion files, during the process I am using the Hashmap functions to store the files and read. While reading the files, only 21900 files can be read but I actually have more than 100000 files. The remaining files can not be read from the OBB file. How to read the whole files? [CODE]
java|android|android-studio|hashmap|inputstream
1
2016-04-26T11:49:55.007Z
2,016
4
11
1
140
0
310
84
5
1
true
true
false
false
false
false
low
36,864,303
android:video watermark show error
<p>I want to watermark video and below is my code but when I try to run then it show error like <code>Failed to validate license file, existing!</code>.</p> <pre><code> public class MainActivity extends AppCompatActivity { private String strAudioFolderPath; @Override protected void onCreate(Bundle saved...
I want to watermark video and below is my code but when I try to run then it show error like Failed to validate license file, existing! . [CODE] and error show in logcat like below. [CODE] Actually I have used ffmpeg library to watermak on video file but it is not woking as well as I have not find any proper solution s...
android|ffmpeg|watermark
0
2016-04-26T11:58:49.010Z
2,016
4
11
1
219
1
353
34
3
2
true
false
false
false
false
false
zero
36,864,347
How do I get someone's location every few seconds?
<p>I am trying to make a simple app that revolves around tracking someone's speed. I have read through Android Studio's Location guide, however it doesn't show how to get someone's speed, or get someone's location at an even interval.</p> <p>Currently, I have this snippet of code set up:</p> <pre><code>if (OldLocatio...
I am trying to make a simple app that revolves around tracking someone's speed. I have read through Android Studio's Location guide, however it doesn't show how to get someone's speed, or get someone's location at an even interval. Currently, I have this snippet of code set up: [CODE] I am currently using Thread.sleep ...
android|location
1
2016-04-26T12:01:05.487Z
2,016
4
12
1
899
1
431
50
2
1
true
false
false
false
false
false
low
36,864,388
Parse Push is not working with Parse Sever
<p>I am a newbie on parse server and have been using it with my android app. But I am having trouble with implementing push notifications. I do not know how to get logs so any guidance will be much appreciated! The installation class does not contain any "GCMSenderId" or "deviceToken".</p> <p>Here is how I set up pars...
I am a newbie on parse server and have been using it with my android app. But I am having trouble with implementing push notifications. I do not know how to get logs so any guidance will be much appreciated! The installation class does not contain any "GCMSenderId" or "deviceToken". Here is how I set up parse server to...
android|parse-platform|push-notification|parse-server
0
2016-04-26T12:02:25.200Z
2,016
4
12
1
203
1
1,185
42
4
0
false
false
false
false
false
false
zero
36,864,402
NullExaption when use Json in android
<p>I want develop android application for one website. I read website posts from json and show its in <code>RecyclerView</code> every 10 posts.<br> I write this codes, but when running application show me FC error!<br></p> <p><strong>Json Link :</strong> <a href="http://tellfa.com/tafrihgah/?json=get_posts&amp;count=1...
I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts. I write this codes, but when running application show me FC error! Json Link : Json Link MainActivity codes: [CODE] AsyncTask codes: [CODE] DataProvider codes: [CODE] LogCat error : [CODE] How...
android|json|android-asynctask
0
2016-04-26T12:02:46.757Z
2,016
4
12
1
38
0
348
37
3
4
true
true
false
false
false
false
zero
36,864,470
listView items is not match parent n linear layout
<p>I need to create LinearLayout, which has ListView. I did it with this code:</p> <pre><code>this.setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); final ListView listView = (ListView) LayoutInflater.from(getContext()).inflate(R.layout.chat_timer_rollout,...
I need to create LinearLayout, which has ListView. I did it with this code: [CODE] My chat timer rollout is: [CODE] After creating i've tried to add items in list view like this: [CODE] Chat timer item has code: [CODE] After creating this i see my linear layout on screen, but when i click item it has width wrap_content...
android|listview
0
2016-04-26T12:06:05.833Z
2,016
4
12
1
979
1
464
50
2
4
true
false
false
false
false
false
zero
36,864,542
How to get Shared preferences value from another activity?
<p>I am using shared preferences in one activity to store user_id and name. I want to take user_id from another activity. I can Get the value from First activity, but i cant get it from another activity. What changes needs to make for this?</p> <p>Define</p> <pre><code> SharedPreferences sharedPreferences = LoginActi...
I am using shared preferences in one activity to store user_id and name. I want to take user_id from another activity. I can Get the value from First activity, but i cant get it from another activity. What changes needs to make for this? Define [CODE] Call [CODE]
android|sharedpreferences
-3
2016-04-26T12:08:51.393Z
2,016
4
12
1
2,161
3
263
58
2
2
true
false
false
false
false
true
negative
36,864,571
appcompat v7 23 - Menu Item with app:showAsAction="withText|always" doesn't display title
<p>I have a menu item, with icon and text. I am using Appcompat v7 library. The menu item is not displaying text, even when showAsAction is set to withText|always or vice-versa.</p> <p>menu.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/andro...
I have a menu item, with icon and text. I am using Appcompat v7 library. The menu item is not displaying text, even when showAsAction is set to withText|always or vice-versa. menu.xml [CODE] I have tried these combinations for showAsAction. [CODE] The toolbar only shows the icon, but not the title. How can i show both ...
android|android-menu
1
2016-04-26T12:10:16.817Z
2,016
4
12
1
380
1
406
89
2
2
true
false
false
false
false
false
low
36,864,746
Android Device Admin
<p>I want to use my app in Kiosk mode according to <a href="http://www.sureshjoshi.com/mobile/android-kiosk-mode-without-root/" rel="nofollow">this</a></p> <p>So I added a receiver into my manifest, created the class and installed the app on my tablet. But after 2 factory resets and no account on this tablet I still g...
I want to use my app in Kiosk mode according to this So I added a receiver into my manifest, created the class and installed the app on my tablet. But after 2 factory resets and no account on this tablet I still get this error message when executing the device admin command: [CODE] AndroidManifest.xml [CODE]
android|device-admin
1
2016-04-26T12:18:49.807Z
2,016
4
12
1
221
1
309
20
2
2
true
false
false
false
false
false
low
36,864,811
Understanding Android webview javascript interface
<p>I have created an android <code>WebView</code>, and injected <code>javascript</code> interface using <code>addJavascriptInterface(mObject, "jsinterface")</code>. It works fine until I create an object with same name (jsinterface) in JavaScript using the <code>new</code> operator.</p> <h1>My Java Code:</h1> <pre><c...
I have created an android WebView , and injected javascript interface using addJavascriptInterface(mObject, "jsinterface") . It works fine until I create an object with same name (jsinterface) in JavaScript using the new operator. My Java Code: [CODE] testClass.java [CODE] My Java Script Code test.js [CODE] Problem: Is...
javascript|java|android|webview
7
2016-04-26T12:21:48.320Z
2,016
4
12
1
28,536
2
577
50
4
3
true
false
true
true
false
false
medium
36,864,814
How do I activate a button if the date from is within a given range and if radio button is "yes"?
<p>I am making an Android app where I use <code>DatePickerDialog</code> and <code>TimePickerDialog</code> to get a specific time from the user and a <code>RadioButton</code> to know if a requirement is met. I want to activate a button if the time is larger than 3 days, less than 3 weeks and the <code>RadioButton</code>...
I am making an Android app where I use DatePickerDialog and TimePickerDialog to get a specific time from the user and a RadioButton to know if a requirement is met. I want to activate a button if the time is larger than 3 days, less than 3 weeks and the RadioButton "yes" is checked. I use DialogFragment s to get the da...
android|radio-button|android-datepicker|android-timepicker
1
2016-04-26T12:21:58.280Z
2,016
4
12
1
219
2
694
97
4
2
true
false
false
false
false
false
low
36,864,824
How to create header xamarin listview?
<pre><code>lst.Adapter=new CustomAdapter(Android.App.Application.Context,items); public class CustomAdapter : BaseAdapter { private const int TYPE_ITEM = 0; private const int TYPE_SEPARATOR = 1; string[] mnData; //private TreeSet sectionHeader; LayoutInflater mInflater; ...
[CODE] I want to create a listview as following picture. How to do that? Here's how I do it, the keys are getItemViewType and getViewTypeCount in the Adapter class. getViewTypeCount returns how many types of items we have in the list, in this case we have a header item and an event item, so two. getItemViewType should ...
xamarin|xamarin.android
0
2016-04-26T12:22:32.733Z
2,016
4
12
1
404
0
471
38
2
1
true
true
false
false
false
false
zero
36,864,898
How to set the library in a fragment
<p>I am trying to show about page library in a fragment(Navigation drawer).I am success fully able to set it for the main activity now I am trying to set it in the Navigation Drawer here is my fragment code</p> <pre><code> @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, ...
I am trying to show about page library in a fragment(Navigation drawer).I am success fully able to set it for the main activity now I am trying to set it in the Navigation Drawer here is my fragment code [CODE] the support library that I have used How to set the about page library in android studio
android|android-fragments|android-studio|navigation-drawer
0
2016-04-26T12:24:54.603Z
2,016
4
12
1
88
1
299
36
4
1
true
false
false
false
false
false
zero
36,865,001
Change language of app
<p>I'm trying to change the language of my app. </p> <p>I implement this code : </p> <pre><code>public static void setLocale(Resources res, String lang) { Configuration conf = new Configuration(res.getConfiguration()); switch (lang) { case "French" : conf.locale = new Locale("fr"); ...
I'm trying to change the language of my app. I implement this code : [CODE] And after that I refresh my activity using this code : [CODE] This code works, but when I close the app (remove from background) and reopen it, the language return to the default language of my device. Is there any way to keep the selected lang...
android|locale
1
2016-04-26T12:30:03.390Z
2,016
4
12
1
529
2
347
22
2
2
true
false
false
false
false
false
low
36,865,033
Conditionally consume MotionEvents
<pre><code>public class CalendarEventView extends LinearLayout { public CalendarEventView(Context context) { super(context); } public CalendarEventView(Context context, AttributeSet attrs) { super(context, attrs); } public CalendarEventView(Context context, AttributeSet attrs, int defStyleAttr) { super(co...
[CODE] I have 2 viewpagers which I synchronise. One contains CalendarEventViews. They were staying synchronised until I added onClick and onLongClick to my CalendarEventView (I set these listeners in the viewpager). My problem is that I can only get either clicks working or scroll working, but not both. In other words ...
android|android-custom-view|motionevent|consuming
0
2016-04-26T12:31:38.957Z
2,016
4
12
1
165
3
552
34
4
1
true
false
false
false
false
false
zero
36,865,083
How to custom ActionBar android with Xamarin Forms?
<p>I work with Xamarin Forms. My Android activity extends FormAppCompatActivity. I use a MasterDetailPage and this.Detail is init with new NavigationPage(new PagePerso()). I have a xamarin.forms.view and its renderer to Android. I would like put this inside the NavigationBar (ActionBar to Android). I tried to use a Nav...
I work with Xamarin Forms. My Android activity extends FormAppCompatActivity. I use a MasterDetailPage and this.Detail is init with new NavigationPage(new PagePerso()). I have a xamarin.forms.view and its renderer to Android. I would like put this inside the NavigationBar (ActionBar to Android). I tried to use a Naviga...
android|xamarin.forms|android-appcompat|navigationbar|appcompatactivity
2
2016-04-26T12:33:57.360Z
2,016
4
12
1
1,105
1
1,247
51
5
0
false
false
false
false
false
false
low
36,865,161
Android Widevine DASH implementation + ExoPlayer
<p>I want to play Widevine Modular - DASH video in my app and I want to use <code>VideoView</code> or <code>ExoPlayer</code> for it. </p> <p>Is there any sample how I can setup it? Or can you provide me any sample code how to acquire the licence? I have URL of the video and also the Widevine server URL.</p> <p>Before...
I want to play Widevine Modular - DASH video in my app and I want to use VideoView or ExoPlayer for it. Is there any sample how I can setup it? Or can you provide me any sample code how to acquire the licence? I have URL of the video and also the Widevine server URL. Before we were using Widevine classic and the reques...
android|drm|exoplayer|widevine|android-drm
2
2016-04-26T12:37:00.997Z
2,016
4
12
1
5,613
2
433
48
5
2
true
false
true
false
false
false
low
36,865,166
How to uploadArchives to different folders depending on the maven artifact version?
<p>I'm having some issues trying to figure out how can I upload to different folders regarding of the maven artifact version and then have the generated flavour jars/wars/aars inside that folder.</p> <p>For example, I got an artifact with <code>version 1.0.0</code> and <code>groupId com.example</code>. the issues is t...
I'm having some issues trying to figure out how can I upload to different folders regarding of the maven artifact version and then have the generated flavour jars/wars/aars inside that folder. For example, I got an artifact with version 1.0.0 and groupId com.example . the issues is that when uploading this to Nexus the...
maven|gradle|nexus|android-productflavors
1
2016-04-26T12:37:09.617Z
2,016
4
12
1
699
1
620
83
4
1
true
false
false
false
false
false
low
36,865,169
Create a custom GSON Deserialization to map JSON response to object in Android
<p>I'm using GSON library to map JSON response from API and map to an object.</p> <p>Here is my URL link: </p> <pre><code>https://hacker-news.firebaseio.com/v0/item/8863.json?print=pretty </code></pre> <p>And my model class <code>TopStory</code></p> <pre><code>public class TopStory implements Comparable&lt;TopStory...
I'm using GSON library to map JSON response from API and map to an object. Here is my URL link: [CODE] And my model class TopStory [CODE] and i'm create a function to create an object from JSON response: [CODE] I'm having problem with the field kids. from Response it's an JSONARRAY . how can we deserialize and map to a...
android|json|gson
0
2016-04-26T12:37:13.753Z
2,016
4
12
1
245
3
415
78
3
3
true
false
false
false
false
false
zero
36,865,209
Is possible to get a approximate lat and long from a slightly wrong address using geocoding?
<p>I am using a geocoding API in my Android application. I have to find the <code>latitude</code> and <code>longitude</code> from the address but for some of the address I am not getting any <code>latitude</code> and <code>longitude</code>. Is there any possibility to get the approximate <code>latitude</code> and <code...
I am using a geocoding API in my Android application. I have to find the latitude and longitude from the address but for some of the address I am not getting any latitude and longitude . Is there any possibility to get the approximate latitude and longitude from a slightly wrong address? For better understanding have a...
android|geocoding
2
2016-04-26T12:39:02.437Z
2,016
4
12
1
322
2
667
92
2
1
true
false
false
false
false
false
low
36,865,242
How do I use a ListView to show updated data such as voltage?
<p>So I want to display my voltage input I get with my OBD2 adapter. Right now I just have the voltage display as a <code>textview</code> in a handler, but I would like to have it so that it shows in a <code>listview</code> because it's more convenient when adding more and more data to look over.</p> <p>Listview Examp...
So I want to display my voltage input I get with my OBD2 adapter. Right now I just have the voltage display as a textview in a handler, but I would like to have it so that it shows in a listview because it's more convenient when adding more and more data to look over. Listview Example: Voltage: 0,0 V RPM: 0 BTHandler.j...
android|listview
1
2016-04-26T12:40:04.407Z
2,016
4
12
1
66
1
355
61
2
2
true
false
false
false
false
false
low
36,865,331
How to make expandable listview children scrollable?
<p>I've an expandable listview. I want to put different data in child views and make them scrollable. Currently my expandable listview is scrolling rather than child scroll. How can I restrict that and meet the requirement?</p> <pre><code>gridcustom layout: ?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearL...
I've an expandable listview. I want to put different data in child views and make them scrollable. Currently my expandable listview is scrolling rather than child scroll. How can I restrict that and meet the requirement? [CODE]
xamarin.android|expandablelistview|expandablelistadapter|expandablerecyclerview
0
2016-04-26T12:43:43.723Z
2,016
4
12
1
521
0
227
52
4
1
true
true
false
false
false
false
zero
36,865,346
Service Intent must be explicit: Intent
<p>I am trying to make a RemoteService ,I have followed this guide : <a href="http://www.techotopia.com/index.php/Android_Remote_Bound_Services_%E2%80%93_A_Worked_Example" rel="nofollow">http://www.techotopia.com/index.php/Android_Remote_Bound_Services_%E2%80%93_A_Worked_Example</a></p> <p>this is my service declarati...
I am trying to make a RemoteService ,I have followed this guide : http://www.techotopia.com/index.php/Android_Remote_Bound_Services_%E2%80%93_A_Worked_Example this is my service declaration in the Manifest: [CODE] and this is how i bind to the service from my client app : [CODE] i get this Exception : [CODE]
android
1
2016-04-26T12:44:18.070Z
2,016
4
12
1
7,312
3
309
39
1
3
true
false
true
false
false
false
low
36,865,359
SwipeRefreshLayout does not allow me to scroll up
<p>I have an app with a <code>SwipeRefreshLayout</code> which has a <code>ListView</code> inside it. When the <code>ListView</code> is populated, I can easily scroll down to read the older items on the list, but when I try to scroll up this action is mistaken for a Pull2Refresh action even though I am trying to scroll ...
I have an app with a SwipeRefreshLayout which has a ListView inside it. When the ListView is populated, I can easily scroll down to read the older items on the list, but when I try to scroll up this action is mistaken for a Pull2Refresh action even though I am trying to scroll up. It does not matter where I position my...
android|listview|swiperefreshlayout
3
2016-04-26T12:45:01.870Z
2,016
4
12
1
2,437
2
518
49
3
1
true
false
false
false
false
false
low
36,865,433
send "POST" list of int
<p>I have server that takes list of int or one int. When I send int, it works good, but when Im trying send <code>List&lt;Integer&gt;</code> or <code>int[]</code>, response is error(<code>code 400</code>) always. How I can send list of int? Here is my code:</p> <pre><code> url = new URL(adress); urlConnec...
I have server that takes list of int or one int. When I send int, it works good, but when Im trying send List<Integer> or int[] , response is error( code 400 ) always. How I can send list of int? Here is my code: [CODE] I tried list like a: [CODE] and [CODE] but it always results in an error with code:400 .
java|android|json
0
2016-04-26T12:47:40.873Z
2,016
4
12
1
3,779
2
308
23
3
3
true
false
true
false
false
false
zero
36,865,436
I want to display complete text in TextView but some text of textView shows behind the Button
<p><strong>In this time Button hide the text I want to show text and button separately. And also Marquee not work.i want text view proper text but in this time button hides the text of TextView</strong> May be its issue in Layout help me what I can do?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Re...
In this time Button hide the text I want to show text and button separately. And also Marquee not work.i want text view proper text but in this time button hides the text of TextView May be its issue in Layout help me what I can do? [CODE]
android|android-layout|listview
-2
2016-04-26T12:47:44.757Z
2,016
4
12
1
70
2
239
93
3
1
true
false
false
false
false
true
negative
36,865,502
How do i make new Fragment onTabSelected to refresh my content?
<p>i´m trying to refresh my fragment so i can get new information to the user. basicly i´m doing an app to make tournaments. i have 3 tabs on my app the first tab allows users to add people the second one allows user to create an tournament and the last one shows the scores to the user.</p> <p><a href="https://i.stack...
i´m trying to refresh my fragment so i can get new information to the user. basicly i´m doing an app to make tournaments. i have 3 tabs on my app the first tab allows users to add people the second one allows user to create an tournament and the last one shows the scores to the user. But i got one problem, when i delet...
android|tabs|fragment|refresh
0
2016-04-26T12:50:27.647Z
2,016
4
12
1
2,733
1
690
63
4
2
true
false
true
false
false
false
zero
36,865,550
change spinner text color in java code/android?
<p>I have the following spinner xml code: </p> <pre><code> &lt;Spinner android:id="@+id/spinnerMain" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_weight="0.40" android:textColor="@color/black" android:background="@d...
I have the following spinner xml code: [CODE] and the following java code: public void setMainCategories(String[] mainCategories) { [CODE] and I'm not sure how to change the java code for the text to change color. Do you have any suggestions? Would greatly appreciate it.
java|android|text|colors|spinner
0
2016-04-26T12:52:52.120Z
2,016
4
12
1
491
2
271
47
5
2
true
false
false
false
false
false
zero
36,865,610
How to preserve aspect ratio of VectorDrawable?
<p>I have been trying to create a splash screen for an Android app as described at <a href="https://www.bignerdranch.com/blog/splash-screens-the-right-way/" rel="noreferrer" title="Splash Screens the Right Way | Big Nerd Ranch">Splash Screens the Right Way | Big Nerd Ranch</a> with a style </p> <pre><code>&lt;style n...
I have been trying to create a splash screen for an Android app as described at Splash Screens the Right Way | Big Nerd Ranch with a style [CODE] The background_splash looks like [CODE] And sparrow.xml looks like [CODE] However, the issue that I am seeing is that aspect ratio of 1:1 as defined by width and height prope...
android|android-vectordrawable
15
2016-04-26T12:55:53.997Z
2,016
4
12
1
960
0
586
47
2
3
true
true
false
false
true
false
medium
36,865,629
Crop intent not working for images taken from camera
<p>The problem i am facing is i have 2 options take picture from camera or gallery.....if the user chooses the camera then the image is stored on the sdcard and then showed to user for cropping....but problem is when i try to crop that image it shows cannot load the image..... P.S if the same image is selected from gal...
The problem i am facing is i have 2 options take picture from camera or gallery.....if the user chooses the camera then the image is stored on the sdcard and then showed to user for cropping....but problem is when i try to crop that image it shows cannot load the image..... P.S if the same image is selected from galler...
android|image
0
2016-04-26T12:56:56.180Z
2,016
4
12
1
1,051
0
479
52
2
1
true
true
false
false
false
false
zero
36,865,673
Gradle buildSrc dependency in secondary module
<p>I have an Android Library project that needs an autogenerated class. This class is generated during build time with a Groovy script placed in the buildSrc directory of the Library project. This is working fine by itself.</p> <p>Then I have an app project that is using that library, so I open Android Studio with two...
I have an Android Library project that needs an autogenerated class. This class is generated during build time with a Groovy script placed in the buildSrc directory of the Library project. This is working fine by itself. Then I have an app project that is using that library, so I open Android Studio with two modules: t...
android|android-studio|gradle|groovy
4
2016-04-26T12:58:21.430Z
2,016
4
12
1
1,029
1
718
46
4
1
true
false
false
false
false
false
low
36,865,685
Use ProGuard to Obfuscate private methods in Library
<p>I have been through a lot of questions but none of them are serving my purpose.</p> <p>Some methods, obfuscate the private field names and nothing else.</p> <p>I have a class in which there are multiple methods, few of them are very crucial and I don't want other's to reverse engineer them and get the result. So I...
I have been through a lot of questions but none of them are serving my purpose. Some methods, obfuscate the private field names and nothing else. I have a class in which there are multiple methods, few of them are very crucial and I don't want other's to reverse engineer them and get the result. So I was kinda looking ...
android|obfuscation
0
2016-04-26T12:59:13.297Z
2,016
4
12
1
618
0
622
52
2
2
true
true
false
false
false
false
zero
36,865,828
Gradle can not resolve com.google.android.gms.analytics.Tracker
<p>I'm going to Implement google Analytic V4 from this <a href="http://www.androidhive.info/2015/08/android-integrating-google-analytics-v4/" rel="nofollow">link</a>.</p> <p>I updated project dependency like this:</p> <pre><code>compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.google.android.gms:play-se...
I'm going to Implement google Analytic V4 from this link . I updated project dependency like this: [CODE] In my AnalyticsTrackers class unfortunately Tracker won't resolve. I also tried to implement dependency from google link like this: Add the dependency to your project-level build.gradle: [CODE] Now, you need to add...
android|google-analytics|dependencies
1
2016-04-26T13:04:53.913Z
2,016
4
13
1
1,384
1
525
63
3
2
true
false
false
false
false
false
low
36,865,837
Android SQLite update gets rolled back on app relaunch
<p>I'm trying to perform an update on a table which contains only 1 row. The update gets performed successfully but as soon as I relaunch the app, the update gets rolled back!<br> Here is my code: </p> <pre><code>public void updateToken(String token) { System.out.println("DatabaseHandler.updateToken"); System...
I'm trying to perform an update on a table which contains only 1 row. The update gets performed successfully but as soon as I relaunch the app, the update gets rolled back! Here is my code: [CODE] The corresponding output shows the previous token in first Log.i() and new token in second Log.i() on every launch of app.
android|sqlite
0
2016-04-26T13:05:10.837Z
2,016
4
13
1
118
1
319
54
2
1
true
false
false
false
false
false
zero
36,865,913
Multiple buttons to navigate pages (activities) not working
<p>I am trying to create an app where I have several activities. Activity 1 in the main page and has a button that will open activity2. Activity 2 has 2 buttons. 1 that goes back at act1 and the other opens activity 3.</p> <p>Activity 1 works fine, it opens activity2. The button on activity 2 that goes back to act 1 w...
I am trying to create an app where I have several activities. Activity 1 in the main page and has a button that will open activity2. Activity 2 has 2 buttons. 1 that goes back at act1 and the other opens activity 3. Activity 1 works fine, it opens activity2. The button on activity 2 that goes back to act 1 works fine b...
android
1
2016-04-26T13:08:44.523Z
2,016
4
13
1
48
3
570
59
1
2
true
false
false
false
false
false
low
36,866,324
Audio record with Gracenote SDK android
<p>I'm currently developing an android app using Gracenote SDK. I want to identify music by listening a sample, so I followed everything on page 99 of the developers guide ("identifying Streaming music). But I have a problem when I want to initialize the microphone. I properly set the permissions, give permissions to t...
I'm currently developing an android app using Gracenote SDK. I want to identify music by listening a sample, so I followed everything on page 99 of the developers guide ("identifying Streaming music). But I have a problem when I want to initialize the microphone. I properly set the permissions, give permissions to the ...
android|audio|record|gracenote
0
2016-04-26T13:25:53.933Z
2,016
4
13
1
353
1
495
39
4
3
true
false
false
false
false
false
zero
36,866,442
show TextView and Button on the ImageView
<p><strong>Want to show the TextView and Button on the ImageView I try but ImageView hides the Button and TextView Help me what I can do I try it in different Layouts I update the new code but same issue face</strong></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android=...
Want to show the TextView and Button on the ImageView I try but ImageView hides the Button and TextView Help me what I can do I try it in different Layouts I update the new code but same issue face [CODE]
android|android-layout|android-fragments
0
2016-04-26T13:29:52.190Z
2,016
4
13
1
450
5
204
41
3
1
true
false
false
false
false
false
zero
36,866,488
Android System OnDestroy my Activity in background
<p>I have a problem when my App is a long time in the background. After I click the App my activity opens empty /blank and the app crashes. How do I start my activity if the Android system keeps destroying my Activity ?</p> <p>The onCreate() of my Activity</p> <pre><code>public new TableViewModel ViewModel { ...
I have a problem when my App is a long time in the background. After I click the App my activity opens empty /blank and the app crashes. How do I start my activity if the Android system keeps destroying my Activity ? The onCreate() of my Activity [CODE]
java|android|android-activity|xamarin|xamarin.android
0
2016-04-26T13:31:34.650Z
2,016
4
13
1
397
1
253
50
5
1
true
false
false
false
false
false
zero
36,866,505
Getting null pointer exception when deleting items from a database
<p>I have a problem: I need to delete data from a database, but whenever I run the code, it always throws a NullPointerException. </p> <p>Here is the code: </p> <pre><code>public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.del: try { ...
I have a problem: I need to delete data from a database, but whenever I run the code, it always throws a NullPointerException. Here is the code: [CODE] And for the database [CODE] And the stacktrace: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean za.co.brdsa.kyle.planitto_doapp.CategoryList.d...
android|database
0
2016-04-26T13:32:02.153Z
2,016
4
13
1
27
0
460
66
2
2
true
true
false
false
false
false
zero
36,866,616
Pause and Seek in android stagefright Media Player
<p>I have RK3288 Hardware Board and I am trying to use software decoder on it.. I have already integrated my software decoder with the android stage-fright player.. It is perfectly integrated and video is also running completely..</p> <p>But now the problem is when I pause or seek video ,pop up window says </p> <bloc...
I have RK3288 Hardware Board and I am trying to use software decoder on it.. I have already integrated my software decoder with the android stage-fright player.. It is perfectly integrated and video is also running completely.. But now the problem is when I pause or seek video ,pop up window says "Can't Play this video...
android|c++|stagefright
0
2016-04-26T13:37:10.387Z
2,016
4
13
1
213
0
596
50
3
1
true
true
false
false
false
false
zero
36,866,652
How does the communication between app, proxy and google work?
<p>I'm currently developing an android application with two versions prod and dev. Everything is working fine, however I don't understand what is actually happening in the background. I have created a diagram to illustrate my setup.</p> <p>My communication setup (app->server->google):</p> <p><img src="https://i.stack...
I'm currently developing an android application with two versions prod and dev. Everything is working fine, however I don't understand what is actually happening in the background. I have created a diagram to illustrate my setup. My communication setup (app->server->google): Both versions have the same GCM sender (crea...
android|google-api|server|google-cloud-messaging
1
2016-04-26T13:38:59.613Z
2,016
4
13
1
67
0
1,086
62
4
0
false
true
false
false
false
false
low
36,866,703
Android BluetoothSocket connection returns zero
<p>Our device sends data via Bluetooth , In android app we need to read this data.</p> <p>I am able to establish Bluetooth connection, and next I am calling a Thread to establish BluetoothSocket connection using BluetoothDevice. Here when the bytes are read it is returning as 0 (zero) Also The while loop is running fo...
Our device sends data via Bluetooth , In android app we need to read this data. I am able to establish Bluetooth connection, and next I am calling a Thread to establish BluetoothSocket connection using BluetoothDevice. Here when the bytes are read it is returning as 0 (zero) Also The while loop is running for only once...
android|android-bluetooth|bluetooth-socket
6
2016-04-26T13:41:25.410Z
2,016
4
13
1
1,126
1
550
47
3
1
true
false
false
false
false
false
medium
36,866,781
Android Listview crash
<p>I'm creating a simple app that displays the array elements inside a list view. But when I run the project, my application crashes on this line: </p> <pre><code>setContentView(R.layout.activity_main); </code></pre> <p>here is the MainActivity.java code:</p> <pre><code>package com.example.asus.listview; import an...
I'm creating a simple app that displays the array elements inside a list view. But when I run the project, my application crashes on this line: [CODE] here is the MainActivity.java code: [CODE] here is the activity_main.xml: [CODE] and here I include the error log: UPDATE: I added this line "vectorDrawables.useSupportL...
java|android
0
2016-04-26T13:44:23.177Z
2,016
4
13
1
75
2
429
22
2
4
true
false
false
false
false
false
zero
36,867,253
Gradle Android Unit Tests with module dependency leads to NoClassDefFoundError
<p>I am struggling with a JUnit run configuration.</p> <ul> <li>Module A <ul> <li>main</li> </ul></li> <li>Module B <ul> <li>main</li> <li>tests</li> </ul></li> </ul> <p>Module B uses Module A </p> <p>I am trying to run unit tests in <strong>Module B</strong>. I have a dependency defined in build.gradle of <strong...
I am struggling with a JUnit run configuration. Module A main Module B main tests Module B uses Module A I am trying to run unit tests in Module B . I have a dependency defined in build.gradle of Module B [CODE] It works fine in Android Studio, but when I want to get it running with gradle command line: [CODE] It leads...
gradle|android-gradle-plugin|android-testing
6
2016-04-26T14:02:39.360Z
2,016
4
14
1
564
1
719
78
3
3
true
false
false
false
false
false
medium
36,867,258
Is there a way to know when the device's fingerprint sensor is touched in API 23?
<p>I think the title is pretty self-explanatory: I want to know when the fingerprint sensor on my device is being activated (usually this mean the user is now tapping his/her finger on the sensor).</p> <p>I've tried looking at the list of system-wide broadcast on API 23 (in <code>android/sdk/platforms/android-23/data/...
I think the title is pretty self-explanatory: I want to know when the fingerprint sensor on my device is being activated (usually this mean the user is now tapping his/her finger on the sensor). I've tried looking at the list of system-wide broadcast on API 23 (in android/sdk/platforms/android-23/data/broadcast_actions...
android|android-fingerprint-api
1
2016-04-26T14:02:49.123Z
2,016
4
14
1
661
0
901
81
2
1
true
true
false
false
false
false
low
36,867,298
Using android vector Drawables on pre Lollipop crash
<p>I'm using vector drawables in android <strong>prior to Lollipop</strong> and these are of some of my libraries and tool versions:</p> <ul> <li>Android Studio : 2.0 </li> <li>Android Gradle Plugin : 2.0.0 </li> <li>Build Tools : 23.0.2 </li> <li>Android Support Library : 23.3.0</li> </ul> <p>I added this property i...
I'm using vector drawables in android prior to Lollipop and these are of some of my libraries and tool versions: Android Studio : 2.0 Android Gradle Plugin : 2.0.0 Build Tools : 23.0.2 Android Support Library : 23.3.0 I added this property in my app level Build.Gradle [CODE] It is also worth mentioning that I use an ex...
android|vector|android-support-library|android-drawable|android-compatibility
96
2016-04-26T14:04:31.287Z
2,016
4
14
1
62,827
17
1,157
52
5
4
true
false
true
true
true
false
high
36,867,320
How to access on lockscreen keypad when home button is locked
<p>I have a lockscreen with edittext for a password. I have disabled my home button of phone unless user enters the correct password. But as I have locked home button, I am unable to access qwerty keyboard to let user enter the password. </p> <p>Can anyone please help me to access that keyboard, even if the home butto...
I have a lockscreen with edittext for a password. I have disabled my home button of phone unless user enters the correct password. But as I have locked home button, I am unable to access qwerty keyboard to let user enter the password. Can anyone please help me to access that keyboard, even if the home button is locked?...
android
0
2016-04-26T14:05:34.573Z
2,016
4
14
1
76
0
383
61
1
1
true
true
false
false
false
false
zero
36,867,510
YouTube Android Player API doesn't work on Amazon Fire TV
<p>I need to implement playing Youtube Videos in Amazon Fine TV. I desided to use <a href="https://developers.google.com/youtube/android/player/" rel="nofollow">https://developers.google.com/youtube/android/player/</a>. My activity is:</p> <pre><code>package com.ticketmaster.amazon.activity; import android.content.In...
I need to implement playing Youtube Videos in Amazon Fine TV. I desided to use https://developers.google.com/youtube/android/player/ . My activity is: [CODE] activity_youtube.xml [CODE] When I run the dialog epeares and clicking button "GET YOUTUBE BUTTON" doen't get any result. The value YouTubeInitializationResult er...
android|youtube|amazon|amazon-fire-tv
0
2016-04-26T14:12:37.560Z
2,016
4
14
1
784
1
495
57
4
2
true
false
false
false
false
false
zero
36,867,559
Fitting portrait png/jpg in viewport
<p>Background: </p> <ul> <li><p>I am using the WebView from Android's SDK to display images from the web.</p></li> <li><p>The WebView is in landscape setting (width longer than the height)</p></li> <li><p>I managed to wrap the image reference with some light HTML(5) code w/ Viewport as the META</p></li> </ul> <p>Pro...
Background: I am using the WebView from Android's SDK to display images from the web. The WebView is in landscape setting (width longer than the height) I managed to wrap the image reference with some light HTML(5) code w/ Viewport as the META Problem: The portrait images are being displayed in landscape...very weird W...
android|html|webview|orientation|viewport
0
2016-04-26T14:14:29.637Z
2,016
4
14
1
42
1
831
36
5
0
false
false
false
false
false
false
zero
36,867,560
TextView hidden by previous View in RelativeLayout
<p>My issue is simple I have a basic layout with two views with two custom drawables as background, here is the code :</p> <pre><code>&lt;RelativeLayout android:id="@+id/relaunch_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" an...
My issue is simple I have a basic layout with two views with two custom drawables as background, here is the code : [CODE] And the shape for my Views : Button shape : [CODE] TextView shape : [CODE] I can't figure out why, my TextView is not displayed above my Button, here is the result I get : The result I want : Can y...
android|view
1
2016-04-26T14:14:29.793Z
2,016
4
14
1
788
1
332
50
2
3
true
false
false
false
false
false
low
36,867,687
Change WiFi-Direct IP range? Force IPv6 in Android WiFi-Direct?
<p>I have two Android KitKat phones, both are running WiFi-Direct groups as Group Owners, let's call them GO1 and GO2</p> <p>I managed to connect GO1 as a legacy client to GO2 without breaking any of the (previously set) wifi-direct groups.</p> <p>The problem is that, as you might know, the GO IP address is hardcoded...
I have two Android KitKat phones, both are running WiFi-Direct groups as Group Owners, let's call them GO1 and GO2 I managed to connect GO1 as a legacy client to GO2 without breaking any of the (previously set) wifi-direct groups. The problem is that, as you might know, the GO IP address is hardcoded in Android source,...
android|ip|ipv6|wifi-direct|wifip2p
4
2016-04-26T14:19:00.243Z
2,016
4
14
1
1,785
2
1,252
63
5
0
false
false
false
false
false
false
low
36,867,821
How to get a json from api using sync or wait for async task in android?
<p>I've created a class to download raw data from url(api): <a href="https://github.com/adleywd/MySeriesProject/blob/dev/app/src/main/java/br/com/adley/myseriesproject/library/GetRawData.java" rel="nofollow">GetRawData - GitHub</a></p> <p>I extend the class: <a href="https://github.com/adleywd/MySeriesProject/blob/dev...
I've created a class to download raw data from url(api): GetRawData - GitHub I extend the class: GetTVShowDetailsJsonData - GitHub So, my problem is, I call GetTVShowDetailsJsonData.java on my activity [CODE] } But inside this call, I want to call another download another JSON from other url, using GetSeasonJsonData.ja...
java|android|json
0
2016-04-26T14:25:22.133Z
2,016
4
14
1
133
0
679
72
3
2
true
true
false
false
false
false
zero
36,867,923
How to change Toolbar home icon(back arrow) color in new material theme?
<p>I tried everything one by one present on links like </p> <p><a href="https://stackoverflow.com/questions/26788464/how-to-change-color-of-the-back-arrow-in-the-new-material-theme">How to change color of the back arrow in the new material theme?</a></p> <p><a href="https://stackoverflow.com/questions/28620883/how-to...
I tried everything one by one present on links like How to change color of the back arrow in the new material theme? How to change Toolbar home icon color Change toolbar back arrow color How to change change text and arrow color on Toolbar? Android: unable to change color of back arrow navigation icon etc, But nothing ...
android|material-design|toolbar|android-appcompat|android-tablayout
1
2016-04-26T14:29:27.257Z
2,016
4
14
1
9,961
4
506
72
5
3
true
false
true
false
false
false
low
36,868,035
alert dialog for internet connection
<p>I have created my app with some internet activities which load images in the list from service. I want to show an alert dialog with ok button when the internet or wifi connection is not available for the device.</p> <p>Following is my code, but when I run my app with WiFi disabled it shows the message <code>"unfort...
I have created my app with some internet activities which load images in the list from service. I want to show an alert dialog with ok button when the internet or wifi connection is not available for the device. Following is my code, but when I run my app with WiFi disabled it shows the message "unfortunately app has s...
android|android-alertdialog
0
2016-04-26T14:33:17.017Z
2,016
4
14
1
55
0
354
36
2
1
true
true
false
false
false
false
zero
36,868,054
Android - Speech Recognition Limiting Listening Time
<p>I am using Google API for speech recognition, but want to limit listening time. For example two seconds. After two seconds even though user continue to speaking recognizer should stop listening. I tried some EXTRAs like</p> <p><code>EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS EXTRA_SPEECH_INPUT_MINIMUM_LENG...
I am using Google API for speech recognition, but want to limit listening time. For example two seconds. After two seconds even though user continue to speaking recognizer should stop listening. I tried some EXTRAs like EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS EXTRA_SPE...
android|speech-recognition|recognizer-intent
8
2016-04-26T14:34:15.093Z
2,016
4
14
1
9,578
2
468
52
3
1
true
false
true
false
false
false
medium
36,868,065
Android How to change fragment TextView using java in MainActivivity
<p>I insert one fragment in activity_main.xml using java, i put fragment in linear layout in activity_main. Fragment xml file has one textView.</p> <p>How can i change TextView when app start from MainActivity using java, when app start and when it called onCreate? I try few solution form stacoverflow but i can get th...
I insert one fragment in activity_main.xml using java, i put fragment in linear layout in activity_main. Fragment xml file has one textView. How can i change TextView when app start from MainActivity using java, when app start and when it called onCreate? I try few solution form stacoverflow but i can get this to work....
java|android|fragment
0
2016-04-26T14:34:46.953Z
2,016
4
14
1
80
2
590
68
3
4
true
false
false
false
false
false
zero
36,868,099
Make Switch-Button (which is in an AlertDialog) do something when it's state changes
<p>So I want to create a little popup options menu within my Activity. I already have this code which shows the menu</p> <pre><code>public void ShowOptionsDialog() { Android.Support.V7.App.AlertDialog.Builder optionDialog = new Android.Support.V7.App.AlertDialog.Builder(this); optionDialog.SetTitle...
So I want to create a little popup options menu within my Activity. I already have this code which shows the menu [CODE] Resource.Layout.Options contains the following: [CODE] How exactly do I tell the app to do something when the Switch is pressed (on/off)?
android|xamarin|android-alertdialog|android-appcompat
0
2016-04-26T14:36:14.683Z
2,016
4
14
1
1,796
2
258
84
4
2
true
false
false
false
false
false
zero
36,868,126
Android: Push Notification has no Sound/Vibration/Light
<p>I'm not getting sound, vibration or light when receiving a notification. Can someone please tell me what I'm missing?</p> <p>Also I have some other questions:</p> <p>1.) I only get the specified icon when the app is open. When the app is closed I get the android logo icon (I guess thats because I havent defined an...
I'm not getting sound, vibration or light when receiving a notification. Can someone please tell me what I'm missing? Also I have some other questions: 1.) I only get the specified icon when the app is open. When the app is closed I get the android logo icon (I guess thats because I havent defined an app icon yet). 2.)...
android|push-notification
3
2016-04-26T14:37:27.167Z
2,016
4
14
1
6,985
3
882
55
2
1
true
false
true
false
false
false
low
36,868,162
Can't click on Custom ListView
<p>I was stuck all day. Couldn't find my mistake. </p> <p>I created a Custom ListView, and I just want to be able to click on it to launch a new intent in HourListView. </p> <pre><code>public class CustomList extends ArrayAdapter&lt;String&gt; { private final ArrayList&lt;String&gt; hourList; private final Activity...
I was stuck all day. Couldn't find my mistake. I created a Custom ListView, and I just want to be able to click on it to launch a new intent in HourListView. [CODE] } Then this is the HourListActivity where I want to be able to click. [CODE] A lastly my xml file for the Custom View: [CODE] Thanks in advance for any hel...
android|listview|onclicklistener
1
2016-04-26T14:39:02.167Z
2,016
4
14
1
108
2
326
30
3
3
true
false
false
false
false
false
low
36,868,232
Unable to call broadcast receiver on App startup
<p>Hello there i have been trying to create a broadcast receiver but i am unable to call it i.e start it from application startup here is my code please tell me that whether something is missing or not here is the things i tried until now</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:...
Hello there i have been trying to create a broadcast receiver but i am unable to call it i.e start it from application startup here is my code please tell me that whether something is missing or not here is the things i tried until now [CODE] here is my broadcast reciever [CODE]
android|xamarin|android-broadcastreceiver
0
2016-04-26T14:41:40.590Z
2,016
4
14
1
658
1
279
48
3
2
true
false
false
false
false
false
zero
36,868,402
My app crashes when I clicked the button which will take me the another Activity on Java, Android Studio
<p>firstly sorry for my bad english, I hope you can understand me. I'm making an android app on Android Studio. And I'm here because my app crashes while I start the Third Activity.</p> <p>Well, I have three activies. Going to second from the first and going to first from second works well, But when I tried to go to T...
firstly sorry for my bad english, I hope you can understand me. I'm making an android app on Android Studio. And I'm here because my app crashes while I start the Third Activity. Well, I have three activies. Going to second from the first and going to first from second works well, But when I tried to go to Third from S...
java|android
-1
2016-04-26T14:47:56.637Z
2,016
4
14
1
6,328
4
812
104
2
9
true
false
true
false
false
true
negative
36,868,550
Impossible to make Vertical ProgressBar bigger
<p>I'm trying to display a vertical ProgressBar. I've started to use VerticalProgressBar from this GitHub : <a href="https://github.com/halzhang/Android-VerticalProgressBar" rel="nofollow noreferrer">https://github.com/halzhang/Android-VerticalProgressBar</a></p> <p>But this solution doesn't work on one of test device...
I'm trying to display a vertical ProgressBar. I've started to use VerticalProgressBar from this GitHub : https://github.com/halzhang/Android-VerticalProgressBar But this solution doesn't work on one of test devices, and only on one. The bar doesn't display the progress. So, I've just simply create a basic ProgressBar a...
android|android-progressbar
2
2016-04-26T14:54:12.387Z
2,016
4
14
1
1,289
1
1,188
46
2
1
true
false
false
false
false
false
low
36,868,635
Android Java Sharedpreferences won't save data
<p>After I "saved" a String it will return (in my case) "error": <strong>html_value1 is not ""</strong></p> <p><strong>MainActivity:</strong></p> <pre><code> tools.getEditor(tools.getPreferences(getApplicationContext())).putString("wochea9a", html_value1); tools.getEditor(tools.getPreferences(getApplicationContext(...
After I "saved" a String it will return (in my case) "error": html_value1 is not "" MainActivity: [CODE] Alarmserviceactivity: [CODE] tools: [CODE] How can I fix this?
java|android|save|sharedpreferences|saving-data
0
2016-04-26T14:57:47.703Z
2,016
4
14
1
44
1
167
46
5
3
true
false
false
false
false
false
zero
36,868,651
Android Crashes After Updating LibGDX
<p>I’m trying to update to the latest LibGDX version 1.9.2 (I’ve been using an old version for quite a while) but after creating a new LibGDX project and running the default badlogic logo application it crashes on Android. I’ve created new LibGDX projects plenty of times with no problems, so something must be different...
I’m trying to update to the latest LibGDX version 1.9.2 (I’ve been using an old version for quite a while) but after creating a new LibGDX project and running the default badlogic logo application it crashes on Android. I’ve created new LibGDX projects plenty of times with no problems, so something must be different no...
java|android|libgdx
0
2016-04-26T14:58:39.227Z
2,016
4
14
1
111
1
1,454
37
3
1
true
false
false
false
false
false
zero