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
28,664,191
How to save string by using button
<p>So I am trying to learn android programming , and I am making contact list. I already made Contact input and I am trying to save it on the next "page" , so when the user press "Save Contact" button , it will save contact and when the user checks list , he will do it by pressing "Contact List" button , how do to that...
So I am trying to learn android programming , and I am making contact list. I already made Contact input and I am trying to save it on the next "page" , so when the user press "Save Contact" button , it will save contact and when the user checks list , he will do it by pressing "Contact List" button , how do to that ? ...
java|android
0
2015-02-22T22:39:38.897Z
2,015
2
22
6
36
1
380
34
2
0
false
false
false
false
false
false
zero
28,664,230
What scala solution patterns on android could be used to replace observer pattern?
<p>I am learning about scala on android and am looking for a scala design pattern which replaces <strong>my variation</strong> of the observer pattern (as the observer pattern is officially deprecated in scala).</p> <p>In particular I am struggling with how to handle android service in activity and with the view bindi...
I am learning about scala on android and am looking for a scala design pattern which replaces my variation of the observer pattern (as the observer pattern is officially deprecated in scala). In particular I am struggling with how to handle android service in activity and with the view binding. I have prepared a repo w...
android|scala|observer-pattern|reactive-programming
1
2015-02-22T22:42:52.873Z
2,015
2
22
6
125
1
467
82
4
0
false
false
false
false
false
false
low
28,664,288
onListItemClick doesnt work... Why?
<p>I try to teach me to make a list , with fragments . I have now created a custom array adapter to get my lines in the list to be adapted for my app . However , nothing happens when I press the item . However, working checkbox as intended (?)</p> <p>What am I doing wrong ?</p> <p>Thanks in advance</p> <p><strong>Li...
I try to teach me to make a list , with fragments . I have now created a custom array adapter to get my lines in the list to be adapted for my app . However , nothing happens when I press the item . However, working checkbox as intended (?) What am I doing wrong ? Thanks in advance List_Fragment [CODE] CustomAdapter [C...
android|android-arrayadapter
0
2015-02-22T22:48:24.860Z
2,015
2
22
6
86
1
326
35
2
2
true
false
false
false
false
false
zero
28,664,349
Flex Mobile Devlopement: Small views on Nexus 5
<p>I just started developing Android/iOS apps using Flex..</p> <p>I have a question about difference reason between testing the app on a real device ( Nexus 5 ) and Flash Builder Emulator ( Samsung Galaxy Ace )</p> <p>You can see the Actionbar has a good look on Samsung Galaxy Ace:</p> <p><img src="https://i.stack.i...
I just started developing Android/iOS apps using Flex.. I have a question about difference reason between testing the app on a real device ( Nexus 5 ) and Flash Builder Emulator ( Samsung Galaxy Ace ) You can see the Actionbar has a good look on Samsung Galaxy Ace: And in the real device Nexus 5 it is very small: I hav...
android|apache-flex|flash-builder
0
2015-02-22T22:54:39.730Z
2,015
2
22
6
64
2
513
47
3
0
false
false
false
false
false
false
zero
28,664,353
Why FragmentTransaction can't find the Layout area by it's ID? Showing error
<p>I am practicing Fragment. The application has three buttons- <em>Start, Button 1, Button 2.</em> <em>Start</em> button should start the fragment, <em>Button 1</em> and <em>Button 2</em> shows the corresponding text. The problem is in my MianActivity.java file. line 34 shows an error:</p> <p><img src="https://i.st...
I am practicing Fragment. The application has three buttons- Start, Button 1, Button 2. Start button should start the fragment, Button 1 and Button 2 shows the corresponding text. The problem is in my MianActivity.java file. line 34 shows an error: My code: MainActivity.java: [CODE] activity_main.xml: [CODE] StartFrag....
android|android-layout|android-activity|android-fragments|android-linearlayout
-1
2015-02-22T22:54:59.213Z
2,015
2
22
6
1,588
3
449
76
5
8
true
false
false
false
false
true
negative
28,664,354
Gradle custom library in an android app
<p>I have the following <a href="https://github.com/CarefreeCoding/Gaming" rel="nofollow">project</a>.</p> <p>The project itself is me trying to experiment with me writing a library.</p> <p>And this is what I would like to do</p> <pre><code>\project | --\android (android framework library) | --\androidExamples (this...
I have the following project . The project itself is me trying to experiment with me writing a library. And this is what I would like to do [CODE] The problem I have run into is in androidExample subproject. I would like it to have multiple subprojects where each subproject is an android app. However I do not seem to b...
java|android|gradle
0
2015-02-22T22:55:03.183Z
2,015
2
22
6
97
1
454
39
3
1
true
false
false
false
false
false
zero
28,664,372
Android Service Websockets NullPointerException
<p>I am building a chat app in android powered by webscokets and XAMPP (for the moment). However, upon attempting to send the message, the app simply errors out and notes the error:</p> <pre><code>02-22 22:47:26.571 1439-1622/com.example.feastapp E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-140 Process: com.exampl...
I am building a chat app in android powered by webscokets and XAMPP (for the moment). However, upon attempting to send the message, the app simply errors out and notes the error: [CODE] on the line imService.sendMessage("user1","user2", "1", "0", "0") == null . I am binding the service to the class with (at the top of ...
android|service|nullpointerexception|websocket
0
2015-02-22T22:57:27.313Z
2,015
2
22
6
104
0
587
47
4
3
true
true
false
false
false
false
zero
28,664,412
Android Toolbar actionLayout of Switch causes text to jump when menu is pressed
<p>Please refer to my project at: <a href="https://github.com/paulpv/ToolbarSwitch" rel="nofollow">https://github.com/paulpv/ToolbarSwitch</a></p> <p>I am working on a simple custom layout for the Android Toolbar (aka: new ActionBar). This simple control adds a Switch to the Toolbar, and can be seen here highlighted i...
Please refer to my project at: https://github.com/paulpv/ToolbarSwitch I am working on a simple custom layout for the Android Toolbar (aka: new ActionBar). This simple control adds a Switch to the Toolbar, and can be seen here highlighted in magenta: My problem is that immediately when the overflow menu is pressed, the...
android|android-layout|android-actionbar|android-toolbar
3
2015-02-22T23:01:20.753Z
2,015
2
23
6
2,255
2
1,381
79
4
2
true
false
false
false
false
false
low
28,664,426
Android: Invalid Credentials on access token when updated from PlusClient to GoogleApiClient
<p>I was successfully getting an access token via PlusClient and GoogleAuthUtil to query googleapis from backend </p> <p>my working code was:</p> <pre><code> mPlusClient = new PlusClient.Builder(this, this, this).setScopes( Scopes.PLUS_LOGIN,Scopes.PLUS_ME , Scopes.PROFILE, https://www.googleapis.com/auth...
I was successfully getting an access token via PlusClient and GoogleAuthUtil to query googleapis from backend my working code was: [CODE] .... [CODE] passed accessToken to backend so it can call Google like: [CODE] As PlusClient is now deprecated and I need GoogleMaps V2 I have migrated the code using GoogleApiClient. ...
android|google-api
2
2015-02-22T23:02:47.127Z
2,015
2
23
6
168
0
526
92
2
3
true
true
false
false
false
false
low
28,664,491
Activity Dialogs through AppCompat-v7 for material designs don't have titles
<p>I'm migrating my app to AppCompat-v7 and have hit a road-block.</p> <p>I have 3 Activity dialogs, specifically they were Holo.Light.Dialog types. When I gave them the parent theme: <code>Theme.AppCompat.Light.Dialog</code>, they suddenly had no titles.</p> <p>How would I get the titles back? By title, I mean what ...
I'm migrating my app to AppCompat-v7 and have hit a road-block. I have 3 Activity dialogs, specifically they were Holo.Light.Dialog types. When I gave them the parent theme: Theme.AppCompat.Light.Dialog , they suddenly had no titles. How would I get the titles back? By title, I mean what one used to see in non-material...
android|android-activity|android-appcompat|material-design
1
2015-02-22T23:08:27.897Z
2,015
2
23
6
348
0
395
76
4
0
false
true
false
false
false
false
low
28,664,502
Double Click on Button Android
<p>First off this question has been asked multiple times, <strong>however</strong>, none of these questions have been answered to any extent. I have one example that works in the main activity class: </p> <pre><code>final Button button = (Button) findViewById(R.id.viewcatalog); button.setFocusable(true); button.setO...
First off this question has been asked multiple times, however , none of these questions have been answered to any extent. I have one example that works in the main activity class: [CODE] But all of my other attempts to replicate this in sequential pages has resulted in failure. I know the reason that they won't work t...
java|android|button|methods
0
2015-02-22T23:09:30.590Z
2,015
2
23
6
406
1
505
30
4
2
true
false
false
false
false
false
zero
28,664,523
Android Applications: how do I access different fragments using a viewPager?
<p>I am trying to write an android application but I am fairly new to this, and I'm having issues with selecting different fragments on different tabs. For example, when calling this block of code every tab ends up looking like "location_main.xml." Is there a way to differentiate the tab selected? Thanks!</p> <pre><co...
I am trying to write an android application but I am fairly new to this, and I'm having issues with selecting different fragments on different tabs. For example, when calling this block of code every tab ends up looking like "location_main.xml." Is there a way to differentiate the tab selected? Thanks! [CODE]
android|android-fragments|android-viewpager
0
2015-02-22T23:11:31.590Z
2,015
2
23
6
62
2
310
76
3
1
true
false
false
false
false
false
zero
28,664,560
Android Studio not recognizing any of my textviews
<p>When I search for the views by their id's, i find them. But when I use the variables that store the textviews, they can't be recognized and i'm constantly told that they are no where to be found. My button don't give me probles. Only the textviews keeps saying "Cannot resolve symbol"</p> <pre><code>@Override protec...
When I search for the views by their id's, i find them. But when I use the variables that store the textviews, they can't be recognized and i'm constantly told that they are no where to be found. My button don't give me probles. Only the textviews keeps saying "Cannot resolve symbol" [CODE]
java|android|textview
0
2015-02-22T23:14:36.233Z
2,015
2
23
6
1,366
2
291
50
3
1
true
false
false
false
false
false
zero
28,664,609
Insert into Mysql Database from Android. Where i repair
<p>I'm writing an application to insert data into a MySQL database. I wrote the sql query in PHP and when i enter values in the android application, i don't seen any errors in the log cat but the values aren't getting stored in the database. php code:</p> <pre><code>&lt;?php $baglan=mysql_connect('localhost','root...
I'm writing an application to insert data into a MySQL database. I wrote the sql query in PHP and when i enter values in the android application, i don't seen any errors in the log cat but the values aren't getting stored in the database. php code: [CODE] android code: [CODE]
php|android|mysql|insert
0
2015-02-22T23:20:38.877Z
2,015
2
23
6
119
1
276
55
4
2
true
false
false
false
false
false
zero
28,664,655
LibGDX movement not smooth
<p>I'm making a game in LibGDX. I have 4 textures as a parallax background and some obstacles (one in the upper part and others in the bottom part of the screen), this is the movement part:</p> <pre><code>//Parallax if (bckgndmiddle_x &lt;= -Const.VIEWPORT_W*2+(game_speed*delta)/2) bckgndmiddle_x=-(game_speed*delt...
I'm making a game in LibGDX. I have 4 textures as a parallax background and some obstacles (one in the upper part and others in the bottom part of the screen), this is the movement part: [CODE] The obstacle update method is just x-= speed; as speed is the parameter received The problem is that from time to time the tex...
java|android|libgdx|game-physics|parallax
4
2015-02-22T23:26:33.567Z
2,015
2
23
6
1,442
1
1,195
26
5
1
true
false
false
false
false
false
low
28,664,703
Simulate Long Press in Javascript
<p>I have a webapp where when the user clicks on a field, the text inside is highlighted for him to copy. However, on Android this does not trigger the opening of the copy context menu, so the user must select the text himself.</p> <p>Is there a way to programmatically trigger the long press event so that the copy/pas...
I have a webapp where when the user clicks on a field, the text inside is highlighted for him to copy. However, on Android this does not trigger the opening of the copy context menu, so the user must select the text himself. Is there a way to programmatically trigger the long press event so that the copy/paste context ...
javascript|android|ios|mobile
20
2015-02-22T23:31:16.310Z
2,015
2
23
6
6,331
4
352
33
4
0
false
false
true
false
true
false
medium
28,664,730
How to get specific view touched/clicked from RecyclerView?
<p>I have a RecyclerView that holds a list of items. Each item is a RelativeLayout that holds four textviews. What I would like to do is be able to differentiate between which textview of the list item is clicked, and then perform an action based on that.</p> <p>Right now I am using </p> <pre><code>final GestureDetec...
I have a RecyclerView that holds a list of items. Each item is a RelativeLayout that holds four textviews. What I would like to do is be able to differentiate between which textview of the list item is clicked, and then perform an action based on that. Right now I am using [CODE] But all it seems to find is the Relativ...
android|list|touch|adapter|android-recyclerview
1
2015-02-22T23:33:54.580Z
2,015
2
23
6
1,993
1
448
59
5
1
true
false
false
false
false
false
low
28,664,877
How to add a Touchpad in LibGDX
<p>I made my own simple framework to use with LibGDX but I can't figure out how to make a <code>TouchPad</code> appear on the screen. I need two separate joysticks (LibGDX <code>TouchPads</code>) to be on the screen at once and both handle touch events. </p> <p>How do I do this? I am able to declare the <code>Touchpad...
I made my own simple framework to use with LibGDX but I can't figure out how to make a TouchPad appear on the screen. I need two separate joysticks (LibGDX TouchPads ) to be on the screen at once and both handle touch events. How do I do this? I am able to declare the Touchpads and set their skin but I can't figure out...
java|android|libgdx|multi-touch|joystick
3
2015-02-22T23:49:10.327Z
2,015
2
23
6
1,074
1
374
31
5
0
false
false
false
false
false
false
low
28,664,878
SignalR android client can not have more than two AddMessage subscriptions
<p>I am trying to make a chat application using SignalR between Desktop (C# - WinForms) and Android.</p> <p>I have two methods in my <code>Hub</code>:</p> <pre><code> public void Send(string name, string message) { Clients.All.addMessage(name, message); } public void SendAnswer(string from, st...
I am trying to make a chat application using SignalR between Desktop (C# - WinForms) and Android. I have two methods in my Hub : [CODE] In my android app client I connect to server on a button click, then inside the button click handler I define these two AddMessage subscriptions: [CODE] If I use the Send method of the...
c#|android|.net|signalr
0
2015-02-22T23:49:15.980Z
2,015
2
23
6
527
1
1,011
74
4
4
true
false
false
false
false
false
zero
28,664,950
Losting static atributes data after onActivityResult
<p>I have some data on many static atributes on my classes. Then, when I call <code>startActivityForResult</code> to pick an image (from gallery or camera) and handle the results, the static values just are empty.</p> <p>I know <code>saveInstance</code> from activity and things like that, but that data are not activit...
I have some data on many static atributes on my classes. Then, when I call startActivityForResult to pick an image (from gallery or camera) and handle the results, the static values just are empty. I know saveInstance from activity and things like that, but that data are not activity related. It's set in another class ...
android|android-activity
0
2015-02-22T23:57:22.020Z
2,015
2
23
6
77
1
463
52
2
0
false
false
false
false
false
false
zero
28,665,010
HttpClient - Xamarin Android - MvvmCross
<p>I've been developing an application for Android using Xamarin with MvvmCross and everything has been going fine, me and my team were able to develop the solution and this week we decided to make the final adjustments and to test the application in other environments. During the tests I had a huge problem with the An...
I've been developing an application for Android using Xamarin with MvvmCross and everything has been going fine, me and my team were able to develop the solution and this week we decided to make the final adjustments and to test the application in other environments. During the tests I had a huge problem with the Andro...
android|xamarin|xamarin.android|mvvmcross|dotnet-httpclient
3
2015-02-23T00:05:23.483Z
2,015
2
0
0
3,424
1
1,523
40
5
1
true
false
true
false
false
false
low
28,665,013
Android - java.io.FileNotFoundException open failed: ENOENT (No such file or directory)
<p>I'm trying code an Android app that would parse a .owl file (OWL file) and display the classes and subclasses. I keep getting the following exception when ever I try open the File.</p> <pre><code>02-22 18:48:40.421: W/System.err(535): java.io.FileNotFoundException: /Antibiotics.owl: open failed: ENOENT (No such fil...
I'm trying code an Android app that would parse a .owl file (OWL file) and display the classes and subclasses. I keep getting the following exception when ever I try open the File. [CODE] Here is my Android code: [CODE] I have the file "Antibiotics.owl" in the parent directory of the Project. I'm running the Project on...
java|android|filenotfoundexception
1
2015-02-23T00:05:44.370Z
2,015
2
0
0
10,730
1
438
87
3
2
true
false
true
false
false
false
low
28,665,039
android.database.sqlite.SQLiteException: near ": syntax error (code 1): , while compiling: android programing error
<p>I made an android database with two tables. The second one is not yet initialized but for the first one I get this error. </p> <p>This is my logcat.</p> <pre><code>02-23 01:55:41.494 855-855/tubapps.budgetdatabase E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity...
I made an android database with two tables. The second one is not yet initialized but for the first one I get this error. This is my logcat. [CODE] This is my dbhelper. [CODE] This is my sqlcontroller. [CODE] And this is my main activity. [CODE] Line 55 from DBHelper is this: db.execSQL(CREATE_INCOME_TABLE); Line 21 fr...
android|sqlite|error-handling
4
2015-02-23T00:08:49.523Z
2,015
2
0
0
25,088
2
539
115
3
6
true
false
true
true
false
false
low
28,665,065
Sending a JSON to php server using Android
<p>I'm trying to send a JSON to my server using a HTTP POST, but when i want to see if the data was sending well i can't see anything in my server, it´s like the server doesn´t recognize de json. I don't know if i'm doing something wrong in the way i send the json or in the way i receive an show the JSON in my php serv...
I'm trying to send a JSON to my server using a HTTP POST, but when i want to see if the data was sending well i can't see anything in my server, it´s like the server doesn´t recognize de json. I don't know if i'm doing something wrong in the way i send the json or in the way i receive an show the JSON in my php server....
php|android|json
-1
2015-02-23T00:11:39.833Z
2,015
2
0
0
66
1
494
42
3
3
true
false
false
false
false
true
negative
28,665,079
android manifest action bar logo
<p>This is pretty simple but it's been causing me grief. I want my action bar to display the @drawable resource specified by android:logo within the manifest:</p> <pre><code> &lt;application android:allowBackup="true" android:label="@string/app_name" android:icon="@drawable/logo"...
This is pretty simple but it's been causing me grief. I want my action bar to display the @drawable resource specified by android:logo within the manifest: [CODE] If I remove the android:theme attribute the logo appears but the app immediately crashes due to some illegal state exception at super.onCreate(savedInstanceS...
android|android-actionbar
2
2015-02-23T00:12:48.047Z
2,015
2
0
0
2,990
2
562
32
2
3
true
false
true
false
false
false
low
28,665,100
Why can't I update my view fragment phoneNumberEditText?
<p>I am returning the phone number as a string. I verified it in my logcat. I am trying to use the <code>phoneNumberEditText.setText(phone);</code> to set the phone number which was defined in the class's scope <code>private EditText phoneNumberEditText;</code> I also tried casting the phone as <code>CharSequence</cod...
I am returning the phone number as a string. I verified it in my logcat. I am trying to use the phoneNumberEditText.setText(phone); to set the phone number which was defined in the class's scope private EditText phoneNumberEditText; I also tried casting the phone as CharSequence I keep getting this error [CODE] Here is...
android|android-intent|android-activity|android-fragments|android-fragmentactivity
0
2015-02-23T00:15:12.467Z
2,015
2
0
0
120
2
485
56
5
3
true
false
false
false
false
false
zero
28,665,104
Embedded Browser App for iOS / Android
<p>I am looking for some up-front help for the design of an application which we are going to write for iOS and Adndroid.</p> <p>For the most part, the UI interface will be presented via a web page within an embedded browser, which will be hosted by a device-resident 'wrapper' application. For one or two transactions,...
I am looking for some up-front help for the design of an application which we are going to write for iOS and Adndroid. For the most part, the UI interface will be presented via a web page within an embedded browser, which will be hosted by a device-resident 'wrapper' application. For one or two transactions, the applic...
android|ios|browser
2
2015-02-23T00:15:24.700Z
2,015
2
0
0
4,433
1
791
38
3
0
false
false
true
false
false
false
low
28,665,193
Video upload compression different between via Request and FacebookDialog
<p>I'm noticing a big difference in video compression quality when uploading a video via <code>FacebookDialog</code> versus <code>Request.newUploadVideoRequest</code> where via <code>FacebookDialog</code> the quality is worse.</p> <p>Any ideas why this is happening and if there are any options to disable this compress...
I'm noticing a big difference in video compression quality when uploading a video via FacebookDialog versus Request.newUploadVideoRequest where via FacebookDialog the quality is worse. Any ideas why this is happening and if there are any options to disable this compression? I really want to use FacebookDialog since it ...
android|facebook|facebook-android-sdk
0
2015-02-23T00:26:03.307Z
2,015
2
0
0
50
0
436
73
3
0
false
true
false
false
false
false
zero
28,665,257
android:targetPackage cannot resolve symbol
<p>this might seem trivial but I can't understand why I'm getting this error.</p> <p>I downloaded the sample app activityInstrumentation( from Android Studio <strong>File</strong> -> <strong>import Sample</strong>) and inside the testing project manifest I get an unresolved symbol for</p> <p>android:targetPackage="co...
this might seem trivial but I can't understand why I'm getting this error. I downloaded the sample app activityInstrumentation( from Android Studio File -> import Sample ) and inside the testing project manifest I get an unresolved symbol for android:targetPackage="com.example.android.activityinstrumentation". After th...
android|android-studio|android-testing
4
2015-02-23T00:33:01.783Z
2,015
2
0
0
3,549
2
754
43
3
2
true
false
true
false
false
false
low
28,665,316
How to refer to a layout in java class
<p>For example in the onCreate method in the java class, in order to find the element in the layout you type</p> <pre><code> txtViewRed = (TextView) findViewById(R.id.txtViewRed); </code></pre> <p>I want to change the layout's background colour programmatically. How to refer to the layout in order to make chan...
For example in the onCreate method in the java class, in order to find the element in the layout you type [CODE] I want to change the layout's background colour programmatically. How to refer to the layout in order to make changes? i.e. [CODE]
java|android|xml|layout
0
2015-02-23T00:40:54.763Z
2,015
2
0
0
1,338
3
243
38
4
2
true
false
false
false
false
false
zero
28,665,323
Android Studio imageButton and switching to another Activity
<p>UPDATE:</p> <p>I have 4 imageButtons and each one needs a "setOnClickListener" or similar. Once the listener fires, I have an intent to take the user to the next Activity, which is currently just a blank page:</p> <pre><code>public void onClick(View v){ Intent intent = new Intent(MainActivity.this, NewSong.class)...
UPDATE: I have 4 imageButtons and each one needs a "setOnClickListener" or similar. Once the listener fires, I have an intent to take the user to the next Activity, which is currently just a blank page: [CODE] I started out with 4 Buttons, and had it all working, and then decided to use imageButtons instead for aesthet...
android|listener|imagebutton
1
2015-02-23T00:41:33.923Z
2,015
2
0
0
12,365
3
679
60
3
3
true
false
true
true
false
false
low
28,665,433
LinearLayout or tablelayout for periodic table?
<p>I'm trying to build an android app periodic table , i'm trying to achive something like that in picture : <a href="http://i.stack.imgur.com/oZysS.png" rel="nofollow">http://i.stack.imgur.com/oZysS.png</a></p> <p>First I thought to use table layout but I found out that isn't the best way , so I choose to go with li...
I'm trying to build an android app periodic table , i'm trying to achive something like that in picture : http://i.stack.imgur.com/oZysS.png First I thought to use table layout but I found out that isn't the best way , so I choose to go with linear layout , so first I made a vertical linearlayout (parent) , then for ev...
android|android-layout
0
2015-02-23T00:55:05.353Z
2,015
2
0
0
162
1
725
47
2
0
false
false
false
false
false
false
zero
28,665,511
Android Studio 1.0.1 will not render the visible tabs
<p>Android Studio 1.0.1will not render the ‘Inbox and ‘Friends’ tab.</p> <p>Here is my code:</p> <pre><code>package &amp;&amp;**)))))))))); import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.support.v7.app.ActionB...
Android Studio 1.0.1will not render the ‘Inbox and ‘Friends’ tab. Here is my code: [CODE] I then went to my SectionsPagerAdapter: [CODE] Then in MainActivity, changing the line that sets the adapter to: [CODE] Alternatively, I tried the following code: [CODE]
android|android-fragments
0
2015-02-23T01:05:33.940Z
2,015
2
1
0
218
1
259
53
2
4
true
false
false
false
false
false
zero
28,665,556
JavaVirtualMachines still says "1.6.0.jdk" after installing Java 7 JDK on OS X
<p>I am trying to download the Java 7 jdk for Android Studio on my mac because "Android-21 requires compiling with JDK 7"</p> <p>I have downloaded and installed the Java 7 jdk numerous times and restarted my laptop, but when I go to check the jdk in /System/Library/Java/JavaVirtualMachines it says 1.6.0.jdk</p> <p>Co...
I am trying to download the Java 7 jdk for Android Studio on my mac because "Android-21 requires compiling with JDK 7" I have downloaded and installed the Java 7 jdk numerous times and restarted my laptop, but when I go to check the jdk in /System/Library/Java/JavaVirtualMachines it says 1.6.0.jdk Correct me if I'm wro...
java|android|macos
1
2015-02-23T01:10:41.283Z
2,015
2
1
0
743
2
402
78
3
0
false
false
false
false
false
false
low
28,665,587
What does ContactsContract.Contacts.IN_VISIBLE_GROUP mean in Android?
<p>From the Android developer documentation, this is all I got:</p> <blockquote> <p>An indicator of whether this contact is supposed to be visible in the UI. "1" if the contact has at least one raw contact that belongs to a visible group; "0" otherwise.</p> </blockquote> <p>Essentially what does this mean? What is ...
From the Android developer documentation, this is all I got: An indicator of whether this contact is supposed to be visible in the UI. "1" if the contact has at least one raw contact that belongs to a visible group; "0" otherwise. Essentially what does this mean? What is the purpose of using this flag? I have tried exp...
android|android-contacts
5
2015-02-23T01:16:16.790Z
2,015
2
1
0
1,044
1
849
69
2
0
false
false
false
false
false
false
low
28,665,595
Android BLE Fatal Exception: Main
<p>I am trying to program an Android application that utilizes the BLE feature. I am able to scan and find the devices I am looking for but, when I try to connect to one of the devices, I receive the following error: </p> <pre><code>02-22 18:28:54.603: I/ViewRootImpl(4155): ViewRoot's Touch Event : Touch Down 02-22 18...
I am trying to program an Android application that utilizes the BLE feature. I am able to scan and find the devices I am looking for but, when I try to connect to one of the devices, I receive the following error: [CODE] Once I click on connect, the app shuts down because of the error. Here is my code for the DeviceCon...
android|bluetooth-lowenergy|fatal-error|bluegiga
0
2015-02-23T01:16:42.950Z
2,015
2
1
0
824
2
644
33
4
3
true
false
false
false
false
false
zero
28,665,640
Shared Preferences not working with Contacts in ListView
<p>I've basically got this list view which pulls up phone and numbers of the existing user contacts in the device and populates it. I want to be able to select the phone/numbers and save them as long as the device is still there. My three questions:</p> <ul> <li>The shared preferences doesn't save properly any ideas? ...
I've basically got this list view which pulls up phone and numbers of the existing user contacts in the device and populates it. I want to be able to select the phone/numbers and save them as long as the device is still there. My three questions: The shared preferences doesn't save properly any ideas? Also I'd like to ...
java|android|listview|sharedpreferences|android-contacts
0
2015-02-23T01:21:45.433Z
2,015
2
1
0
167
1
801
56
5
2
true
false
false
false
false
false
zero
28,665,644
What is the difference among Android subversions for GCM?
<p>I've implemented a feature that uses GCM push to deliver push messages to my a client app, however users seem unable to receive push notifications on Android subversions 4.4.4, 4.4.2, 4.2.2, and 4.1.2. (5.0, 4.4, 4.2, and 4.1 are all fine)</p> <p>Is there a common difference between these subversions and their main...
I've implemented a feature that uses GCM push to deliver push messages to my a client app, however users seem unable to receive push notifications on Android subversions 4.4.4, 4.4.2, 4.2.2, and 4.1.2. (5.0, 4.4, 4.2, and 4.1 are all fine) Is there a common difference between these subversions and their main counterpar...
android|google-cloud-messaging
0
2015-02-23T01:21:56.490Z
2,015
2
1
0
55
0
390
57
2
0
false
true
false
false
false
false
zero
28,665,792
setText in EditText throws a null pointer exception when called from a listener
<p>I am trying to create an inverse of a lap counter. Each timer display (hh:mm:ss) is a linear layout made of edittexts. I have a counter (for lap counts) which is a linear layout with just 1 editText. I have a fragment which shows 2 timer layouts and 1 counter layout. </p> <p>My motive is to let the user enter the t...
I am trying to create an inverse of a lap counter. Each timer display (hh:mm:ss) is a linear layout made of edittexts. I have a counter (for lap counts) which is a linear layout with just 1 editText. I have a fragment which shows 2 timer layouts and 1 counter layout. My motive is to let the user enter the total time an...
android|android-layout|android-edittext|settext|oncheckedchanged
0
2015-02-23T01:43:04.903Z
2,015
2
1
0
1,001
1
1,146
79
5
3
true
false
false
false
false
false
zero
28,665,803
Save spinner state even moved to another activity with Android
<p>I want to save my spinner state even when I move to a different activity and come back to the page with the spinner, the state should be the same. I have no idea how to do it, I saw some examples on other threads on stack overflow but I don't understand them.</p> <p>Here's my code:</p> <pre><code> spinner.s...
I want to save my spinner state even when I move to a different activity and come back to the page with the spinner, the state should be the same. I have no idea how to do it, I saw some examples on other threads on stack overflow but I don't understand them. Here's my code: [CODE] Thanks for the help.
android|spinner|state
0
2015-02-23T01:45:35.427Z
2,015
2
1
0
151
1
303
62
3
1
true
false
false
false
false
false
zero
28,665,817
ParseObject not updated after trying to update/sve it in android
<p>I am trying to retrieve a row in my table on parse. I found the objectId, but when I try to update the row with new information, nothing happens. Any help would be appreciated. Thanks!</p> <pre><code>mSaveAndNextSteps.setOnClickListener(new View.OnClickListener() { @Override public void onClick(V...
I am trying to retrieve a row in my table on parse. I found the objectId, but when I try to update the row with new information, nothing happens. Any help would be appreciated. Thanks! [CODE]
android|parse-platform
0
2015-02-23T01:47:14.833Z
2,015
2
1
0
139
1
191
64
2
1
true
false
false
false
false
false
zero
28,665,844
Endless adapter for android ListView
<p>I use <a href="https://github.com/koush/ion" rel="nofollow">Ion</a> library to receive data from server. I have problem, that my code makes get request multiple times, so I have data duplication in my list. My adapter code:</p> <pre class="lang-java prettyprint-override"><code>public class ArticleAdapter extends A...
I use Ion library to receive data from server. I have problem, that my code makes get request multiple times, so I have data duplication in my list. My adapter code: [CODE] } I think the problem is in this part: [CODE]
android|listview|android-ion
1
2015-02-23T01:50:59.980Z
2,015
2
1
0
484
2
218
36
3
2
true
false
false
false
false
false
low
28,665,912
EditText sending messages won't allow special characters
<p>I have a chat application that allows sending messages so long as there are no special characters within ie. no commas, apostrophes...etc. I am implementing with an EditTest as such:</p> <pre><code> CharSequence message; message = enteredMessage.getText(); sendMessage(from, to, message.toString()); </c...
I have a chat application that allows sending messages so long as there are no special characters within ie. no commas, apostrophes...etc. I am implementing with an EditTest as such: [CODE] How can I reformulate to allow for commas, apostrophes and other normally used sentence constructs without the service having issu...
android|parsing
0
2015-02-23T02:00:52.477Z
2,015
2
2
0
180
2
331
56
2
1
true
false
false
false
false
false
zero
28,665,954
Populate ListView using List
<p>I am trying to display data from my sqlite database. In my <strong>DatabaseHandler.java</strong> I have this method:</p> <pre><code>public List&lt;Item&gt; getAllItemsinList() { List&lt;Item&gt; itemList = new ArrayList&lt;Item&gt;(); // Select All Query String selectQuery = "SELECT * FROM " + TABLE_IT...
I am trying to display data from my sqlite database. In my DatabaseHandler.java I have this method: [CODE] It returns a List with the type Item . In my MainActivity.java I have this method: [CODE] The listview is populated, however, objects are being displayed instead of the data the database contains. Example of text ...
java|android|sqlite|listview|arraylist
1
2015-02-23T02:07:31.150Z
2,015
2
2
0
950
2
429
28
5
2
true
false
false
false
false
false
low
28,665,991
QPython error: 'Needs more than one value to unpack'
<p>I started programming on my Android with Qpython and kivy. But every time i run this code, it teels me that I need more than one value to unpack. What did I do wrong? Here is the code:</p> <pre><code>from kivy.app import App from kivy.uix.widget import Widget from kivy.graphics import Color, Ellipse, Line class M...
I started programming on my Android with Qpython and kivy. But every time i run this code, it teels me that I need more than one value to unpack. What did I do wrong? Here is the code: [CODE]
android|unpack|qpython
0
2015-02-23T02:12:05.800Z
2,015
2
2
0
134
1
191
52
3
1
true
false
false
false
false
false
zero
28,666,153
Android Studio 1.1.0 on OSX Yosemite
<p>It's just me or when using Android Studio string resource editor, anytime I try to add a resource string Android Studio taggify the content of the string resource, this is what I mean:</p> <pre><code>&lt;string name="disconnected"&gt;&lt;Connected&gt;&lt;to&gt;&lt;device&gt;&lt;/device&gt;&lt;/to&gt;&lt;/Connected&...
It's just me or when using Android Studio string resource editor, anytime I try to add a resource string Android Studio taggify the content of the string resource, this is what I mean: [CODE] I was searching through the issues on Android Studio but I can't find anything like this reported!
android|android-studio
0
2015-02-23T02:36:10.147Z
2,015
2
2
0
80
0
290
36
2
1
true
true
false
false
false
false
zero
28,666,203
Google Maps Android V2 padding with rotation around user
<p>I'm developing an app that is using a google map to show your location. I want to rotate the map around the users location. I use getOrientation(R, orientation) (and adjust for true north) to get the device rotation which is working fine but i want the user location to be near the bottom of the screen. I have set th...
I'm developing an app that is using a google map to show your location. I want to rotate the map around the users location. I use getOrientation(R, orientation) (and adjust for true north) to get the device rotation which is working fine but i want the user location to be near the bottom of the screen. I have set the p...
android|google-maps
5
2015-02-23T02:45:56.267Z
2,015
2
2
0
700
1
649
56
2
1
true
false
false
false
false
false
low
28,666,297
Package names in Android studio when dev name starts with a number?
<p>I want to create apps under my company's name and Android Studio recommends using your domain, eg:</p> <p>domain: example.com</p> <p>App: myApp</p> <p>gives a package name of com.example.myApp</p> <p>That's all fine, but my company name begins with a number and Android Studio informs me I can't have numbers, eg:...
I want to create apps under my company's name and Android Studio recommends using your domain, eg: domain: example.com App: myApp gives a package name of com.example.myApp That's all fine, but my company name begins with a number and Android Studio informs me I can't have numbers, eg: com.1example.myApp Now I could try...
android|android-studio|package-name
3
2015-02-23T02:59:08.940Z
2,015
2
2
0
2,684
1
687
67
3
0
false
false
true
false
false
false
low
28,666,335
How to add Leading Zero with getMonth in Java (Android)
<p>I'm using an int variable:</p> <pre><code>month = dp.getMonth() + 1; </code></pre> <p>currently getting an output of "2" and when I do the following:</p> <pre><code>if (month&lt;10){ month = '0'+month; }; </code></pre> <p>I get: 50.</p>
I'm using an int variable: [CODE] currently getting an output of "2" and when I do the following: [CODE] I get: 50.
java|android|date|getdate
17
2015-02-23T03:06:00.860Z
2,015
2
3
0
24,582
1
115
55
4
2
true
false
true
true
true
false
medium
28,666,336
Android lollipop UI in KitKat
<p>I am developing an android app and I would like to have android l ui on it even for KitKat. I have seen apps like inbox and pushbullet to use this such as the rotation of the circle button and the status bar recolor. How do they do this?</p>
I am developing an android app and I would like to have android l ui on it even for KitKat. I have seen apps like inbox and pushbullet to use this such as the rotation of the circle button and the status bar recolor. How do they do this?
android
0
2015-02-23T03:06:06.890Z
2,015
2
3
0
2,453
1
237
29
1
0
false
false
false
false
false
false
zero
28,666,445
Fragmente and Context
<p>I have this code into one <strong>Fragment</strong> but where ask for Context in the Fragment it does not work:</p> <pre><code>SimpleCursorAdapter ad1 = new SimpleCursorAdapter(**What i put here**, R.layout.spinner, cursor, from, to); </code></pre> <p>if this code were into <em>Activity</em> it would be:</p> <pr...
I have this code into one Fragment but where ask for Context in the Fragment it does not work: [CODE] if this code were into Activity it would be: [CODE] Please help me.
android|android-activity|fragment|simplecursoradapter|android-context
-2
2015-02-23T03:21:10.080Z
2,015
2
3
0
56
2
169
21
5
2
true
false
false
false
false
true
negative
28,666,454
Flash AIR game: What Performance To Expect Of Blitting
<p>I have tried writting my own blit-based 2D side scroller game engine in Flash AS3</p> <p>Question is: What should be the amount of blitted sprites i can expect on a computer in a 2d side scroller game? I can currently roughly run:</p> <p>100 gameObject (ie enemies, player characters, npcs, item drops etc)</p> <p>...
I have tried writting my own blit-based 2D side scroller game engine in Flash AS3 Question is: What should be the amount of blitted sprites i can expect on a computer in a 2d side scroller game? I can currently roughly run: 100 gameObject (ie enemies, player characters, npcs, item drops etc) or 400 background Object (s...
android|actionscript-3|flash|air|game-engine
0
2015-02-23T03:21:51.250Z
2,015
2
3
0
83
0
771
54
5
0
false
true
false
false
false
false
zero
28,666,512
Flag automatically changes it's value from 0 to 1
<p>I just experienced a weird behavior of flag. I'm writing an application in <strong>android</strong> where I needed to use a flag to check whether the alarm is fired or not. Initially it's set to 0 and once the alarm is fired it should change it's value to 1.</p> <p>I know I should create a flag with <code>int</code...
I just experienced a weird behavior of flag. I'm writing an application in android where I needed to use a flag to check whether the alarm is fired or not. Initially it's set to 0 and once the alarm is fired it should change it's value to 1. I know I should create a flag with int data type but I created with String tho...
android|flags
0
2015-02-23T03:30:01.160Z
2,015
2
3
0
186
0
948
49
2
2
true
true
false
false
false
false
zero
28,666,573
onTouchEvent hold down, continuous execution
<p>In my onTouchEvent() method, I want to perform an action that continues to repeat itself until I lift my finger off the screen. Here is my code:</p> <pre><code>public void onTouchEvent(MotionEvent event) { synchronized (this) { Matrix matrix = new Matrix(); float x = event.getX(); if (x...
In my onTouchEvent() method, I want to perform an action that continues to repeat itself until I lift my finger off the screen. Here is my code: [CODE] But the problem is, if I hold down my finger and do not move it, the action will only perform once. I have tried various solutions, including [CODE] and making the acti...
android|touch
2
2015-02-23T03:38:49.810Z
2,015
2
3
0
1,212
1
556
44
2
3
true
false
false
false
false
false
low
28,666,583
UnsatisfiedLinkError (com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid)
<p>Error occurred in running app in device:</p> <pre><code> java.lang.UnsatisfiedLinkError: Native method not found: com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid:(Ljava/lang/String;)Z at com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid(Native Method) at com.esri.core.runtime.Licens...
Error occurred in running app in device: [CODE] Related code: [CODE] build.gradle: [CODE] proguard-rules.txt: [CODE] Logcat: [CODE] I use: Android Studio 1.0.2 and ArcGIS SDK 10.2.5 There is no problem if the app is run by Android Studio. Error occurred if the app is generated in APK, install in a device, and then run....
android|arcgis|unsatisfiedlinkerror
7
2015-02-23T03:40:23.673Z
2,015
2
3
0
893
4
407
78
3
5
true
false
false
false
false
false
medium
28,666,603
HashMap Display Of String[] In ListView
<p>I'm trying to display some String[] values in a listview through a hashmap. When I go to try to display this, the values themselves arent displayed but a random display of numbers is displayed [Ljava.lang.String;@....."]. My relevant code is below: </p> <pre><code>//NEW TEST STUFF feedList= new ArrayList&lt;Has...
I'm trying to display some String[] values in a listview through a hashmap. When I go to try to display this, the values themselves arent displayed but a random display of numbers is displayed [Ljava.lang.String;@....."]. My relevant code is below: [CODE] What is causing this???
android|listview|hashmap
0
2015-02-23T03:43:58.110Z
2,015
2
3
0
123
2
279
39
3
1
true
false
false
false
false
false
zero
28,666,705
How to solve this: Unable to add window -- token null is not for an application
<p>I have been found in StackOverFlow about this problem many times,but I can't find the problem similar to mine.So I have to ask this question.</p> <p><strong>I have a custom button in viewpager,when I press this button,a dialog will show.</strong></p> <p>But It always crashed because <strong>Unable to add window -...
I have been found in StackOverFlow about this problem many times,but I can't find the problem similar to mine.So I have to ask this question. I have a custom button in viewpager,when I press this button,a dialog will show. But It always crashed because Unable to add window -- token null is not for an application Can an...
android|android-viewpager|android-custom-view|android-dialog
1
2015-02-23T03:57:31.380Z
2,015
2
3
0
913
2
434
79
4
2
true
false
false
false
false
false
low
28,666,735
How to host android app. I am using mysql and Tomcat server
<p>I have made a simple chat application which communicates with the Tomcat server and tomcat server in turns communicate with MySQL to retrieve users information.</p> <p>Inside tomcat a servlet is running.</p> <p>Right Now I am using this on a same network but now I want to publish my app.</p> <p>For e.x my ip addr...
I have made a simple chat application which communicates with the Tomcat server and tomcat server in turns communicate with MySQL to retrieve users information. Inside tomcat a servlet is running. Right Now I am using this on a same network but now I want to publish my app. For e.x my ip address is 172.24.0.47 and the ...
java|android|mysql|tomcat|servlets
0
2015-02-23T04:01:48.227Z
2,015
2
4
0
552
1
693
59
5
0
false
false
false
false
false
false
zero
28,666,740
How to add 1 month on 28 feb in android
<p>I set Today is <strong>Feb 28 2014</strong> and i using the code :</p> <pre><code>cal.add(Calendar.MONTH, 1); </code></pre> <p>The output is <strong><em>Mar 28 2014</em></strong></p> <p>But i want to show <strong><em>Mar 31 2014</em></strong></p> <p>what should i do ? </p>
I set Today is Feb 28 2014 and i using the code : [CODE] The output is Mar 28 2014 But i want to show Mar 31 2014 what should i do ?
java|android|date|calendar
1
2015-02-23T04:02:51.050Z
2,015
2
4
0
342
1
132
39
4
1
true
false
false
false
false
false
low
28,666,775
Change Android dropdown spinner color AppCompat
<p>I'm trying to to change the popupMenu / DropDown color of the actionBar:</p> <p>Here's what I have:</p> <p>Styles.xml</p> <p> </p> <pre><code>&lt;style name="Theme.Moy" parent="@style/Theme.AppCompat"&gt; &lt;item name="colorPrimary"&gt;@color/red_moy&lt;/item&gt; &lt;item name="colorPrimaryDark"&gt;@col...
I'm trying to to change the popupMenu / DropDown color of the actionBar: Here's what I have: Styles.xml [CODE] Styles.xml values-v14 [CODE] It's supposed to be red, but it's still dark grey (default) Thanks for your help!
android|xml|android-actionbar|android-appcompat|android-styles
0
2015-02-23T04:08:02.293Z
2,015
2
4
0
3,135
1
221
47
5
2
true
false
true
false
false
false
zero
28,666,792
How to obtain results in Filter.Filterlistener of Filter.filter()?
<p>In an Android app, I have a common setup -- a ListView with an ArrayAdapter. At a certain point I call the adapter's getFilter().filter() method, which very nicely restricts the collection of ListView items displayed on the screen. But what I'd really like to do is obtain, programmatically, a list of those display...
In an Android app, I have a common setup -- a ListView with an ArrayAdapter. At a certain point I call the adapter's getFilter().filter() method, which very nicely restricts the collection of ListView items displayed on the screen. But what I'd really like to do is obtain, programmatically, a list of those displayed it...
android|filter|adapter
1
2015-02-23T04:10:40.927Z
2,015
2
4
0
1,107
1
882
66
3
1
true
false
false
false
false
false
low
28,666,817
appcompat-21 Drawer And Back Arrow Size differs in size
<p>I am using appcompat 21 as support library and using toolbar. The problem i am facing is the back arrow when drawer is open and the back arrow of activity set using </p> <blockquote> <p>getSupportActionBar().setDisplayHomeAsUpEnabled(true);</p> </blockquote> <p>are differ in size.</p> <p>I am not using any imag...
I am using appcompat 21 as support library and using toolbar. The problem i am facing is the back arrow when drawer is open and the back arrow of activity set using getSupportActionBar().setDisplayHomeAsUpEnabled(true); are differ in size. I am not using any image for that. Just using native controls and coding for dra...
android|navigation-drawer|android-appcompat
2
2015-02-23T04:14:46.477Z
2,015
2
4
0
217
0
448
55
3
0
false
true
false
false
false
false
low
28,666,835
soft keyboard doesn't close and freeze when close
<p><strong>SCENARIO</strong></p> <p>My App is open 3rd party application from Activity C (A->B->C). After, 3rd party application finished it return to my application on Activity C. Everything work fine until only one EditText in Activity C was typing with soft keyboard and I want to close it.</p> <blockquote> <p>So...
SCENARIO My App is open 3rd party application from Activity C (A->B->C). After, 3rd party application finished it return to my application on Activity C. Everything work fine until only one EditText in Activity C was typing with soft keyboard and I want to close it. Soft Keyboard freeze and not close, also my app didn'...
android
0
2015-02-23T04:17:31.597Z
2,015
2
4
0
383
1
707
49
1
5
true
false
false
false
false
false
zero
28,666,896
Android Array to ListView: NullExceptionPointer
<p>I am new to Android and I am trying to display the arrays on a listview, but I'm getting a nullpointerexception with these codes. I tried displaying my array with a toast, and I think there's no problem with it. Is there something wrong with how I declared the ArrayAdapter? Here are my codes:</p> <pre><code>ListVie...
I am new to Android and I am trying to display the arrays on a listview, but I'm getting a nullpointerexception with these codes. I tried displaying my array with a toast, and I think there's no problem with it. Is there something wrong with how I declared the ArrayAdapter? Here are my codes: [CODE] PS: I've tried List...
android|arrays|listview|nullpointerexception
0
2015-02-23T04:26:50.447Z
2,015
2
4
0
48
0
419
47
4
1
true
true
false
false
false
false
zero
28,666,908
Android Studios App Development
<p>I am developing an app on android and I'm trying to run the app through the emulator but every time it tells me that it has stopped working and I get these lines:</p> <pre><code>02-22 23:22:21.977 2170-2170/com.example.sarvagyagupta1.myapp E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.sarvagya...
I am developing an app on android and I'm trying to run the app through the emulator but every time it tells me that it has stopped working and I get these lines: [CODE] Please, someone help me with this.
java|android|development-environment|visual-studio-sdk
-2
2015-02-23T04:28:33.127Z
2,015
2
4
0
2,415
1
204
31
4
1
true
false
false
false
false
true
negative
28,666,996
Output versionName property during build
<p>Android project's <code>build.gradle</code> says <code>versionName "foo"</code></p> <p>How can I get gradle to echo that value of <code>versionName</code> at build time?</p> <p><code>gradlew properties</code> reports a lot of stuff, but there's no <code>foo</code> &amp; it says <code>version: unspecified</code></p...
Android project's build.gradle says versionName "foo" How can I get gradle to echo that value of versionName at build time? gradlew properties reports a lot of stuff, but there's no foo & it says version: unspecified
android|gradle
0
2015-02-23T04:39:26.553Z
2,015
2
4
0
77
1
216
40
2
0
false
false
false
false
false
false
zero
28,667,072
Android + RxJava - loading data from db AND web service
<p>I want to use RxJava to load data from a web service (via Retrofit). I also have a database cache of previous results.</p> <p>Let assume I already have observables for each of these:</p> <pre><code>Observable&lt;List&lt;MyModel&gt;&gt; networkObservable = retrofitService.getModels(); Observable&lt;List&lt;MyModel&...
I want to use RxJava to load data from a web service (via Retrofit). I also have a database cache of previous results. Let assume I already have observables for each of these: [CODE] I want to merge these 2 observables into one: [CODE] The behaviour I want is for subscribers to receive the database results as soon as a...
android|rx-java|rx-android
7
2015-02-23T04:48:36.663Z
2,015
2
4
0
4,034
1
889
55
3
3
true
false
true
false
false
false
medium
28,667,110
images are saved upside down from front facing android camera
<p>i'm trying to capture an image from my front camera and save it into my gallery, it works fine with back camera in both orientations PORTRAIT and LANDSCAPE but with the front camera it works fine with the Landscape only , </p> <blockquote> <p>if it's PORTRAIT the image is rotated 180 degrees upside down i have ...
i'm trying to capture an image from my front camera and save it into my gallery, it works fine with back camera in both orientations PORTRAIT and LANDSCAPE but with the front camera it works fine with the Landscape only , if it's PORTRAIT the image is rotated 180 degrees upside down i have tried the following code as i...
android|camera
0
2015-02-23T04:53:07.953Z
2,015
2
4
0
1,613
1
374
61
2
1
true
false
false
false
false
false
zero
28,667,113
intelliJ, Android Studio - Javadoc comment auto complete
<p>I am transitioning from eclipse to android studio and wondering how I can enable the auto-complete in javadoc comments. For example in eclipse, in javadoc comments if we type <code>HttpRe</code> and press <kbd>Ctrl</kbd>+<kbd>Space</kbd>, it gives the option of <code>{@link HttpRequest}</code> tag or if we type <co...
I am transitioning from eclipse to android studio and wondering how I can enable the auto-complete in javadoc comments. For example in eclipse, in javadoc comments if we type HttpRe and press Ctrl + Space , it gives the option of {@link HttpRequest} tag or if we type <cod and press Ctrl + Space , it is changed to <code...
android|eclipse|intellij-idea
0
2015-02-23T04:53:29.063Z
2,015
2
4
0
412
1
371
56
3
0
false
false
false
false
false
false
zero
28,667,116
ImageView in List will not clear previous image
<p>I have <code>ListView</code> that accepts an <code>ArrayAdapter</code>. The <code>ArrayAdapter</code> has an <code>ImageView</code> that is populated by Picasso (the library from Square) when an image is shared. However, after a message with an image is shared and placed in the <code>ImageView</code> in that list it...
I have ListView that accepts an ArrayAdapter . The ArrayAdapter has an ImageView that is populated by Picasso (the library from Square) when an image is shared. However, after a message with an image is shared and placed in the ImageView in that list item, if another message, without an image, is shared, that same prev...
android|listview|imageview
0
2015-02-23T04:53:37.393Z
2,015
2
4
0
148
1
872
47
3
1
true
false
false
false
false
false
zero
28,667,125
Android Java InputDispatcher Error
<p>I have build android app where i need to place JSON data to button. the code running well but when i place button list to Linear Layout I've got Inputdispatcher Error. here is my code.</p> <pre><code> protected JSONObject doInBackground(String... params) { mCommentList = new ArrayList&lt;HashMap&lt;...
I have build android app where i need to place JSON data to button. the code running well but when i place button list to Linear Layout I've got Inputdispatcher Error. here is my code. [CODE] how could i resolve this trouble?
java|android
1
2015-02-23T04:54:19.543Z
2,015
2
4
0
163
0
225
34
2
1
true
true
false
false
false
false
low
28,667,127
Stopping a running handler
<p>I have implemented a handler that allows the user to start an event that repeats every 5 seconds using the taskbar menu. What is the best method to use that would also allow the user to stop the event from the taskbar menu?</p> <pre><code>public class MainActivity extends Activity{ @Override public boolean onO...
I have implemented a handler that allows the user to start an event that repeats every 5 seconds using the taskbar menu. What is the best method to use that would also allow the user to stop the event from the taskbar menu? [CODE] Solution: [CODE]
android|timer|android-handler
0
2015-02-23T04:54:25.690Z
2,015
2
4
0
328
2
247
26
3
2
true
false
false
false
false
false
zero
28,667,140
ListView text changing but not adapter data
<p>I added 3 items to my <code>ListView</code>. Each item says "Test". When I click on an item, I clear that item's text. However, when I check the variable in the "watches" log, the item is still named "Test" even though I removed the text.</p> <p>watches log:</p> <pre><code>adapter2.getItem(1) = {java.lang.String@8...
I added 3 items to my ListView . Each item says "Test". When I click on an item, I clear that item's text. However, when I check the variable in the "watches" log, the item is still named "Test" even though I removed the text. watches log: [CODE] I want the ListView to get updated and make the item blank after being cl...
android|listview|adapter|android-arrayadapter
0
2015-02-23T04:56:26.470Z
2,015
2
4
0
1,384
2
477
43
4
3
true
false
false
false
false
false
zero
28,667,151
How to Transfer unknown data array to webview using json in android
<p>I am getting a array from cursor, I want to pass the array to webview for display as chart. I don't have any experience in Json can you help.</p> <p>For Conversion to Json </p> <pre><code> @JavascriptInterface public JSONArray getNum11() { JSONArray myArray = new JSONArray(Arrays.asList(mA...
I am getting a array from cursor, I want to pass the array to webview for display as chart. I don't have any experience in Json can you help. For Conversion to Json [CODE] Reconversion to Array [CODE]
javascript|android|json|arraylist|android-webview
0
2015-02-23T04:58:05.417Z
2,015
2
4
0
868
1
200
67
5
2
true
false
false
false
false
false
zero
28,667,155
How to remove repeatable keys, key preview of the Android custom keyboard
<p>How to remove repeating keys, key preview of Android Custom Keyboard. I used following method to remove key preview of the keys that I want. But that method is not working for repeatable keys. (android:isRepeatable="true") If the key is not repeatable, following method is working.</p> <p><strong>delete key xml</str...
How to remove repeating keys, key preview of Android Custom Keyboard. I used following method to remove key preview of the keys that I want. But that method is not working for repeatable keys. (android:isRepeatable="true") If the key is not repeatable, following method is working. delete key xml [CODE] Input method ser...
java|android|android-softkeyboard
7
2015-02-23T04:58:48.913Z
2,015
2
4
0
1,643
4
337
73
3
2
true
false
false
false
false
false
medium
28,667,185
Replace PageTitleStrip with ActionBar...Alternatives?
<p>Action Bar navigation modes are deprecated. Other resources suggest to use PageTitleStrip to achieve lateral navigation between different tabs. However, PageTitleStrip does not achieve the same effect as adding tabs in the Action Bar. While using PageTitleStrip, the "tabs" also swipe and do not stay in their origina...
Action Bar navigation modes are deprecated. Other resources suggest to use PageTitleStrip to achieve lateral navigation between different tabs. However, PageTitleStrip does not achieve the same effect as adding tabs in the Action Bar. While using PageTitleStrip, the "tabs" also swipe and do not stay in their original p...
android|tabs|android-actionbar|horizontal-scrolling|swipeview
0
2015-02-23T05:02:02.587Z
2,015
2
5
0
142
0
439
53
5
0
false
true
false
false
false
false
zero
28,667,198
How can I encode a string in Java to use as a filename?
<p>I'm receiving a string from an external process.I want to use that String to call a filename. How can I safely encode the String so that it can be used as a filename? </p>
I'm receiving a string from an external process.I want to use that String to call a filename. How can I safely encode the String so that it can be used as a filename?
java|android
0
2015-02-23T05:03:27.233Z
2,015
2
5
0
54
1
166
55
2
0
false
false
false
false
false
false
zero
28,667,241
How to set baud rate from 19200 to 115200 in android.?
<p>I am creating an android application that consists of usb host communication. In this i used 19200 baud rate but here i want it by 115200. please tell me how to set baud rate 115200 This is my activity:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
I am creating an android application that consists of usb host communication. In this i used 19200 baud rate but here i want it by 115200. please tell me how to set baud rate 115200 This is my activity: [CODE]
android|arduino|usb|communication
2
2015-02-23T05:08:56.920Z
2,015
2
5
0
1,300
0
209
54
4
1
true
true
false
false
false
false
low
28,667,245
AppCompact v21 back navigation with fragment menu
<p>So.. I'm facing a problem that has been driving me crazy for the past hours.</p> <p>I have an App using the AppCompact v21 and toolbar. I also handle back navigation using:</p> <pre><code> getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupp...
So.. I'm facing a problem that has been driving me crazy for the past hours. I have an App using the AppCompact v21 and toolbar. I also handle back navigation using: [CODE] In combination with the parent activity on the manifest. Which works perfect.... My problem is: I have an activity with 3 tabs with a viewpager and...
android|android-fragments|android-appcompat|android-menu|android-toolbar
0
2015-02-23T05:09:16.580Z
2,015
2
5
0
354
1
626
49
5
2
true
false
false
false
false
false
zero
28,667,274
Does setRetainInstance() method retain ArrayAdapter data?
<p>I'm working in an application that has a <code>SearchActivity</code>; the search activity is only a container for the "SearchFragment" and "SearchFragment" contains a <code>SearchView</code> in the ActionBar, and its main layout has a <code>RecyclerView</code> to display search results. Supposing that the user perfo...
I'm working in an application that has a SearchActivity ; the search activity is only a container for the "SearchFragment" and "SearchFragment" contains a SearchView in the ActionBar, and its main layout has a RecyclerView to display search results. Supposing that the user perform a search, the results are showed withi...
java|android|android-fragments
0
2015-02-23T05:12:49.797Z
2,015
2
5
0
336
2
662
57
3
1
true
false
false
false
false
false
zero
28,667,278
android-Why custom actionbar doesn't fill the width
<p>this is my custom layout xml :</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_parent" android:background="#000" android:adjustViewBounds="true...
this is my custom layout xml : [CODE] this is my actionbar java code: [CODE] this is the activity theme in manifest: [CODE] This is the result : as you can see , the black layout doesn't fill the width , I don't know why. How can I make custom actionbar to fill the screen width ?
android|android-layout|android-actionbar
3
2015-02-23T05:13:25.657Z
2,015
2
5
0
1,463
3
280
51
3
3
true
false
false
false
false
false
low
28,667,290
Pulling project changes automatically from Bitbucket
<p>I have two projects: <code>Proj1</code> and <code>Proj2</code>. I want to include <code>Proj2</code> in <code>Proj1</code> like a library. Also, <code>Proj2</code> is stored on Bitbucket. Is it possible in automatic mode to pull changes of the <code>Proj2</code> from Bitbucket before building the main project? </p> ...
I have two projects: Proj1 and Proj2 . I want to include Proj2 in Proj1 like a library. Also, Proj2 is stored on Bitbucket. Is it possible in automatic mode to pull changes of the Proj2 from Bitbucket before building the main project? I use the Android Studio and Gradle. Thanks.
android|git|bitbucket|android-gradle-plugin|android-build
1
2015-02-23T05:15:15.433Z
2,015
2
5
0
42
0
279
52
5
0
false
true
false
false
false
false
low
28,667,303
Array resource returning integer
<p>I'm just getting into android app development. I'm trying to find the value of an item in an array resource from the index, but the resource is returning an integer rather than an array. I have this piece of code:</p> <pre><code> pop1.setItems(R.array.PopupMenuListItems, new DialogInterface.OnClickLi...
I'm just getting into android app development. I'm trying to find the value of an item in an array resource from the index, but the resource is returning an integer rather than an array. I have this piece of code: [CODE] and when the Toast message shows, it shows "Selected 2131492864", and I can't index an integer. So,...
java|android|arrays
0
2015-02-23T05:16:29.527Z
2,015
2
5
0
69
2
466
32
3
1
true
false
false
false
false
false
zero
28,667,311
Launch native camera app with option to capture either video or image
<p>I've written an app before where I open the native camera app to capture an image like this:</p> <p><code>Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);</code></p> <p>Or, like this for capturing video:</p> <p><code>Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);</cod...
I've written an app before where I open the native camera app to capture an image like this: Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Or, like this for capturing video: Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); But is there a way to open the native camera app w...
android|camera
6
2015-02-23T05:17:06.490Z
2,015
2
5
0
1,482
1
866
69
2
0
false
false
false
false
false
false
medium
28,667,438
Size limitation on attached Parcelable?
<p>I want to know is there any size limitation on <code>Parcelable</code> that attached to an <code>Intent</code>? I Read some docs about <code>Intents</code>, <code>Bundles</code>, <code>Parcelable</code> again and there was nothing about size limitation. But I read some <a href="https://stackoverflow.com/a/24631097/1...
I want to know is there any size limitation on Parcelable that attached to an Intent ? I Read some docs about Intents , Bundles , Parcelable again and there was nothing about size limitation. But I read some answers , that say size of attached Parcelable is limited (for example, 1 MB). So are Parcelable s limited by si...
android|android-intent|parcelable|android-bundle
19
2015-02-23T05:33:14.713Z
2,015
2
5
0
9,386
1
356
39
4
0
false
false
true
false
true
false
medium
28,667,452
how to retrieve each row as json object
<p>my php code is this:</p> <pre><code>&lt;?php $host="localhost"; //replace with database hostname $username="root"; //replace with database username $password=""; //replace with database password $db_name="hg"; //replace with database name $con=mysql_connect("$host", "$username", "$password")or die("cannot conne...
my php code is this: [CODE] my output is this: [CODE] now i want to retrieve each questionId(i.e. question, teacherId, grade, etc.) data individually in android. for example: questionId:1, Question:had dinner, teacherId:2 ... questionId:2, Question:give two example, teacherId:11 ... questionId:3, Question:define, teach...
php|android|mysql
2
2015-02-23T05:34:38.363Z
2,015
2
5
0
94
2
331
39
3
2
true
false
false
false
false
false
low
28,667,575
Pinning public key in my app
<p>I am pinning public key in my app as part of security measures, for that I have extracted public key from my PEM certificate which looks like</p> <pre><code>-----BEGIN PUBLIC KEY----- MIIBIj....IDAQAB -----END PUBLIC KEY----- </code></pre> <p>However in sample code of OWASP, we do see code to compare DER encoded p...
I am pinning public key in my app as part of security measures, for that I have extracted public key from my PEM certificate which looks like [CODE] However in sample code of OWASP, we do see code to compare DER encoded public key, [CODE] I know DER is a binary format, however not sure how author converted or extracted...
android|public|pinning
5
2015-02-23T05:49:22.897Z
2,015
2
5
0
3,502
1
603
28
3
3
true
false
true
false
false
false
low
28,667,583
Remove all notifications from notification bar
<p>I want to remove all cancelable notifications from status bar. I know how to remove my app notifications I have seen this <a href="https://stackoverflow.com/questions/3595232/android-remove-notification-from-notification-bar">post</a> before, butI want to remove other apps notifications.</p> <p>There is a "Clear" b...
I want to remove all cancelable notifications from status bar. I know how to remove my app notifications I have seen this post before, butI want to remove other apps notifications. There is a "Clear" button in notifications in all android versions which clears all notifications with this flag: Notification.FLAG_AUTO_CA...
android|android-notifications
10
2015-02-23T05:50:07.120Z
2,015
2
5
0
15,088
2
482
46
2
0
false
false
true
true
true
false
medium
28,667,664
How to reduce this below java code?
<p>Here I've written some code to navigate to different links using different buttons in android. Is there anyway to reduce my code further than I've coded. If it is possible please do help me to reduce the code. here is my code:</p> <pre><code>Button tv = (Button) findViewById(R.id.my1); tv.setOnClickListener(new...
Here I've written some code to navigate to different links using different buttons in android. Is there anyway to reduce my code further than I've coded. If it is possible please do help me to reduce the code. here is my code: [CODE]
java|android
-2
2015-02-23T05:57:07.110Z
2,015
2
5
0
77
5
233
35
2
1
true
false
false
false
false
true
negative
28,667,666
Android Studio shuts down forcefully
<p>I am having a good problem with Android Studio. Initially I was using eclipse to develop android App, but eclipse display funny stuffs like deleting all my codes and most times crashes so I decided to try Android Studio.</p> <p>Now am using android studio, but whenever I open an activity to start typing code, the I...
I am having a good problem with Android Studio. Initially I was using eclipse to develop android App, but eclipse display funny stuffs like deleting all my codes and most times crashes so I decided to try Android Studio. Now am using android studio, but whenever I open an activity to start typing code, the IDE forceful...
android|android-studio
4
2015-02-23T05:57:07.493Z
2,015
2
5
0
7,112
3
860
36
2
0
false
false
true
false
false
false
low
28,667,672
How to make onUpgrade() statements run even on first installation?
<p>In my application i have a database which is created using DB queries in the DBHelper class. I want the onUpgrade statement to run on installation of the apk as there is a possiblity that the user might unistall and install the same application. </p> <p>In this case it becomes the first installation on the device a...
In my application i have a database which is created using DB queries in the DBHelper class. I want the onUpgrade statement to run on installation of the apk as there is a possiblity that the user might unistall and install the same application. In this case it becomes the first installation on the device and the onUpg...
android|sqlite
1
2015-02-23T05:57:29.193Z
2,015
2
5
0
137
1
568
66
2
1
true
false
false
false
false
false
low
28,667,731
Implement calender view in Android
<p>I need to implement calender view in android. I have successfully implemented using <code>&lt;CalenderView&gt;</code>. In my scenario when I select date I will take the selected date and send it to my server. But in this when I want to go to previous or next month I need to scroll and go to next month, while scrolli...
I need to implement calender view in android. I have successfully implemented using <CalenderView> . In my scenario when I select date I will take the selected date and send it to my server. But in this when I want to go to previous or next month I need to scroll and go to next month, while scrolling any one date is se...
java|android|events|calendar|android-custom-view
0
2015-02-23T06:03:52.257Z
2,015
2
6
0
116
0
480
34
5
0
false
true
false
false
false
false
zero
28,667,776
How to preserve the state of toggle button in listview in android
<p>i have listview with toggle button.i face a problem when i scroll down the toggle button the state of toggle button changed,and also when i click on first toggleButton the fourth toggle button also checked. i also want to save the all toggle button states and the text on that particular row in arraylist. I also want...
i have listview with toggle button.i face a problem when i scroll down the toggle button the state of toggle button changed,and also when i click on first toggleButton the fourth toggle button also checked. i also want to save the all toggle button states and the text on that particular row in arraylist. I also want to...
android|listview|state|togglebutton
0
2015-02-23T06:08:07.610Z
2,015
2
6
0
902
1
438
65
4
1
true
false
false
false
false
false
zero
28,667,806
Can anybody help me resolving InflateException on coverflow?
<p>I am a newbie to this technology. I am facing an InflateException: Binary XML line #9 error. Activity is added in manifest file.What would be the issue?</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pj="h...
I am a newbie to this technology. I am facing an InflateException: Binary XML line #9 error. Activity is added in manifest file.What would be the issue? [CODE] Error log : Below is the error that pops up on every build I do [CODE]
android|xml|coverflow
0
2015-02-23T06:10:33.533Z
2,015
2
6
0
95
1
230
60
3
2
true
false
false
false
false
false
zero
28,667,897
How to remove Alert dialog Title bar
<p>I am following <a href="http://www.javacodegeeks.com/2012/10/android-dialog-android-custom-dialog.html">this</a> code to create custom dialog but i am not getting how to remove dialog title bar ?</p> <pre><code> AlertDialog alertDialog; @Override protected Dialog onCreateDialog(int id) { AlertDialog ...
I am following this code to create custom dialog but i am not getting how to remove dialog title bar ? [CODE] I know to remove title area of the Alert Dialog, we have to use requestWindowFeature(Window.FEATURE_NO_TITLE); But don't know where i have to place above line ?
android|android-alertdialog
22
2015-02-23T06:18:24.343Z
2,015
2
6
0
28,685
11
270
36
2
1
true
false
true
true
true
false
high
28,667,956
How I can fix the position of pie chart using achart engine in android
<p>In my application I want to fix the position of piechart at the centre,currently the pie chart has moved over the screen,when I touch it.I've used the achart engine for displaying the graph.What is the possible solution for it? Thanks.</p>
In my application I want to fix the position of piechart at the centre,currently the pie chart has moved over the screen,when I touch it.I've used the achart engine for displaying the graph.What is the possible solution for it? Thanks.
java|android|achartengine
0
2015-02-23T06:23:10.670Z
2,015
2
6
0
173
1
235
70
3
0
false
false
false
false
false
false
zero
28,667,996
How to decompile .smali files to xml files?
<p>I am decompiling an apk file to source code.I got all the class files but resource files are shown in smali format.How to convert this to xml files ?</p>
I am decompiling an apk file to source code.I got all the class files but resource files are shown in smali format.How to convert this to xml files ?
android|xml|decompiler|smali
1
2015-02-23T06:26:04.240Z
2,015
2
6
0
1,804
0
149
43
4
0
false
true
false
false
false
false
low
28,668,092
How to add Download Button on every post of Facebook via android app?
<p>I have a live android application on play store. In my app, I can post textual data, links on Facebook. Now, I want to add a custom button similar to Facebook share/like buttons on posting every post that button will get displayed below the post. And it will be redirected to play store on my app page on click of tha...
I have a live android application on play store. In my app, I can post textual data, links on Facebook. Now, I want to add a custom button similar to Facebook share/like buttons on posting every post that button will get displayed below the post. And it will be redirected to play store on my app page on click of that b...
android|facebook|download
0
2015-02-23T06:33:48Z
-1
-1
-1
-1
1,266
1
575
69
3
0
false
false
false
false
false
false
zero
28,668,142
Video In Video View Not Looping For Some Device In Android
<p>I need to loop my video once it stops.I have used the following code.Its working fine in Samsung Phones but its not working in HCL Me U2 Tablet.I am pasting my code below:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEAT...
I need to loop my video once it stops.I have used the following code.Its working fine in Samsung Phones but its not working in HCL Me U2 Tablet.I am pasting my code below: [CODE] Please Help Me Immediately!!!
android|android-videoview
0
2015-02-23T06:38:29.500Z
2,015
2
6
0
230
0
208
58
2
1
true
true
false
false
false
false
zero
28,668,185
How to send android push notification without ssl certificate
<p>I am using only http service and I dont want to pay SSL certificate and don't use self signed certificate. there is any other way to get send push notification in my app clients. Thanks in advance.</p>
I am using only http service and I dont want to pay SSL certificate and don't use self signed certificate. there is any other way to get send push notification in my app clients. Thanks in advance.
java|android|jakarta-ee|google-cloud-messaging|server
0
2015-02-23T06:42:09.143Z
2,015
2
6
0
1,933
1
197
61
5
0
false
false
false
false
false
false
zero