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,850,641 | PlaceAutocomplete widget doesn't work in Android 4.1 | <p><a href="http://googlegeodevelopers.blogspot.com/2015/12/autocomplete-widget-and-updated-place.html" rel="nofollow">PlaceAutocomplete widget</a> works fine in Android 5.0, but nothing happens with 4.1 when openAutocomplete has been called. No errors in LogCat. onActivityResult performed, but with null in data param.... | PlaceAutocomplete widget works fine in Android 5.0, but nothing happens with 4.1 when openAutocomplete has been called. No errors in LogCat. onActivityResult performed, but with null in data param. What is the problem? Code: [CODE] p.s. sorry for my English | android|google-maps|kotlin | 0 | 2016-04-25T20:39:31.387Z | 2,016 | 4 | 20 | 0 | 173 | 0 | 257 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
36,850,674 | Make projectile go to destination in game from scratch | <p>I realize this question has been answered in different ways, and my current solution is based on a previous answer, but it doesn't quite work for me and I can't figure out why.</p>
<pre><code> float targetX = bullet.getTarget().x;
float targetY = bullet.getTarget().y;
float bullet... | I realize this question has been answered in different ways, and my current solution is based on a previous answer, but it doesn't quite work for me and I can't figure out why. [CODE] Here is the results in action: Animated Gif Of The Bullet Going The (Almost Right) Direction Is there a problem with my math? | android|math|vector|projectile | 0 | 2016-04-25T20:41:08.850Z | 2,016 | 4 | 20 | 0 | 62 | 1 | 309 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
36,850,750 | Android JSON conversion issue | <p>[Here is the string failing to convert] and<a href="http://i.stack.imgur.com/ARmKP.png" rel="nofollow">1</a>[EDIT: Here is the logcat of my error]<a href="http://i.stack.imgur.com/GL0zC.png" rel="nofollow">2</a> I'm currently trying to implement a login for my app, which has a login, login request, register and regi... | [Here is the string failing to convert] and 1 [EDIT: Here is the logcat of my error] 2 I'm currently trying to implement a login for my app, which has a login, login request, register and register request activities. In my register activity,I send the user data back to my database, but when I try to do this on my devic... | java|android|mysql|json | 0 | 2016-04-25T20:46:35.110Z | 2,016 | 4 | 20 | 0 | 142 | 1 | 622 | 29 | 4 | 1 | true | false | false | false | false | false | zero |
36,850,779 | java programming: logical operators and functions in android application | <p>I have a functionality in my android application in which i can add phone contacts in layout dynamically and save the contact name and number in two arrays so it could be stored in shared preferences.</p>
<p><br/><br/>
The conditions of this functionality is <br/><br/>
1. while adding a new contact it should be che... | I have a functionality in my android application in which i can add phone contacts in layout dynamically and save the contact name and number in two arrays so it could be stored in shared preferences. The conditions of this functionality is 1. while adding a new contact it should be checked if we have the same contact ... | java|android|arrays|logical-operators | -1 | 2016-04-25T20:48:33.227Z | 2,016 | 4 | 20 | 0 | 567 | 2 | 1,534 | 72 | 4 | 2 | true | false | false | false | false | true | negative |
36,850,848 | How to pass User_Id to every activity in android? | <p>I am trying to build an android application. After logged in to the application I want to use User_Id for all activities for getting unique data based on that user_id. How it is possible? And what changes i want to make in this code to get user_id in all activities?</p>
<p>LoginActivity.java</p>
<pre><code> ... | I am trying to build an android application. After logged in to the application I want to use User_Id for all activities for getting unique data based on that user_id. How it is possible? And what changes i want to make in this code to get user_id in all activities? LoginActivity.java [CODE] loginold.php [CODE] | java|php|android|mysql | 0 | 2016-04-25T20:52:53.043Z | 2,016 | 4 | 20 | 0 | 678 | 2 | 312 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
36,850,956 | Android: Connection to http://10.0.2.2 refused | <p>So I'm trying to connect my android app to a database on an apache server hosted on wamp but I am currently having no luck. I keep getting the ol 'Connection to <a href="http://10.0.2.2" rel="nofollow">http://10.0.2.2</a> refused' error. I have the necessary permissions in the androidmanifest to connect to the inter... | So I'm trying to connect my android app to a database on an apache server hosted on wamp but I am currently having no luck. I keep getting the ol 'Connection to http://10.0.2.2 refused' error. I have the necessary permissions in the androidmanifest to connect to the internet and I've tried adding the ports 80 to the ip... | android|database|apache|http|wamp | 0 | 2016-04-25T20:59:06.237Z | 2,016 | 4 | 20 | 0 | 782 | 0 | 688 | 46 | 5 | 2 | true | true | false | false | false | false | zero |
36,850,984 | Search contacts provider for phone numbers in multiple formats? | <p>I've been working on a block of code to let the user search (character by character using an AutoCompleteTextView) contacts by name, email or phone number. I've worked out the below code:</p>
<pre><code>// General contact data, so we have to get the DATA1 attribute and use MIMETYPE
// to figure ... | I've been working on a block of code to let the user search (character by character using an AutoCompleteTextView) contacts by name, email or phone number. I've worked out the below code: [CODE] There is a problem with the phone number search, however. In contacts, phone numbers are in many different formats: +10123456... | android | 2 | 2016-04-25T21:01:17.237Z | 2,016 | 4 | 21 | 0 | 1,338 | 1 | 1,129 | 63 | 1 | 1 | true | false | false | false | false | false | low |
36,851,022 | How to select JSON with results? | <p>Here is my JSON file:</p>
<pre><code>{
"server_response": [{
"bmw": "",
"mercedes": "",
"honda": "civic",
"toyota": "corolla",
"gmc": "",
"chevy": ""
}]
}
</code></pre>
<p>Here is my Android code:</p>
<pre><code>try {
JSONObject jsonResponse ... | Here is my JSON file: [CODE] Here is my Android code: [CODE] The problem is in the Android code as you can see. I want it to only get the JSON that is not empty , for example honda and toyota. How can replace {variable name} with in this case, honda and then replace {problem is here} with the json result that's not bla... | android|json|listview | 0 | 2016-04-25T21:03:09.950Z | 2,016 | 4 | 21 | 0 | 158 | 2 | 444 | 32 | 3 | 2 | true | false | false | false | false | false | zero |
36,851,024 | Android toolbar SearchView is automatically opening keyboard | <p>I am having a weird problem. In my MainActivity toolbar I have an action search and this is how I use it:</p>
<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, ... | I am having a weird problem. In my MainActivity toolbar I have an action search and this is how I use it: [CODE] but the problem here is that when my app starts the keyboard pops up before I even click the search button in the toolbar. I tried to force the keyboard to hide in the manifest I added this to my MainActivit... | android|keyboard|android-softkeyboard | 2 | 2016-04-25T21:03:13.630Z | 2,016 | 4 | 21 | 0 | 2,888 | 1 | 477 | 60 | 3 | 3 | true | false | true | false | false | false | low |
36,851,063 | ListView's recycling mechanism and ViewHolder conflict | <p>I have a ListView with 5+ types of views in rows, the problem is:
I have 18 rows 10 is visible on screen, when i scroll down it's load:
1,2,3,4,5,6,7,8,9,10,<strong>1</strong>,<strong>2</strong>,<strong>3</strong>,11,<strong>4</strong>,<strong>5</strong>,<strong>6</strong>,<strong>7</strong>
If I do it without ViewH... | I have a ListView with 5+ types of views in rows, the problem is: I have 18 rows 10 is visible on screen, when i scroll down it's load: 1,2,3,4,5,6,7,8,9,10, 1 , 2 , 3 ,11, 4 , 5 , 6 , 7 If I do it without ViewHolder everything works fine but all my EditText's is gone because it's creating new view every time and I nee... | android|listview|android-recyclerview|android-viewholder | 0 | 2016-04-25T21:05:38.367Z | 2,016 | 4 | 21 | 0 | 600 | 2 | 739 | 54 | 4 | 3 | true | false | false | false | false | false | zero |
36,851,288 | Stop the execution for a period of time in java | <p>Hello i am making a quiz game and i have a problem i will try to discribe in a simplier way below.I have a question and 4 buttons each one represents an answer.When i click an answer i want the chosen button to change color to orange for 2 seconds and then goes green if the answer is correct and red if the answer is... | Hello i am making a quiz game and i have a problem i will try to discribe in a simplier way below.I have a question and 4 buttons each one represents an answer.When i click an answer i want the chosen button to change color to orange for 2 seconds and then goes green if the answer is correct and red if the answer is wr... | java|android | 0 | 2016-04-25T21:20:37.877Z | 2,016 | 4 | 21 | 0 | 219 | 1 | 1,073 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
36,851,299 | Performs daily android studio | <p>I am trying to run this everyday in the morning. How I can do so that for me it makes once a day. Below is my code but it does not work.</p>
<pre><code>public final class FetchMail extends TimerTask {
DatabaseHelper myDb;
SQLiteDatabase db = myDb.getReadableDatabase();
public static void main (String... arguments... | I am trying to run this everyday in the morning. How I can do so that for me it makes once a day. Below is my code but it does not work. [CODE] I have to add something to MainActivity? Because MainActivity is the first page. | java|android|tsql|android-studio | 1 | 2016-04-25T21:21:16.497Z | 2,016 | 4 | 21 | 0 | 32 | 1 | 224 | 29 | 4 | 1 | true | false | false | false | false | false | low |
36,851,327 | Android facebook sdk 4 post text to wall | <p>I want to share only text via facebook sdk. I researched more time but generally use <strong>ShareLinkContent</strong> class. Its working but i dont want to add link only post text to user wall via to <strong>ShareButton</strong>. How i can do?</p>
<p>Code:</p>
<pre><code>ShareLinkContent content = new ShareLinkCo... | I want to share only text via facebook sdk. I researched more time but generally use ShareLinkContent class. Its working but i dont want to add link only post text to user wall via to ShareButton . How i can do? Code: [CODE] FacebookSDK: 4.11.0 | android|facebook|text|facebook-wall | 0 | 2016-04-25T21:23:05.217Z | 2,016 | 4 | 21 | 0 | 229 | 0 | 244 | 40 | 4 | 1 | true | true | false | false | false | false | zero |
36,851,339 | How to change the floated label color in TextInputLayout | <p>I'm trying to change the color of the floated label "Email" as seen in the screenshot.</p>
<p><a href="https://i.stack.imgur.com/TEtKR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TEtKR.png" alt="Login Screen with wrong floated label color"></a></p>
<p>Here is the contents of the layout XML:<... | I'm trying to change the color of the floated label "Email" as seen in the screenshot. Here is the contents of the layout XML: [CODE] I would like to change that floated label color the same as the hint color. Any help appreciated. | android | 0 | 2016-04-25T21:24:07.220Z | 2,016 | 4 | 21 | 0 | 235 | 1 | 231 | 56 | 1 | 1 | true | false | false | false | false | false | zero |
36,851,359 | android overlay several images | <p>I'm trying to overlay up to around 200 images. I'm using the following code but on attempting to overlay the 3rd image, the first 2 go away and all that I'm shown is only the 3rd image. In reality, when I'm merging the 50th image, I'm really only dealing w/ 2 images: the one that has 49 images overlayed and the new ... | I'm trying to overlay up to around 200 images. I'm using the following code but on attempting to overlay the 3rd image, the first 2 go away and all that I'm shown is only the 3rd image. In reality, when I'm merging the 50th image, I'm really only dealing w/ 2 images: the one that has 49 images overlayed and the new ima... | java|android | 1 | 2016-04-25T21:26:01.340Z | 2,016 | 4 | 21 | 0 | 37 | 0 | 785 | 30 | 2 | 1 | true | true | false | false | false | false | low |
36,851,418 | Android Studio 2.0 Upgrade Issue | <p>I upgraded to Android Studio 2.0 and for some reason cannot resolve this issue</p>
<pre><code>Error:Could not find com.android.support:appcompat-v7:23.3.0.
Required by:
Code:app:unspecified
Please install the Android Support Repository from the Android SDK Manager.
</code></pre>
<p>Open Android SDK Manager</p... | I upgraded to Android Studio 2.0 and for some reason cannot resolve this issue [CODE] Open Android SDK Manager I have the latest version of the support library as well as previous versions, I have deleted the build folder and rebuilt without success. Here is my complete build.gradle [CODE] And here is the SDK Tools ins... | android|android-studio|android-gradle-plugin|android-studio-2.0 | 0 | 2016-04-25T21:30:08.370Z | 2,016 | 4 | 21 | 0 | 1,677 | 0 | 470 | 32 | 4 | 3 | true | true | false | false | false | false | zero |
36,851,455 | CustomListViewAdapter isn't working | <p>I am new to android and making an with toolbar, drawer, navigation list. and I used CustomlistviewAdapter to fill my list with its data.
The code has no errors however when I run the program close once it starts. the problem is coming from the Listview/Adapter part because when I remove it the program run the main a... | I am new to android and making an with toolbar, drawer, navigation list. and I used CustomlistviewAdapter to fill my list with its data. The code has no errors however when I run the program close once it starts. the problem is coming from the Listview/Adapter part because when I remove it the program run the main acti... | android|listview|android-arrayadapter|navigation-drawer|android-studio-2.0 | -1 | 2016-04-25T21:32:25.130Z | 2,016 | 4 | 21 | 0 | 63 | 1 | 559 | 35 | 5 | 4 | true | false | false | false | false | true | negative |
36,851,521 | Using the Glide library to load image to fill up the screen | <p>I am trying load a background Image using the glide library so that it fills up the whole screen. I have the following xml for the layout.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"... | I am trying load a background Image using the glide library so that it fills up the whole screen. I have the following xml for the layout. [CODE] My code for in the activity in which I use the Glide library is [CODE] After running the code the image has white spaces on the left and right of the screen but it fills up t... | java|android|android-glide | 2 | 2016-04-25T21:37:14.590Z | 2,016 | 4 | 21 | 0 | 3,919 | 1 | 446 | 59 | 3 | 2 | true | false | true | false | false | false | low |
36,851,754 | Image not loading in the ImageView from InputStream | <p>I'm trying to obtain the images from the contacts ,so the problem is that image in not being showed.I have found the code on <a href="http://developer.android.com/reference/android/provider/ContactsContract.Contacts.Photo.html" rel="nofollow">ContactsContract.Contacts.Photo</a> ,but I'm unable to load id.</p>
<pre>... | I'm trying to obtain the images from the contacts ,so the problem is that image in not being showed.I have found the code on ContactsContract.Contacts.Photo ,but I'm unable to load id. [CODE] | java|android | 0 | 2016-04-25T21:52:33.847Z | 2,016 | 4 | 21 | 0 | 33 | 0 | 191 | 51 | 2 | 1 | true | true | false | false | false | false | zero |
36,851,863 | How can I delete some specific style in sub-item spinner in android? | <p>I want to add spinner on my android project. I add some style by using shape tags. Also I add an arrow but cannot delete them in sub-items. How can I do that?</p>
<p>Looks like this:</p>
<p><a href="http://i.stack.imgur.com/Jpy8W.png" rel="nofollow">spinner</a>
<a href="http://i.stack.imgur.com/z92Se.png" rel="nof... | I want to add spinner on my android project. I add some style by using shape tags. Also I add an arrow but cannot delete them in sub-items. How can I do that? Looks like this: spinner spinner2 My StartingTextActivity.java [CODE] spinner_item.xml [CODE] activity_startingtext.xml [CODE] edit_spinner.xml [CODE] Thank you ... | android|spinner|android-spinner | 1 | 2016-04-25T22:00:02.043Z | 2,016 | 4 | 22 | 0 | 233 | 1 | 331 | 68 | 3 | 4 | true | false | false | false | false | false | low |
36,851,892 | java.lang.SecurityException: caller uid XXXXX lacks any of android.permission.GET_ACCOUNTS | <p>Note: This is not a duplicate, I tried a lot of solutions in similar StackOverflow questions and they didn't work in my case. Thank you for any help.</p>
<p>This crash appears to only happen on devices running an Android version older than 6.0. For example, it is crashing on an XT1032 running Android version 5.1. I... | Note: This is not a duplicate, I tried a lot of solutions in similar StackOverflow questions and they didn't work in my case. Thank you for any help. This crash appears to only happen on devices running an Android version older than 6.0. For example, it is crashing on an XT1032 running Android version 5.1. In that case... | android|android-securityexception | 2 | 2016-04-25T22:02:00.420Z | 2,016 | 4 | 22 | 0 | 4,816 | 1 | 1,806 | 90 | 2 | 5 | true | false | true | false | false | false | low |
36,851,947 | Null Pointer Exception for android widget EditText? | <p>I am getting a the error in the onClick method when the EditText object is referenced. </p>
<pre><code>public class messageActivity extends AppCompatActivity {
EditText editText;
Button button;
Logic logic;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanc... | I am getting a the error in the onClick method when the EditText object is referenced. [CODE] Here is the XML for the EditText widget in my activity: [CODE] | java|android|xml | -4 | 2016-04-25T22:06:33.667Z | 2,016 | 4 | 22 | 0 | 48 | 1 | 156 | 51 | 3 | 2 | true | false | false | false | false | true | negative |
36,851,960 | How to add markers to Google Maps after the map has already been loaded? | <p>I'm working on a simple phoneGap app - I'm pacing around my house to collect coordinates:</p>
<pre><code>var positions = [
{lat:123.12313123, lng:123.123345131},
{lat:123.12313123, lng:123.123345131}
]
</code></pre>
<p>I'm checking out the <a href="https://developers.google.com/maps/documentation/javascript/ex... | I'm working on a simple phoneGap app - I'm pacing around my house to collect coordinates: [CODE] I'm checking out the documentation here which works flawlessly. In that example, the script defer async from what I understand fires when initMap() is created. initMap() has one marker. This works flawlessly in my app, show... | javascript|android|cordova|google-maps|google-maps-api-3 | 0 | 2016-04-25T22:07:21.590Z | 2,016 | 4 | 22 | 0 | 2,368 | 2 | 697 | 72 | 5 | 3 | true | false | false | false | false | false | zero |
36,852,043 | Not getting JSON response with GET Request | <p>I'm creating Rest Services for Android application and trying to fetch some data from DB, but i'm getting empty JSON, actually i'm getting nothing, but also i'm getting no error there.</p>
<p>Here is the structure of my DB:</p>
<p><a href="https://i.stack.imgur.com/keBc6.png" rel="nofollow noreferrer"><img src="ht... | I'm creating Rest Services for Android application and trying to fetch some data from DB, but i'm getting empty JSON, actually i'm getting nothing, but also i'm getting no error there. Here is the structure of my DB: This is my function where i'm executing query: [CODE] And here is the GET request: [CODE] So when i try... | php|android|mysql|json | 0 | 2016-04-25T22:13:22.037Z | 2,016 | 4 | 22 | 0 | 219 | 1 | 383 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
36,852,171 | What is Concrete Call and how is it different from Reflection? | <p>I was studying about the <a href="http://google.github.io/dagger/" rel="nofollow noreferrer">Dagger 2</a> - dependency injection library for Android - and in many articles, when the autor compares the Dagger 2 with it's older version ( Dagger ), He says this:</p>
<blockquote>
<p>(...)</p>
<p>The new release, as prom... | I was studying about the Dagger 2 - dependency injection library for Android - and in many articles, when the autor compares the Dagger 2 with it's older version ( Dagger ), He says this: (...) The new release, as promised, addresses many of the problems of the original: No more reflection — everything is done as concr... | java|android|reflection|dagger|dagger-2 | 0 | 2016-04-25T22:24:35.887Z | 2,016 | 4 | 22 | 0 | 132 | 2 | 779 | 62 | 5 | 0 | false | false | false | false | false | false | zero |
36,852,261 | Android SMS BroadcastReceiver not firing | <p>I know this is a question that is asked a lot on here, but I have the most barebones implementation of an SMS BroadcastReceiver in my Android maps app and it will not fire no matter what I've tried. I just wiped my phone, so no other apps should interfere with the receiver. In fact, I tried my friend's app who uses ... | I know this is a question that is asked a lot on here, but I have the most barebones implementation of an SMS BroadcastReceiver in my Android maps app and it will not fire no matter what I've tried. I just wiped my phone, so no other apps should interfere with the receiver. In fact, I tried my friend's app who uses the... | android|broadcastreceiver|sms | 1 | 2016-04-25T22:32:36.440Z | 2,016 | 4 | 22 | 0 | 429 | 1 | 665 | 40 | 3 | 2 | true | false | false | false | false | false | low |
36,852,287 | Jsoup: How to open links in a parsed html in the same activity | <p>I am building an app for my blog and I am using Volley to load the URL and Jsoup to parse it.</p>
<p><strong>The Sample Html</strong></p>
<pre><code><body class="sin">
<div class="ks">
<div class="wrap">
<div class="content-right-sidebar-wrap">
<m... | I am building an app for my blog and I am using Volley to load the URL and Jsoup to parse it. The Sample Html [CODE] My Activity [CODE] } The text dispalyed in postContent has links, links that leads to another posts. So what I want is that when the link (let's call it link A ) is clicked this same activity ( PostDetai... | android|android-intent|jsoup|android-volley | 0 | 2016-04-25T22:34:29.690Z | 2,016 | 4 | 22 | 0 | 70 | 0 | 1,196 | 62 | 4 | 2 | true | true | false | false | false | false | zero |
36,852,391 | Google calendar events - Calendar API or Providers? | <p>Sorry if this question is kind of vague, but I don't want to start programming before I ask and make a bad choice that I later regret.</p>
<p>Basically, I want the app to get an hour period, then query the google calendar of the currently logged in user (I have Google Sign In already integrated into my app, and I'm... | Sorry if this question is kind of vague, but I don't want to start programming before I ask and make a bad choice that I later regret. Basically, I want the app to get an hour period, then query the google calendar of the currently logged in user (I have Google Sign In already integrated into my app, and I'm guessing I... | android|calendar|google-calendar-api | 0 | 2016-04-25T22:43:20.787Z | 2,016 | 4 | 22 | 0 | 157 | 1 | 1,013 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
36,852,493 | Android, Soundpool Class - autopause problems while looping sound | <p>I am having trouble in my program using the soundpool class. I initiated the soundpool builder and loaded my sounds with no problems. I want to be able to use multiple togglebuttons that turn on and off specific sounds. I am able to turn on and off togglebuttons, but for example if i turn two or more togglebuttons... | I am having trouble in my program using the soundpool class. I initiated the soundpool builder and loaded my sounds with no problems. I want to be able to use multiple togglebuttons that turn on and off specific sounds. I am able to turn on and off togglebuttons, but for example if i turn two or more togglebuttons on a... | java|android|android-studio|audio|soundpool | 2 | 2016-04-25T22:52:55.970Z | 2,016 | 4 | 22 | 0 | 630 | 1 | 534 | 65 | 5 | 1 | true | false | false | false | false | false | low |
36,852,498 | Multi-platform Base64 Encoding and decoding problems(Android to PC) | <p>Okay so here is the situation I am facing. I am building an android app with a login screen and encrypting the information to send to my server. After encrypting I am encoding the information using Base64 on android to send it to the server on my pc which is decoding in Base64 but it isn't doing it correctly. My ser... | Okay so here is the situation I am facing. I am building an android app with a login screen and encrypting the information to send to my server. After encrypting I am encoding the information using Base64 on android to send it to the server on my pc which is decoding in Base64 but it isn't doing it correctly. My server... | java|android|sockets|encryption|base64 | 0 | 2016-04-25T22:53:20.067Z | 2,016 | 4 | 22 | 0 | 1,031 | 1 | 1,062 | 67 | 5 | 2 | true | false | false | false | false | false | zero |
36,852,510 | Facebook is firing onCancel | <p>I was reading the thread: <a href="https://stackoverflow.com/questions/29295987/android-facebook-4-0-sdk-how-to-get-email-date-of-birth-and-gender-of-user">Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User</a> and I'm using exactly the same code to call a facebook login, but, is always firi... | I was reading the thread: Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User and I'm using exactly the same code to call a facebook login, but, is always firing the method onCancel , what I'm doing wrong? [CODE] | android|facebook|facebook-android-sdk | 0 | 2016-04-25T22:54:47.647Z | 2,016 | 4 | 22 | 0 | 145 | 1 | 236 | 27 | 3 | 1 | true | false | false | false | false | false | zero |
36,852,600 | Why is onClick not called for costume ImageButton? | <p>I am currently extending a ImageButton in android as such :</p>
<pre><code>public class Pen extends ImageButton {
public Pen(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
System.out.println("Now I am sett... | I am currently extending a ImageButton in android as such : [CODE] Then in xml file I do : [CODE] Finally in MainActivity [CODE] Whenever I try to press on the ImageButton onClick Never gets called. But When replace costume Pen with ImageButton everything works. Am I missing something while inheriting from the ImageBut... | android|listener|onclicklistener | 0 | 2016-04-25T23:03:51.707Z | 2,016 | 4 | 23 | 0 | 36 | 2 | 324 | 50 | 3 | 3 | true | false | false | false | false | false | zero |
36,852,712 | Toolbar title not showing in tabbed activity | <p>Implemented a tabbed activity using TabsLayout, but now the title of the activity doesn't show on the toolbar, tried various fixes I found on the internet but none seem to work.</p>
<p>activity's xml:</p>
<p>
</p>
<pre><code><android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:l... | Implemented a tabbed activity using TabsLayout, but now the title of the activity doesn't show on the toolbar, tried various fixes I found on the internet but none seem to work. activity's xml: [CODE] OnCreate: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.lay... | java|android | 1 | 2016-04-25T23:14:14.493Z | 2,016 | 4 | 23 | 0 | 780 | 1 | 365 | 44 | 2 | 2 | true | false | false | false | false | false | low |
36,852,866 | Create a file and insert text in android | <p>I m trying to create a text file and insert text .
I added permissions in Manifest :</p>
<pre><code><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
</code></pre>
<p>but when i try to open a file and ... | I m trying to create a text file and insert text . I added permissions in Manifest : [CODE] but when i try to open a file and insert test : [CODE] i have these errors : [CODE] | android | 0 | 2016-04-25T23:29:24.743Z | 2,016 | 4 | 23 | 0 | 32 | 4 | 175 | 40 | 1 | 3 | true | false | false | false | false | false | zero |
36,852,948 | Dalvik VM couldn't find multiple methods | <p>I don't understand due to which changes my app shows many dalvikVM warning messages. Even though the app seems to be working fine, there could be some potential risk. <strong>I've gone through several related questions but none helped. I didn't trim the monitor output anymore than this because I'm not sure what migh... | I don't understand due to which changes my app shows many dalvikVM warning messages. Even though the app seems to be working fine, there could be some potential risk. I've gone through several related questions but none helped. I didn't trim the monitor output anymore than this because I'm not sure what might be useful... | android | 10 | 2016-04-25T23:37:28.240Z | 2,016 | 4 | 23 | 0 | 2,925 | 1 | 722 | 40 | 1 | 3 | true | false | true | false | true | false | medium |
36,853,016 | How to run Unit Tests through Android Studio? | <p>I am trying to enable Unit Tests in Android Studio through native support. </p>
<p>Android Studio 1.1+ and Android Gradle plugin version 1.1.0+ added unit test support.</p>
<p>The project I am currently working on used <strong>JCandKSolutions</strong> android unit test plugin, since it started off before native un... | I am trying to enable Unit Tests in Android Studio through native support. Android Studio 1.1+ and Android Gradle plugin version 1.1.0+ added unit test support. The project I am currently working on used JCandKSolutions android unit test plugin, since it started off before native unit test support was available. I have... | android|unit-testing|android-studio|android-gradle-plugin|build.gradle | 1 | 2016-04-25T23:43:27.017Z | 2,016 | 4 | 23 | 0 | 1,131 | 1 | 1,105 | 45 | 5 | 0 | false | false | false | false | false | false | low |
36,853,047 | Is it possible to obtain the value of a variable from the activity in the layout.xml android? | <p>I need to know if I can obtain a calculated number from my main activity and access it from my layout.xml. </p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
DisplayMetrics displaymetrics = new DisplayMetrics()... | I need to know if I can obtain a calculated number from my main activity and access it from my layout.xml. [CODE] layout.xml code [CODE] The line android:layout_marginTop="@MainActivity.java/margin_top_str" is not real and is only to show what I need. If what I am asking can be done only in the activity that would work... | java|android|xml | 3 | 2016-04-25T23:47:04.683Z | 2,016 | 4 | 23 | 0 | 27 | 1 | 355 | 93 | 3 | 2 | true | false | false | false | false | false | low |
36,853,068 | How to use datepickerdialog inside custom dialog | <p>I want to use datepickerdialo when user click on editext in the dialog.
I made custom dialog like this</p>
<p><a href="https://i.stack.imgur.com/TRh0X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TRh0X.png" alt="enter image description here"></a></p>
<p>I need to show datepickerdialo after cl... | I want to use datepickerdialo when user click on editext in the dialog. I made custom dialog like this I need to show datepickerdialo after clicking on editext here is custom dialog XML code [CODE] here is DialogFragment [CODE] Please answer clearly as I am beginner | android|datepicker|dialog|listener|customdialog | 0 | 2016-04-25T23:49:30.383Z | 2,016 | 4 | 23 | 0 | 1,222 | 1 | 266 | 48 | 5 | 2 | true | false | false | false | false | false | zero |
36,853,094 | Why does setImageBitmap has no effect on custom ImageButton? | <p>I found <a href="https://stackoverflow.com/questions/24159859/android-button-with-outer-glow/24160138#24160138">this</a> link that states how I could make the glow effect on my <code>ImageButton</code>. So whenever the user press the <code>ImageButton</code> the <code>onTouchEvent()</code> function is called and the... | I found this link that states how I could make the glow effect on my ImageButton . So whenever the user press the ImageButton the onTouchEvent() function is called and there I call the setImageBitmap() function. The problem is this function ( setImageBitmap() ) seems to have no effect at all. What works: 1) So far I ex... | android|bitmap|android-drawable|android-bitmap|bitmapimage | 8 | 2016-04-25T23:51:58.853Z | 2,016 | 4 | 23 | 0 | 509 | 3 | 813 | 60 | 5 | 5 | true | false | false | false | false | false | medium |
36,853,262 | How to use ParseLogin-UI on Android with Parse-1.13.0.jar | <p>It appears the <code>ParseUI-Android</code> project that is pulled from gradle isn't compatible with <code>Parse-1.13.0</code>. Specifically, the version pulled from gradle, the class <code>ParseSignupFragment.java</code> doesn't work with custom <code>ParseUser</code> objects. This has since been fixed and the <cod... | It appears the ParseUI-Android project that is pulled from gradle isn't compatible with Parse-1.13.0 . Specifically, the version pulled from gradle, the class ParseSignupFragment.java doesn't work with custom ParseUser objects. This has since been fixed and the master branch has the correct code in it. Here's what I've... | android|parse-platform|parseui | 0 | 2016-04-26T00:14:59.420Z | 2,016 | 4 | 0 | 1 | 234 | 1 | 803 | 57 | 3 | 0 | false | false | false | false | false | false | zero |
36,853,384 | Unable to create new directory inside the Gallery folder | <p>I am making an app which allows users to record audio clips and access them. I am trying to save the recorded audio files inside a custom folder in my gallery. </p>
<p>I have a function that creates a File and sets its location: </p>
<pre><code>private File getOutputMediaFile(int type) {
File mediaStorageD... | I am making an app which allows users to record audio clips and access them. I am trying to save the recorded audio files inside a custom folder in my gallery. I have a function that creates a File and sets its location: [CODE] I use getOutputMediaFile to save recorded audio file like so: [CODE] When I log audioFilenam... | android | 0 | 2016-04-26T00:29:00.557Z | 2,016 | 4 | 0 | 1 | 34 | 1 | 693 | 56 | 1 | 3 | true | false | false | false | false | false | zero |
36,853,680 | libgdx background image not displaying | <p>I have in the constructor:</p>
<pre><code>backgroundTexture = new Texture(Gdx.files.internal("Pantalla.jpg"));
</code></pre>
<p>And in the render():</p>
<pre><code> @Override
public void render(float delta) {
Gdx.gl.glClearColor(0, 0, 0.2f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
... | I have in the constructor: [CODE] And in the render(): [CODE] The full code of the class is: [CODE] I add several buttons and the background image. The image is in the assets folder but it juts doesn't show up. And I had a doubt about rectangles that if there is a way to add an image to a Rectangle object the same way ... | java|android|android-studio|libgdx | 0 | 2016-04-26T01:08:44.297Z | 2,016 | 4 | 1 | 1 | 549 | 1 | 352 | 38 | 4 | 3 | true | false | false | false | false | false | zero |
36,853,696 | Android service mysql - check for database change | <p>I'm developing android application. I need to run service to check for database update every few seconds and notify the user if changed.</p>
<p>Is the use of service a good way to solve this problem?</p>
<p>Here is part of my code. So far I didn't make it work.</p>
<p>Any help?</p>
<pre><code>public class Notifi... | I'm developing android application. I need to run service to check for database update every few seconds and notify the user if changed. Is the use of service a good way to solve this problem? Here is part of my code. So far I didn't make it work. Any help? [CODE] | android|mysql|android-service | 0 | 2016-04-26T01:10:48.710Z | 2,016 | 4 | 1 | 1 | 1,485 | 1 | 264 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
36,853,731 | access button on fragment visual studio xamarin | <p>I have button on axml file and it called from fragment. How can i use the button, for example i want to have onclick command from button with id "cobaButton". I am using Visual Studio 2015 and Xamarin for developing Android app.</p>
<p>This is my activity</p>
<pre><code>public class MenuUtama : Activity
{
priv... | I have button on axml file and it called from fragment. How can i use the button, for example i want to have onclick command from button with id "cobaButton". I am using Visual Studio 2015 and Xamarin for developing Android app. This is my activity [CODE] This is my fragment file [CODE] and this is my axml file [CODE] | c#|android|xamarin|xamarin.android | 1 | 2016-04-26T01:16:04.537Z | 2,016 | 4 | 1 | 1 | 3,826 | 2 | 319 | 47 | 4 | 3 | true | false | true | false | false | false | low |
36,853,916 | Add Toasts depending on Json reponse | <p>i have this code wich works fine for me , and gives me access to database . the only problem is that i want to add messages , Toasts , or something to display the errors in case of duplicated primary key value ...</p>
<p>Here is the code of my asyncTask ( i added the Toast but it didn't work :( ) </p>
<pre><code>B... | i have this code wich works fine for me , and gives me access to database . the only problem is that i want to add messages , Toasts , or something to display the errors in case of duplicated primary key value ... Here is the code of my asyncTask ( i added the Toast but it didn't work :( ) [CODE] Here is the code of my... | php|android|json|parsing|android-asynctask | 0 | 2016-04-26T01:41:15.303Z | 2,016 | 4 | 1 | 1 | 49 | 2 | 469 | 36 | 5 | 2 | true | false | false | false | false | false | zero |
36,853,926 | RecyclerView shows everything except first item | <p>I have a RecyclerView where each item is a LinearLayout containing two EditTexts and an ImageButton. The RecyclerView is showing every item except the first one of my data set.</p>
<p>Can anyone tell me what's going on?</p>
<pre><code>public class EditListAdapter extends RecyclerView.Adapter<EditListAdapter.Lis... | I have a RecyclerView where each item is a LinearLayout containing two EditTexts and an ImageButton. The RecyclerView is showing every item except the first one of my data set. Can anyone tell me what's going on? [CODE] This will only show items 2 through 5: [CODE] | android|android-recyclerview | 7 | 2016-04-26T01:42:12.097Z | 2,016 | 4 | 1 | 1 | 3,961 | 2 | 265 | 47 | 2 | 2 | true | false | true | false | false | false | medium |
36,853,964 | Basic authentication android UrlConnection Get | <p>So I am making a test login app so I can use look at how the app and the server are behaving together.
So I have three endpoints that I am working with.
All three download json file so I can just print that out no problem.
The issue is they all require a user name and password. I got the first one to download no pr... | So I am making a test login app so I can use look at how the app and the server are behaving together. So I have three endpoints that I am working with. All three download json file so I can just print that out no problem. The issue is they all require a user name and password. I got the first one to download no proble... | android|json|authentication | 1 | 2016-04-26T01:47:09.200Z | 2,016 | 4 | 1 | 1 | 57 | 1 | 1,287 | 46 | 3 | 4 | true | false | false | false | false | false | low |
36,853,985 | Android Studio - 2 Spinners In One Activity | <p>Firstly, i am a novice at android and java. Just learning, and i need a little help. Now this is how this activity is supposed to work.</p>
<p>There are two spinners. Spinner A - Spinner B</p>
<p>Spinner A contains a list of "Majors" (e.g, I.T, Medicine, Vet)</p>
<p>Spinner B contains a list of Programs, which ar... | Firstly, i am a novice at android and java. Just learning, and i need a little help. Now this is how this activity is supposed to work. There are two spinners. Spinner A - Spinner B Spinner A contains a list of "Majors" (e.g, I.T, Medicine, Vet) Spinner B contains a list of Programs, which are under each "Major". So un... | java|android|android-layout|android-studio | 0 | 2016-04-26T01:50:07.567Z | 2,016 | 4 | 1 | 1 | 2,499 | 1 | 1,331 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
36,854,039 | Child buttons do not take up entire gridlayout in android? | <p>I want to create a gridlayout, in which the width matches the screen size and the height is about 3/4 of the screen size. Within that gridlayout I have 4 buttons, equal size each taking 1/4 of the grid layout. I have defined the grid layout to have 2 columns and 2 rows, and each button to take one column, row pair,... | I want to create a gridlayout, in which the width matches the screen size and the height is about 3/4 of the screen size. Within that gridlayout I have 4 buttons, equal size each taking 1/4 of the grid layout. I have defined the grid layout to have 2 columns and 2 rows, and each button to take one column, row pair, yet... | java|android|xml | 0 | 2016-04-26T01:55:24.280Z | 2,016 | 4 | 1 | 1 | 54 | 0 | 497 | 58 | 3 | 1 | true | true | false | false | false | false | zero |
36,854,043 | Why do I get IndexOutOfBoundsException after installing my app to another devices? | <p>Why do I get this error?</p>
<pre><code>Caused by: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:30... | Why do I get this error? [CODE] This error appeared already in my phone and it has been fixed already. Then I tried installing my app in my tablet device and run it. When I pressed on a button to navigate to the PlayQuizActivity, it crashes and it says that it Caused by: java.lang.IndexOutOfBoundsException: Invalid ind... | java|android|sqlite|indexoutofboundsexception | 0 | 2016-04-26T01:56:06.027Z | 2,016 | 4 | 1 | 1 | 96 | 2 | 1,404 | 82 | 4 | 3 | true | false | false | false | false | false | zero |
36,854,059 | mkdirs aways return false in Android 5.1 | <p>I searched these issues, but couldn't resolve it.Please help me in solving this problem</p>
<p>That is my mkdir code:</p>
<pre><code>File _sdcardPath = Environment.getExternalStorageDirectory(); // sdcard path is /storage/emulate/0
File _dirPath = new File(_sdcardPath, "CreateFolder");
boolean _isCreate = _dirPath... | I searched these issues, but couldn't resolve it.Please help me in solving this problem That is my mkdir code: [CODE] my manifest.xml: [CODE] My device android version is: 5.1.1, 12GB free space, and the code run regular under 5.0 While running the app I encountered this Exception : [CODE] | android|exception-handling | 5 | 2016-04-26T01:58:11.143Z | 2,016 | 4 | 1 | 1 | 540 | 4 | 290 | 40 | 2 | 3 | true | false | false | false | false | false | low |
36,854,085 | Add Icon in Navigation Drawer Manually | <p>im confuse to add icon beside title on navigation drawer, anyone know how to do that?
im following this lik for create some nav drawer <a href="http://www.androidhive.info/2015/04/android-getting-started-with-material-design/" rel="nofollow">here</a> , </p>
<p>this my code</p>
<p>FragmentDrawer.java</p>
<pre><co... | im confuse to add icon beside title on navigation drawer, anyone know how to do that? im following this lik for create some nav drawer here , this my code FragmentDrawer.java [CODE] string.xml [CODE] MainActivity.java [CODE] NavDrawwerItem.java [CODE] | java|android|navigation-drawer | 1 | 2016-04-26T02:00:42.553Z | 2,016 | 4 | 2 | 1 | 884 | 1 | 251 | 38 | 3 | 4 | true | false | false | false | false | false | low |
36,854,149 | Google Fit User Login to Grant Access never goes through | <p>I'm trying to integrate Google Fitness API to my apps.</p>
<p>When it asks the user to login to grant Google Fit, it never goes through.
I'm always getting <code>RESULT_CANCELED</code> in <code>onActivityResult()</code>. </p>
<p>What could the problem be? </p>
<p>Below is my implementation. </p>
<pre><code>// G... | I'm trying to integrate Google Fitness API to my apps. When it asks the user to login to grant Google Fit, it never goes through. I'm always getting RESULT_CANCELED in onActivityResult() . What could the problem be? Below is my implementation. [CODE] | android|google-api|fragment|google-fit|google-fit-sdk | 1 | 2016-04-26T02:07:24.657Z | 2,016 | 4 | 2 | 1 | 365 | 1 | 250 | 56 | 5 | 1 | true | false | false | false | false | false | low |
36,854,299 | Android theme error when adding a new dependency | <p>I'm following the examples on this sample from <a href="https://github.com/boxme/SquareCamera/blob/master/README.md" rel="nofollow">github</a> but when i add the dependency I recieve the error</p>
<blockquote>
<p>"
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute... | I'm following the examples on this sample from github but when i add the dependency I recieve the error " Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:20:9-40 is also present at [com.github.boxme:square... | android|dependencies | 1 | 2016-04-26T02:30:46.930Z | 2,016 | 4 | 2 | 1 | 120 | 0 | 977 | 48 | 2 | 0 | false | true | false | false | false | false | low |
36,854,315 | Android Application onCreate() is called late | <p>I have sub classed the Application class in one of my android apps where I do some application level initialization work in onCreate() method.</p>
<p>From the app log I can see that the actual initialization work done in the onCreate method takes only around 200 milliseconds.</p>
<p>But it takes around 10 - 15 sec... | I have sub classed the Application class in one of my android apps where I do some application level initialization work in onCreate() method. From the app log I can see that the actual initialization work done in the onCreate method takes only around 200 milliseconds. But it takes around 10 - 15 seconds from when I cl... | android|initialization|delay|launch | 3 | 2016-04-26T02:33:33.743Z | 2,016 | 4 | 2 | 1 | 620 | 0 | 1,083 | 45 | 4 | 1 | true | true | false | false | false | false | low |
36,854,334 | How can I make this button in a function open another View Controller with Swift? | <p>When you search a location in my app, a pin with a title appears in that location. Next tot that title there's a button, where I am right now is that when you tap it it prints ("Disclosure Pressed!") in the func mapView. How can I code it so that instead of printing that it opens another View Controller with that lo... | When you search a location in my app, a pin with a title appears in that location. Next tot that title there's a button, where I am right now is that when you tap it it prints ("Disclosure Pressed!") in the func mapView. How can I code it so that instead of printing that it opens another View Controller with that locat... | swift|button|mapkit|android-mapview | 0 | 2016-04-26T02:35:40.960Z | 2,016 | 4 | 2 | 1 | 907 | 1 | 371 | 81 | 4 | 1 | true | false | false | false | false | false | zero |
36,854,424 | How I can set deep link for my app and search it in google | <p>I want set deep link in my app and when search it in my devices browser it can open my app. Here is my code :
In Mainfest.xml </p>
<pre><code> <application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="... | I want set deep link in my app and when search it in my devices browser it can open my app. Here is my code : In Mainfest.xml [CODE] When I used app test deep link from google play : test deep link it can open my app but I can search it from my browser. How I can do it? | android|deep-linking | 0 | 2016-04-26T02:46:49.833Z | 2,016 | 4 | 2 | 1 | 154 | 2 | 270 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
36,854,439 | Context Handling from ListFragment - Getting NullPointerException Error Attempt to invoke virtual method...Context.getResources()' | <p>This is what I'm trying to do. I have a ListFragment that has a list of albums on the Main Activity of my app. When I longpress, I am creating a yes/no dialog and when the user presses Yes I am trying to run my delete Album method. However, I am met with this error:</p>
<pre><code>Attempt to invoke virtual method '... | This is what I'm trying to do. I have a ListFragment that has a list of albums on the Main Activity of my app. When I longpress, I am creating a yes/no dialog and when the user presses Yes I am trying to run my delete Album method. However, I am met with this error: [CODE] I suspect it has to do with the fact that I am... | java|android|android-context|android-listfragment | 0 | 2016-04-26T02:49:16.713Z | 2,016 | 4 | 2 | 1 | 62 | 0 | 819 | 130 | 4 | 4 | true | true | false | false | false | false | zero |
36,854,482 | Having trouble switching activities | <p>I have two activities: a menu, and a game. I have them both set up as surface views, and when I click the "start" button on the menu activity, it starts the game activity. Then I want it to save the score and return to the menu activity when the player crashes. Both activities have separate threads that start with t... | I have two activities: a menu, and a game. I have them both set up as surface views, and when I click the "start" button on the menu activity, it starts the game activity. Then I want it to save the score and return to the menu activity when the player crashes. Both activities have separate threads that start with the ... | android | 0 | 2016-04-26T02:55:33.173Z | 2,016 | 4 | 2 | 1 | 41 | 0 | 1,094 | 35 | 1 | 4 | true | true | false | false | false | false | zero |
36,854,489 | Unity3D - Failed to re-package resources | Android APK | <p>I'm trying to compile a simple game without any additional plugin, but I am facing the errors below:</p>
<pre><code>CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -... | I'm trying to compile a simple game without any additional plugin, but I am facing the errors below: [CODE] I have the latest versions of the Android SDK and JDK (Image updated after Answer of @Programmer): I do not include any plugin or Google service, what might be happening? UnityVersion: 5.3.4f1 Personal On Unity 5... | android|unity3d|compilation|apk|android-sdk-tools | 0 | 2016-04-26T02:56:18.720Z | 2,016 | 4 | 2 | 1 | 2,195 | 1 | 381 | 54 | 5 | 2 | true | false | false | false | false | false | zero |
36,854,496 | Trying to update my tab content | <p>i´m using tablayout and i want to update the tab content when user clicks on the tab. basicly i want to do what the tab does when it is created (check what it is in database and put it on my listview).</p>
<p>here is my MainActivity:</p>
<pre><code> public class MainActivity extends AppCompatActivity{
// D... | i´m using tablayout and i want to update the tab content when user clicks on the tab. basicly i want to do what the tab does when it is created (check what it is in database and put it on my listview). here is my MainActivity: [CODE] Here is my ViewPageradapter: [CODE] i tried to use the getItemPosition but it didn´t w... | android|tabs|updates | 0 | 2016-04-26T02:57:22.460Z | 2,016 | 4 | 2 | 1 | 53 | 0 | 378 | 31 | 3 | 2 | true | true | false | false | false | false | zero |
36,854,499 | New Gradle project (command-line and single-module) can't find Android plugin | <p>I had a single-module project working in command-line Ant and want to convert it to Gradle but it fails at: 'gradle tasks', because it can't find the Android plugin.</p>
<p>This failure coincided with an upgrade to the Android SDK/Tools & Support Repository.</p>
<p>I'm using windows 10 and the TextPad editor (... | I had a single-module project working in command-line Ant and want to convert it to Gradle but it fails at: 'gradle tasks', because it can't find the Android plugin. This failure coincided with an upgrade to the Android SDK/Tools & Support Repository. I'm using windows 10 and the TextPad editor (DOS command line screen... | android-gradle-plugin | 0 | 2016-04-26T02:57:34.443Z | 2,016 | 4 | 2 | 1 | 215 | 1 | 1,625 | 77 | 1 | 2 | true | false | false | false | false | false | zero |
36,854,519 | Trouble Displaying Image From A GridView | <p>I'm trying to implement a GridView that displays several images similar to this: <a href="http://developer.android.com/guide/topics/ui/layout/gridview.html" rel="nofollow">http://developer.android.com/guide/topics/ui/layout/gridview.html</a></p>
<p>In addition to the link above, I'm also following this short tutori... | I'm trying to implement a GridView that displays several images similar to this: http://developer.android.com/guide/topics/ui/layout/gridview.html In addition to the link above, I'm also following this short tutorial: http://www.101apps.co.za/index.php/articles/gridview-tutorial-using-the-picasso-library.html I'm able ... | android|gridview | 0 | 2016-04-26T03:00:51.670Z | 2,016 | 4 | 3 | 1 | 72 | 2 | 838 | 40 | 2 | 3 | true | false | false | false | false | false | zero |
36,854,529 | Retrofit call back time remain download file Android | <p>I'm implementing retrofit in my app. I use code below to getString and write to file from server.</p>
<pre><code>Callback callback = new Callback<ResponseBody>() {
@Override
public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
Log.i(TAG, "o... | I'm implementing retrofit in my app. I use code below to getString and write to file from server. [CODE] Now i want show information about download of that file. Like 1 - 100% to complete progress like below image. . Anyone know how to callback time remain ? | android|retrofit | 0 | 2016-04-26T03:03:29.567Z | 2,016 | 4 | 3 | 1 | 579 | 1 | 258 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
36,854,576 | Android: TabHost only create a single LinearLayout which can be referenced | <pre><code> ArrayList<LinearLayout> llal = new ArrayList<LinearLayout>();
for(int i=0; i<n; i++)
{
final int temp = i;
String tabName = "tab " + i;
TabHost.TabSpec tabSpec = tabHost.newTabSpec(tabName);
TabHost.TabContentFactory tcf = new TabHost.TabCon... | [CODE] What I am trying to do here is I am trying to create tab dynamically, and each tab will contain a LinearLayout to add their respective Fragment. What I am trying to do is that I would like to access LinearLayout for each created tab, therefore I plan to save them into an array for reference. In this example, I u... | java|android|android-fragments|android-linearlayout|android-tabhost | 0 | 2016-04-26T03:07:57.763Z | 2,016 | 4 | 3 | 1 | 48 | 1 | 581 | 74 | 5 | 1 | true | false | false | false | false | false | zero |
36,854,664 | Nested transactions are not allowed in Android studio | <p>I am working on an android app and I am using realm DB, my app was worked properly, but suddenly if i want to write to DB the app stopped and give me this error.</p>
<pre><code>Getting MAX_TEXTURE_SIZE from GradienCache
Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
---
FATAL EXCEPTION: main
java.lang.Ille... | I am working on an android app and I am using realm DB, my app was worked properly, but suddenly if i want to write to DB the app stopped and give me this error. [CODE] I tried many available solutions but the problem have not fixed yet! any help! | java|android|android-studio|genymotion | 2 | 2016-04-26T03:18:56.520Z | 2,016 | 4 | 3 | 1 | 869 | 1 | 247 | 53 | 4 | 1 | true | false | false | false | false | false | low |
36,854,715 | TableLayout being truncated when placed inside ScrollView | <p>I have a TableLayout which is populated dynamically with many rows of data. It contains more data than the screen can hold, so I require it to be scrollable.</p>
<p>My issue is that when I place the TableLayout inside of a ScrollView, it appears to cut off many rows from the top of the TableLayout.</p>
<p>For refe... | I have a TableLayout which is populated dynamically with many rows of data. It contains more data than the screen can hold, so I require it to be scrollable. My issue is that when I place the TableLayout inside of a ScrollView, it appears to cut off many rows from the top of the TableLayout. For reference, the full cod... | android|xml|scrollview|tablelayout | 2 | 2016-04-26T03:23:29.623Z | 2,016 | 4 | 3 | 1 | 612 | 2 | 840 | 57 | 4 | 2 | true | false | false | false | false | false | low |
36,854,781 | Current Activity not Pausing when Starting Subsequent Activity (Android) | <p>Consider the code:</p>
<pre><code>public void callPerson(String phonenumber){
String tel = "tel:" + phonenumber;
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(tel));
startActivity(intent);
// onPause();
// Toast.makeText(getActivity(), "this is a test toast", T... | Consider the code: [CODE] As you would expect, when running that code, the current activity pauses itself as the subsequent activity (phone dialer) runs. When the phone call is over, the original activity pops back up. My problem arises when I desire to introduce a "rating" dialog that pops up after the call.... | android|android-activity|onresume|onpause|pause | 0 | 2016-04-26T03:30:35.880Z | 2,016 | 4 | 3 | 1 | 1,458 | 1 | 1,048 | 72 | 5 | 2 | true | false | false | false | false | false | zero |
36,854,901 | Why is my app not running? | <pre><code>import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
impo... | [CODE] } I have no idea why my app is not running, I was doing a tutorial on android gestures, basically what the app is supposed to do is what ever gesture the user inputs, the name of it gets shown in the textbox (buckysmessage). Every time I load it onto my emulator and a perform a gesture the app simply crashes.If ... | android | 0 | 2016-04-26T03:46:14.380Z | 2,016 | 4 | 3 | 1 | 105 | 2 | 399 | 26 | 1 | 1 | true | false | false | false | false | false | zero |
36,855,053 | Populating an Android ListView with data from an ArrayList is setting each item to be the same as the first | <p>I'm working with the android studio and trying to populate a ListView with data, which is stored in files on the devices internal storage. I am able to create a list with the exact number of item as there are files but they should all be displaying different information. At the moment, they are all displaying that s... | I'm working with the android studio and trying to populate a ListView with data, which is stored in files on the devices internal storage. I am able to create a list with the exact number of item as there are files but they should all be displaying different information. At the moment, they are all displaying that same... | java|android|listview|arraylist|android-internal-storage | 0 | 2016-04-26T04:03:40.727Z | 2,016 | 4 | 4 | 1 | 82 | 3 | 530 | 107 | 5 | 1 | true | false | false | false | false | false | zero |
36,855,075 | Gcm Intent Service get null pointer exception at Gcm pubsub | <p>Hey I have some problem with Gcm intent service at calling `subscribeToTopicP class, that always getting null pointer exception.</p>
<p>Here is my code:</p>
<p><strong>GcmIntentService.java</strong></p>
<pre><code>private static final String TAG = GcmIntentService.class.getSimpleName();
public GcmIntentService(... | Hey I have some problem with Gcm intent service at calling `subscribeToTopicP class, that always getting null pointer exception. Here is my code: GcmIntentService.java [CODE] My LogCat Error : [CODE] MyApplication.java [CODE] And here my ActivityDashboard.java [CODE] | java|android|google-cloud-messaging | 1 | 2016-04-26T04:05:43.640Z | 2,016 | 4 | 4 | 1 | 476 | 1 | 267 | 59 | 3 | 4 | true | false | false | false | false | false | low |
36,855,148 | Why am I still seeing old icon? | <p>I am trying to update the <code>ic_launcher.png</code> file for my app. For some reason I still get this very small old version of the icon in the "App setting" on my phone:</p>
<p><a href="https://i.stack.imgur.com/h9W6X.png" rel="noreferrer"><img src="https://i.stack.imgur.com/h9W6X.png" alt="enter image descrip... | I am trying to update the ic_launcher.png file for my app. For some reason I still get this very small old version of the icon in the "App setting" on my phone: Also when I see the uninstall screen the icon is not right: But after hit 'uninstall' the confirmation screen's icon is good. Also the launcher icon looks fine... | android|android-studio | 7 | 2016-04-26T04:14:04.737Z | 2,016 | 4 | 4 | 1 | 1,916 | 4 | 366 | 31 | 2 | 0 | false | false | false | false | false | false | medium |
36,855,151 | Android: duplicati entry error while build APK file | <p>When I build an APK file with android studio (version 2.0) for my project, there is a error:</p>
<blockquote>
<p>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/oltu/oauth... | When I build an APK file with android studio (version 2.0) for my project, there is a error: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/oltu/oauth2/common/OAuth$ContentType.c... | android|android-multidex | 4 | 2016-04-26T04:14:27.260Z | 2,016 | 4 | 4 | 1 | 1,428 | 3 | 355 | 51 | 2 | 1 | true | false | false | false | false | false | low |
36,855,266 | How to set Authorization header to call rest api in android? | <p>I have created a test rest <strong>API</strong> in my xampp local server. I performed a some task like register of user, login user etc.
When user register it's create a <strong>api_key</strong> for registered user.When user try to perform to add the task at the time I used a authenticate function which get the uniq... | I have created a test rest API in my xampp local server. I performed a some task like register of user, login user etc. When user register it's create a api_key for registered user.When user try to perform to add the task at the time I used a authenticate function which get the unique id of user based on the api_key . ... | php|android|json|rest | 3 | 2016-04-26T04:27:57.310Z | 2,016 | 4 | 4 | 1 | 5,160 | 4 | 1,067 | 60 | 4 | 4 | true | false | true | false | false | false | low |
36,855,272 | Stop Load data from .json if when data already load | <p>I have 2 fragment( Fragment A and fragment B) with functions to load data using .json.</p>
<p>When I click fragment A, the data will load, and when I click fragment B the data will load too. </p>
<p>When I click fragment A another time, the data is reloaded and duplicated (appended with the data from the first cli... | I have 2 fragment( Fragment A and fragment B) with functions to load data using .json. When I click fragment A, the data will load, and when I click fragment B the data will load too. When I click fragment A another time, the data is reloaded and duplicated (appended with the data from the first click). How to stop loa... | android|json|android-fragments | 1 | 2016-04-26T04:29:25.400Z | 2,016 | 4 | 4 | 1 | 1,641 | 1 | 481 | 51 | 3 | 3 | true | false | false | false | false | false | low |
36,855,293 | I need call another activity automatic, more not know where to put code, facebook login | <p>Sorry my english ! need call another activity automatic, more not know where to put code, "facebook login sdk" It how is code, "startActivity" not function</p>
<pre><code>/** * A placeholder fragment containing a simple view. */
public class MainFragment extends Fragment {
private TextView mTextDetails;
privat... | Sorry my english ! need call another activity automatic, more not know where to put code, "facebook login sdk" It how is code, "startActivity" not function [CODE] | java|android|facebook|sdk | -1 | 2016-04-26T04:31:24.743Z | 2,016 | 4 | 4 | 1 | 56 | 2 | 162 | 87 | 4 | 1 | true | false | false | false | false | true | negative |
36,855,405 | Back button functionality not working properly | <p>I have created a webview as overlay over another webview and had doubts regarding the back button implementation of the second webview.My aim is if I click the back button it should come to the first webview. This is my XML page:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:andr... | I have created a webview as overlay over another webview and had doubts regarding the back button implementation of the second webview.My aim is if I click the back button it should come to the first webview. This is my XML page: [CODE] This the functionality that I wrote for the back button [CODE] Now If I click the b... | android|webview | 1 | 2016-04-26T04:41:49.517Z | 2,016 | 4 | 4 | 1 | 268 | 1 | 736 | 46 | 2 | 2 | true | false | false | false | false | false | low |
36,855,414 | How can I select values from a column in sqlite database which will starts with a particular letter inserted by user | <p>I want the following sql code in sqlite terms:</p>
<pre><code>"SELECT * FROM babynames WHERE name like '$id%'"
</code></pre>
<p>I get the following erreor
SQLiteLog: (1) near "like": syntax error</p>
<p>My code:</p>
<pre><code>public class Datalist extends ListActivity{
public String id1;
RegistrationAdapter ad... | I want the following sql code in sqlite terms: [CODE] I get the following erreor SQLiteLog: (1) near "like": syntax error My code: [CODE] Anybody please help me.Thanks in advance.. | android|sqlite|android-sqlite | -3 | 2016-04-26T04:42:47.157Z | 2,016 | 4 | 4 | 1 | 183 | 1 | 180 | 116 | 3 | 2 | true | false | false | false | false | true | negative |
36,855,431 | How to draw run time graph using canvas to paint the background in android with delay | <p>I searched many sample codes but couldn't find any real time running graph. I tried to create a sample graph but i got issues with my code. While creating the canvas I can only draw with 2 points but i need to draw with an array of points. So I have created an array of Points.But the code is not working properly. </... | I searched many sample codes but couldn't find any real time running graph. I tried to create a sample graph but i got issues with my code. While creating the canvas I can only draw with 2 points but i need to draw with an array of points. So I have created an array of Points.But the code is not working properly. Here ... | java|android|android-studio|view|android-canvas | 1 | 2016-04-26T04:44:30.627Z | 2,016 | 4 | 4 | 1 | 2,333 | 1 | 385 | 85 | 5 | 3 | true | false | false | false | false | false | low |
36,855,519 | How to control zoom level in Google Maps according to places | <p>I am implementing Google Maps with places API in my Application. I need that ,whenever user types the place in edit text , the map to animate to that particular place. I have implemented it and its working fine. The issue is if I am not able to control zoom level according to the place mentioned in AutocompleteTextV... | I am implementing Google Maps with places API in my Application. I need that ,whenever user types the place in edit text , the map to animate to that particular place. I have implemented it and its working fine. The issue is if I am not able to control zoom level according to the place mentioned in AutocompleteTextView... | android|google-maps | 0 | 2016-04-26T04:53:30.927Z | 2,016 | 4 | 4 | 1 | 1,039 | 1 | 507 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
36,855,539 | Can we manually implement What branch provides us | <p>I am trying to manually implement what branch io provides as a service. I have implemented the deeplink and it works well in both android and ios. </p>
<p>Basically what I am trying to do is not the whole thing what branch io does. But when a user clicks a link or button in my website which contains a deeplink <cod... | I am trying to manually implement what branch io provides as a service. I have implemented the deeplink and it works well in both android and ios. Basically what I am trying to do is not the whole thing what branch io does. But when a user clicks a link or button in my website which contains a deeplink (ex: myapp://app... | android|ios|node.js|deep-linking | 0 | 2016-04-26T04:55:27.847Z | 2,016 | 4 | 4 | 1 | 121 | 0 | 2,047 | 49 | 4 | 0 | false | true | false | false | false | false | zero |
36,855,545 | Android Get View enter method more times | <p>I have a adapter with array_restaruants is json when 1 object but method get view run 7 times dont 1 time is correct</p>
<p>if in method get count force return 1 dont work i dont have idea for problem is my base adapter or why?</p>
<p>all time enter 7 times</p>
<pre><code>public class AdapterName extends BaseAdap... | I have a adapter with array_restaruants is json when 1 object but method get view run 7 times dont 1 time is correct if in method get count force return 1 dont work i dont have idea for problem is my base adapter or why? all time enter 7 times [CODE] } | android|android-studio|android-adapter|android-adapterview | 0 | 2016-04-26T04:56:06.057Z | 2,016 | 4 | 4 | 1 | 56 | 1 | 252 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,855,563 | No data is displaying in ListView in Fragment. It displays upon scroll | <p>here is my first fragment...what is the problem here i have four fragment bt in this fragment data showing only when i schroll it..basically i have four tab in this activity reamainig three work fine .in first fragment i use web service </p>
<pre><code>public class Home_Fr extends ListFragment {
int a;
int... | here is my first fragment...what is the problem here i have four fragment bt in this fragment data showing only when i schroll it..basically i have four tab in this activity reamainig three work fine .in first fragment i use web service [CODE] | android | 0 | 2016-04-26T04:57:29.697Z | 2,016 | 4 | 4 | 1 | 42 | 1 | 243 | 70 | 1 | 1 | true | false | false | false | false | false | zero |
36,855,567 | Android: how do I right-justify a TextView? | <p>I am trying to right-justify the TextView "Due:" on the Subhead line in the CardView image below. I'd like the text to be just to the left of the "11/30/2100" date. Layout code is below. What am I missing here?</p>
<p><a href="https://i.stack.imgur.com/pAhz8.png" rel="nofollow noreferrer"><img src="https://i.sta... | I am trying to right-justify the TextView "Due:" on the Subhead line in the CardView image below. I'd like the text to be just to the left of the "11/30/2100" date. Layout code is below. What am I missing here? layout.xml [CODE] | android|textview|android-relativelayout | 0 | 2016-04-26T04:57:56.590Z | 2,016 | 4 | 4 | 1 | 460 | 6 | 228 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,855,585 | I have added slider menu in android app. But unable to open after clicking side menu | <p>I have added slider menu in android app. But unable to open after clicking side menu. after clicking on side menu it is not opening list. When i debugged i found that adapter =NULL & mdrawertoggle=NULL.</p>
<p>I am adding code please provide me solution if anyone have.
Thanks.
<a href="http://i.stack.imgur.com... | I have added slider menu in android app. But unable to open after clicking side menu. after clicking on side menu it is not opening list. When i debugged i found that adapter =NULL & mdrawertoggle=NULL. I am adding code please provide me solution if anyone have. Thanks. Attached image is showing side menu but unable to... | android | 1 | 2016-04-26T04:59:24.977Z | 2,016 | 4 | 4 | 1 | 205 | 2 | 477 | 84 | 1 | 5 | true | false | false | false | false | false | low |
36,855,608 | How to draw a circle on different screens(devices) with same diameter in Android | <p>I'm trying to draw a circle which will have the same diameter of 2.5 inches (or any other value) in every android device, regardless of the screen size. The diameter size must be same in all the devices and below is what I have tried.</p>
<p><strong>activity_main.xml</strong></p>
<pre><code><?xml version="1.0" ... | I'm trying to draw a circle which will have the same diameter of 2.5 inches (or any other value) in every android device, regardless of the screen size. The diameter size must be same in all the devices and below is what I have tried. activity_main.xml [CODE] oval_shape.xml [CODE] The issue with this code is when I try... | java|android|android-imageview|android-shape | 0 | 2016-04-26T05:01:28.267Z | 2,016 | 4 | 5 | 1 | 670 | 1 | 637 | 80 | 4 | 2 | true | false | false | false | false | false | zero |
36,855,674 | Visual Studio / Xamarin OnClickListener | <p>I'm new to programming, so I apologise if this is a stupid question!
I'm building an app in VS15/Xamarin, and am trying to set an onClickListener, however it keep stelling me there is an error "The type name 'OnClickListener' does not exist in the type 'View'".
I've tried a number of solutions, but clearly I'm missi... | I'm new to programming, so I apologise if this is a stupid question! I'm building an app in VS15/Xamarin, and am trying to set an onClickListener, however it keep stelling me there is an error "The type name 'OnClickListener' does not exist in the type 'View'". I've tried a number of solutions, but clearly I'm missing ... | android|visual-studio|xamarin.android | 1 | 2016-04-26T05:06:55.717Z | 2,016 | 4 | 5 | 1 | 4,363 | 2 | 401 | 39 | 3 | 1 | true | false | true | false | false | false | low |
36,855,794 | How to cancel countdown timer with progress bar in android? | <p>I am developing an app which contain <code>CountdownTimer</code> with progress bar ,scenario is something like that there is a <code>BroadcastReceiver</code> which read sms from server .What I want to dismiss progress bar as soon as broadcast read sms and execute url .How can I do that kindly help me. its a week I ... | I am developing an app which contain CountdownTimer with progress bar ,scenario is something like that there is a BroadcastReceiver which read sms from server .What I want to dismiss progress bar as soon as broadcast read sms and execute url .How can I do that kindly help me. its a week I am searching . [CODE] and here... | android|countdowntimer|android-broadcastreceiver | 1 | 2016-04-26T05:16:42.663Z | 2,016 | 4 | 5 | 1 | 441 | 1 | 351 | 59 | 3 | 2 | true | false | false | false | false | false | low |
36,855,797 | Image caching using Universal Image loader in android | <p>I am working on a project in which I have to lazy load profile images of contacts into recyclerview, and I am loading cached images into recyclerview if the user is offline. I am using Universal Image loader to load images from server and cache it in device.Universal Image loader is caching Images in file path </p>
... | I am working on a project in which I have to lazy load profile images of contacts into recyclerview, and I am loading cached images into recyclerview if the user is offline. I am using Universal Image loader to load images from server and cache it in device.Universal Image loader is caching Images in file path [CODE] h... | android|image|caching|universal-image-loader | 2 | 2016-04-26T05:16:58.807Z | 2,016 | 4 | 5 | 1 | 265 | 0 | 938 | 53 | 4 | 2 | true | true | false | false | false | false | low |
36,855,800 | insert admob in android fragment? | <pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background"
... | [CODE] I googled but no proper not able to got answer. i tried following links. AdMob in a fragment Using AdMob from within a Fragment? Android Admob ad not shown in Activity with fragment. Why? | android-fragments|admob | 1 | 2016-04-26T05:17:08.540Z | 2,016 | 4 | 5 | 1 | 2,169 | 1 | 194 | 33 | 2 | 1 | true | false | false | false | false | false | low |
36,855,802 | How to login WiFi to WiFi particular mac address and password in android phone | <p>How to login WiFi to WiFi particular mac address and password in android phone
When we used android WiFi to connect any router can not connect password is right. </p>
<pre><code>WifiConfiguration wifiConfiguration = new WifiConfiguration();
String networkSSID = "00:ac:1b:bc:00:37";
String netw... | How to login WiFi to WiFi particular mac address and password in android phone When we used android WiFi to connect any router can not connect password is right. [CODE] | android | 0 | 2016-04-26T05:17:15.943Z | 2,016 | 4 | 5 | 1 | 179 | 0 | 168 | 78 | 1 | 1 | true | true | false | false | false | false | zero |
36,855,859 | Changing contact's image to a large photo via PHOTO_FILE_ID in Android | <p>This seems to work for small images:</p>
<pre><code>ContentValues values = new ContentValues();
values.put(ContactsContract.Data.RAW_CONTACT_ID, id);
values.put(ContactsContract.Data.IS_SUPER_PRIMARY, 1);
values.put(ContactsContract.CommonDataKinds.Photo.PHOTO, photo);
values.put(ContactsContract.Data.MIMETYPE, Co... | This seems to work for small images: [CODE] From the docs I realise that for large images I need to set the PHOTO_FILE_ID, so I can replace: [CODE] with: [CODE] However, then I need to supply a PHOTO_FILE_ID rather than raw data. My question: How do I save the photo (byte []) and get a PHOTO_FILE_ID? If there is alread... | java|android|android-contacts | 10 | 2016-04-26T05:22:00.890Z | 2,016 | 4 | 5 | 1 | 2,453 | 4 | 485 | 70 | 3 | 3 | true | false | false | false | true | false | medium |
36,855,895 | simple android Snackbar not working | <p>I was trying to show a very simple Snackbar in the MainActivity in my app, after clicking on a button. This button also leads to the start of a new activity. But after I clicked it, no Snackbar show and the new Activity started. My MainActivity is a RelativeLayout and I don't quite want to change it into Coordinator... | I was trying to show a very simple Snackbar in the MainActivity in my app, after clicking on a button. This button also leads to the start of a new activity. But after I clicked it, no Snackbar show and the new Activity started. My MainActivity is a RelativeLayout and I don't quite want to change it into CoordinatorLay... | android|button|android-activity|layout|snackbar | 0 | 2016-04-26T05:24:28.203Z | 2,016 | 4 | 5 | 1 | 5,592 | 1 | 399 | 35 | 5 | 2 | true | false | true | false | false | false | zero |
36,855,924 | android read file from sd card | <p>I just need to covert the path in file to InputStream here is my code. I select the path by calling Intent but it always gives me filenotfoundexception</p>
<pre><code> Intent intent = new Intent();
intent.setType("*/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(... | I just need to covert the path in file to InputStream here is my code. I select the path by calling Intent but it always gives me filenotfoundexception [CODE] thanks for help in advance... | android|android-intent|readfile | 0 | 2016-04-26T05:26:22.880Z | 2,016 | 4 | 5 | 1 | 112 | 2 | 188 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
36,856,009 | How to blink flashlight? | <p>I've been trying to blink the flashlight of my android for the last 2 hours, and I can't seem to get it to work. All I want is a repeated blink of the flashlight every 500 milliseconds or so, until I click a button.</p>
<p><strong>Here is what I tried, and it does nothing. It doesn't even turn on the flashlight or ... | I've been trying to blink the flashlight of my android for the last 2 hours, and I can't seem to get it to work. All I want is a repeated blink of the flashlight every 500 milliseconds or so, until I click a button. Here is what I tried, and it does nothing. It doesn't even turn on the flashlight or produce an exceptio... | java|android|arrays|string|algorithm | -1 | 2016-04-26T05:32:02.307Z | 2,016 | 4 | 5 | 1 | 997 | 2 | 578 | 24 | 5 | 1 | true | false | false | false | false | true | negative |
36,856,029 | Why Android app stopped when using setOnClickListener(this)? | <p>I followed this <a href="http://code.tutsplus.com/tutorials/android-sdk-create-a-barcode-reader--mobile-17162" rel="nofollow">tutorial</a> and created a simple bar-code scanner. but My App is stopped when it launch due to below line.</p>
<pre><code>scanBtn.setOnClickListener(this);
</code></pre>
<p>If I comment ou... | I followed this tutorial and created a simple bar-code scanner. but My App is stopped when it launch due to below line. [CODE] If I comment out this line App won't stop. Please let me know how to fix this issue. Thank you. [CODE] activity_main xml [CODE] fragment_main.xml [CODE] Logcat [CODE] | android|android-fragments|android-activity|onclicklistener | -4 | 2016-04-26T05:33:38.603Z | 2,016 | 4 | 5 | 1 | 127 | 2 | 293 | 60 | 4 | 5 | true | false | false | false | false | true | negative |
36,856,030 | Ionic Build Fails | <p>I have started working one existing project. And I have hardly few week experience in android app.</p>
<p>I am trying to build project on my machine which working fine in other machine but it throws error on my local machine during build process. Please check following is error details.</p>
<pre><code>D:\Projects\... | I have started working one existing project. And I have hardly few week experience in android app. I am trying to build project on my machine which working fine in other machine but it throws error on my local machine during build process. Please check following is error details. [CODE] | android|cordova|ionic-framework|cordova-plugins | -3 | 2016-04-26T05:33:41.197Z | 2,016 | 4 | 5 | 1 | 3,281 | 1 | 287 | 17 | 4 | 1 | true | false | true | false | false | true | negative |
36,856,035 | How to change toolbar menu item text color? | <p>I have seen so many solutions regarding same question. But no solution worked for me. </p>
<p>Here is the best solution to change menu item text color in toolbar.</p>
<p>While defining new style extend "AppTheme.AppBarOverlay" instead of "Theme.AppCompat.Light.DarkActionBar".
This will not only change Menu item te... | I have seen so many solutions regarding same question. But no solution worked for me. Here is the best solution to change menu item text color in toolbar. While defining new style extend "AppTheme.AppBarOverlay" instead of "Theme.AppCompat.Light.DarkActionBar". This will not only change Menu item text color as well as ... | android|material-design|menuitem|android-toolbar | -3 | 2016-04-26T05:34:15.347Z | 2,016 | 4 | 5 | 1 | 1,950 | 1 | 391 | 43 | 4 | 2 | true | false | false | false | false | true | negative |
36,856,149 | Chromium Error :- 6 Charts.js/Chartnew.js | <p>I am trying to use the Charts.js library in my android app inside a webview. I tried changing it to chartsnew.js library too, but I get the same error and the chart does not load in my app.</p>
<p>D/chromium: Unknown chromium error: -6</p>
<p>I have tried searching all forums and questions posted before, tried dou... | I am trying to use the Charts.js library in my android app inside a webview. I tried changing it to chartsnew.js library too, but I get the same error and the chart does not load in my app. D/chromium: Unknown chromium error: -6 I have tried searching all forums and questions posted before, tried double checking that t... | javascript|android|charts|android-webview | 0 | 2016-04-26T05:42:27.877Z | 2,016 | 4 | 5 | 1 | 237 | 1 | 1,359 | 41 | 4 | 2 | true | false | false | false | false | false | zero |
36,856,202 | Is there an Android design pattern to handle multiple fragments in a single activity? | <p>I inherited some code at work and I have a question about some implementation. The application I'm working on has an Activity that contains about 15 different fragments. The logic in the Activity handling these fragments can roughly be summarized with the following pseudocode:</p>
<pre><code>if (button_1 selected) ... | I inherited some code at work and I have a question about some implementation. The application I'm working on has an Activity that contains about 15 different fragments. The logic in the Activity handling these fragments can roughly be summarized with the following pseudocode: [CODE] My question is: does there exist so... | android|android-fragments|android-activity|design-patterns | 5 | 2016-04-26T05:46:21.133Z | 2,016 | 4 | 5 | 1 | 546 | 2 | 778 | 85 | 4 | 1 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.