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,675,282
Waiting after setPadding() in Android
<p>I have the following problem: I have an image in my App and the position shall change dynamically. The following code works already:</p> <pre><code>RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); image.s...
I have the following problem: I have an image in my App and the position shall change dynamically. The following code works already: [CODE] The problem is, that the image position is immediately changed to the final position, so I added the Thread.sleep lines. However, now the thread sleeps for 10x 3s and then the imag...
android
0
2016-04-17T10:19:54.610Z
2,016
4
10
6
36
1
499
37
1
1
true
false
false
false
false
false
zero
36,675,291
Android PHP Mysql get Data by params
<p>I'm making android app with communication to PHP MySQL there is PHP files</p> <pre><code>create_order.php get_all_orders.php get_order_status.php </code></pre> <p>create_order.php works get_all_orders.php also but example in browser I'm typing get_order_status.php?oid=102 it gives me response but it contains an er...
I'm making android app with communication to PHP MySQL there is PHP files [CODE] create_order.php works get_all_orders.php also but example in browser I'm typing get_order_status.php?oid=102 it gives me response but it contains an error {"success":0,"message":"Required field(s) is missing get status"} when trying it fr...
php|android|mysql|android-volley
0
2016-04-17T10:21:12.760Z
2,016
4
10
6
178
1
380
36
4
3
true
false
false
false
false
false
zero
36,675,295
Android gallery intent: How can i get and set original cropped image with full size and good quality instead of thumbnail?
<p>Below is my edit profile activity where i give user an option to set the profile pic from gallery. When user clicks to edit profile pic, it opens up gallery, crop the selected image, cropped image will be saved at pre-defined location as well as temp location, cropped image will be set as profile pic. However, it al...
Below is my edit profile activity where i give user an option to set the profile pic from gallery. When user clicks to edit profile pic, it opens up gallery, crop the selected image, cropped image will be saved at pre-defined location as well as temp location, cropped image will be set as profile pic. However, it alway...
android|android-intent|image-quality
-3
2016-04-17T10:22:03.983Z
2,016
4
10
6
1,115
2
1,186
122
3
1
true
false
false
false
false
true
negative
36,675,339
Resizing Views before drawing
<p>In my layout I have a GridView containing 4 custom ImageViews. I'm setting GridView's visibility to invisible until all ImageViews are resized at first but when the GridView is shown, there's a short blink with ImageViews still unchanged.</p> <p><a href="http://i.stack.imgur.com/l59Ok.png" rel="nofollow">blink for ...
In my layout I have a GridView containing 4 custom ImageViews. I'm setting GridView's visibility to invisible until all ImageViews are resized at first but when the GridView is shown, there's a short blink with ImageViews still unchanged. blink for a split second views are resized in a moment Each ImageView creates sep...
java|android|android-view
0
2016-04-17T10:27:36.440Z
2,016
4
10
6
149
2
693
29
3
2
true
false
false
false
false
false
zero
36,675,360
Adding static view to coordinator layout
<p>I am building an app using the new coordinator layout, I followed the example shown here <a href="http://saulmm.github.io/mastering-coordinator" rel="nofollow">http://saulmm.github.io/mastering-coordinator</a> about the Custom Behaviors. I successfully implemented the example in my code, but now i want to add anothe...
I am building an app using the new coordinator layout, I followed the example shown here http://saulmm.github.io/mastering-coordinator about the Custom Behaviors. I successfully implemented the example in my code, but now i want to add another static view under the toolbar, this view should scroll along the toolbar at ...
android|layout|view|static
1
2016-04-17T10:30:07.940Z
2,016
4
10
6
498
1
657
40
4
1
true
false
false
false
false
false
low
36,675,398
Android Program Crashing NullPoint Exception
<p>Hey so I have been trying to fix this problem for a couple of hours and checked a lot of the other questions extensively in an attempt to remedy this problem. </p> <p>So in my Main Activity I have two activities that both either grabs an image from the gallery or is a photo depending on the button</p> <pre><code>p...
Hey so I have been trying to fix this problem for a couple of hours and checked a lot of the other questions extensively in an attempt to remedy this problem. So in my Main Activity I have two activities that both either grabs an image from the gallery or is a photo depending on the button [CODE] So I know the problem ...
java|android|nullpointerexception|crash
-1
2016-04-17T10:34:00.847Z
2,016
4
10
6
78
1
600
44
4
3
true
false
false
false
false
true
negative
36,675,399
SVG on Android below API 23
<p>I´m trying to get SVGs on an older API, but when I start the activity where the SVG is located, the app brokes. It is working on a 6.0 device, but not on 4.2.2</p> <p>it comes with</p> <blockquote> <p>android.view.InflateException: Binary XML file line #21: Error inflating class ImageView</p> </blockquote> <p>I...
I´m trying to get SVGs on an older API, but when I start the activity where the SVG is located, the app brokes. It is working on a 6.0 device, but not on 4.2.2 it comes with android.view.InflateException: Binary XML file line #21: Error inflating class ImageView I imported the SVG with the Android Vector Asset, also wi...
android|svg
0
2016-04-17T10:34:16.523Z
2,016
4
10
6
175
0
495
27
2
2
true
true
false
false
false
false
zero
36,675,433
Android Bluetooth Chat App & Sending Spotify Song Names
<p>I'm am fairly new to Android, and I'm trying to develop an app for a small project of mine using an example Bluetooth Chat App and Spotify Media Notifications. I could not provide the links because stack overflow did not let me but they are available online with a quick google search. I was wondering why I was getti...
I'm am fairly new to Android, and I'm trying to develop an app for a small project of mine using an example Bluetooth Chat App and Spotify Media Notifications. I could not provide the links because stack overflow did not let me but they are available online with a quick google search. I was wondering why I was getting ...
java|android|bluetooth|broadcastreceiver|spotify
0
2016-04-17T10:37:20.540Z
2,016
4
10
6
186
1
1,290
55
5
3
true
false
false
false
false
false
zero
36,675,477
My AlarmManager fires the alarm immediately
<p>Though this question is repeated over and over here on SO, but non of the solutions are working, in the code below it should fire for the first time after 10 seconds from launching my activity, but it launch immediately. And I'm using FLAG_UPDATE_CURRENT so there's no past time to fire immediately as I'm not setting...
Though this question is repeated over and over here on SO, but non of the solutions are working, in the code below it should fire for the first time after 10 seconds from launching my activity, but it launch immediately. And I'm using FLAG_UPDATE_CURRENT so there's no past time to fire immediately as I'm not setting it...
android|alarmmanager
-3
2016-04-17T10:41:26.750Z
2,016
4
10
6
473
1
653
43
2
2
true
false
false
false
false
true
negative
36,675,493
How to add a button over an ImageView in ScrollView dynamically? Android. Xamarin
<p>I have an axml file:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mylinearlayout" android:orientation="vertical" android:configChanges="orientation|keyboardHidden" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;SurfaceVie...
I have an axml file: [CODE] My application takes a photo and video and puts it in the LinearLayout. When I add video, I create an ImageView dynamically, put the firstframe of the video in this ImageView and add it in LinearLayout. [CODE] How can I put a button over this ImageView in LinearLayuot dynamically to start th...
android|android-layout|xamarin|imageview|scrollview
0
2016-04-17T10:43:15.793Z
2,016
4
10
6
428
1
349
81
5
2
true
false
false
false
false
false
zero
36,675,552
Android progress bar indeterminatedrawable not filling in the progress bar
<p>I'm trying to write an indeterminate progress bar which fills the width of the parent on Android. When I ran my app the animation only covers the tiny center part of the progress bar. Can anyone here help me out? Activity layout XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xml...
I'm trying to write an indeterminate progress bar which fills the width of the parent on Android. When I ran my app the animation only covers the tiny center part of the progress bar. Can anyone here help me out? Activity layout XML: [CODE] Progress bar drawable XML: [CODE] When I ran my app, the animation only covers ...
android|user-interface|android-progressbar
0
2016-04-17T10:50:43.010Z
2,016
4
10
6
1,162
1
482
74
3
2
true
false
false
false
false
false
zero
36,675,640
Alert dialog layout when clicking marker
<p>I searched on how to display an alert dialog layout when clicking a marker on google maps api v3. I found a code here on stackoverflow but for me it's not working. Here is my map class</p> <pre><code>package com.myapp; import android.app.AlertDialog; import android.app.FragmentManager; import android.content.Contex...
I searched on how to display an alert dialog layout when clicking a marker on google maps api v3. I found a code here on stackoverflow but for me it's not working. Here is my map class [CODE] The map opens fine and showing my marker. But when I click on, it doesn't show any alert dialog. Thanks in advance!
java|android|google-maps|google-api
1
2016-04-17T10:59:49.667Z
2,016
4
10
6
873
1
307
40
4
1
true
false
false
false
false
false
low
36,675,654
Error while waiting for device: Time out after 300seconds waiting for emulator to come online
<p>I have been trying to use android studio 2.0 emulator but I can not run my App on the Emulator. When I Run my App it shows the emulator with following details:</p> <p>Hax is Enabled </p> <ul> <li><p>Hax ram_size 0x800000000 </p></li> <li><p>HAx is working and emulator</p></li> <li><p>runs in fast virt mode. </p></...
I have been trying to use android studio 2.0 emulator but I can not run my App on the Emulator. When I Run my App it shows the emulator with following details: Hax is Enabled Hax ram_size 0x800000000 HAx is working and emulator runs in fast virt mode. console on port 5554, ADB on port 5555 After that it takes to next T...
android-studio|android-emulator
78
2016-04-17T11:01:28.717Z
2,016
4
11
6
145,392
24
995
93
2
0
false
false
true
true
true
false
high
36,675,706
setOnClickListener - how to pass in AdapterView<?> in onClick
<p>Update: I revised my original question because it was too vague.</p> <p>I just implemented a RecyclerView and now I want to make each item clickable, so that when I click on an item it will will take me to DetailsActivity (for phone and tablet) where I can find out more information about the item. </p> <p>I was a...
Update: I revised my original question because it was too vague. I just implemented a RecyclerView and now I want to make each item clickable, so that when I click on an item it will will take me to DetailsActivity (for phone and tablet) where I can find out more information about the item. I was able to do this prior ...
android|android-fragments|android-recyclerview|android-cursoradapter|android-cursor
0
2016-04-17T11:07:40.833Z
2,016
4
11
6
469
1
770
61
5
2
true
false
false
false
false
false
zero
36,675,740
Delete data from database not working in broadcast receiver in Android
<p>I am developing an Android app. In my app, I am deleting data from database when app is closed. So I open broadcast receiver onDestroy and delete data inside receiver. When I call delete method of database helper inside Activity, it is working. But when I call it inside receiver, it is not working.</p> <p>This is m...
I am developing an Android app. In my app, I am deleting data from database when app is closed. So I open broadcast receiver onDestroy and delete data inside receiver. When I call delete method of database helper inside Activity, it is working. But when I call it inside receiver, it is not working. This is my receiver:...
android|android-broadcastreceiver
0
2016-04-17T11:12:22.670Z
2,016
4
11
6
555
1
582
70
2
3
true
false
false
false
false
false
zero
36,675,753
Error: Abnormal build process termination in Android Studio 2.0
<p>This week I updated Android Studio to version 2.0. There is a <a href="http://tools.android.com/knownissues#TOC-Gradle-Sync-Failed:-Broken-Pipe" rel="nofollow noreferrer" title="known issue">known issue</a> concerning Gradle, so I added <code>export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true"</code> to my ~/...
This week I updated Android Studio to version 2.0. There is a known issue concerning Gradle, so I added export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true" to my ~/.profile (on Ubuntu 15.10). But now I get this error when compiling: [CODE] What can I do?
android|android-studio|intellij-idea
0
2016-04-17T11:14:17.193Z
2,016
4
11
6
1,224
1
261
63
3
1
true
false
false
false
false
false
zero
36,675,787
activity's "this" not recognized as Callback while creates a new PagerAdapter
<p>My App has CustomPagerAdapter where I created fragments where has a dialog with editText. The main idea to transfer this text to MainActivity. I tried to do eventBus: dialog->fragment->pagerAdapter->activity. I can do while skipping pagerAdapter, but I want to keep all "stations" in order. </p> <p>I created an int...
My App has CustomPagerAdapter where I created fragments where has a dialog with editText. The main idea to transfer this text to MainActivity. I tried to do eventBus: dialog->fragment->pagerAdapter->activity. I can do while skipping pagerAdapter, but I want to keep all "stations" in order. I created an interface in the...
android|interface|callback|android-adapter|fragmentpageradapter
0
2016-04-17T11:17:37.557Z
2,016
4
11
6
109
1
565
77
5
2
true
false
false
false
false
false
zero
36,675,869
mpg123 for Android
<p>I developed an Android app that reads an .mp3-file, does some manipulation on the PCM data and writes the result to another .mp3-file. So far, I have been using <a href="http://www.javazoom.net/javalayer/javalayer.html" rel="nofollow noreferrer">JLayer</a> for decoding and LAME (with NDK) for mp3-encoding. Everythin...
I developed an Android app that reads an .mp3-file, does some manipulation on the PCM data and writes the result to another .mp3-file. So far, I have been using JLayer for decoding and LAME (with NDK) for mp3-encoding. Everything works fine - the only issue is that JLayer is very slow ( as discussed here ). Thus, I wou...
android|android-ndk|mp3|lamemp3
3
2016-04-17T11:26:41.007Z
2,016
4
11
6
669
0
1,105
18
4
0
false
true
false
false
false
false
low
36,675,884
Tablayout title aren't visible in Android
<p>As the title explain, I am not able to see the title in the tablayout. I have followed a tutorial on youtube to create this swipable tabs. Here the link of the <a href="https://www.youtube.com/watch?v=8FiSyswS6RI" rel="nofollow noreferrer">tutorial</a> </p> <p>I have followed all the instruction shown in the video...
As the title explain, I am not able to see the title in the tablayout. I have followed a tutorial on youtube to create this swipable tabs. Here the link of the tutorial I have followed all the instruction shown in the video but I couldn't get the similar results. Here is my code MainActivity.class [CODE] activity_main....
android|xml|android-tablayout
1
2016-04-17T11:28:23.403Z
2,016
4
11
6
994
1
396
41
3
5
true
false
false
false
false
false
low
36,675,982
How to load xml file to xamarin android
<p>i save the Xml file in Assets folder and set Build Action to Android Assets now when i try to save the changes to xml file it gives exception System.UnauthorizedAccessException: Access to the path "/Q317664.xml" is denied.i am not sure why this exception is occurring please help me </p> <pre><code>using System; usi...
i save the Xml file in Assets folder and set Build Action to Android Assets now when i try to save the changes to xml file it gives exception System.UnauthorizedAccessException: Access to the path "/Q317664.xml" is denied.i am not sure why this exception is occurring please help me [CODE]
c#|android|xml|xamarin|xamarin.android
0
2016-04-17T11:37:06.160Z
2,016
4
11
6
5,967
2
289
39
5
1
true
false
true
false
false
false
zero
36,676,005
Android: Extending RelativeLayout
<p>I have a class extending RelativeLayout like so:</p> <pre><code>class CustomLayout extends RelativeLayout { CustomLayout(Context context) { super(context, null, 0); } CustomLayout(Context context, AttributeSet attrs) { super(context, attrs, 0); } CustomLayout(Context context, AttributeSet a...
I have a class extending RelativeLayout like so: [CODE] I make use of this layout through the XML file: [CODE] But the app crashes with: [CODE] I did provide the required constructors. What's going on?
android|custom-view|viewgroup
1
2016-04-17T11:39:27.537Z
2,016
4
11
6
626
2
201
33
3
3
true
false
false
false
false
false
low
36,676,081
ListView clickable
<p>hello guys I'm looking how to make my ListView clickable , i searched in the net but i haven't found the right answer , and this is my code please help me </p> <p>`public class acceuil extends AppCompatActivity { ListView listView; int [] movie_poster_resource = {R.drawable.profil}; String[] patient_nam...
hello guys I'm looking how to make my ListView clickable , i searched in the net but i haven't found the right answer , and this is my code please help me `public class acceuil extends AppCompatActivity { ListView listView; int [] movie_poster_resource = {R.drawable.profil}; String[] patient_names; String[] temps_rende...
android|listview
-2
2016-04-17T11:48:59.630Z
2,016
4
11
6
54
3
380
18
2
1
true
false
false
false
false
true
negative
36,676,093
Lokijs DB data removed after rerun using ionic run command?
<p>I am working on a ionic project and trying to use LokiJS. Below is my code,</p> <p>controller,</p> <pre><code>$scope.test ={birthdays:[]}; $ionicPlatform.ready(function() { BirthdayService.initDB(); BirthdayService.getAllBirthdays().then(function(birthdays){ console.log("birthdays=",birthdays);// gives...
I am working on a ionic project and trying to use LokiJS. Below is my code, controller, [CODE] I am using cordova-fs-adapter and cordova-file-plugin. below is my service for adapter integration, [CODE] In first run I am inserting two documents into the birthdays collections.On second run when I trying to check whether ...
android|cordova|cordova-plugins|lokijs
0
2016-04-17T11:50:11.367Z
2,016
4
11
6
134
0
470
59
4
2
true
true
false
false
false
false
zero
36,676,135
Android Gradle dexcount-gradle-plugin
<p>I read the documentation but I could not make it. I am using Android Studio 2.0 Stable version.</p> <p>This is my project level build.gradle file :</p> <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() ...
I read the documentation but I could not make it. I am using Android Studio 2.0 Stable version. This is my project level build.gradle file : [CODE] and this is app module level build.gradle file : [CODE] this is giving error everytime : [CODE] what is the solution of this error ?
plugins|android-gradle-plugin|dex
0
2016-04-17T11:53:40.080Z
2,016
4
11
6
3,040
2
280
37
3
3
true
false
true
false
false
false
zero
36,676,155
Android: Swipe between 2 fragment in view pager, on page change listener doesn't work
<p>in my Android app I have a view pager with a swipe between 2 fragments. It works perfectly. But if I add a onPageChangeListener event, when I swipe between 2 fragment nothing happens. No error message, the fragment swipe well, but I don't see any print message (only when the activity appears for the first time, I se...
in my Android app I have a view pager with a swipe between 2 fragments. It works perfectly. But if I add a onPageChangeListener event, when I swipe between 2 fragment nothing happens. No error message, the fragment swipe well, but I don't see any print message (only when the activity appears for the first time, I see "...
android|android-fragments|android-activity
0
2016-04-17T11:56:15.247Z
2,016
4
11
6
440
0
613
85
3
3
true
true
false
false
false
false
zero
36,676,163
Sensortag20 Program Crashes connecting to bluetooth device
<p>I'm trying to modify this project from android studio 2 but when I try to run the app from Android 4.4.2 and connect to a bluetooth device, it gives these error messages.</p> <pre><code>06-02 14:51:30.126 12669-12669/com.example.ti.ble.sensortag E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.ti.ble.se...
I'm trying to modify this project from android studio 2 but when I try to run the app from Android 4.4.2 and connect to a bluetooth device, it gives these error messages. [CODE] The project can be found here SensorTag20 Project . How do I fix these problems?
java|android|android-studio|bluetooth
0
2016-04-17T11:56:49.800Z
2,016
4
11
6
151
1
258
58
4
1
true
false
false
false
false
false
zero
36,676,178
OCR. Using tesseract to recognize odometer
<p>I want to recognize digits from odometer. I found this tutorial for iOS. <a href="https://www.raywenderlich.com/93276/implementing-tesseract-ocr-ios" rel="nofollow noreferrer">https://www.raywenderlich.com/93276/implementing-tesseract-ocr-ios</a></p> <p>my tesseract properties:</p> <pre><code>func performImageReco...
I want to recognize digits from odometer. I found this tutorial for iOS. https://www.raywenderlich.com/93276/implementing-tesseract-ocr-ios my tesseract properties: [CODE] The app successfully recognizes a standard text. But app cant to recognize digits from odometer. It is possible to adapt a tesseract for scanning of...
android|ios|ocr|tesseract
2
2016-04-17T11:58:33.187Z
2,016
4
11
6
1,440
2
355
42
4
1
true
false
false
false
false
false
low
36,676,242
Android Create Json Object String From Data
<p>I want to create Json String like this from available data,</p> <p>Json String:</p> <pre><code>{ "1": { "attendance_user_status": 1 }, "2": { "attendance_user_status": 0 }, "3": { "attendance_user_status": 1 }, "4": { "attendance_user_status": 1 }, "5": { "attendance_user_stat...
I want to create Json String like this from available data, Json String: [CODE] I wrote this java code.. [CODE] But using this code I'm getting this array, Not as I required. [CODE] I want to append json object but not by json array.
android|arrays|json
0
2016-04-17T12:05:02.730Z
2,016
4
12
6
408
2
233
43
3
3
true
false
false
false
false
false
zero
36,676,300
android.os.NetworkOnMainThreadException doinbackground method
<p>I want to write Tcp Client class on android but I couldnt convert its all method to doinbackground form. all code works in doinbackground method but when I changed it gives NetworkOnMainThreadException.</p> <pre><code>public class Client extends AsyncTask&lt;Void, Void, Void&gt; { String playername = null; Socket c...
I want to write Tcp Client class on android but I couldnt convert its all method to doinbackground form. all code works in doinbackground method but when I changed it gives NetworkOnMainThreadException. [CODE]
android|android-asynctask
0
2016-04-17T12:11:00.780Z
2,016
4
12
6
227
1
209
61
2
1
true
false
false
false
false
false
zero
36,676,321
Detecting device rotation values
<p>I looked everywhere for a solution on how to detect, and get values of how much a device moves on a table, in a flat mode. I saw many tutorials, and they all where talking about the same methods:</p> <pre><code> @Override public void onSensorChanged(SensorEvent event) { float[] g = new float[3]; ...
I looked everywhere for a solution on how to detect, and get values of how much a device moves on a table, in a flat mode. I saw many tutorials, and they all where talking about the same methods: [CODE] I also saw the documentation , but didn't find a solution. to make myself more clear, I added two pictures to show wh...
android|sensors
1
2016-04-17T12:13:03.503Z
2,016
4
12
6
96
0
400
32
2
1
true
true
false
false
false
false
low
36,676,379
How do I read Google Sheet content via Android's Drive API?
<p>I'm currently working on an app where the user can pick a Google Sheet file (.xlxs) from their Google Drive. My app will then extract and work with certain content of that Sheet.</p> <p>I'm using the Google Drive API made for Android and I utilize the example classes from <a href="https://github.com/googledrive/and...
I'm currently working on an app where the user can pick a Google Sheet file (.xlxs) from their Google Drive. My app will then extract and work with certain content of that Sheet. I'm using the Google Drive API made for Android and I utilize the example classes from Google Drive Android Demos So far, I've implemented a ...
java|android|google-drive-api
0
2016-04-17T12:18:47.717Z
2,016
4
12
6
2,278
1
1,062
59
3
2
true
false
false
false
false
false
zero
36,676,412
Leaked window when exit app through (popup) menu
<p>I hope you can help me, I have a <strong>leaked window</strong> as soon as I <strong>exit my application via the (popup) menu option</strong> in the toolbar. If I exit the app through a normal method everything is fine.</p> <p>Could somebody maybe help? I cannot seem to find the error and I am trying to find a prop...
I hope you can help me, I have a leaked window as soon as I exit my application via the (popup) menu option in the toolbar. If I exit the app through a normal method everything is fine. Could somebody maybe help? I cannot seem to find the error and I am trying to find a proper solution. I have 2 static String variables...
android|drop-down-menu|menu
6
2016-04-17T12:21:51.070Z
2,016
4
12
6
2,526
1
731
48
3
4
true
false
false
false
false
false
medium
36,676,428
Android IIR low pass filter noise
<p>I'm making synthesizer capable generate three basic types of sound and filtering it. For filtering I used code from <a href="https://github.com/JorenSix/TarsosDSP" rel="nofollow noreferrer">TarsosDSP</a>.</p> <p>However filtering of sound is correct, but there is lot of noise, which is a lot louder than sound itsel...
I'm making synthesizer capable generate three basic types of sound and filtering it. For filtering I used code from TarsosDSP . However filtering of sound is correct, but there is lot of noise, which is a lot louder than sound itself. I didn't make any big changes to a code, only added conversion float -> short, becaus...
android|audio|filtering|signal-processing|waveform
0
2016-04-17T12:23:29.263Z
2,016
4
12
6
1,057
0
552
33
5
1
true
true
false
false
false
false
zero
36,676,556
Trying to write a class that allows to do something before the Thread starts and after the Thread finishes
<p>I am trying to write a Utility class that helps to execute a task on a Separate Thread, providing the ability to do something before the task starts, and something after the task ends.</p> <p>Something similar to android's <strong><code>AsyncTask</code></strong></p> <p>Here is such a class.</p> <pre><code>class M...
I am trying to write a Utility class that helps to execute a task on a Separate Thread, providing the ability to do something before the task starts, and something after the task ends. Something similar to android's AsyncTask Here is such a class. [CODE] Here is how this class is supposed to be used. Consumer of the cl...
java|multithreading|android-asynctask
1
2016-04-17T12:35:34.803Z
2,016
4
12
6
81
3
588
106
3
3
true
false
false
false
false
false
low
36,676,585
android java.lang.OutOfMemoryError recyclerview with lots of images
<p>I'm trying to make an app who will show lots of images. Problem is when I run the app and when I am scrolling, the app crashes and show me error </p> <blockquote> <p>java.lang.OutOfMemoryError.</p> </blockquote> <p>I'm using android studio, minSdkVersion 15 and all pictures are not bigger then 20, 30 KB but I wi...
I'm trying to make an app who will show lots of images. Problem is when I run the app and when I am scrolling, the app crashes and show me error java.lang.OutOfMemoryError. I'm using android studio, minSdkVersion 15 and all pictures are not bigger then 20, 30 KB but I will have lots of images to show. All images are in...
android|performance|nullpointerexception|android-recyclerview
4
2016-04-17T12:38:48.420Z
2,016
4
12
6
2,130
4
514
67
4
2
true
false
false
false
false
false
low
36,676,608
Android - Passing Object between activities error
<p>Singer Object :</p> <pre><code>public class Singer implements java.io.Serializable { public String id ; public String name; public HashMap&lt;String,String&gt; songs; public Singer(String name,String id){ this.id=id; this.name=name; this.songs=new HashMap&lt;&gt;(); ...
Singer Object : [CODE] MainClass: [CODE] Songs Activity: Singer singer =(Singer) getIntent().getSerializable("Allsongs"); Sending strings from activity to another activity was working , but when i wanted to pass object it is start give me an erorres.
android|android-activity
-1
2016-04-17T12:40:14.187Z
2,016
4
12
6
316
1
250
49
2
2
true
false
false
false
false
true
negative
36,676,733
Receive string via Bluetooth android (without line feed or Carriage Return)
<p>There are a lot of questions on stack overflow on how to receive data (string) from a Bluetooth device but I have never seen a question on how to receive data (string) without checking for LF or CR.</p> <p>This code works perfectly when the device send a LF at the end of the String:</p> <pre><code>final Handler ha...
There are a lot of questions on stack overflow on how to receive data (string) from a Bluetooth device but I have never seen a question on how to receive data (string) without checking for LF or CR. This code works perfectly when the device send a LF at the end of the String: [CODE] But the device that sends the string...
java|android|bluetooth|android-bluetooth
0
2016-04-17T12:50:27.793Z
2,016
4
12
6
1,620
1
655
75
4
1
true
false
false
false
false
false
zero
36,676,740
Android UI is not updating before a method starting
<p>I'm making a Tic-Tac-Toe game on Android. My game is running well, but I have a problem with it. When user touch on a tile, I update the UI and then call <code>ComputerPlay()</code> method. But the UI only update after <code>ComputerPlay()</code> method is completed. I don't know how, sorry, my English is bad and I ...
I'm making a Tic-Tac-Toe game on Android. My game is running well, but I have a problem with it. When user touch on a tile, I update the UI and then call ComputerPlay() method. But the UI only update after ComputerPlay() method is completed. I don't know how, sorry, my English is bad and I don't know how to search the ...
java|android|user-interface
0
2016-04-17T12:51:18.667Z
2,016
4
12
6
54
1
713
51
3
1
true
false
false
false
false
false
zero
36,676,746
Android studio 2 - emulator popup doesn't appear
<p>I'm new with Android studio (2.0) and android app. I downloaded android studio 2.0 two days ago and started my first application "Hello world".</p> <p>When I start the application on my tablet, the application work fine and evrything seems valid. When I start the emulator nothing happend and I don't have error mess...
I'm new with Android studio (2.0) and android app. I downloaded android studio 2.0 two days ago and started my first application "Hello world". When I start the application on my tablet, the application work fine and evrything seems valid. When I start the emulator nothing happend and I don't have error messages. The e...
android-studio
1
2016-04-17T12:51:58.740Z
2,016
4
12
6
475
0
1,101
48
1
0
false
true
false
false
false
false
low
36,676,752
DialogFragment From RecyclerView
<p>now i have new problem ..... i don't know how initialize dialogfragment in recyclerview and recyclerview in fragment , so who know haw to make it ?</p> <p>Fragment code:</p> <pre><code>public View onCreateView( LayoutInflater inflater, ViewGroup container3, Bundle savedInstanceState) { ...
now i have new problem ..... i don't know how initialize dialogfragment in recyclerview and recyclerview in fragment , so who know haw to make it ? Fragment code: [CODE] RecyclerView Adapter code: [CODE] And DialogFragment code: [CODE] So what i need to do ???
android|fragment|android-recyclerview|dialogfragment
-1
2016-04-17T12:52:13.803Z
2,016
4
12
6
2,182
1
260
32
4
3
true
false
false
false
false
true
negative
36,676,766
Android PlaceAutocompleteFragment not opening Fragment
<p>I have added the PlaceAutocompleteFragment in this way -</p> <pre><code>PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); autocompleteFragment.setHint(""); autocompleteFragment.setOnPlaceSelectedL...
I have added the PlaceAutocompleteFragment in this way - [CODE] Also added in the dependency [CODE] And in the manifest [CODE] Now when I am clicking on the search icon I nothing is opening not getting any error in log also. I am not sure what is the thing I am doing wrong.
android|google-places-api
0
2016-04-17T12:53:04.917Z
2,016
4
12
6
1,035
0
274
54
2
3
true
true
false
false
false
false
zero
36,676,768
My webview video is continously loading, how do I get it to play?
<p>I'm having some trouble trying to get this video playing in my webview. The youtube video appears but whenever I attempt to play the video, all it does is continuously load. How do I fix this? Also, I have the hardware acceleration on true. Here's my current code for playing the video:</p> <pre><code>String frameVi...
I'm having some trouble trying to get this video playing in my webview. The youtube video appears but whenever I attempt to play the video, all it does is continuously load. How do I fix this? Also, I have the hardware acceleration on true. Here's my current code for playing the video: [CODE]
android|android-studio|video|webview|youtube
1
2016-04-17T12:53:09.843Z
2,016
4
12
6
486
1
293
65
5
1
true
false
false
false
false
false
low
36,676,790
NULL in Adapter in Fragment (FragmentPagerAdapter) after screen rotation
<p>I was looking answer in similar topics but nothing works for me. I have Activity which has a fragment. This fragment has adapter. Everything is fine even if I rotate screen, but when I rotate screen and try to update adapter (for example by sort items in adapter - method sort) I get NULL on adapter.</p> <p>When Act...
I was looking answer in similar topics but nothing works for me. I have Activity which has a fragment. This fragment has adapter. Everything is fine even if I rotate screen, but when I rotate screen and try to update adapter (for example by sort items in adapter - method sort) I get NULL on adapter. When Activity start...
java|android|android-fragments|null|adapter
1
2016-04-17T12:55:55.580Z
2,016
4
12
6
506
0
897
72
5
5
true
true
false
false
false
false
low
36,676,797
LinearLayout weight does not work in DialogFragment
<p>I have a custom view which is basically simply to show some info for a transaction, this is the layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_par...
I have a custom view which is basically simply to show some info for a transaction, this is the layout: [CODE] This it what it looks like in Android Studio preview , and it did meet my expectation (left and right divide the full parent container with ratio 2:6 ): Later, this view will be shown in a DialogFragment , and...
android|android-dialogfragment|android-layout-weight
0
2016-04-17T12:56:20.153Z
2,016
4
12
6
1,344
2
749
51
3
3
true
false
false
false
false
false
zero
36,677,016
Android App got crash whenever it access Url in it
<p>Here is the main activity on which app crashes I have to select state in spinner on which result I get the city List but It doesn't show city list .And If I change the state then still nothing happen. I am working on android api 15. If I work on api 8 or 10 then it work fine.</p> <pre><code> String url="Register...
Here is the main activity on which app crashes I have to select state in spinner on which result I get the city List but It doesn't show city list .And If I change the state then still nothing happen. I am working on android api 15. If I work on api 8 or 10 then it work fine. [CODE] Here is the logcat Here is the logca...
java|android|eclipse|servlets
0
2016-04-17T13:15:21.423Z
2,016
4
13
6
35
0
321
50
4
1
true
true
false
false
false
false
zero
36,677,134
Android Launcher icon not showing
<p>I have a problem with my app launcher icon. Launcher icon is not shown on device. Here is my AndroidManifest.xml:</p> <pre><code>&lt;application android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:name=".HamrahBankAnsarApplication" android:theme...
I have a problem with my app launcher icon. Launcher icon is not shown on device. Here is my AndroidManifest.xml: [CODE] The confusing point is when I move <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> to the MainActivi...
android|android-manifest|launcher
4
2016-04-17T13:25:25.937Z
2,016
4
13
6
1,756
2
503
33
3
1
true
false
false
false
false
false
low
36,677,219
Android Snackbar not appearing when I click Option Item
<p>I'm trying to display a Snackbar whenever I click my option item but when I do that, my app crashes. Does anyone know what is wrong here and what can be done to resolve this issue?</p> <p><a href="https://i.stack.imgur.com/EImm6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EImm6.png" alt="ente...
I'm trying to display a Snackbar whenever I click my option item but when I do that, my app crashes. Does anyone know what is wrong here and what can be done to resolve this issue? java [CODE] Logcat [CODE]
java|android|android-support-library|android-snackbar
-3
2016-04-17T13:31:41.597Z
2,016
4
13
6
1,272
3
206
55
4
2
true
false
false
false
false
true
negative
36,677,266
EVP_DecryptFinal_ex:bad decrypt, possible key generation issue in Android
<p>So I'm having issues with generating a key from a string-based passphrase. The encryption step works fine and the decryption step works up until the error listed at the bottom, leaving the decrypted file corrupt. I use the following functions to perform the encryption/decryption:</p> <pre><code>public static boolea...
So I'm having issues with generating a key from a string-based passphrase. The encryption step works fine and the decryption step works up until the error listed at the bottom, leaving the decrypted file corrupt. I use the following functions to perform the encryption/decryption: [CODE] And here's the function that gen...
android|encryption|passwords|encryption-symmetric
0
2016-04-17T13:36:32.973Z
2,016
4
13
6
749
2
742
73
4
5
true
false
false
false
false
false
zero
36,677,269
Xamarin forms: Customize Android Material style status bar color
<p>I have enabled Material theme on my Xamarin.Forms project with the following code, but on Android (Lollipop and Marshmallow) the top status bar (where the clock, signal, battery, etc.. are located) doesn't change. It remains always black. I've already read lot of forums and blogs, tried lot of combination but I'm no...
I have enabled Material theme on my Xamarin.Forms project with the following code, but on Android (Lollipop and Marshmallow) the top status bar (where the clock, signal, battery, etc.. are located) doesn't change. It remains always black. I've already read lot of forums and blogs, tried lot of combination but I'm not a...
xamarin|material-design|xamarin.forms|statusbar|android-theme
4
2016-04-17T13:36:50.477Z
2,016
4
13
6
7,041
4
462
64
5
3
true
false
true
false
false
false
low
36,677,276
Unable to save the changes in XML file
<p>i am facing problem when i try to save the XML file i store the XML file in Assets folder and set build action to Android Assets but when xml.Save("Q317664.xml"); line comes it gives exception System.UnauthorizedAccessException: Access to the path "/Q317664.xml" is denied.i am not sure why this is occurring</p> <pr...
i am facing problem when i try to save the XML file i store the XML file in Assets folder and set build action to Android Assets but when xml.Save("Q317664.xml"); line comes it gives exception System.UnauthorizedAccessException: Access to the path "/Q317664.xml" is denied.i am not sure why this is occurring [CODE]
android|xamarin|xamarin.android|xamarin.forms|xamarin-studio
0
2016-04-17T13:37:30.937Z
2,016
4
13
6
931
2
315
38
5
1
true
false
false
false
false
false
zero
36,677,332
My ViewPager is blank when I click back, Its not showing the list
<p>I have an issue where my view pager is showing blank fragment when I back press. I have a grid fragment(consider Fragment A) where when I click on a button its navigates me to another grid fragment(Consider Fragment B),when I click on a button it navigates me to a ViewPager(Fragment C) which has three Slidingtabs. e...
I have an issue where my view pager is showing blank fragment when I back press. I have a grid fragment(consider Fragment A) where when I click on a button its navigates me to another grid fragment(Consider Fragment B),when I click on a button it navigates me to a ViewPager(Fragment C) which has three Slidingtabs. each...
android|android-fragments|android-viewpager|onbackpressed
0
2016-04-17T13:42:45.613Z
2,016
4
13
6
375
0
669
65
4
3
true
true
false
false
false
false
zero
36,677,363
Cant find the cause of my crash with this stack trace
<p>What my app does, is to display a system overlay view attached through <code>windowManager.addView()</code> and <code>WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY</code> flag. This is done with a Service, which manages that view visibility and a few other things.</p> <p>However, I am receiving crash reports and c...
What my app does, is to display a system overlay view attached through windowManager.addView() and WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY flag. This is done with a Service, which manages that view visibility and a few other things. However, I am receiving crash reports and can't reproduce them. Also the crash s...
android|service|view|stack-trace
14
2016-04-17T13:46:17.183Z
2,016
4
13
6
2,647
5
922
53
4
4
true
false
true
false
true
false
medium
36,677,382
Exception raised during rendering: Binary XML file line #-1: Error inflating class
<p>I just add a timepicker in my layout. It works fine if the TimePickerMode is clock, but when I change it to spinner, it shows this error: <code>Exception raised during rendering: Binary XML file line #-1: Error inflating class</code></p> <p>Here is my XML file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8...
I just add a timepicker in my layout. It works fine if the TimePickerMode is clock, but when I change it to spinner, it shows this error: Exception raised during rendering: Binary XML file line #-1: Error inflating class Here is my XML file: [CODE]
android|xml|android-layout|android-studio
1
2016-04-17T13:47:47.830Z
2,016
4
13
6
1,948
0
248
82
4
1
true
true
false
false
false
false
low
36,677,399
Reading text files from local directory
<p>I´m trying to read text file and display it in WebView. This is my method : </p> <pre><code>public static String readFileAsString(String filePath) { String resultString = ""; File file = new File(filePath); if ( file.exists() ) { FileInputStream fileInputStream = null; ...
I´m trying to read text file and display it in WebView. This is my method : [CODE] and in the same activity I call it : [CODE] In my app, everything is displayed but before every special character it writes A with ^ . example: Žilina writes as ^AŽilina . Could anybody helps me?
java|android
1
2016-04-17T13:49:19.703Z
2,016
4
13
6
73
2
278
39
2
2
true
false
false
false
false
false
low
36,677,491
Inmobi Android SDK: memory leak when using native ads
<p>I have detected a leak in the inmobi SDK when I use native ads. Has anyone managed to solve this leak - it is causing OOM errors.</p> <p>I'm using the latest SDK from inmobi:</p> <p><a href="https://bintray.com/inmobi/maven/inmobi-ads/5.3.0/view" rel="nofollow">https://bintray.com/inmobi/maven/inmobi-ads/5.3.0/vie...
I have detected a leak in the inmobi SDK when I use native ads. Has anyone managed to solve this leak - it is causing OOM errors. I'm using the latest SDK from inmobi: https://bintray.com/inmobi/maven/inmobi-ads/5.3.0/view [CODE] This is definitely an inmobi memory leak issue. I tried it with Facebook Ad Network and Fl...
android|memory-leaks|inmobi
1
2016-04-17T13:58:54.320Z
2,016
4
13
6
476
0
504
53
3
2
true
true
false
false
false
false
low
36,677,511
How to get data from a database into a list of objects and display it in a listview?
<p>I'm trying to make a simple contacts app and I encountered a problem with retrieving data from a database to a list of objects. I tried to do it without objects and then I noticed that this way is more used in practice. What I wanna do in this app is to show the name of the contact in a listview.</p> <p>So here is ...
I'm trying to make a simple contacts app and I encountered a problem with retrieving data from a database to a list of objects. I tried to do it without objects and then I noticed that this way is more used in practice. What I wanna do in this app is to show the name of the contact in a listview. So here is my code: [C...
android
-1
2016-04-17T14:00:10.390Z
2,016
4
14
6
52
2
475
84
1
3
true
false
false
false
false
true
negative
36,677,566
How to update fragment/update fragment ui from activity?
<p>Pageviewer.java code:</p> <pre><code> //hide status bar/action bar on single tap package com.app.imageswiper; import android.app.ActionBar; import android.app.Dialog; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; import andro...
Pageviewer.java code: [CODE] ViewPagerAdapter code: [CODE] bookmarks.xml code: [CODE] I don't know how to update the button text from Pageviewer.java for the button with R.id.bookmark that shows up on the Bookmarks fragment on the click of menu item R.id.action_settings. I want to do this so that the button text corres...
android|android-fragments|android-studio|fragment|r.java-file
0
2016-04-17T14:06:15.700Z
2,016
4
14
6
2,784
2
463
56
5
3
true
false
true
false
false
false
zero
36,677,661
Delete database entry from android list view and update it
<p>I have a list view populated with a simple cursor adapter which reflects the entries from a database. I want to delete items from the context menu which I have created. I have written the below piece of code, but it doesn't seem to working. When clicking on Edit or Delete, nothing happens, even though I have written...
I have a list view populated with a simple cursor adapter which reflects the entries from a database. I want to delete items from the context menu which I have created. I have written the below piece of code, but it doesn't seem to working. When clicking on Edit or Delete, nothing happens, even though I have written a ...
android|database|simplecursoradapter
0
2016-04-17T14:14:42.843Z
2,016
4
14
6
230
2
472
58
3
3
true
false
false
false
false
false
zero
36,677,682
Is there a way to wrap text in an EditText?
<p>I am setting the texts inside of EditTexts in Java. Right now, what happens is, when the text is long, it just gets cut off. </p> <p>In the XML, the height of the EditText is set to wrap_content. I want the height to change depending on the length of the String I will place in it so that all the text can be seen. A...
I am setting the texts inside of EditTexts in Java. Right now, what happens is, when the text is long, it just gets cut off. In the XML, the height of the EditText is set to wrap_content. I want the height to change depending on the length of the String I will place in it so that all the text can be seen. Any solution ...
android|android-edittext
1
2016-04-17T14:16:32.820Z
2,016
4
14
6
1,000
3
381
43
2
1
true
false
false
false
false
false
low
36,677,703
How to go next page after check id&password on MySQL(Android studio)
<p>How to go next page? After check user, Password is right. I write this code </p> <blockquote> <p>startActivity(new Intent(this, getMenu.class));</p> </blockquote> <p>on </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-ov...
How to go next page? After check user, Password is right. I write this code startActivity(new Intent(this, getMenu.class)); on [CODE] it not check user&password. But always go to next. I know is really stupid question. But I really don't know. Please tell me. :'( (sorry for my bad English.) MainActivity.java [CODE] Bac...
java|android|mysql|android-studio|authentication
0
2016-04-17T14:18:19.457Z
2,016
4
14
6
166
0
363
68
5
4
true
true
false
false
false
false
zero
36,677,712
Failing to upload image to Twitter using API
<p>I'm trying to upload an image to Twitter using their API, but it always fails throwing an error saying it can't find the file even though it's definitely there since I'm using the same path to upload it fine to other networks and it displays correctly in my preview box. </p> <pre><code>com.twitter.sdk.android.core....
I'm trying to upload an image to Twitter using their API, but it always fails throwing an error saying it can't find the file even though it's definitely there since I'm using the same path to upload it fine to other networks and it displays correctly in my preview box. [CODE] Some Googling showed this error was meant ...
android|twitter-fabric
0
2016-04-17T14:19:19.880Z
2,016
4
14
6
371
1
623
44
2
2
true
false
false
false
false
false
zero
36,677,742
Edit Text Background Resource
<p>In my activity is one EditText, one Toggle Button and one Test Button. If my ToggleButton Pressed Edit Text Backgroud set in Red Style (red.xml), and when not pressed set in Green Stlye (green.xml). But when I press Test Button alredy Write me Red :'(</p> <p>Please Help me!!</p> <p>My Code is here:</p> <pre><code...
In my activity is one EditText, one Toggle Button and one Test Button. If my ToggleButton Pressed Edit Text Backgroud set in Red Style (red.xml), and when not pressed set in Green Stlye (green.xml). But when I press Test Button alredy Write me Red :'( Please Help me!! My Code is here: [CODE] } Thank you for help!!
java|android|android-edittext
0
2016-04-17T14:23:15.047Z
2,016
4
14
6
96
2
315
29
3
1
true
false
false
false
false
false
zero
36,677,771
My callback method is never called using an interface
<p>I'm trying to implement a <code>callback</code> method to be called whenever a <code>Thread</code> is is done It's work. I'm using the <code>interface</code> approach and not the <code>Handler</code> approach.</p> <p>I have a main <code>UI</code> <code>Thread</code> which is the <code>onCreate(Bundle)</code> method...
I'm trying to implement a callback method to be called whenever a Thread is is done It's work. I'm using the interface approach and not the Handler approach. I have a main UI Thread which is the onCreate(Bundle) method and a Thread i call from within the onCreate(Bundle) method. (Only relevant code posted). MainActivit...
android|multithreading|interface|callback|ui-thread
0
2016-04-17T14:25:43.263Z
2,016
4
14
6
744
3
499
53
5
4
true
false
false
false
false
false
zero
36,677,793
Android opening a dialogfragment from another fragment throws a casting error
<p>I have really browsed through stackoverflow for this solution. Im trying to access a fragment from another fragment and an error is thrown that</p> <pre><code>java.lang.ClassCastException: com.noel.myapplication99.IncomeTax cannot be cast to com.noel.myapplication99.IncomeDialog at com.noel.myapplication99....
I have really browsed through stackoverflow for this solution. Im trying to access a fragment from another fragment and an error is thrown that [CODE] These are my codes MainActivity.java [CODE] IncomeTax.java [CODE] IncomeDialog.java [CODE]
java|android
0
2016-04-17T14:27:21.993Z
2,016
4
14
6
158
1
241
77
2
4
true
false
false
false
false
false
zero
36,677,803
Wrapping text around a custom view
<p>I've created a custom view with two drawable images; the first image is displayed across the whole width of the top of the screen with aspect ratio adjusted accordingly. My second image is placed just below the top image on the left-hand side. </p> <p>Now is there a way to efficiently display text on the right of t...
I've created a custom view with two drawable images; the first image is displayed across the whole width of the top of the screen with aspect ratio adjusted accordingly. My second image is placed just below the top image on the left-hand side. Now is there a way to efficiently display text on the right of the second im...
java|android|android-custom-view|android-glide
0
2016-04-17T14:28:10.460Z
2,016
4
14
6
149
0
423
34
4
2
true
true
false
false
false
false
zero
36,677,848
scrollToPosition() "expand" RecyclerView
<p>I have a RecyclerView with custom LayoutManager that handles the photo laying out so the result is different in portrait and landscape as you can see in the images below.</p> <p>Now everything is working fine except for when I handle onConfigurationChanged() callback from portrait to landscape and vice-versa.</p> ...
I have a RecyclerView with custom LayoutManager that handles the photo laying out so the result is different in portrait and landscape as you can see in the images below. Now everything is working fine except for when I handle onConfigurationChanged() callback from portrait to landscape and vice-versa. I want to save s...
android|android-recyclerview|layout-manager|onconfigurationchanged
3
2016-04-17T14:32:15.757Z
2,016
4
14
6
513
0
1,574
40
4
0
false
true
false
false
false
false
low
36,677,912
Android app crashes when method called
<p>I am attempting my first Android app, using Python3, kivy and Buildozer. All sees to go well, the program runs n Python and the Androd app launches. However, when the method below is called (by the click of a button) on the Android the app closes. Probably something completely obvious, but my novice eyes can't se...
I am attempting my first Android app, using Python3, kivy and Buildozer. All sees to go well, the program runs n Python and the Androd app launches. However, when the method below is called (by the click of a button) on the Android the app closes. Probably something completely obvious, but my novice eyes can't see it. ...
android|python-3.x|kivy|buildozer
0
2016-04-17T14:37:34.063Z
2,016
4
14
6
63
0
465
38
4
1
true
true
false
false
false
false
zero
36,677,923
AdMob in app not showing
<p>I am trying to show a simple test ad in an android app. I was using this github project to test</p> <p><a href="https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/BannerExample" rel="nofollow">https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/BannerExampl...
I am trying to show a simple test ad in an android app. I was using this github project to test https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/BannerExample I have also gone through this example https://developers.google.com/admob/android/quick-start#configure_gradle Im using IntelliJ ...
android|admob
0
2016-04-17T14:38:15.090Z
2,016
4
14
6
788
1
901
24
2
3
true
false
false
false
false
false
zero
36,677,936
Adding date from a calendar into EditText in a different class
<p>I have made an application where a user can select a date on a calendar in my <code>Calendar.java</code> activity once the user selects this date I want it to put this date in an <code>EditText</code> field in a separate activity called AddDeadline. Currently I have a calendar and once the user selects that date it ...
I have made an application where a user can select a date on a calendar in my Calendar.java activity once the user selects this date I want it to put this date in an EditText field in a separate activity called AddDeadline. Currently I have a calendar and once the user selects that date it brings them to the separate a...
java|android|android-studio|android-calendar
0
2016-04-17T14:39:38.120Z
2,016
4
14
6
402
1
587
62
4
2
true
false
false
false
false
false
zero
36,677,959
Android - Keyboard hides editText
<p>This is my xml and I don't get that keyboard does not hide edittext.</p> <p>I almost try everything.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_par...
This is my xml and I don't get that keyboard does not hide edittext. I almost try everything. [CODE] Manifest [CODE]
android|android-layout
-1
2016-04-17T14:41:47.227Z
2,016
4
14
6
2,902
1
116
33
2
2
true
false
true
false
false
true
negative
36,677,966
how to play Mp3 file in ANDROID EMULATOR
<p>I am trying to play mp3 files in my genymotion emulator and I have stored my songs in /mnt/shared/New_folder(2).But I am getting some error like this</p> <pre><code> 10:22:14.023 2102-2102/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.union.mp1, PID: ...
I am trying to play mp3 files in my genymotion emulator and I have stored my songs in /mnt/shared/New_folder(2).But I am getting some error like this [CODE] my java code is [CODE] my xml code THIS UNDER ANY LAYOUT [CODE] By doing this my app is not running .I have displayed my songs in a listview .So what changes will ...
android|android-studio|mp3|media-player|genymotion
0
2016-04-17T14:42:31.877Z
2,016
4
14
6
576
2
434
40
5
3
true
false
false
false
false
false
zero
36,678,014
JsonMappingExcept with Objectify on android side
<p>I am using Objectify for the following schema: Owner, Dog, Toys</p> <pre><code>@Entity Owner{ @Id
 private Long id;
 private String name; } @Entity
 public class Dog {
 @Id 
 private Long id; 
 private String name; @Load 
 @Parent
 private Ref&lt;Own...
I am using Objectify for the following schema: Owner, Dog, Toys [CODE] For adding a Toy I use [CODE] On the android end when I try to add a toy (using the Toy entity and so with Dog and Owner included) I get the error [CODE] To be complete, here is my endpoint for adding Toys [CODE]
android|google-app-engine|google-cloud-endpoints|objectify
0
2016-04-17T14:46:56.220Z
2,016
4
14
6
23
0
283
48
4
4
true
true
false
false
false
false
zero
36,678,032
SearchView doesn't show custom suggestions
<p>I have a problem with using SearchView. I would like to open an activity and perform search from toolbar by tapping "magnifying glass". Unfortunately no suggestions show up when I type...</p> <p>This is what I have:</p> <p><strong>Manifest.xml</strong></p> <pre><code>&lt;activity android:name=".SearchableActivity...
I have a problem with using SearchView. I would like to open an activity and perform search from toolbar by tapping "magnifying glass". Unfortunately no suggestions show up when I type... This is what I have: Manifest.xml [CODE] SearchableActivity.java [CODE] searchable.xml [CODE] menu_profile.xml [CODE] MyCustomSearch...
android|android-contentprovider|searchview
1
2016-04-17T14:48:20.377Z
2,016
4
14
6
2,106
1
378
42
3
5
true
false
false
false
false
false
low
36,678,112
Got force close in SongsManager
<p>i am developing a simple media player application but while building the apk in Marshmallow API 23 my applicatioin crashes. Here is my code.</p> <pre><code>if (home.listFiles(new FileExtensionFilter()).length &gt; 0) { for (File file : home.listFiles(new FileExtensionFilter())) { HashMap...
i am developing a simple media player application but while building the apk in Marshmallow API 23 my applicatioin crashes. Here is my code. [CODE] And this is the full code of SongsManager [CODE] I am following the tutorial. http://www.androidhive.info/2012/03/android-building-audio-player-tutorial/# Please help me ou...
android-studio|android-mediaplayer|media
0
2016-04-17T14:55:10.023Z
2,016
4
14
6
162
2
341
31
3
2
true
false
false
false
false
false
zero
36,678,121
Reduce many async Observable<List> into one Observable<List>
<p>So here is what I'm trying to do:<br> for each event i want to call some <code>Service.getList()</code> 10 times, then merge the 10 lists into one.</p> <p>Now I tried this two ways, they both work in UTs but fail in real app (I'm guessing I am not doing correctly the reduce operation given async http calls in real ...
So here is what I'm trying to do: for each event i want to call some Service.getList() 10 times, then merge the 10 lists into one. Now I tried this two ways, they both work in UTs but fail in real app (I'm guessing I am not doing correctly the reduce operation given async http calls in real app). For both cases I canno...
java|multithreading|rx-java|reactive-programming|rx-android
1
2016-04-17T14:55:47.400Z
2,016
4
14
6
885
3
596
60
5
4
true
false
false
false
false
false
low
36,678,197
Connect USB Device to Bluestack
<p>I have drone( DJI Phantom 3), and in order to fly it correctly DJI provides an App for IOS and Android("DJI Go"). The thing is that I have a Kolina k100 android phone(a cheap chineese one), and I can install the app perfectly, and it runs quite well with an only exception. When I put the Drone on video-recording mod...
I have drone( DJI Phantom 3), and in order to fly it correctly DJI provides an App for IOS and Android("DJI Go"). The thing is that I have a Kolina k100 android phone(a cheap chineese one), and I can install the app perfectly, and it runs quite well with an only exception. When I put the Drone on video-recording mode, ...
android|usb|bluestacks
3
2016-04-17T15:02:42.210Z
2,016
4
15
6
6,248
0
995
31
3
0
false
true
true
false
false
false
low
36,678,232
How to open external url in an internal WebView as default?
<p>So I have a WebView Application in Android Studio and I want that when I open an Url (from for example the Google App) it will open it in my App as default. Here is a part of my code:</p> <pre><code>String url = "http://google.com"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save...
So I have a WebView Application in Android Studio and I want that when I open an Url (from for example the Google App) it will open it in my App as default. Here is a part of my code: [CODE]
android|webview|android-webview|default
0
2016-04-17T15:05:43.040Z
2,016
4
15
6
1,013
1
190
59
4
1
true
false
false
false
false
false
zero
36,678,249
Can't run my self compiled rsync on android What does Illegal Instruction 132 mean?
<p>I'm trying to learn by compiling the <code>rsync</code> source to port to the phone. I've followed some different threads on compiling using the <code>ndk</code>. My <code>lg g4</code> has the latest marshmallow update from <code>Verizon</code>. Here's a list of things I've learned so far:</p> <ol> <li>One cannot h...
I'm trying to learn by compiling the rsync source to port to the phone. I've followed some different threads on compiling using the ndk . My lg g4 has the latest marshmallow update from Verizon . Here's a list of things I've learned so far: One cannot have an executables run on the sdcard. /data/local/tmp doesn't appea...
android|android-ndk|rsync
0
2016-04-17T15:06:56.633Z
2,016
4
15
6
199
0
1,198
83
3
0
false
true
false
false
false
false
zero
36,678,372
Android: How to detect an application has been swiped out?
<p>Basically, I'd like to detect that my application has been quit to perform some cleanup.</p> <p>I read few posts on the subject and if we look at the <a href="http://developer.android.com/training/basics/activity-lifecycle/index.html" rel="nofollow noreferrer">activity lifecycle</a>, there is not clear EXIT event, ...
Basically, I'd like to detect that my application has been quit to perform some cleanup. I read few posts on the subject and if we look at the activity lifecycle , there is not clear EXIT event, except when the system itself decides to destroy your application which causes to call onDestroy() . Anyway, I'm surprised th...
android
1
2016-04-17T15:18:33.457Z
2,016
4
15
6
128
0
859
58
1
0
false
true
false
false
false
false
low
36,678,466
Android: weird reaction when adding views in RecyclerView
<p>I'm using a custom recyclerView that can have a footer and a header, that shoudnt influence the animations tho, here is a video of what's happening: <a href="http://www.videosprout.com/video?id=00fae6ac-39ff-47b6-b981-803d2773b67b" rel="nofollow">http://www.videosprout.com/video?id=00fae6ac-39ff-47b6-b981-803d2773b6...
I'm using a custom recyclerView that can have a footer and a header, that shoudnt influence the animations tho, here is a video of what's happening: http://www.videosprout.com/video?id=00fae6ac-39ff-47b6-b981-803d2773b67b Why is every view moving one position back and then back to where it was instead of not doing that...
java|android|android-recyclerview
2
2016-04-17T15:28:06.970Z
2,016
4
15
6
128
1
492
57
3
3
true
false
false
false
false
false
low
36,678,537
Browser Not Being Launched From Service
<p>I am trying to launch a browser from within my service class but it doesn't work. Below is sample code from my service class's onStartCommand method:</p> <pre><code> Toast.makeText(context, "Service called", Toast.LENGTH_SHORT).show(); final MyDBHandler dbHandler = new MyDBHandler(context, null, null, 1); ...
I am trying to launch a browser from within my service class but it doesn't work. Below is sample code from my service class's onStartCommand method: [CODE] It works fine up to the last Toast displaying the correct URL, but it doesn't launch the browser. How can I correct this please? And how can I make the interaction...
android
-2
2016-04-17T15:35:19.853Z
2,016
4
15
6
24
1
448
39
1
1
true
false
false
false
false
true
negative
36,678,605
how to convert an activity into a fragment to be used in tab layout
<p>here is an activity i was trying to convert to a fragment, so i could use it in a sliding tab layout as a fragment. </p> <pre><code>package com.example.hpuser.speechtotext; public class MainActivity extends AppCompatActivity { TextView resultTEXT; @Override protected void onCreate(Bundle savedInstanceState) { su...
here is an activity i was trying to convert to a fragment, so i could use it in a sliding tab layout as a fragment. [CODE] here is the actual fragment of the activity i was coding up. the app is crashing though, any help? [CODE]
android|android-fragments
-2
2016-04-17T15:41:44.293Z
2,016
4
15
6
389
1
228
67
2
2
true
false
false
false
false
true
negative
36,678,748
Android studio Progress bar and count down timer
<p>I want to run the app for ten seconds and the progress starting from the begin. Which should be the values of </p> <pre><code>progressBar.setProgress(100); myCountDownTimer = new MyCountDownTimer(10000, 1000); </code></pre> <p>and </p> <pre><code> int progress = (int) (millisUntilFinished/100); </code></pre> <p...
I want to run the app for ten seconds and the progress starting from the begin. Which should be the values of [CODE] and [CODE] Here is the code i run: [CODE]
java|android|progress-bar|countdowntimer
1
2016-04-17T15:54:00.100Z
2,016
4
15
6
3,189
0
158
48
4
3
true
true
true
false
false
false
low
36,678,776
Android Broadcastreceiver why popup is launching
<p>Ok, there is stated id <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html#onReceive(android.content.Context,%20android.content.Intent)" rel="nofollow">documentation</a>:<br></p> <blockquote> <p>You cannot launch a popup dialog in your implementation of onReceive(). <br></p...
Ok, there is stated id documentation : You cannot launch a popup dialog in your implementation of onReceive(). Nevertheless, this code is beatufilly working: [CODE] Why is it working? What am I missing in documentation?? Thanks.
android|dialog|popup|broadcastreceiver
0
2016-04-17T15:56:13.767Z
2,016
4
15
6
660
2
228
48
4
1
true
false
false
false
false
false
zero
36,678,980
Why am I getting "cannot resolve symbol urlDrawable" in this class
<p>I'm trying to display &lt;img&gt; tags in json string and I using the accepted answer in <a href="https://stackoverflow.com/a/28521900/6181476">this question</a> but Android Studio is complaining "cannot resolve symbol <code>urlDrawable</code></p> <p>Please can anybody tell me why this is happening and how to fix ...
I'm trying to display <img> tags in json string and I using the accepted answer in this question but Android Studio is complaining "cannot resolve symbol urlDrawable Please can anybody tell me why this is happening and how to fix it? UILImageGetter [CODE]
android|android-studio|android-volley|android-json
0
2016-04-17T16:14:14.550Z
2,016
4
16
6
854
2
255
66
4
1
true
false
false
false
false
false
zero
36,679,086
How to Run Kivy Python programs on PC?
<p>I Need to develop a program which runs on android using python. For this I heard kivy is the best module available. So I tried to install and run kivy on my pc. Mine is a windows 7 pc.</p> <p>To achieve this I did the following :</p> <ol> <li>I downloaded the package file from <a href="https://pypi.python.org/pypi...
I Need to develop a program which runs on android using python. For this I heard kivy is the best module available. So I tried to install and run kivy on my pc. Mine is a windows 7 pc. To achieve this I did the following : I downloaded the package file from https://pypi.python.org/pypi/Kivy#downloads Then I opened the ...
android|python|kivy
0
2016-04-17T16:24:07.033Z
2,016
4
16
6
1,674
1
935
38
3
4
true
false
false
false
false
false
zero
36,679,171
Open bookmarks in chrome onClick
<p>I have made an app where the user can access bookmarks in chrome using an onClick event. However when I click my button I get a runtime saying </p> <p><code>PID: 12500 java.lang.IllegalStateException: Could not execute method for android:onClick</code></p...
I have made an app where the user can access bookmarks in chrome using an onClick event. However when I click my button I get a runtime saying PID: 12500 java.lang.IllegalStateException: Could not execute method for android:onClick Caused by: java.lang.reflect Not sure what the issue is here. I have also tried [CODE] M...
java|android|google-chrome|android-studio
0
2016-04-17T16:32:00.373Z
2,016
4
16
6
106
0
358
32
4
3
true
true
false
false
false
false
zero
36,679,225
Android Error: duplicate entry
<p>While using a project as a dependency I'm having trouble.</p> <pre><code>dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':androidCommUnits') compile project(':share') compile project(':qrcodeLibrary') compile project(':viewPagerIndicatorLibrary') compile pr...
While using a project as a dependency I'm having trouble. [CODE] I get this Error: [CODE] This is one class I see duplicate How to solve this problem?
android|gradle
0
2016-04-17T16:36:48.420Z
2,016
4
16
6
631
0
150
30
2
2
true
true
false
false
false
false
zero
36,679,257
Opening files from Google Drive in my Android app by file extension
<p>So I managed to get my app to open files with a specific extension from file managers, but is it possible for users to tap on the file in Google Drive and have it open in the same way? I mean I know it's possible, other apps do it but what would be the steps to do this? I'm not interested in my app being able to man...
So I managed to get my app to open files with a specific extension from file managers, but is it possible for users to tap on the file in Google Drive and have it open in the same way? I mean I know it's possible, other apps do it but what would be the steps to do this? I'm not interested in my app being able to manipu...
android
1
2016-04-17T16:40:37.953Z
2,016
4
16
6
2,251
1
532
67
1
1
true
false
false
false
false
false
low
36,679,274
Visual Studio 2015 does not work with Apache Cordova 8.1
<p>I'm stuck with trying to make Apache Cordova work in Visual studio 2015 Enterprise update 2. It is not seeing android and java. It refused to install Android setup 19 and 21. I instead android studio and from there, installed API level 19 and 21, but visual studio is still not seeing it. After creating a new project...
I'm stuck with trying to make Apache Cordova work in Visual studio 2015 Enterprise update 2. It is not seeing android and java. It refused to install Android setup 19 and 21. I instead android studio and from there, installed API level 19 and 21, but visual studio is still not seeing it. After creating a new project, w...
android|java-7|visual-studio-cordova
0
2016-04-17T16:42:20.457Z
2,016
4
16
6
85
1
1,063
56
3
0
false
false
false
false
false
false
zero
36,679,368
Building error in Android Studio after including Google Cloud Client library
<p>While trying to work with <a href="https://cloud.google.com/storage/docs/json_api/v1/libraries#gcloud-libraries" rel="nofollow">Google Cloud Storage API</a>, I added this dependency: com.google.apis:google-api-services-storage:v1-rev17-1.19.0 However, I'm getting the following build error:</p> <pre><code>Error:Exec...
While trying to work with Google Cloud Storage API , I added this dependency: com.google.apis:google-api-services-storage:v1-rev17-1.19.0 However, I'm getting the following build error: [CODE] Here's my list of dependencies: [CODE] What dependency exactly should be excluded for this javax/annotation/CheckForNull.class?...
java|android|google-cloud-storage|google-compute-engine
1
2016-04-17T16:49:45.843Z
2,016
4
16
6
450
1
328
76
4
2
true
false
false
false
false
false
low
36,679,418
jsoup select doesn't use the whole html?
<p>What is my fault?</p> <p>Android code:</p> <pre><code>ArrayList&lt;String&gt; plan_table = new ArrayList&lt;&gt;(); Element table = doc.select("table").get(1); //First Table: Untis Banner and School Data (Adress, etc.); Second Table: Plan -&gt; So load second plan (index 1) Elements rows = table.select("tr"); Log....
What is my fault? Android code: [CODE] I didn't insert the whole java code but this is where i get my problem... At Line 4 it prints out the html code with the td's and tr's but it stops suddenly. The last line of the output is: [CODE] Is there anything wrong? I already checked the source website...
java|android|html|networking|jsoup
-1
2016-04-17T16:53:43.877Z
2,016
4
16
6
204
1
300
40
5
2
true
false
false
false
false
true
negative
36,679,453
Opencv 3.1.0 Android Hide Camera Preview
<p>I am trying to hide android camera preview in opencv. I am using opencv3.1.0 for android(java binding library) with xamarin c#. I look up all questions here but i couldt do this. In my view I have org.opencv.android.JavaCameraView in my Activity onCreate method I get it with CameraBridgeViewBase if I change visibili...
I am trying to hide android camera preview in opencv. I am using opencv3.1.0 for android(java binding library) with xamarin c#. I look up all questions here but i couldt do this. In my view I have org.opencv.android.JavaCameraView in my Activity onCreate method I get it with CameraBridgeViewBase if I change visibility ...
java|android|opencv|xamarin|opencv4android
0
2016-04-17T16:57:05.210Z
2,016
4
16
6
1,568
1
668
40
5
2
true
false
false
false
false
false
zero
36,679,539
Parsing JSON array of objects in android
<p>I want to get the lineId, destinationName and timeToStation from this api call <a href="https://api.tfl.gov.uk/Line/25,86,w19/Arrivals?stopPointId=490009219W&amp;app_id=&amp;app_key=" rel="nofollow">https://api.tfl.gov.uk/Line/25,86,w19/Arrivals?stopPointId=490009219W&amp;app_id=&amp;app_key=</a> Can someone help wi...
I want to get the lineId, destinationName and timeToStation from this api call https://api.tfl.gov.uk/Line/25,86,w19/Arrivals?stopPointId=490009219W&app_id=&app_key= Can someone help with example please? [ { "$type": "Tfl.Api.Presentation.Entities.Prediction, Tfl.Api.Presentation.Entities", "id": "-480785385", "operati...
java|android|json|api
0
2016-04-17T17:03:05.193Z
2,016
4
17
6
4,454
1
2,060
40
4
1
true
false
true
false
false
false
zero
36,679,542
"No adapter attached; skipping layout" on a fragment
<pre><code>public class WorkFragment extends Fragment { List&lt;CardViewItem&gt; items = new ArrayList&lt;&gt;(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d("FRAGMENT", "Work Fragment started"); TypedArray icons = getResources().obtainTypedArray(...
[CODE] Gives me [CODE] I have tried out all the solutions I had found (setting an empty adapter, moving the code elswhere, using a seperate thread) but to no avail. This should work on a normal activity so I guess maybe I'm doing something wrong.
android|android-fragments|android-recyclerview|android-adapter
0
2016-04-17T17:03:19.033Z
2,016
4
17
6
723
1
246
52
4
2
true
false
false
false
false
false
zero
36,679,552
Attempt to invoke virtual method 'Bundle.getParcelableArrayList(java.lang.String)' on a null object reference
<p>I have MainActivity managing two fragments.from one i am choosing song and from another i am playing it. But when i am trying to run it i am getting runtimeException.</p> <p>Code for fragment current_song.java :</p> <pre><code>package com.example.mandar.mediaplayer; import android.content.Context; import android....
I have MainActivity managing two fragments.from one i am choosing song and from another i am playing it. But when i am trying to run it i am getting runtimeException. Code for fragment current_song.java : [CODE] Code for fragment songs.java : [CODE] code for fragment_current_song.xml [CODE] code for fragment_songs.xml ...
android|listview|android-fragments|android-studio|android-mediaplayer
0
2016-04-17T17:04:07.850Z
2,016
4
17
6
1,450
1
345
109
5
5
true
false
false
false
false
false
zero
36,679,553
List of TextViews in Listview
<p>I have a question about List in Listview, </p> <p>what I want to achieve is to create a listView with multiple TextViews in each item(like another listview) I don't know how many elements would be in each items</p> <p>From what I know creating listview in listview is a bad idea</p> <p>So I want to create a normal...
I have a question about List in Listview, what I want to achieve is to create a listView with multiple TextViews in each item(like another listview) I don't know how many elements would be in each items From what I know creating listview in listview is a bad idea So I want to create a normal listview (with item1 / item...
android|listview|android-linearlayout
0
2016-04-17T17:04:14.403Z
2,016
4
17
6
360
1
609
29
3
1
true
false
false
false
false
false
zero
36,679,578
Getting crash on android 23.0.1
<p>I tested this code on an emulator which has android marshmallow, there is no crash on emulator . I can't see logcat error because i am sending debug apk to my friend and he is telling me there is a crash . Can you guys guess whats the problem. its simple two lines code. crash happens on button click and code inside ...
I tested this code on an emulator which has android marshmallow, there is no crash on emulator . I can't see logcat error because i am sending debug apk to my friend and he is telling me there is a crash . Can you guys guess whats the problem. its simple two lines code. crash happens on button click and code inside it ...
android|android-6.0-marshmallow
0
2016-04-17T17:06:10.897Z
2,016
4
17
6
24
0
432
31
2
2
true
true
false
false
false
false
zero
36,679,628
Applying a custom style to a spinner
<p>I am trying to apply a custom style over a spinner:</p> <pre><code>Spinner classClassification = (Spinner) findViewById(R.id.classClassification); Resources res = getResources(); ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.spinner_custom, res.getStringArray(classArrayReso...
I am trying to apply a custom style over a spinner: [CODE] in spinner_custom: [CODE] in spinner_dropdown_layout: [CODE] And in styles : [CODE] But no change in above takes effect in the outcome, what am I doing wrong?
android|android-layout|android-spinner
1
2016-04-17T17:10:04.007Z
2,016
4
17
6
426
1
217
36
3
4
true
false
false
false
false
false
low
36,679,682
Why does this simple android app gets crash after using ListView?
<p>I wrote a android app to understand the concept of ListView.</p> <p>The MainActivity.java file is :</p> <pre><code>package com.example.swasik.firstday; import android.os.ParcelFileDescriptor; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import and...
I wrote a android app to understand the concept of ListView. The MainActivity.java file is : [CODE] The activity_main.xml file is : [CODE] The AndroidManifest.xml file is : [CODE] On running the app on mobile is displays the message : "Unfortunately App has stopped" How to fix this? The logcat file shows : [CODE]
android|listview
0
2016-04-17T17:15:12.050Z
2,016
4
17
6
179
3
314
65
2
4
true
false
false
false
false
false
zero