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,518,131
Listview: duplicate values Items from ArrayList when scrolling bottom/up
<p>I am encountering a problem with my code.</p> <p>I populate the Listview from ArrayList which in turn is populated by file-data.</p> <p>The problem is when I scroll bottom or up I get duplicated items. How can I fix it? </p> <p>Here is my code:</p> <pre><code>public class ListChannels extends ListActivity { Arr...
I am encountering a problem with my code. I populate the Listview from ArrayList which in turn is populated by file-data. The problem is when I scroll bottom or up I get duplicated items. How can I fix it? Here is my code: [CODE] The code where I populate the ArrayList from File [CODE] I will appreciate your help. Than...
android|listview|arraylist
0
2015-02-14T17:19:34.080Z
2,015
2
17
5
269
0
334
72
3
2
true
true
false
false
false
false
zero
28,518,222
Java code not recognizing my XML filename
<p>My issue is that Android Studio is telling me it "cannot resolve the symbol 'Board'" in the code below. I assume the fix is to tell Android Studio that Board references Board.xml but I'm note quite sure how this is done.</p> <pre><code>import android.support.v7.app.ActionBarActivity; import android.os.Bundle; impor...
My issue is that Android Studio is telling me it "cannot resolve the symbol 'Board'" in the code below. I assume the fix is to tell Android Studio that Board references Board.xml but I'm note quite sure how this is done. [CODE]
java|android|xml
0
2015-02-14T17:30:09.907Z
2,015
2
17
5
32
0
227
41
3
1
true
true
false
false
false
false
zero
28,518,256
JavaFX on android - Hello world keeps crashing
<p>So I read that you can get JavaFX applications to run on Android by using the Dalvik JavaFX-Android SDK (provided by the JavaFX Android porting team) and decided to try my hand at it.</p> <p>After installing the Dalvik SDK and telling it where my Android SDK is, I tried to run the sample Hello World application tha...
So I read that you can get JavaFX applications to run on Android by using the Dalvik JavaFX-Android SDK (provided by the JavaFX Android porting team) and decided to try my hand at it. After installing the Dalvik SDK and telling it where my Android SDK is, I tried to run the sample Hello World application that comes wit...
java|android|javafx|javafxports
0
2015-02-14T17:33:51.820Z
2,015
2
17
5
404
1
728
46
4
0
false
false
false
false
false
false
zero
28,518,297
Android reading external storage gives securityException
<p>I am trying to get the music files in the device. here is what i do:</p> <pre><code>public ArrayList&lt;Track&gt; getAllSongsFromSDCARD() { allTracks = new ArrayList&lt;Track&gt;(); String[] STAR = { "*" }; Uri allsongsuri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; String selection = MediaStore....
I am trying to get the music files in the device. here is what i do: [CODE] And i have the following permissions in my manifest: [CODE] When i run that code on a device with Android version 4.3 it works fine. But when i run it on a device with Android version 5.0.2 it gives "java.lang.SecurityException: Permission Deni...
android|securityexception
7
2015-02-14T17:38:00.880Z
2,015
2
17
5
12,982
2
558
56
2
3
true
false
true
true
false
false
medium
28,518,309
Phonegap & AngularJS - ngCookies does not work on Android
<p>I have a button with the following ng-click function (Controller1):</p> <pre><code> attachToChat: function(id, what, how){ //save attach type to cookie and redirect to chat detail view $cookieStore.put('attachToChat', {id: id, what: what, how: how }); $scope.fn.goTo('chat/'+id); } </cod...
I have a button with the following ng-click function (Controller1): [CODE] ... where fn.goTo uses the $location to change current page. When the page successfully changes, I have the following cookie handler (Controller2): [CODE] Here I'm wrapping the alert function inside $timeout because I was receiving an &quot;dige...
javascript|android|angularjs|cordova
0
2015-02-14T17:39:12.223Z
2,015
2
17
5
628
0
1,245
57
4
3
true
true
false
false
false
false
zero
28,518,378
Validate mobile number using regular expression in android
<p>How to validate mobile number using regular expression. mobile number must starts with non zero number and contains only 10 digits</p>
How to validate mobile number using regular expression. mobile number must starts with non zero number and contains only 10 digits
android|regex|validation
-2
2015-02-14T17:45:54.150Z
2,015
2
17
5
1,231
2
130
58
3
0
false
false
false
false
false
true
negative
28,518,411
Changing appcompat alertdialog accent color made all dialogs smaller
<p>So I wanted to change my alertdialogs accent color, I added this to my styles.xml</p> <pre><code>&lt;style name="AppTheme.AlertDialogTheme" parent="Theme.AppCompat.Light.Dialog"&gt; &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt; &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&l...
So I wanted to change my alertdialogs accent color, I added this to my styles.xml [CODE] and this into my base style: [CODE] Color is changed, thats cool, but now all my dialogs are smaller. How can I retain the size while changing the color? Here is before/after album.
android|android-alertdialog|android-styles
4
2015-02-14T17:49:04.180Z
2,015
2
17
5
5,823
3
270
68
3
2
true
false
true
false
false
false
low
28,518,425
Add new item to ListView NullPointerException error
<p>need some help with adding a new item to ListView, I'm trying to "querying paired device" in android (bluetooth), and I got some error while adding the data... here is my code:</p> <pre><code>public class BlueLightProtoActivity extends ActionBarActivity { public static final String TAG = "BlueLightProto"; ...
need some help with adding a new item to ListView, I'm trying to "querying paired device" in android (bluetooth), and I got some error while adding the data... here is my code: [CODE] here is my LogCat: [CODE] I do realize the problem lies in addQuery() class while in "adapter.add()" but I don't know how to fix it, I j...
java|android|android-listview
-1
2015-02-14T17:51:02.653Z
2,015
2
17
5
538
1
441
51
3
2
true
false
false
false
false
true
negative
28,518,446
How to create a non-persistent WiFi direct group on android?
<p>When <code>WifiP2pManager.connect</code> is called for the first time, there is a confirmation dialog on the target device to accept the connection.</p> <p>On subsequent connections this confirmation is not asked anymore, the group is persisted on the device.</p> <p>I don't want this behaviour because I want the d...
When WifiP2pManager.connect is called for the first time, there is a confirmation dialog on the target device to accept the connection. On subsequent connections this confirmation is not asked anymore, the group is persisted on the device. I don't want this behaviour because I want the device that initiates the connect...
android|wifi-direct|wifip2p
5
2015-02-14T17:53:45.063Z
2,015
2
17
5
2,041
2
553
60
3
0
false
false
false
false
false
false
low
28,518,463
Android: How to start an activity which is in device settings?
<p>How can I start an activity which is in device settings? I need to start a settings page with intent.</p>
How can I start an activity which is in device settings? I need to start a settings page with intent.
android|android-intent|android-activity|settings
0
2015-02-14T17:54:57.300Z
2,015
2
17
5
67
2
101
62
4
0
false
false
false
false
false
false
zero
28,518,491
How do I add sub tabs under Android SlidingTabLayout tabs?
<p>I have my sliding tabs working properly. However I need to another set of navigation tabs under each of the main tabs? How do I achieve this?</p>
I have my sliding tabs working properly. However I need to another set of navigation tabs under each of the main tabs? How do I achieve this?
android|android-layout|android-fragments|android-sliding
0
2015-02-14T17:57:40.540Z
2,015
2
17
5
305
0
141
58
4
0
false
true
false
false
false
false
zero
28,518,572
Why does the app crash when accelerometter is added?
<p>I'm trying to create an app that play a certain audio file, that was previously recorded, when I press a button or shake my phone. Here is my code.</p> <pre><code>public class Reproduzir extends Activity implements SensorEventListener{ MediaPlayer player = new MediaPlayer(); SensorManager sensor; @Override protect...
I'm trying to create an app that play a certain audio file, that was previously recorded, when I press a button or shake my phone. Here is my code. [CODE] } The app was working fine untill I added the last bit of code (the onSensorChanged method) and if I comment it the app runs fine. But when I run the code with that ...
android|android-mediaplayer|accelerometer
0
2015-02-14T18:06:10.833Z
2,015
2
18
5
134
2
651
52
3
2
true
false
false
false
false
false
zero
28,518,618
How to solve these logcat warning messages ??? Android Studio
<p>I am receiving these warning messages and I not sure how to fix:</p> <blockquote> <p>02-14 14:01:15.255: I/dalvikvm(10677): Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted</p> <p>0...
I am receiving these warning messages and I not sure how to fix: 02-14 14:01:15.255: I/dalvikvm(10677): Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted 02-14 14:01:15.255: W/dalvikvm(10677): VFY:...
android
3
2015-02-14T18:10:16.067Z
2,015
2
18
5
6,185
2
2,304
61
1
1
true
false
true
false
false
false
low
28,518,646
Cursor in Android not Returning Rows/Data
<p>I'm new at android programming. can you help me fetch rows using cursor.</p> <p>with this code i can fetch all the rows :</p> <pre><code>public Cursor getAllDataDays() { SQLiteDatabase db = this.getWritableDatabase(); String selectQuery = "SELECT * FROM " + TABLE_MYBUDGETWITHDAYS; return db.rawQuery(se...
I'm new at android programming. can you help me fetch rows using cursor. with this code i can fetch all the rows : [CODE] this is my code for fetching specific rows: [CODE] but it is not displaying any rows. please help. thank you. Main_BudgetPlannerListViewAdapter.java [CODE] NOTE: I want a method with Cursor in it be...
android|sqlite|select|return|android-cursor
0
2015-02-14T18:12:18.820Z
2,015
2
18
5
143
1
369
41
5
3
true
false
false
false
false
false
zero
28,518,654
Android, PHP, MySQL
<p>I have a user login in Android using PHP and MySQL server. While I run the program, I get error message:</p> <blockquote> <p>org.apache.http.nohttpresponseexception the target server failed to respond</p> </blockquote> <p>and:</p> <blockquote> <p>Java.lang.NullPointerException</p> </blockquote> <p>Can somebo...
I have a user login in Android using PHP and MySQL server. While I run the program, I get error message: org.apache.http.nohttpresponseexception the target server failed to respond and: Java.lang.NullPointerException Can somebody can help me? This is my MySQL Server address http://pati-tourism.web.id/idesolusi/select_u...
php|android|mysql
0
2015-02-14T18:12:48.250Z
2,015
2
18
5
51
0
398
19
3
2
true
true
false
false
false
false
zero
28,518,656
android.view.InflateException: Binary XML file line #12: Error inflating class fragment
<p>I want to display Google map in android application. I have done following steps.</p> <ol> <li>Created a new android application project with the package name com.gaurav.googlemap</li> <li>Downloaded Google Play Services SDK from SDK Manager</li> <li>Imported 'google-play-services_lib' into current workspace</li> <...
I want to display Google map in android application. I have done following steps. Created a new android application project with the package name com.gaurav.googlemap Downloaded Google Play Services SDK from SDK Manager Imported 'google-play-services_lib' into current workspace Linked 'google-play-services_lib' to my c...
java|android|xml|google-maps|android-fragments
0
2015-02-14T18:12:57.870Z
2,015
2
18
5
3,212
1
1,481
87
5
5
true
false
true
false
false
false
zero
28,518,678
graphic layout implementation
<p>i'm new on android programming. what is the best way to implement this graphic layout on android?</p> <p><a href="http://8pic.ir/images/d9que1v93nxxp7za7hxv.jpg" rel="nofollow">http://8pic.ir/images/d9que1v93nxxp7za7hxv.jpg</a></p> <p>this is my way: but</p> <pre><code> &lt;LinearLayout xmlns:android="http://sc...
i'm new on android programming. what is the best way to implement this graphic layout on android? http://8pic.ir/images/d9que1v93nxxp7za7hxv.jpg this is my way: but [CODE] but: 1) is this correct one? 2) i using 'sp' unit for text size but my text size does not scale good on different screen sizes?
android|android-layout
0
2015-02-14T18:14:38.563Z
2,015
2
18
5
29
2
299
29
2
1
true
false
false
false
false
false
zero
28,518,698
Data binding: presentation model and view, 3rd party libs in Android
<p>I'm quickly realizing this is going to be an issue in Android with a lot of boilerplate and as I started refactoring my code I'm now effectively writing my own half-@ssed version of data binding. I don't want to spend more time generalizing it and re-inventing the wheel. I was wondering if there are any good solutio...
I'm quickly realizing this is going to be an issue in Android with a lot of boilerplate and as I started refactoring my code I'm now effectively writing my own half-@ssed version of data binding. I don't want to spend more time generalizing it and re-inventing the wheel. I was wondering if there are any good solutions ...
android|model-view-controller|android-view|android-viewbinder|presentation-model
1
2015-02-14T18:16:50.377Z
2,015
2
18
5
543
1
678
68
5
0
false
false
false
false
false
false
low
28,518,754
Parse.com - Push Notifications configuration problems in Android
<p>I am trying to setup Parse.com push notifications as per the documentation:</p> <p>My manifest xml has following related entries:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hello.world" android:versionCode...
I am trying to setup Parse.com push notifications as per the documentation: My manifest xml has following related entries: [CODE] After adding the parse.com push related configurations in manifest as above - The application has stopped working - it simply hangs on startup, i do not see the first screen. EDIT 1 After de...
android|parse-platform|push-notification
0
2015-02-14T18:24:51.913Z
2,015
2
18
5
310
1
840
64
3
3
true
false
false
false
false
false
zero
28,518,761
Classpath specific to module in IntelliJ Gradle project
<p>I have an IntelliJ Gradle project which contains an Android module, a GWT module and a pure Java module.</p> <p>Is there a way to add the classpath for <code>'com.android.tools.build:gradle:1.0.0'</code> such that it is not in a buildscript?</p> <p>Here is my 'build.gradle' for the Android module:</p> <pre><code>...
I have an IntelliJ Gradle project which contains an Android module, a GWT module and a pure Java module. Is there a way to add the classpath for 'com.android.tools.build:gradle:1.0.0' such that it is not in a buildscript? Here is my 'build.gradle' for the Android module: [CODE] And here is my top-level 'build.gradle' [...
android|intellij-idea|gradle|classpath|build.gradle
1
2015-02-14T18:26:16.730Z
2,015
2
18
5
519
0
336
55
5
2
true
true
false
false
false
false
low
28,518,762
Add drop down list to top action bar when split and top bar is from a layout
<p>I have seen a lot of similar questions to mine, but they all seem to differ in some way that makes them not so helpful.</p> <p>I have a split action bar in my activity. I have customized the top action bar to display my own view since I wanted to add icons to the top and not show the launcher icon or activity title...
I have seen a lot of similar questions to mine, but they all seem to differ in some way that makes them not so helpful. I have a split action bar in my activity. I have customized the top action bar to display my own view since I wanted to add icons to the top and not show the launcher icon or activity title. I have ad...
android|menu|android-actionbar
0
2015-02-14T18:26:23.587Z
2,015
2
18
5
184
0
1,098
76
3
1
true
true
false
false
false
false
zero
28,518,768
Align multiline text in Radio group android
<p>I am working on a quiz application, in this application i have to show 4 radio buttons with some multi-line text just like in snapshot. For this i have used radio-group, but the problem is that radio buttons are not aligned with the text properly as shown in snapshot. It becomes hosh-pash. Please somebody provide so...
I am working on a quiz application, in this application i have to show 4 radio buttons with some multi-line text just like in snapshot. For this i have used radio-group, but the problem is that radio buttons are not aligned with the text properly as shown in snapshot. It becomes hosh-pash. Please somebody provide some ...
android|radio-button
1
2015-02-14T18:26:51.397Z
2,015
2
18
5
2,194
1
379
43
2
1
true
false
false
false
false
false
low
28,518,789
ANDROID: How to properly link against static libraries while creating shared libraries with dependencies on the static ones
<p>I have to use some c++ code in my android application. This code was used successfully in an iOS project. The code depends on 2 external libraries: zero-mq and protocol buffers.</p> <p>I compiled the zmq library as an static library like explained <a href="http://zeromq.org/build:android" rel="nofollow">here</a>. I...
I have to use some c++ code in my android application. This code was used successfully in an iOS project. The code depends on 2 external libraries: zero-mq and protocol buffers. I compiled the zmq library as an static library like explained here . I added the static (.a) library and the .jar to my project. I created th...
android|c++|android-ndk|shared-libraries|protocol-buffers
0
2015-02-14T18:29:01.670Z
2,015
2
18
5
1,874
1
1,734
123
5
4
true
false
false
false
false
false
zero
28,518,803
Android Parse push notification not working in Android
<p>I'm trying to create a simple push notification application using parse, here is the code that I've used from the <a href="https://www.parse.com/apps/quickstart#parse_push/android/new" rel="noreferrer">documentation</a>:</p> <pre><code>package com.parse.starter; import android.app.Application; import com.parse.Pa...
I'm trying to create a simple push notification application using parse, here is the code that I've used from the documentation : [CODE] Activity: [CODE] Manifest: [CODE] I try to send push notifications using the parse.com website console, but I dont receive anything in the app. Am I missing a part of the code? EDIT: ...
android|parse-platform|push-notification
1
2015-02-14T18:30:46.977Z
2,015
2
18
5
2,780
4
387
54
3
3
true
false
true
false
false
false
low
28,518,916
intelHAXM is not installing even after enabling INTEL VT in BIOS
<p>Emulator is not working in Android studio so i moved to install intelhaxa but its not setting and i followed many ways like: </p> <pre><code> 1) cold boot 2) enabling the intel VT in BIOS 3) disabling the HYPER-V 4) disabling the avast anti...
Emulator is not working in Android studio so i moved to install intelhaxa but its not setting and i followed many ways like: [CODE] but still its not installing, i tried many but not getting where is the fault, please suggest how to install the intelhaxm to run the emulators. my system configurations: 1) intel core i3 ...
android|android-studio|bios|haxm
0
2015-02-14T18:41:23.037Z
2,015
2
18
5
411
1
359
64
4
1
true
false
false
false
false
false
zero
28,518,918
Setting a background for a relativelayout from the drawable image
<p><strong>What i am doing</strong>:: i am trying to load a image from drawable and set as a background of relativelayout in the adapter</p> <p><strong>What is happening</strong>:: </p> <ul> <li>getting out of memory error</li> <li>I tried scaling but many ways also still not able to resolve outof memory error</li> <...
What i am doing :: i am trying to load a image from drawable and set as a background of relativelayout in the adapter What is happening :: getting out of memory error I tried scaling but many ways also still not able to resolve outof memory error How to resolve this AdptAtomicGodGallery.java [CODE] Log: [CODE] EDIT [CO...
android
0
2015-02-14T18:41:29.783Z
2,015
2
18
5
342
2
323
65
1
3
true
false
false
false
false
false
zero
28,518,942
Android programmatically change language on rooted phone
<p>I know that there are a few question already answered on this topic but i have a more specific problem. I have tried to implement <a href="https://stackoverflow.com/questions/25355330/android-change-device-system-locale-programmatically">Android - change device system locale programmatically</a> , with no success (s...
I know that there are a few question already answered on this topic but i have a more specific problem. I have tried to implement Android - change device system locale programmatically , with no success (simply it doesn't change the language, don't know if it's my implementation that faults...). Searching i've found Ch...
android|locale|root|launcher
3
2015-02-14T18:43:26.483Z
2,015
2
18
5
1,223
0
1,248
56
4
2
true
true
false
false
false
false
low
28,518,955
transform xml to java in android (dynamic UI)
<p>hi to everyone i have this code in xml and i want transform this to java</p> <p></p> <pre><code>&lt;TableRow&gt; &lt;ImageButton android:id="@+id/btnImg1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="80dp" android:layout_marg...
hi to everyone i have this code in xml and i want transform this to java [CODE] i write this in java but when i run all the imagebutton are duplicate on together: [CODE] this is just for 2 imagebutton but this hapend too...thank you
java|android
1
2015-02-14T18:44:22.837Z
2,015
2
18
5
44
0
232
45
2
2
true
true
false
false
false
false
low
28,518,966
Native crash in /system/lib/libart.so
<p>I have an app on the Play Store, it has an <code>IntentService</code> that does some work when the app starts, and it's causing native crashes on Android 5.0. This service just scans the assets folder for app updating purposes.</p> <p>Specifically, this crash seems to happen on Samsung S5 after the ugrade to Lollip...
I have an app on the Play Store, it has an IntentService that does some work when the app starts, and it's causing native crashes on Android 5.0. This service just scans the assets folder for app updating purposes. Specifically, this crash seems to happen on Samsung S5 after the ugrade to Lollipop, but I don't know if ...
android|native|galaxy|android-intentservice
14
2015-02-14T18:46:05.907Z
2,015
2
18
5
19,030
1
709
37
4
1
true
false
true
true
true
false
medium
28,519,033
Using ViewDragHelper to vertical dragging and ViewPager
<p>i'm trying to achive this on my application: <a href="https://www.youtube.com/watch?v=6cRptd6XQAE&amp;feature=youtu.be" rel="nofollow">youtube link</a></p> <p>The goal is to have a ViewPager that can be dragged vertically but at the same time you can swipe the views inside of ViewPager, the problem is when i swipe...
i'm trying to achive this on my application: youtube link The goal is to have a ViewPager that can be dragged vertically but at the same time you can swipe the views inside of ViewPager, the problem is when i swipe inside of viewPagger horizantally the dragg resets to the inicial position to achive what is in the video...
android|android-viewpager|viewdraghelper
0
2015-02-14T18:54:19.243Z
2,015
2
18
5
1,257
1
527
55
3
0
false
false
false
false
false
false
zero
28,519,038
Get contact groups names by contact-id in a single query?
<p>I known how retrieve the group ids at that belongs a contact</p> <pre><code>Cursor cursor = context.getContentResolver().query( ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Data.DATA1 }, String.format("%s=? AND %s=?", ContactsContract.Data.CONTACT_ID, ContactsContract.Data...
I known how retrieve the group ids at that belongs a contact [CODE] and also how obtain the group name if I known the id. [CODE] But is possible to obtains the group names at that belongs a contact (by id) in a single query?
android|sqlite|android-contacts|contactscontract
1
2015-02-14T18:54:32.163Z
2,015
2
18
5
308
0
224
57
4
2
true
true
false
false
false
false
low
28,519,069
How to stop a thread in Java Android?
<p>This is the code of my testing app:</p> <pre><code>public class MainActivity extends Activity { private TextView text; private Button start; private Button stop; private TestThread Points; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc...
This is the code of my testing app: [CODE] When I click on Start button the thread starts successfully but when I click on Stop button the app crashes... How can i stop the thread successfully without force closing? Thanks a lot
java|android|multithreading
4
2015-02-14T18:57:20.683Z
2,015
2
18
5
4,220
2
228
37
3
1
true
false
true
false
false
false
low
28,519,185
The application has stopped unexpectedly. Please try again. Android Error
<p>I created two activities and i wanted to switch between them after 5 seconds. the first activity lunches as expected but after 5 seconds i get the error: <code>The application has stopped unexpectedly.</code></p> <p>my package is called <code>com.example.thebasics</code> and it contains two classes:</p> <pre><code...
I created two activities and i wanted to switch between them after 5 seconds. the first activity lunches as expected but after 5 seconds i get the error: The application has stopped unexpectedly. my package is called com.example.thebasics and it contains two classes: [CODE] and: [CODE] this is my manifest file: [CODE] ...
android
0
2015-02-14T19:09:55.713Z
2,015
2
19
5
462
2
500
73
1
4
true
false
false
false
false
false
zero
28,519,203
Xamarin : Out of memory issue
<p>I have created a UI that is rich with PNG images for a Xamarin Android application, mostly images are assigned declaratively in the AXML layouts and range from 5 KB to 100 KB in size, unfortunately after running the application and navigating between Activities for sometime the application crashes with messages in t...
I have created a UI that is rich with PNG images for a Xamarin Android application, mostly images are assigned declaratively in the AXML layouts and range from 5 KB to 100 KB in size, unfortunately after running the application and navigating between Activities for sometime the application crashes with messages in the ...
android|memory|crash|xamarin
3
2015-02-14T19:11:21.660Z
2,015
2
19
5
2,315
3
868
29
4
0
false
false
false
false
false
false
low
28,519,215
How to handle in app-purchases in multiples
<p>I'm working on the in-app purchases for an android game and I'm finding the description of managed content a bit ambiguous. Let's say the user does "Purchase five bombs." Should the item be five bombs or should bombs be tracked as a single item that is "bought" five at a time. I know the managed items keep track of ...
I'm working on the in-app purchases for an android game and I'm finding the description of managed content a bit ambiguous. Let's say the user does "Purchase five bombs." Should the item be five bombs or should bombs be tracked as a single item that is "bought" five at a time. I know the managed items keep track of the...
android|in-app-purchase
0
2015-02-14T19:12:59.347Z
2,015
2
19
5
96
1
532
43
2
0
false
false
false
false
false
false
zero
28,519,224
How to read Heart Rate history from Google Fit API in Android?
<p>I tried to read data from Fit API history like following,</p> <pre><code> private DataReadRequest queryFitnessData() { Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long endTime = cal.getTimeInMillis(); cal.add(Calendar.DATE, -10); long startTime = cal.getTi...
I tried to read data from Fit API history like following, [CODE] And I read the data like following, [CODE] I evaluated the output using debugger for dataReadResult how can i fix this? Thanks in Advance!!
java|android|google-fit
3
2015-02-14T19:13:27.443Z
2,015
2
19
5
2,183
0
204
62
3
2
true
true
false
false
false
false
low
28,519,283
Sub Second iBeacon Monitoring
<p>I have no hands on experience with BLE and beacons at this point, and am having a hard time figuring out the viability of using them in a particular manner. Wondering if anyone can provide some high level feedback about the viability of this use case:</p> <p>The goal is to use beacons to track a running race. Run...
I have no hands on experience with BLE and beacons at this point, and am having a hard time figuring out the viability of using them in a particular manner. Wondering if anyone can provide some high level feedback about the viability of this use case: The goal is to use beacons to track a running race. Runners with the...
bluetooth-lowenergy|ibeacon|ibeacon-android|estimote
0
2015-02-14T19:18:21.003Z
2,015
2
19
5
183
1
937
29
4
0
false
false
false
false
false
false
zero
28,519,334
"There is no applicable constructor? error appears when making app
<p>My name is Ibrahim. I have been developing since I was 14. I became interested in computers &amp; cybernetics ever since I came to this great land you call America. I have lately been developing an app on my tablet ( using Android IDE or AIDE). Lately I have been working on an app for users who their power button i...
My name is Ibrahim. I have been developing since I was 14. I became interested in computers & cybernetics ever since I came to this great land you call America. I have lately been developing an app on my tablet ( using Android IDE or AIDE). Lately I have been working on an app for users who their power button is either...
java|android
-2
2015-02-14T19:23:54.073Z
2,015
2
19
5
866
2
638
66
2
3
true
false
false
false
false
true
negative
28,519,340
how to fetch data from website and then display in intel xdk page
<pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; </code></pre> <p> // head section</p> <p></p> <pre><code> &lt;body&gt; &lt;div class="upage" id="mainpage" data-role="page"&gt; &lt;div class="upage-outer"&gt; &lt;div data-role="header" class="container-group inner-element uib_w_1" data-uib="jq...
[CODE] // head section [CODE] //link to next app page where i want to display the vegetable price from the site:( http://agmarknet.nic.in/rep1newx1_today.asp?dt=12/02/2015 ) [CODE]
javascript|android|html|intel-xdk
0
2015-02-14T19:24:32.883Z
2,015
2
19
5
131
1
180
65
4
3
true
false
false
false
false
false
zero
28,519,387
Make a custom pie chart shape programmatically
<p>I want to programmatically draw something to set it as a background of an <code>ImageView</code>. It should look like this:</p> <p><img src="https://i.stack.imgur.com/PAEpJ.png" alt="enter image description here"></p> <p>So it's kinda like a pie chart but it is not a pie chart.</p> <p>I found something to draw ci...
I want to programmatically draw something to set it as a background of an ImageView . It should look like this: So it's kinda like a pie chart but it is not a pie chart. I found something to draw circles in circles: [CODE] What i need is something to draw colored areas using a start degree and a end degree. Is somethin...
android
3
2015-02-14T19:29:00.723Z
2,015
2
19
5
3,767
1
341
46
1
1
true
false
true
false
false
false
low
28,519,401
Update or append a TextView from a Broadcastreceiver
<p>I am trying to append/update information in a <code>TextView</code> from a <code>BroadcastReceiver</code>. What would be the right way to do this? I have put in in my Manifest to register the phone state:</p> <pre><code> &lt;receiver android:name="RingTypeBroadcastReceiver" &gt; &lt;intent-filter&gt; ...
I am trying to append/update information in a TextView from a BroadcastReceiver . What would be the right way to do this? I have put in in my Manifest to register the phone state: [CODE] Next I want to grab the phone state that the receiver picked up, increment a counter. I want to be able to append/update this informa...
java|android
0
2015-02-14T19:31:41.353Z
2,015
2
19
5
1,182
1
392
52
2
2
true
false
false
false
false
false
zero
28,519,419
Chromecast reboots after trying to play a movie from DS Video
<p>I have a Synology DS212j and a Chromecast in my wifi network. I use them to reproduce movies I have on my Synology directly to the Chromecast by using Synology's Android app DS VIDEO</p> <p>the system has ever worked very well, but since a couple of weeks everytime i start playing a movie, Chromecast loads the vide...
I have a Synology DS212j and a Chromecast in my wifi network. I use them to reproduce movies I have on my Synology directly to the Chromecast by using Synology's Android app DS VIDEO the system has ever worked very well, but since a couple of weeks everytime i start playing a movie, Chromecast loads the video, plays a ...
android|video|chromecast|synology
1
2015-02-14T19:32:42Z
-1
-1
-1
-1
640
1
505
61
4
0
false
false
false
false
false
false
low
28,519,484
RotateBy Anchorpoint not affecting rotation
<p>In Cocos2d (Android, JAVA), I use CCRotateBy to rotate one CCNode with several tiles in it as children. I want to use the center of the center tile as a point of rotation, so I thought I'd use Anchorpoint.</p> <p>However, it doesn't matter what value I give to the Anchorpoint, tiles keep rotating around the bottom ...
In Cocos2d (Android, JAVA), I use CCRotateBy to rotate one CCNode with several tiles in it as children. I want to use the center of the center tile as a point of rotation, so I thought I'd use Anchorpoint. However, it doesn't matter what value I give to the Anchorpoint, tiles keep rotating around the bottom left of my ...
java|android|cocos2d-android|anchorpoint|ccrotateby
0
2015-02-14T19:39:20.107Z
2,015
2
19
5
98
1
434
43
5
1
true
false
false
false
false
false
zero
28,519,506
android 2d array to listview
<p>so i've got this piece of code and i want it to output attr1 and attr2 in the listview, but the current error i get is: cannot resolve constructor. Here is the piece of code:</p> <pre><code> private String[][] content = { {"attr1", "url1"}, {"atrr2", "url2"} }; @Override public void onCreate(Bundle...
so i've got this piece of code and i want it to output attr1 and attr2 in the listview, but the current error i get is: cannot resolve constructor. Here is the piece of code: [CODE] Hopefully somebody could help me, thanks in advance (sorry for the bad english)
android|arrays|string|listview
0
2015-02-14T19:42:08.177Z
2,015
2
19
5
2,209
1
261
28
4
1
true
false
false
false
false
false
zero
28,519,558
Adding item in ListView OnClick of a Button
<p>I know this question has been floating all over the place, however I am unable to work this through even after going through all the posts and trying to understand. I am very new to developing apps in Android, so I definitely would need a lot of assistance. Anyways, I found some coding online that basically created ...
I know this question has been floating all over the place, however I am unable to work this through even after going through all the posts and trying to understand. I am very new to developing apps in Android, so I definitely would need a lot of assistance. Anyways, I found some coding online that basically created a l...
android|listview|android-listview
0
2015-02-14T19:46:23.967Z
2,015
2
19
5
417
0
1,232
43
3
2
true
true
false
false
false
false
zero
28,519,644
Setting button size
<p>I'm new in android. I struggle with a problem which is how to set buttons exactly next to each other, automaticly scalled, so there is no empty space on sides or between buttons on every device.</p> <p>I was trying to solve that problem this way: Find method that returns screen (or parent?) width and height, then c...
I'm new in android. I struggle with a problem which is how to set buttons exactly next to each other, automaticly scalled, so there is no empty space on sides or between buttons on every device. I was trying to solve that problem this way: Find method that returns screen (or parent?) width and height, then create 4 con...
android|android-layout
0
2015-02-14T19:53:59.503Z
2,015
2
19
5
982
4
580
19
2
0
false
false
false
false
false
false
zero
28,519,675
Eclipse Android Application Crash
<p>I am building a GPS application using Google Maps v2 API. The activity has SupportMapFragment and some text strings. When I run the application on my Android smartphone, it crashes. I dont understand the LogCat. Source code below.</p> <p>Paramedic.java</p> <pre><code>package ie.itsligo.medication; import android....
I am building a GPS application using Google Maps v2 API. The activity has SupportMapFragment and some text strings. When I run the application on my Android smartphone, it crashes. I dont understand the LogCat. Source code below. Paramedic.java [CODE] activity_paramedic.xml [CODE] AndroidManifest.xml [CODE] LogCat [CO...
android|xml|eclipse|crash|supportmapfragment
3
2015-02-14T19:57:04.680Z
2,015
2
19
5
135
1
323
33
5
4
true
false
false
false
false
false
low
28,519,790
Android Navigation Drawer with progress bar on item
<p>I don't know how to implement progress bar to navigation drawer item. I would like to run some asynchronous task for downloads. During download should be shown progress bar into line with some item. After download completed, I would like to hide progress bar on navigation drawer. I have custom drawer adapter with d...
I don't know how to implement progress bar to navigation drawer item. I would like to run some asynchronous task for downloads. During download should be shown progress bar into line with some item. After download completed, I would like to hide progress bar on navigation drawer. I have custom drawer adapter with data ...
android|navigation-drawer|android-progressbar
0
2015-02-14T20:10:59.167Z
2,015
2
20
5
1,030
0
477
51
3
1
true
true
false
false
false
false
zero
28,519,837
Lost ImageButton resource and Listener after change Tabs and return
<p>I have an application that have 3 swipe Tabs and in the first Tab Fragment I have created a Imagebutton. I click on the ImageButton and change the Image resource. When swipe to the second Tab and return the image resource remain ok, but if I swipe to the 3 tab and return to the first the ImageButton are changed to t...
I have an application that have 3 swipe Tabs and in the first Tab Fragment I have created a Imagebutton. I click on the ImageButton and change the Image resource. When swipe to the second Tab and return the image resource remain ok, but if I swipe to the 3 tab and return to the first the ImageButton are changed to the ...
android|android-fragments|imagebutton
0
2015-02-14T20:16:37.753Z
2,015
2
20
5
57
0
588
67
3
1
true
true
false
false
false
false
zero
28,519,914
How do i compensate the accelerometer by 90 degrees corona using Lua
<p>I am making my game in landscapeRight mode, but i cant get the accelerometer calibrated as landscape because by default in corona the accelerometer is always configured in portrait </p> <p>As the corona guide says </p> <p><a href="http://docs.coronalabs.com/api/event/accelerometer/xGravity.html" rel="nofollow">htt...
I am making my game in landscapeRight mode, but i cant get the accelerometer calibrated as landscape because by default in corona the accelerometer is always configured in portrait As the corona guide says http://docs.coronalabs.com/api/event/accelerometer/xGravity.html "So, if your application is running in landscape ...
android|lua|coronasdk
0
2015-02-14T20:23:01.067Z
2,015
2
20
5
213
1
434
68
3
0
false
false
false
false
false
false
zero
28,519,965
android buttons to switch between two screens
<p>I am a beginner of android application. I am using Android Studio to make an application for a shopping cart list. For the start, right now, I am working on the creating two buttons on each screens that called, "edit" and "save." So if I click the edit button, it will go to screen2, and if I click the save, it will ...
I am a beginner of android application. I am using Android Studio to make an application for a shopping cart list. For the start, right now, I am working on the creating two buttons on each screens that called, "edit" and "save." So if I click the edit button, it will go to screen2, and if I click the save, it will go ...
button|layout|android-activity|android-studio
0
2015-02-14T20:28:35.347Z
2,015
2
20
5
547
1
542
45
4
5
true
false
false
false
false
false
zero
28,519,983
How to do I test my custom android ROM in the emulator
<p>I have made a custom android ROM that I would like to test but I don't have and android device so I was thinking I could test it in the emulator. Is that possible ? if yes how can I do it ?</p> <p>thank you for you help</p>
I have made a custom android ROM that I would like to test but I don't have and android device so I was thinking I could test it in the emulator. Is that possible ? if yes how can I do it ? thank you for you help
android|android-emulator|emulation|rom
3
2015-02-14T20:30:00.847Z
2,015
2
20
5
1,852
0
212
54
4
0
false
true
false
false
false
false
low
28,520,008
Bring multiple images front in order
<p>I have a problem with bringtofront method. I use many images at once. All moves ceaselessly. I want to change z index of images depends on their coordinates. Is there any way for that?</p> <p>I may check coordinates of every images when i move an image. And use bringtofront in order... but the solution doesn't seem...
I have a problem with bringtofront method. I use many images at once. All moves ceaselessly. I want to change z index of images depends on their coordinates. Is there any way for that? I may check coordinates of every images when i move an image. And use bringtofront in order... but the solution doesn't seem clear to m...
android|imageview|bringtofront
1
2015-02-14T20:32:43.190Z
2,015
2
20
5
149
1
1,020
36
3
1
true
false
false
false
false
false
low
28,520,010
Android Studio 1.0.2 Error - "Local path doesn't exist"
<p>I recently starting using Android Studio again and for some reason my app won't run on my mobile device.</p> <p>I keep getting this error:</p> <blockquote> <p>Waiting for device. </p> <p>Target device: oneplus-a0001-d9e029e0</p> <p>Uploading file<br> local path: C:\Users\FV\Desktop\ \Project1\app\b...
I recently starting using Android Studio again and for some reason my app won't run on my mobile device. I keep getting this error: Waiting for device. Target device: oneplus-a0001-d9e029e0 Uploading file local path: C:\Users\FV\Desktop\ \Project1\app\build\outputs\apk\app-debug.apk remote path: /data/local/tmp/com.fv4...
android|android-studio
1
2015-02-14T20:32:49.473Z
2,015
2
20
5
959
2
779
55
2
0
false
false
false
false
false
false
low
28,520,048
TextView gets cut after Rotation
<p>I would like to rotate a <code>TextView</code> 90 degrees. This works, however, the TextView gets "cut" in the y-axis (namely to the screen width, see screenshot).</p> <p>How could I fix this?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk...
I would like to rotate a TextView 90 degrees. This works, however, the TextView gets "cut" in the y-axis (namely to the screen width, see screenshot). How could I fix this? [CODE] EDIT: I am sure that the TextView gets cut, not my Layout.
android|android-layout|rotation|textview
3
2015-02-14T20:37:10.600Z
2,015
2
20
5
1,178
2
238
32
4
1
true
false
false
false
false
false
low
28,520,077
How to start an activity which is in Android?
<p>I want to start auto reject list with intent. Like this code:</p> <pre><code> Intent intent = new Intent("WHICH SHOULD I WRITE CODE IN HERE?"); startActivity(intent); </code></pre> <p>How can I this?</p>
I want to start auto reject list with intent. Like this code: [CODE] How can I this?
android|android-intent|android-activity|start-activity
-3
2015-02-14T20:39:59.980Z
2,015
2
20
5
27
1
84
45
4
1
true
false
false
false
false
true
negative
28,520,136
How to use setChecked method in the following code
<p>I have this code</p> <pre><code>Switch serviceSwitch; serviceSwitch =(Switch) this.findViewById(R.id.switchservice); serviceSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked) { ...
I have this code [CODE] From the code, when the user turned on the switch the method call for arrayChecking() will execute and also there is the code to reset the switch to (false), but this code is not working, serviceSwitch.setChecked (false); is not working. Can anybody help me to solve this simple issue?? Sorry for...
android|android-layout|android-activity
0
2015-02-14T20:45:48.150Z
2,015
2
20
5
304
1
333
50
3
1
true
false
false
false
false
false
zero
28,520,141
Android: Location based app
<p>I am just beginner on Android app developing. I have a few question. I am looking to create a location based simple reminder app. There are a lot tutorials but I am looking for a specific feature where a user creates reminder and it obtains current location and once it is created it is placed on the map (I dont know...
I am just beginner on Android app developing. I have a few question. I am looking to create a location based simple reminder app. There are a lot tutorials but I am looking for a specific feature where a user creates reminder and it obtains current location and once it is created it is placed on the map (I dont know wh...
android|location
1
2015-02-14T20:46:11.953Z
2,015
2
20
5
648
2
670
27
2
0
false
false
false
false
false
false
low
28,520,288
Genymotion is too slow on browsing websites and running cordova app
<p>I'm using mac osx Yosemite and I installed oracle virtual box and Genymotion android emulator. Genemotion runs fine with any pre-installed native apps and they are running fast. However, If I browse websites in the internet browser or run cordova hybrid app. They run too slow so that I can't even able to navigate pr...
I'm using mac osx Yosemite and I installed oracle virtual box and Genymotion android emulator. Genemotion runs fine with any pre-installed native apps and they are running fast. However, If I browse websites in the internet browser or run cordova hybrid app. They run too slow so that I can't even able to navigate prope...
android|cordova|android-emulator|genymotion|hybrid-mobile-app
3
2015-02-14T21:03:22.730Z
2,015
2
21
5
532
1
462
67
5
0
false
false
false
false
false
false
low
28,520,322
How do I know when a DrawerLayout using a RecyclerView is fully populated?
<p>I'm making a Material Design <a href="https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html" rel="nofollow">Navigation Drawer</a> that gets it's content from a <a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Recycler.html" rel="nofollow">RecyclerV...
I'm making a Material Design Navigation Drawer that gets it's content from a RecyclerView . Following the Material Design guidelines , I'm marking the selected item with special highlighting and to make sure the drawer get's the correct item highlighted I set the highlighting in my activity's onResume() method. My prob...
android|navigation-drawer|android-recyclerview|drawerlayout
0
2015-02-14T21:07:05.437Z
2,015
2
21
5
538
1
851
74
4
0
false
false
false
false
false
false
zero
28,520,376
Android toolbar error
<p>I am attempting to use a <code>Toolbar</code> in my application and I am running into an issue:</p> <pre><code>java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set android:windowActionBar to false in your theme to use...
I am attempting to use a Toolbar in my application and I am running into an issue: [CODE] I do not believe that I am requesting Window.FEATURE_ACTION_BAR anywhere and I am setting the ActionBar to false. This is my Style.xml: [CODE] and this is my toolbar.xml: [CODE] and in my layouts I am doing <include layout="@layou...
android|android-toolbar
0
2015-02-14T21:11:22.110Z
2,015
2
21
5
228
1
520
21
2
3
true
false
false
false
false
false
zero
28,520,395
Customizing ViewPagerIndicator Tabs (All of them appears on the screen?)
<p>I am using <code>ViewPagerIndicator</code> in my project. Can I customize ViewPagerIndicator from "img1" to "img2" which are shown at below? I googled it but there is no info for that or can you suggest something to show all tabs on the screen without using actionbar bar?</p> <p><img src="https://i.stack.imgur.com/...
I am using ViewPagerIndicator in my project. Can I customize ViewPagerIndicator from "img1" to "img2" which are shown at below? I googled it but there is no info for that or can you suggest something to show all tabs on the screen without using actionbar bar?
android|android-viewpager|viewpagerindicator
0
2015-02-14T21:13:41.447Z
2,015
2
21
5
193
1
259
72
3
0
false
false
false
false
false
false
zero
28,520,408
Local highest score unity android
<p>Hello everyone i am new into unity and need help, below is codes of my current score and highest scores, the current score is showing into gameover menu but highest score is always 0.</p> <pre><code>using UnityEngine; </code></pre> <p>using System.Collections;</p> <p>public class SetScore : MonoBehaviour {</p> <...
Hello everyone i am new into unity and need help, below is codes of my current score and highest scores, the current score is showing into gameover menu but highest score is always 0. [CODE] using System.Collections; public class SetScore : MonoBehaviour { [CODE] } [CODE] }
android
0
2015-02-14T21:15:07.490Z
2,015
2
21
5
81
2
274
33
1
3
true
false
false
false
false
false
zero
28,520,413
Primitive types cloud endpoints
<p>I am using Google Cloud Endpoints for my Android application, and I have created a <code>Message</code> entity thanks to the datastore. </p> <p>However I saw in many threads that primitive types are a known issue and one of my <code>Message</code>'s fields is a <code>int[]</code>.</p> <p>Will it work, or do I have...
I am using Google Cloud Endpoints for my Android application, and I have created a Message entity thanks to the datastore. However I saw in many threads that primitive types are a known issue and one of my Message 's fields is a int[] . Will it work, or do I have to use List ( Integer ) instead?
android|google-cloud-endpoints
1
2015-02-14T21:16:00.727Z
2,015
2
21
5
130
1
296
31
2
0
false
false
false
false
false
false
low
28,520,477
Facebook share dialog with fragment android
<p>i built a simple app that allow the user to share link through facebook.</p> <p>below my code:</p> <pre><code>import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org....
i built a simple app that allow the user to share link through facebook. below my code: [CODE] the problem is when the user click the share button a share dialog appear without the link and disappear immediately, i tried the code in activity without fragment and it's worked fine. also i did the manifest file in right w...
java|android|android-activity|android-fragments|facebook-sdk-3.0
1
2015-02-14T21:23:42.900Z
2,015
2
21
5
1,389
1
370
43
5
2
true
false
false
false
false
false
low
28,520,501
Is it possible to send a MediaPlayer object from service to a fragment?
<p>In my android app I want to implement a visualizer graph linked to a Media Player following <a href="https://github.com/felixpalmer/android-visualizer/blob/master/src/com/pheelicks/app/MainActivity.java" rel="nofollow">this</a> idea. I use a service to manage my background streaming with <code>MediaPlayer</code>. Th...
In my android app I want to implement a visualizer graph linked to a Media Player following this idea. I use a service to manage my background streaming with MediaPlayer . The problem comes with the transmission of my MediaPlayer object to my fragment. I need to have it there because is where the link occurs: [CODE] In...
java|android|android-fragments|visualizer
0
2015-02-14T21:25:37.353Z
2,015
2
21
5
163
0
405
71
4
1
true
true
false
false
false
false
zero
28,520,535
How can I make this app more efficient?
<p>I have the following code which is working without any errors, but I get this</p> <pre><code>Skipped 116 frames. The application may be doing too much work on its main thread. </code></pre> <p>That happens when I press the Single button and the init() method is executed. </p> <p>How can I execute the method in an...
I have the following code which is working without any errors, but I get this [CODE] That happens when I press the Single button and the init() method is executed. How can I execute the method in another thread so it won't break like that ? [CODE] Thank you
java|android|eclipse|bluetooth
0
2015-02-14T21:29:47.130Z
2,015
2
21
5
51
1
257
39
4
2
true
false
false
false
false
false
zero
28,520,636
Gradle: Only resolve dependencies for the desired variant
<p>I have a test app with three flavors:</p> <ul> <li>dev: Uses a local copy of the library during development</li> <li>qa: Uses a snapshot during QA</li> <li>rc: Uses a prerelease build for release candidate testing.</li> </ul> <hr> <pre><code>dependencies { devCompile project(':library') qaCompile 'com.example...
I have a test app with three flavors: dev: Uses a local copy of the library during development qa: Uses a snapshot during QA rc: Uses a prerelease build for release candidate testing. [CODE] I run Gradle, and expect it to do the minimum amount of work necessary to build just what I want: [CODE] However, the build fails...
android|maven|gradle
10
2015-02-14T21:41:35.710Z
2,015
2
21
5
1,045
2
1,098
57
3
3
true
false
false
false
true
false
medium
28,520,662
Is it possible to use Google Play Leaderboards and Achievements to track consumable IAP-s?
<p>I'd like to design an Android game that has an in-game currency (<em>coins</em>) that can be <strong>earned</strong> by playing the game or can be <strong>bought</strong> with real money. This currency can then be spent on different <em>upgrades</em>.</p> <p>Obviously I need to store the players' number of coins an...
I'd like to design an Android game that has an in-game currency ( coins ) that can be earned by playing the game or can be bought with real money. This currency can then be spent on different upgrades . Obviously I need to store the players' number of coins and the list of the upgrades they bought online, not to lose t...
android|in-app-purchase|google-play-services|google-play-games|leaderboard
1
2015-02-14T21:46:39.397Z
2,015
2
21
5
735
1
2,350
90
5
0
false
false
false
false
false
false
low
28,520,798
Access Http server inside Genymotion
<p>I have a server app using Nanohttpd as a http server inside an android app. I put it inside genymotion or bluestacks but I've been getting ip: 10.0.3.15 on both platforms. I tried the "Host-only" and "Bridged" network settings but didn't change the IP. And I can't access the http server using the ip 10.0.3.15.</p> ...
I have a server app using Nanohttpd as a http server inside an android app. I put it inside genymotion or bluestacks but I've been getting ip: 10.0.3.15 on both platforms. I tried the "Host-only" and "Bridged" network settings but didn't change the IP. And I can't access the http server using the ip 10.0.3.15. Anyone h...
android|windows|genymotion
0
2015-02-14T22:02:04.323Z
2,015
2
22
5
213
1
360
36
3
0
false
false
false
false
false
false
zero
28,520,856
How to get last word from the last comma in a string
<p>I want to retrieve last word before the last semi-colon in a sentence, please see the following.</p> <pre><code>String met = "This is the string with comma numberone; string having second wedaweda; last word"; String laststringa = met.substring(met.lastIndexOf(";")-1); if(laststringa != null) { System.out.print...
I want to retrieve last word before the last semi-colon in a sentence, please see the following. [CODE] I am getting strange Results as [CODE] in my case, for the above string, i should get wedaweda as last before the last semi-colon.
java|android
0
2015-02-14T22:08:39.773Z
2,015
2
22
5
5,082
3
234
52
2
2
true
false
true
false
false
false
zero
28,520,893
My textview is not updating with black text
<p>I am trying to set the text when I press the save button. But when I return to the view the text is faint grey.</p> <p>Initial view on Message Settings <img src="https://i.stack.imgur.com/fDpwx.png" alt="enter image description here"></p> <p>Updated view on Message Settings before I save <img src="https://i.stack....
I am trying to set the text when I press the save button. But when I return to the view the text is faint grey. Initial view on Message Settings Updated view on Message Settings before I save Updated view on Message Settings after I save and return to the view. The source code for my SetupMessageFragment.java is here h...
android|android-layout|android-fragments|textview|android-fragmentactivity
0
2015-02-14T22:13:42.843Z
2,015
2
22
5
179
2
587
43
5
2
true
false
false
false
false
false
zero
28,520,911
Mixed layout types?
<p>I'm creating a simple app. What's the best way do create GUI like this? How do I mix layouts?</p> <p><a href="http://s15.postimg.org/iic9v0v97/example.png" rel="nofollow">http://s15.postimg.org/iic9v0v97/example.png</a></p>
I'm creating a simple app. What's the best way do create GUI like this? How do I mix layouts? http://s15.postimg.org/iic9v0v97/example.png
android|android-layout
0
2015-02-14T22:16:31.247Z
2,015
2
22
5
360
1
138
19
2
0
false
false
false
false
false
false
zero
28,520,914
Keep Activity "alive" when calling "StartActivityForResult"
<p>I have been trying everything to start an Activity for Result but keeping the caller activity seems impossible.</p> <p>I Have tried setting on the caller activity in the manifest "android:onConfigChanges" for screenSize, orientation and keyboardHidden.</p> <p>It is very important because in the caller Activity an ...
I have been trying everything to start an Activity for Result but keeping the caller activity seems impossible. I Have tried setting on the caller activity in the manifest "android:onConfigChanges" for screenSize, orientation and keyboardHidden. It is very important because in the caller Activity an Asyn Task loads the...
android|android-intent|android-activity|camera
0
2015-02-14T22:16:58.963Z
2,015
2
22
5
1,187
1
651
59
4
2
true
false
false
false
false
false
zero
28,520,926
The Quality of The Audio Downloaded from Web Service is not Good Enough
<p>I am developing an Android Application and the below method successfully downloads an audio/sound file from web service. But the sound <b>quality is not good</b> enough.<br/>I test it both with emulator and a real device and also I play the downloaded file on <b>Mac Media Player</b> by the help of Eclipse File Explo...
I am developing an Android Application and the below method successfully downloads an audio/sound file from web service. But the sound quality is not good enough. I test it both with emulator and a real device and also I play the downloaded file on Mac Media Player by the help of Eclipse File Explorer and I see the pro...
java|android
-1
2015-02-14T22:18:50.417Z
2,015
2
22
5
93
1
698
71
2
1
true
false
false
false
false
true
negative
28,520,929
android calendar- changing the week text in calendarView
<p>i created a simple calendarView:</p> <pre><code>&lt;CalendarView android:id="@+id/calendar" android:layout_margin="10dp" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; </code></pre> <p>it shows on top of the calander the first letter of every day in the week: S M T W T F S</p> <p>i...
i created a simple calendarView: [CODE] it shows on top of the calander the first letter of every day in the week: S M T W T F S i want it will show the first three letters of every day: SUN MON TUE WEN THU FRI SAT. how to do it?
android
3
2015-02-14T22:19:20.677Z
2,015
2
22
5
177
0
229
56
1
1
true
true
false
false
false
false
low
28,521,004
MPAndroidChart: Have one graph mirror the zoom/swipes on a sister graph
<p>I have two line graphs that show complementary data over the same time period. Is there any way to send any touch events received by one graph to the other? I essentially want it so that the graphs always show the same viewing rectangle (at least on horizontally). So if a user swipes left 'n' units on the top graph,...
I have two line graphs that show complementary data over the same time period. Is there any way to send any touch events received by one graph to the other? I essentially want it so that the graphs always show the same viewing rectangle (at least on horizontally). So if a user swipes left 'n' units on the top graph, th...
android|graph|charts|mpandroidchart
7
2015-02-14T22:26:16.657Z
2,015
2
22
5
3,316
2
385
71
4
0
false
false
true
false
false
false
medium
28,521,008
RecyclerView adapter is showing blank cardview
<p>I have a nasty issue on sub api21 devices. I am using a <em>RecyclerView.Adapter</em> adapter to inflate <em>android.support.v7.widget.CardView</em>. The idea is that the cards will only add information that is present to the cards. If no information is present the card wont show at all. So I create these cards prog...
I have a nasty issue on sub api21 devices. I am using a RecyclerView.Adapter adapter to inflate android.support.v7.widget.CardView . The idea is that the cards will only add information that is present to the cards. If no information is present the card wont show at all. So I create these cards programatically. Here ar...
android|android-support-library|android-cardview|android-recyclerview
4
2015-02-14T22:27:23.577Z
2,015
2
22
5
3,198
1
678
46
4
3
true
false
true
false
false
false
low
28,521,122
Build project with unmappable characters in comments?
<p>I'm trying to build <a href="https://code.google.com/p/android-permission-explorer/" rel="nofollow">Android Permission Explorer</a> from source code. I checked out with <code>svn checkout http://android-permission-explorer.googlecode.com/svn/</code>. I added a basic <code>build.xml</code> after checkout to the proje...
I'm trying to build Android Permission Explorer from source code. I checked out with svn checkout http://android-permission-explorer.googlecode.com/svn/ . I added a basic build.xml after checkout to the project, and then dropped into a terminal: [CODE] The error is unmappable character for encoding UTF-8 . Here's the o...
java|android|macos|ant|compiler-errors
2
2015-02-14T22:42:35.690Z
2,015
2
22
5
2,850
2
834
53
5
2
true
false
true
false
false
false
low
28,521,128
Ambiguous imported type 'PrintJob':'android.print.printjob' or 'android.printservice.printjob' error for android printing app
<p>My name is Ibrahim. I came to America 8 years ago. I have no accent, my voice is very normal. I have developed an interest for computer repair and development ever since I was 12. I first started coding my freshman year of high school last year. I am developing an app for people who use bluetooth printers. I got th...
My name is Ibrahim. I came to America 8 years ago. I have no accent, my voice is very normal. I have developed an interest for computer repair and development ever since I was 12. I first started coding my freshman year of high school last year. I am developing an app for people who use bluetooth printers. I got this e...
java|android|ambiguous
-1
2015-02-14T22:43:21.777Z
2,015
2
22
5
559
2
582
125
3
3
true
false
false
false
false
true
negative
28,521,156
Save new value with getSharedPreferences
<p>I'm trying to save a new value (the number of clicks of a button) whenever the "<code>new score</code>" is bigger than <code>oldscore</code>. With a <code>TextView</code> I display the number of clicks while the user is tapping the button and when the time is finished I'd like to diplay the score with another TextVi...
I'm trying to save a new value (the number of clicks of a button) whenever the " new score " is bigger than oldscore . With a TextView I display the number of clicks while the user is tapping the button and when the time is finished I'd like to diplay the score with another TextView. I don't have any log error, the tex...
android|sharedpreferences|record
1
2015-02-14T22:48:56.723Z
2,015
2
22
5
85
1
492
40
3
1
true
false
false
false
false
false
low
28,521,183
Can't resolve IP address to hostname
<p>I was originally running a server from the Java main method for an Android application but was forced to instead run it through a Android main activity due to Android Studio. Upon trying to run it from the main activity I have run into issues with it binding to the specified port. When I try to connect with my Clien...
I was originally running a server from the Java main method for an Android application but was forced to instead run it through a Android main activity due to Android Studio. Upon trying to run it from the main activity I have run into issues with it binding to the specified port. When I try to connect with my Client (...
java|android|multithreading|sockets|client-server
-1
2015-02-14T22:51:41.217Z
2,015
2
22
5
1,139
1
753
36
5
3
true
false
false
false
false
true
negative
28,521,198
Implement onClick Listener in Custom BaseAdapter
<p>I have a list view of ticket items with multiple columns. I'm trying to figure out how to implement an onclick listener with what I've written.</p> <p>Fragment_OpenTickets.java:</p> <pre><code>public class Fragment_OpenTickets extends Fragment { ArrayList&lt;HashMap&lt;String, String&gt;&gt; ticketList = new Arr...
I have a list view of ticket items with multiple columns. I'm trying to figure out how to implement an onclick listener with what I've written. Fragment_OpenTickets.java: [CODE] Adapter_OpenList.java: [CODE] If the user taps on a ticket row in the list I need to get the SQLite id of the ticket to either view it or star...
java|android|android-sqlite
1
2015-02-14T22:53:38.860Z
2,015
2
22
5
6,544
1
633
48
3
2
true
false
true
false
false
false
low
28,521,248
Reference drawable image titled as a number
<p>Can you reference a drawable if the file name is simply a number?</p> <blockquote> <p>Example: If I have an image name &quot;1.jpg&quot; in res/drawable it will give me an error if I try to reference it using R.drawable.1</p> <p>If I have an image name &quot;one.jpg&quot; in res/drawable it will work fine if I try t...
Can you reference a drawable if the file name is simply a number? Example: If I have an image name &quot;1.jpg&quot; in res/drawable it will give me an error if I try to reference it using R.drawable.1 If I have an image name &quot;one.jpg&quot; in res/drawable it will work fine if I try to reference it using R.drawabl...
android|drawable
5
2015-02-14T22:59:27.070Z
2,015
2
22
5
1,035
1
325
43
2
0
false
false
false
false
false
false
low
28,521,254
Android Error: NullPointerException being thrown
<p>My code consists of an XML gridview in which 64 imageviews are laid out in a chessboard pattern. My java is supposed to monitor for clicks on those imageViews with actual images inside of them and then execute the supplied code. </p> <p>However, at runtime my emulator is presenting me with a dialogue box saying "Un...
My code consists of an XML gridview in which 64 imageviews are laid out in a chessboard pattern. My java is supposed to monitor for clicks on those imageViews with actual images inside of them and then execute the supplied code. However, at runtime my emulator is presenting me with a dialogue box saying "Unfortunately,...
java|android|nullpointerexception|onclick|onclicklistener
0
2015-02-14T22:59:41.713Z
2,015
2
22
5
61
1
703
48
5
1
true
false
false
false
false
false
zero
28,521,260
Share image in instagram via Intent with json url
<p>I want to share image to instagram via Intent with json image but i need to parse my json image here's my code </p> <pre><code>private void createInstagramIntent(String type, String imageUrl ,String captionText){ Intent share = new Intent(Intent.ACTION_SEND); share.setType(type); URL url = n...
I want to share image to instagram via Intent with json image but i need to parse my json image here's my code [CODE]
android|android-intent
0
2015-02-14T23:00:24.180Z
2,015
2
23
5
1,902
1
117
49
2
1
true
false
false
false
false
false
zero
28,521,280
Unit Testing Android app that relies on Robolectric / RxJava / RxAndroid
<p>I am using the Robolectric 3.0 snapshot.</p> <p>I have a test:</p> <pre class="lang-java prettyprint-override"><code>@Test public void my_test() throws Exception { when(testReferenceManager.getUserServiceMock().checkUsernameAvailability(anyString())).thenReturn(Observable.just(Arrays.asList(new User("test@...
I am using the Robolectric 3.0 snapshot. I have a test: [CODE] The key thing here is that if the API reports a user exists (which it does from the mocks above) the sign in button text should be the same as the value of the string resource named R.string.button_login . The setup for changing the button state is done in ...
android|unit-testing|robolectric|retrofit|rx-android
1
2015-02-14T23:02:55.777Z
2,015
2
23
5
3,756
2
1,072
72
5
4
true
false
true
false
false
false
low
28,521,289
how to call asynctask
<p>I have a web service and this web service return Json string.I want webservice result insert into adapter. But i dont call asynctask class. I've been working on this for 4-5 days and couldn't get it work. Please show me a way to do this...</p> <p>Note:my code:</p> <pre><code>package com.kalem.teaapp; import java....
I have a web service and this web service return Json string.I want webservice result insert into adapter. But i dont call asynctask class. I've been working on this for 4-5 days and couldn't get it work. Please show me a way to do this... Note:my code: [CODE] [CODE] [CODE]
android|web|service|android-asynctask
0
2015-02-14T23:03:52.857Z
2,015
2
23
5
87
1
274
21
4
3
true
false
false
false
false
false
zero
28,521,294
Cannot read Query
<p>I want to display all projects under a particular client.. but when I run it - only the toast of <em>"No Project!"</em> is displayed. And I already have my data inside the database - I don't know whats wrong with my query</p> <p>Here is it:</p> <pre><code>btnrefresh.setOnClickListener(new View.OnClickListener() {...
I want to display all projects under a particular client.. but when I run it - only the toast of "No Project!" is displayed. And I already have my data inside the database - I don't know whats wrong with my query Here is it: [CODE] And this is my DBHelper: [CODE] Thanks in advance.
android|mysql|sqlite
0
2015-02-14T23:04:54.113Z
2,015
2
23
5
22
0
282
17
3
2
true
true
false
false
false
false
zero
28,521,451
HTTP 413 when POST image from Android to WCF Rest as stream
<p>I've tried a lot of tutorials with WCF reviving steaming data and still none works.</p> <p>Let me tell you where is the problem.</p> <p>I want to create rest service which accept image as stream parameter.</p> <p>Interface:</p> <pre><code>[OperationContract] [WebInvoke(UriTemplate = "UploadFile", Method = "POST"...
I've tried a lot of tutorials with WCF reviving steaming data and still none works. Let me tell you where is the problem. I want to create rest service which accept image as stream parameter. Interface: [CODE] Method: [CODE] And main problem I think - web.config: [CODE] From Android side I'm doing something like that: ...
c#|android|wcf|rest|iis-7.5
0
2015-02-14T23:31:02.333Z
2,015
2
23
5
401
1
406
59
5
4
true
false
false
false
false
false
zero
28,521,453
Android: how to deal with html <img /> tags that are embedded in a string retrieved using JSON
<p>I have a news website that displays articles, i have written a java code in android studio to get the article's content from a URL <a href="http://ana.fm/api/article/252185610171359" rel="nofollow">like this</a> as JSON and it's all good so far. </p> <p>But in the article there may be photos in the description, now...
I have a news website that displays articles, i have written a java code in android studio to get the article's content from a URL like this as JSON and it's all good so far. But in the article there may be photos in the description, now i want to get the html <img /> tags from the description node and display the imag...
java|android|html|json|android-studio
1
2015-02-14T23:31:04.233Z
2,015
2
23
5
2,109
1
506
94
5
2
true
false
false
false
false
false
low
28,521,460
Android isn't finding an Inner Class in a Service
<p>I cloned a git repo from <a href="https://github.com/tokudu/AndroidPushNotificationsDemo" rel="nofollow">here</a> and I tried running it. When I try to launch it, I get a NoClassDef exception.</p> <pre><code>java.lang.NoClassDefFoundError: com.tokudu.demo.PushService$MQTTConnection at com.tokudu.demo.PushServic...
I cloned a git repo from here and I tried running it. When I try to launch it, I get a NoClassDef exception. [CODE] It uses an external library, is that what could be causing the problem? .PushService$MQTTConnection implements something from said class. I didn't post any code because the linked GitHub is the code I'm u...
android|mqtt
0
2015-02-14T23:31:38.100Z
2,015
2
23
5
112
2
504
49
2
1
true
false
false
false
false
false
zero
28,521,540
Android radio button style quiz, add value to correct/incorrect answers?
<p>I'm working on a questions/answers app in android in the style of a quiz, and I haven't been able to come up with a method to properly implement a value to radio button. The value is determined by whether the answer is correct or wrong.</p> <p>I feel like there's a few ways to go about it, but I'm not sure which o...
I'm working on a questions/answers app in android in the style of a quiz, and I haven't been able to come up with a method to properly implement a value to radio button. The value is determined by whether the answer is correct or wrong. I feel like there's a few ways to go about it, but I'm not sure which ones might ca...
java|android|xml|button|radio-button
1
2015-02-14T23:45:18.453Z
2,015
2
23
5
642
0
1,773
72
5
2
true
true
false
false
false
false
low
28,521,690
android textView - gap beetween the text and the top TextView border
<p>i want to create a TextView that the text will fill all the height.</p> <p>this is my code:</p> <pre><code>TextView android:id="@+id/year" android:layout_width="wrap_content" android:layout_height="40dp" android:gravity="center_vertical|center_horizontal" android:textColor="#ffffff" android...
i want to create a TextView that the text will fill all the height. this is my code: [CODE] the problem is that there is a gap beetween the text and the top TextView border. the textview is part of a caendar. this is how the screen needs to look: http://postimg.org/image/lprtuv355/ thanks!
android
0
2015-02-15T00:05:52.660Z
2,015
2
0
6
144
1
290
68
1
1
true
false
false
false
false
false
zero
28,521,752
Auto generate / convert strings.xml from all used "text"?
<p>what is the easiest way in Android to convert a fix text in xml to strings.xml - I have a lots of them in my project, so would take big time to do it one by one^^</p>
what is the easiest way in Android to convert a fix text in xml to strings.xml - I have a lots of them in my project, so would take big time to do it one by one^^
android
0
2015-02-15T00:15:46.083Z
2,015
2
0
6
45
0
162
57
1
0
false
true
false
false
false
false
zero
28,521,775
Set class variable from interface implemented function and AsyncTask
<p>Correct the title if you think it does not descibe the question correctly.</p> <p>I want to set a class variable through an implemented interface and return it to another class that calls this function.</p> <p><strong>Here is the code. I use the straight forward combination of AsyncTask and Interface to return an ...
Correct the title if you think it does not descibe the question correctly. I want to set a class variable through an implemented interface and return it to another class that calls this function. Here is the code. I use the straight forward combination of AsyncTask and Interface to return an object from onPostExecute: ...
java|android|interface|android-asynctask
0
2015-02-15T00:19:15.363Z
2,015
2
0
6
97
2
760
68
4
5
true
false
false
false
false
false
zero
28,521,805
Setting the background using a handler in android
<p>I want to change the background when you click a button, but only for a short period of time. I'm using a Handler </p> <pre><code> button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Handler handler = new Handler(); Runnable r = new Runnable() { ...
I want to change the background when you click a button, but only for a short period of time. I'm using a Handler [CODE] } } However, now it takes two seconds for the background to change instead of changing it for two seconds. Anyone an idea? Thank you!
android|handler
0
2015-02-15T00:24:28.423Z
2,015
2
0
6
638
3
254
49
2
1
true
false
false
false
false
false
zero
28,521,831
Get all elements with given tag in android
<p>I have the following java code:</p> <pre><code>message.setTag("_message"); </code></pre> <p>where is run multiple times with different <strong>message</strong> assigned to it.</p> <p>When I </p> <pre><code>message.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(V...
I have the following java code: [CODE] where is run multiple times with different message assigned to it. When I [CODE] Only the first message gets highlight . How can I make all of the messages highlight?
android
0
2015-02-15T00:30:00.950Z
2,015
2
0
6
110
0
205
42
1
2
true
true
false
false
false
false
zero
28,521,854
Display method in Fragment/Set TextView
<p>I can't find any example online about how to place a method into a TextView so it shows in the fragment when the application is opened. I think I remember it being something like</p> <pre><code>+ "text" + getDeviceName() + "more text" </code></pre> <p>fragment_home.xml</p> <pre><code>&lt;?xml version="1.0" encodi...
I can't find any example online about how to place a method into a TextView so it shows in the fragment when the application is opened. I think I remember it being something like [CODE] fragment_home.xml [CODE] HomeFragment.java [CODE]
android|android-fragments|textview
-1
2015-02-15T00:33:43.650Z
2,015
2
0
6
423
2
235
39
3
3
true
false
false
false
false
true
negative
28,521,915
how to copy a file from data/data/(some_name) to a raw folder?
<p>I have a file stored in /data/data/some_name/a.xml. How to copy this file from there to a raw folder as i need to parse this file. I found this answer <a href="https://stackoverflow.com/questions/4027636/how-to-copy-a-file-stored-in-data-data-com-sai-myproj-files-a-txt-to-res-folder">how to copy a file stored in /da...
I have a file stored in /data/data/some_name/a.xml. How to copy this file from there to a raw folder as i need to parse this file. I found this answer how to copy a file stored in /data/data/com.sai.myproj/files/a.txt to res folder in Android , but it did not solve my problem. Thanks in Advance,
android
0
2015-02-15T00:45:21.017Z
2,015
2
0
6
488
1
296
62
1
0
false
false
false
false
false
false
zero