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
38,036,975
Setup multiple facebook LoginButton in multiple activity
<p>I'm dealing with this strange behavior where the same code, used in 2 different activities, is producing a different output.</p> <p>The code is the standard facebook sdk login iteration, so:</p> <pre><code>private CallbackManager fbCallbackManager; private LoginButton signFacebookButton; @Override protected void ...
I'm dealing with this strange behavior where the same code, used in 2 different activities, is producing a different output. The code is the standard facebook sdk login iteration, so: [CODE] This same exact code used in two different activities is behaving differently. In the activity where is it first called, it works...
android|facebook
0
2016-06-26T09:18:44.323Z
2,016
6
9
6
59
1
653
56
2
1
true
false
false
false
false
false
zero
37,658,037
How to capture video quality in android youtube API?
<p>I have included the YouTube API in an app , I want to know the resolution of the video at any point of time when it is running in auto mode . What methods do I need to include?</p>
I have included the YouTube API in an app , I want to know the resolution of the video at any point of time when it is running in auto mode . What methods do I need to include?
youtube-api|youtube-data-api|android-youtube-api
0
2016-06-06T12:53:21.623Z
2,016
6
12
0
315
1
176
52
3
0
false
false
false
false
false
false
zero
37,803,847
Authenticate the SharePoint 2013 Foundation site into the android application
<p>I have a site in SharePoint Foundation 2013 which is public (within organisation domain - no network boundary). Now I want to make a mobile app for this site. Below are the details:</p> <p>I need to develop a android application to show the SharePoint List Items/Data, using the SharePoint 2013 Rest API. But The pro...
I have a site in SharePoint Foundation 2013 which is public (within organisation domain - no network boundary). Now I want to make a mobile app for this site. Below are the details: I need to develop a android application to show the SharePoint List Items/Data, using the SharePoint 2013 Rest API. But The problem is of ...
android|rest|mobile|sharepoint-2013|phonegap-build
0
2016-06-14T05:47:53.807Z
2,016
6
5
1
315
1
605
77
5
0
false
false
false
false
false
false
zero
37,834,302
using com.devsmart.android.ui.HorizontalListView library how to set wrap content programatically
<p>I have a linear layout in xml with vertical orientation.</p> <pre><code>LinearLayout linearLayoutRoot = (LinearLayout)findViewById(R.id.listViewCompareLinear); </code></pre> <p>I used <code>com.devsmart.android.ui.HorizontalListView</code> library for horizontal <code>ListView</code> scroll. I need to call a no. o...
I have a linear layout in xml with vertical orientation. [CODE] I used com.devsmart.android.ui.HorizontalListView library for horizontal ListView scroll. I need to call a no. of the horizontal scroll view programatically and add it to linear layout above (since it is dynamic, i cannot use through xml). I did the follow...
android|listview
0
2016-06-15T11:34:19.237Z
2,016
6
11
2
315
1
680
96
2
3
true
false
false
false
false
false
zero
37,966,524
build apks with different app name and logo from one project
<p><br/> I am working on an Android Project in which I have many clients who will be using my app. And the number of clients may increase . I want to use my <b>same project and build different APK with their own logo and app name</b>. I dont want to change anything else. <br/> Basically I want to change the App n...
I am working on an Android Project in which I have many clients who will be using my app. And the number of clients may increase . I want to use my same project and build different APK with their own logo and app name . I dont want to change anything else. Basically I want to change the App name string (Wherever i have...
android|android-studio
2
2016-06-22T11:20:24.167Z
2,016
6
11
2
315
1
768
60
2
0
false
false
false
false
false
false
low
37,987,138
PendingIntent FLAG_NO_CREATE with different Context
<p>Ok, I have next method:<br></p> <pre><code>private boolean isPresentPengingIntent() { return PendingIntent.getService(context,0,myIntent,PendingIntent.FLAG_NO_CREATE) != null; } </code></pre> <p><code>myIntent</code> is always the same.<br></p> <p>I'm wondering - if I pass different <code>context</code> into ...
Ok, I have next method: [CODE] myIntent is always the same. I'm wondering - if I pass different context into this method, it returns false . But if I plan new Alarm with: [CODE] (also with different context ) - it will erase previous alarm (because myIntent is the same, that's why PendingIntent is considering the same)...
android|alarmmanager|android-context|android-pendingintent
1
2016-06-23T09:10:23.110Z
2,016
6
9
3
315
1
453
51
4
2
true
false
false
false
false
false
low
37,876,180
How to remove spacing between images in recycleview?
<p>Hi would like to ask if anyone know whats' wrong with recycleview having so much spacing between images? The following is how i tried using margin to control the spaces however it seems not the right solution to my problem.</p> <pre><code>&lt;android.support.v7.widget.RecyclerView android:layout_width="wrap_con...
Hi would like to ask if anyone know whats' wrong with recycleview having so much spacing between images? The following is how i tried using margin to control the spaces however it seems not the right solution to my problem. [CODE] And the image xml: [CODE] I used marginLeft to control the spaces and it worked before i ...
android|imageview|android-recyclerview
0
2016-06-17T08:00:26.783Z
2,016
6
8
4
827
1
380
52
3
3
true
false
false
false
false
false
zero
37,918,233
Difference between the @Singleton in module and @Singleton in component in Dagger 2
<p>Im learning Dagger 2, i have noticed that in some examples there is a <code>@Singleton</code> in the module's methods and on other <code>@Singleton</code> on the Component's methods? What is the difference and what exactly a <code>@Singleton</code> annotation on a module's method and on an component's method mean?</...
Im learning Dagger 2, i have noticed that in some examples there is a @Singleton in the module's methods and on other @Singleton on the Component's methods? What is the difference and what exactly a @Singleton annotation on a module's method and on an component's method mean?
android|dagger-2
5
2016-06-20T08:52:19.033Z
2,016
6
8
0
827
1
276
83
2
0
false
false
false
false
false
false
low
37,971,458
Converting bitmap to bytearray to string then convert back to bitmap is always null in Android
<p>I am developing an Android app. In my app, I am working with bitmaps. What I am doing is I am converting bitmap to byte array. Then I convert byte array to string. I need to do it some reasons. Converting bitmap to byte array is working. Byte array to string is also converted. Then problem start when I work with tha...
I am developing an Android app. In my app, I am working with bitmaps. What I am doing is I am converting bitmap to byte array. Then I convert byte array to string. I need to do it some reasons. Converting bitmap to byte array is working. Byte array to string is also converted. Then problem start when I work with that c...
android|arrays|bitmap|byte
0
2016-06-22T14:46:30.133Z
2,016
6
14
2
827
1
837
94
4
3
true
false
false
false
false
false
zero
37,769,758
Rxjava onNext not firing via retrofit observable
<p>I have this simple retrofit2 api interface which contains </p> <pre><code>interface Api { @GET(BuildConfig.END_POINT) Observable&lt;Response&gt; fetchData(); } </code></pre> <p>So everything is fine when I'm doing a fresh request but let say I fire a request and I un-subscribe immediately and then I try to fi...
I have this simple retrofit2 api interface which contains [CODE] So everything is fine when I'm doing a fresh request but let say I fire a request and I un-subscribe immediately and then I try to fire new request it returns nothing. So, in code it looks something like this: in Activity::onPause I perform un-subscriptio...
android|retrofit2|rx-android
3
2016-06-12T00:45:27.830Z
2,016
6
0
6
1,083
1
698
48
3
2
true
false
false
false
false
false
low
37,601,972
How use twitter digits api multiple times for same number?
<p>I am developing mobile app, where user have to login by using Twitter Digits Api and my backend. So, the problem is, that I can't test it multiple times, because when I register my phone number, I can't use the same number for next time during debugging/development. So, does twitter digits have some test methods, so...
I am developing mobile app, where user have to login by using Twitter Digits Api and my backend. So, the problem is, that I can't test it multiple times, because when I register my phone number, I can't use the same number for next time during debugging/development. So, does twitter digits have some test methods, so I ...
android|backend|twitter-digits
0
2016-06-02T20:56:57.100Z
2,016
6
20
3
60
1
355
58
3
0
false
false
false
false
false
false
zero
37,683,381
Merge Intellij IDEs to have only one installed
<p>This is a basic question. I use Android Studio, AppCode, IntelliJ IDEA, PHPStorm and RubyMine.</p> <p>Is there any way to merge all of those IDEs? For example, IntelliJ IDEA with plugins for each type of development instead of having 5 IDEs that are basically the same.</p> <p>Thanks.</p>
This is a basic question. I use Android Studio, AppCode, IntelliJ IDEA, PHPStorm and RubyMine. Is there any way to merge all of those IDEs? For example, IntelliJ IDEA with plugins for each type of development instead of having 5 IDEs that are basically the same. Thanks.
android-studio|intellij-idea|phpstorm|rubymine|appcode
2
2016-06-07T15:23:21.760Z
2,016
6
15
1
60
1
270
46
5
0
false
false
false
false
false
false
low
37,695,920
RuntimeException after adding google-services to ChatSecure
<p>I am modifying <a href="https://github.com/guardianproject/ChatSecureAndroid" rel="nofollow">ChatSecure</a> to have a push notifications feature and I am trying to do that using <code>GCM</code> OR <code>FCM</code> but once I add <code>com.google.gms:google-services:3.0.0</code> to the project <code>build.gradle</co...
I am modifying ChatSecure to have a push notifications feature and I am trying to do that using GCM OR FCM but once I add com.google.gms:google-services:3.0.0 to the project build.gradle file the App crashes. I tried both of GCM and FCM but once I add this line the app always crashes : [CODE] My App Build.gradle file :...
android|google-cloud-messaging
3
2016-06-08T07:28:29.877Z
2,016
6
7
2
60
1
435
59
2
2
true
false
false
false
false
false
low
37,719,245
multichose in phonebook android
<p>I have one question. In my application I open the phonebook and pull out the name and number of the person you have chosen. Here is the code that I do: <br></p> <pre><code>public void showContactsChooser(){ Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startA...
I have one question. In my application I open the phonebook and pull out the name and number of the person you have chosen. Here is the code that I do: [CODE] In this piece of code I open the phone book and when you click on a contact name and get a phone number, then go back to the old Activiti. But I can only choose ...
java|android|multichoiceitems
0
2016-06-09T07:17:35.367Z
2,016
6
7
3
60
1
473
31
3
1
true
false
false
false
false
false
zero
37,787,740
Get image from SDcard filter using startWith
<p>I'm stack with how to get image from SDcard folder which image name start with ("2.") here is my code:</p> <pre><code> if (file.isDirectory()) { listFile = file.listFiles(); // Create a String array for FilePathStrings FilePathStrings = new String[listFile.length]; // Create a St...
I'm stack with how to get image from SDcard folder which image name start with ("2.") here is my code: [CODE]
android
0
2016-06-13T10:46:11.027Z
2,016
6
10
0
60
1
109
44
1
1
true
false
false
false
false
false
zero
37,833,737
Handling intent when receiving application is in the background
<p>There 2 apps: First app can open the second one using:</p> <pre><code>Intent intent = getPackageManager().getLaunchIntentForPackage("com.my.path"); startActivity(intent); </code></pre> <p>this works fine.</p> <p>Second app can call again the first app by using intents with actions. for example:</p> <pre><code>pu...
There 2 apps: First app can open the second one using: [CODE] this works fine. Second app can call again the first app by using intents with actions. for example: [CODE] And there lies a problem which I'll get to shortly. I'm handling the received intent in the first app in the onCreate method. The first app is simply ...
android|android-fragments|android-intent
0
2016-06-15T11:09:42.237Z
2,016
6
11
2
60
1
1,096
63
3
2
true
false
false
false
false
false
zero
37,843,709
Vector drawable for ImageView with dp-sized lines
<p>Let's assume an <code>ImageView</code> that should have scalable drawable inside.</p> <p>Let's say I want draw a cross using two lines with <strong>strokeWidth = 1dp</strong>, no matter what is the real size of the ImageView.</p> <p>I found <code>VectorDrawable</code> but I cannot use <strong>dp</strong> unit ther...
Let's assume an ImageView that should have scalable drawable inside. Let's say I want draw a cross using two lines with strokeWidth = 1dp , no matter what is the real size of the ImageView. I found VectorDrawable but I cannot use dp unit there. I also need to generate this content dynamically. Does anyone have an idea ...
android|android-layout
0
2016-06-15T18:59:28.450Z
2,016
6
18
2
60
1
351
49
2
0
false
false
false
false
false
false
zero
37,851,649
ListView unclickable in spite of Android:Clickable="true"
<p>I've followed various links describing solutions to this problem, and no solution has worked thus far, or is non-applicable in my case. I'm wondering if there is a problem in my code/with a custom adapter? I've tried making the XML clickable, in addition to an OnItemClickListener. I've tried various configurations o...
I've followed various links describing solutions to this problem, and no solution has worked thus far, or is non-applicable in my case. I'm wondering if there is a problem in my code/with a custom adapter? I've tried making the XML clickable, in addition to an OnItemClickListener. I've tried various configurations of c...
android|listview
0
2016-06-16T06:41:58.233Z
2,016
6
6
3
60
1
1,205
57
2
5
true
false
false
false
false
false
zero
37,887,789
Android development software for ubuntu linux
<p>I currently moved from windows to ubuntu-linux. So I want to know what would be the best software for making android applications aside from android-studio for ubuntu-linux OS</p>
I currently moved from windows to ubuntu-linux. So I want to know what would be the best software for making android applications aside from android-studio for ubuntu-linux OS
android
-2
2016-06-17T18:08:48.620Z
2,016
6
18
4
60
1
175
45
1
0
false
false
false
false
false
true
negative
37,901,199
Android: Trying to work with new N features, getting weird messages in gradle
<p>So, I'm trying to work with Android N. I'm a fairly new android developer, my goal is to make the app compatible with N features like multi-window, while still having it work on earlier versions.</p> <p>Here is how I start my build.gradle:</p> <pre><code>compileSdkVersion 24 buildToolsVersion "24.0.0" def...
So, I'm trying to work with Android N. I'm a fairly new android developer, my goal is to make the app compatible with N features like multi-window, while still having it work on earlier versions. Here is how I start my build.gradle: [CODE] So, I set my compileSdkVersion, targetSdkVersion, and buildToolsVersion to 24. W...
android|android-gradle-plugin
0
2016-06-18T20:10:09.257Z
2,016
6
20
5
60
1
2,045
77
2
2
true
false
false
false
false
false
zero
37,927,569
Thread within service dies for some reason*
<p>I've posted about this project before, I'm trying to create a service, from a <code>Home</code> <code>Activity</code>, that constantly checks if the screen is locked or not (<code>ScreenLockService</code> is the <code>IntentService's</code> name). If so, it creates another service to "listen" (<code>Listener</code> ...
I've posted about this project before, I'm trying to create a service, from a Home Activity , that constantly checks if the screen is locked or not ( ScreenLockService is the IntentService's name). If so, it creates another service to "listen" ( Listener is the IntentService's name) for sound. If not, it stops the exis...
java|android|multithreading
0
2016-06-20T16:33:52.287Z
2,016
6
16
0
60
1
1,430
43
3
1
true
false
false
false
false
false
zero
37,958,801
Cannot Update Distances of Multiple kBeacons at the Same Time
<p>I am now trying to keep updating the distances of detected kBeacons and I use 3 kBeacons to do a test. I used the <a href="http://altbeacon.github.io/android-beacon-library/" rel="nofollow">Android Beacon Library</a> to detect the beacons but it gives me the same beacon through out the entire beacons collection in e...
I am now trying to keep updating the distances of detected kBeacons and I use 3 kBeacons to do a test. I used the Android Beacon Library to detect the beacons but it gives me the same beacon through out the entire beacons collection in every public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region)...
android|ibeacon|mac-address|altbeacon|android-ibeacon
1
2016-06-22T04:51:19.467Z
2,016
6
4
2
60
1
614
61
5
3
true
false
false
false
false
false
low
37,865,107
Is findAllSorted automatically updated like findAll in Realm DB
<p>I have Realm DB in my Android app and I use realm-recyclerview:</p> <p><a href="https://github.com/thorbenprimke/realm-recyclerview" rel="nofollow">https://github.com/thorbenprimke/realm-recyclerview</a></p> <p>Now I am trying to sort my RecyclerView using the Customized pattern.</p> <p>ِAnd after I thought about...
I have Realm DB in my Android app and I use realm-recyclerview: https://github.com/thorbenprimke/realm-recyclerview Now I am trying to sort my RecyclerView using the Customized pattern. ِAnd after I thought about it, I decided to sort the RealmResults, not the RecyclerView. Is there better way to sort a RecyclerView? M...
android|sorting|realm
0
2016-06-16T16:52:17.380Z
2,016
6
16
3
316
1
429
63
3
0
false
false
false
false
false
false
zero
37,896,670
React Native - Packager randomly crashing, Windows 10 + android avd
<p>Using <code>react-native</code> on Windows 10 + Android Virtual Device emulator. Hot reloading is turned on and everything works just fine.</p> <p>The cycle of code editing and reloading works for the first several edits, and after some edits (different number of edit each time), the packager crashes with the follo...
Using react-native on Windows 10 + Android Virtual Device emulator. Hot reloading is turned on and everything works just fine. The cycle of code editing and reloading works for the first several edits, and after some edits (different number of edit each time), the packager crashes with the following error message: [COD...
javascript|android|react-native|windows-10|avd
0
2016-06-18T11:59:16.303Z
2,016
6
11
5
828
1
623
67
5
1
true
false
false
false
false
false
zero
38,013,850
RecyclerView scrolls after filling parent container
<p>I have a RecyclerView with wrap_content, the height works well when the recyclerview has some items, but when RecyclerView fills the parent, the RecyclerView starts to scroll.</p> <p>this is the layout:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http...
I have a RecyclerView with wrap_content, the height works well when the recyclerview has some items, but when RecyclerView fills the parent, the RecyclerView starts to scroll. this is the layout: [CODE] Note: the layout is a fragment (ViewPager), parent is a CoordinatorLayout. so the "header" stays always in screen and...
android|android-recyclerview
0
2016-06-24T12:49:28.507Z
2,016
6
12
4
828
1
769
51
2
1
true
false
false
false
false
false
zero
37,748,004
i have added tab view with navigation drawer side menu After adding both side menu is not opening.
<p>i have added tab view with navigation drawer side menu After adding both side menu is not opening. Tab view is working but side menu screen is not opening or clicking while it was opening when i have not added tab view. In the 1st image we can see drawer was opening while tab view is not added when i have added draw...
i have added tab view with navigation drawer side menu After adding both side menu is not opening. Tab view is working but side menu screen is not opening or clicking while it was opening when i have not added tab view. In the 1st image we can see drawer was opening while tab view is not added when i have added drawer ...
android|navigation-drawer|tabview
0
2016-06-10T12:12:38.883Z
2,016
6
12
4
1,340
1
507
98
3
2
true
false
false
false
false
false
zero
37,732,347
Enable and configure OPUS codec on PJSIP 2.5.1 on Android
<p>I'm building a VOIP application on Android using PJSIP library.</p> <p>I was trying to enable OPUS codec since OPUS was supported in PJSIP from v2.5.</p> <p>I've followed the following <a href="https://trac.pjsip.org/repos/ticket/1904" rel="nofollow">link</a> to configure OPUS on PJSIP.</p> <p>I inserted <code>#d...
I'm building a VOIP application on Android using PJSIP library. I was trying to enable OPUS codec since OPUS was supported in PJSIP from v2.5. I've followed the following link to configure OPUS on PJSIP. I inserted #define PJMEDIA_HAS_OPUS_CODEC 1 in config_site_sample.h file to enable the OPUS codec. But when I was tr...
android|sip|voip|pjsip|opus
4
2016-06-09T17:14:37.867Z
2,016
6
17
3
2,108
1
468
57
5
1
true
false
false
false
false
false
low
37,773,326
DynamoDB mapper save only one attribute in an item Java
<p>I am getting a item record from my dynamodb table adding an attribute (userratings) and then saving it again like this:</p> <pre><code> SongDatabaseMappingAdapter song = mapper.load(SongDatabaseMappingAdapter.class, params[0]); song.getUserRatings().add(userID + "-" + params[1] + "-" + sdf.format(date))...
I am getting a item record from my dynamodb table adding an attribute (userratings) and then saving it again like this: [CODE] The problem is in my SongDatabaseMappingAdapter I have some extra getter setters that are being used to update the GUI, like this: [CODE] I need them to be there but I don't want them to save t...
java|android|amazon-web-services|amazon-dynamodb|getter-setter
0
2016-06-12T10:45:27.383Z
2,016
6
10
6
2,364
1
887
55
5
4
true
false
false
false
false
false
zero
37,696,290
javascript in my webview have been disabled
<p>i had uncommented the line below to keep my java script classes but it does not work and my javascript does not work.</p> <pre><code>-keepclassmembers class fqcn.of.javascript.interface.for.webview { public *; } </code></pre>
i had uncommented the line below to keep my java script classes but it does not work and my javascript does not work. [CODE]
javascript|android|webview
0
2016-06-08T07:45:20.647Z
2,016
6
7
2
61
1
124
43
3
1
true
false
false
false
false
false
zero
37,713,247
Mpandroid cosmetic questions
<p>I have the following drawing:</p> <p><a href="https://i.stack.imgur.com/TpD7W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TpD7W.jpg" alt="enter image description here"></a></p> <p>I would like to:</p> <p>-get rid of the hopizontal lines</p> <p>-plot numbers as int Vs float. for ex: draw 12...
I have the following drawing: I would like to: -get rid of the hopizontal lines -plot numbers as int Vs float. for ex: draw 12 instead of 12.0 -get rid of the "description" label in the bottom right corner Here is part of my code: public void createChart(com.github.mikephil.charting.charts.BarChart chart, String period...
android|mpandroidchart
1
2016-06-08T21:28:07.043Z
2,016
6
21
2
61
1
343
28
2
1
true
false
false
false
false
false
low
37,733,274
uploading image Android to GCS using PHP
<p>The idea is to upload a file from my android app using "POST" to my php to the Google Cloud Storage. Android -> php -> GCS. When I test my php to upload an image to GCS, it works fine. However, when I try to upload using my android app the server log shows no error but the file or image I uploaded doesn't show up. ...
The idea is to upload a file from my android app using "POST" to my php to the Google Cloud Storage. Android -> php -> GCS. When I test my php to upload an image to GCS, it works fine. However, when I try to upload using my android app the server log shows no error but the file or image I uploaded doesn't show up. here...
php|android|google-cloud-storage
0
2016-06-09T18:09:19.147Z
2,016
6
18
3
61
1
456
40
3
3
true
false
false
false
false
false
zero
37,762,028
ListView with CursorAdapter is not refreshing even if I use swapCursor or changeCursor methods in Android
<p>I have two activities an initial with a Listview and a FAB and a second one with editText, Save and Clear Buttons.</p> <p>I call the second one the activity for result I enter my values and click Save Button. My list is not refreshed <strong>its displaying only the first element</strong> and I did the following </...
I have two activities an initial with a Listview and a FAB and a second one with editText, Save and Clear Buttons. I call the second one the activity for result I enter my values and click Save Button. My list is not refreshed its displaying only the first element and I did the following in the first activity [CODE] Wh...
android|listview|android-cursoradapter
0
2016-06-11T09:18:52.853Z
2,016
6
9
5
61
1
392
105
3
1
true
false
false
false
false
false
zero
37,816,319
Android ReceiveReceive Text via Bluetooth
<p>I try to receive Text via Bluetooth (BT) using Android. I can view the Text using a pre-existing Bluetooth logger from the Google Play store, but with my own code it does not work correct.</p> <p>In general I use the default BT code from the Android documentation and <a href="https://github.com/googlesamples/androi...
I try to receive Text via Bluetooth (BT) using Android. I can view the Text using a pre-existing Bluetooth logger from the Google Play store, but with my own code it does not work correct. In general I use the default BT code from the Android documentation and samples . I log the received Text. I expect my text to be s...
android|logging|arduino|android-bluetooth
2
2016-06-14T15:31:08.300Z
2,016
6
15
1
61
1
708
41
4
2
true
false
false
false
false
false
low
37,870,589
storing and retrieving audio files
<p>So I have a study aid app, lets say I have about 200 audio clips. 1 per question, and 1 per answer. I've read that you should store your audio files in the assets folder. But I can't seem to find any good tutorials on how to do this. </p> <p>There's got to be a way I can store each clip with an identifying number t...
So I have a study aid app, lets say I have about 200 audio clips. 1 per question, and 1 per answer. I've read that you should store your audio files in the assets folder. But I can't seem to find any good tutorials on how to do this. There's got to be a way I can store each clip with an identifying number that matches ...
android|audio
-1
2016-06-16T22:47:40.943Z
2,016
6
22
3
61
1
363
34
2
0
false
false
false
false
false
true
negative
37,886,955
Align center to imagebutton on same line android
<p>I have a layout with 3 <code>ImageButtons</code> one to the right of the other as following:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas...
I have a layout with 3 ImageButtons one to the right of the other as following: [CODE] As you see, I aligned the TextView "@+id/textx" to the center using android:gravity="center" and I want to align the ImageButtons to the center too, I tried surrounding it with LinearLayout and such things but I don't know how to do ...
android
0
2016-06-17T17:13:47.297Z
2,016
6
17
4
61
1
406
48
1
1
true
false
false
false
false
false
zero
37,888,417
I need to show a dialog when has no network available and dismiss it when network works back
<p>I have a situation here...</p> <p>I create a receiver in my app to receive network events; Easy peasy, everything is working good...</p> <p>My problem starts here: I need to show up a dialog when no network is available and auto dismiss it when network works back;</p> <p>I tried to just show the dialog using onRe...
I have a situation here... I create a receiver in my app to receive network events; Easy peasy, everything is working good... My problem starts here: I need to show up a dialog when no network is available and auto dismiss it when network works back; I tried to just show the dialog using onReceive method context param,...
java|android
0
2016-06-17T18:48:16.367Z
2,016
6
18
4
61
1
772
92
2
0
false
false
false
false
false
false
zero
37,911,986
refreshing listview data getting from server
<p>I have a listview that gets data from the server. And every time server sends 6 records to the android program and I want to set a refresh button or a time that the listview be updated based on that time . I mean the listview can get the new data from server. Now that I don't have this functionality in my app I shou...
I have a listview that gets data from the server. And every time server sends 6 records to the android program and I want to set a refresh button or a time that the listview be updated based on that time . I mean the listview can get the new data from server. Now that I don't have this functionality in my app I should ...
android|listview|pull-to-refresh|swiperefreshlayout
0
2016-06-19T21:24:46.680Z
2,016
6
21
6
61
1
467
44
4
1
true
false
false
false
false
false
zero
37,980,604
Amazon Web Services & Android Security Concern
<p>I have recently started learning about amazon web services &amp; trying to built a game application on top of it's solutions, there were couple of things bothered me while developing,</p> <p>Is is possible to retrieve temporary credentials received by STS to use them manually? If yes, can we use them manually with ...
I have recently started learning about amazon web services & trying to built a game application on top of it's solutions, there were couple of things bothered me while developing, Is is possible to retrieve temporary credentials received by STS to use them manually? If yes, can we use them manually with other SDK? Sinc...
android|security|amazon-web-services
1
2016-06-23T00:59:33.497Z
2,016
6
0
3
61
1
940
46
3
0
false
false
false
false
false
false
low
37,772,482
Test apt argument for annotation processor with google compile-testing
<p>I am writing annotation processor for my android project and I test it using google compile-testing.</p> <p>It all works fine except that I am able to test apt plugnin argument to my annotation processor.</p> <p>My annotation processor has this option that I want to test:</p> <pre><code>@Override public Set&lt;St...
I am writing annotation processor for my android project and I test it using google compile-testing. It all works fine except that I am able to test apt plugnin argument to my annotation processor. My annotation processor has this option that I want to test: [CODE] I do not seem to get how I can pass this options to co...
android|gradle|annotation-processing
0
2016-06-12T09:05:04.500Z
2,016
6
9
6
317
1
478
70
3
3
true
false
false
false
false
false
zero
37,985,959
Android onDrag How to change moving view's background when moving
<p>I'm using relative layout for purpose. I need to change background image when moving image, moved to a particular position. but i can't access moving view and change background when layout moving(dragging).</p> <p>Thanks.</p> <pre><code>class MyDragListener implements OnDragListener { @Override public boo...
I'm using relative layout for purpose. I need to change background image when moving image, moved to a particular position. but i can't access moving view and change background when layout moving(dragging). Thanks. [CODE]
android|android-layout
1
2016-06-23T08:21:46.710Z
2,016
6
8
3
317
1
221
65
2
1
true
false
false
false
false
false
low
37,762,234
App not doing any type payment with paypal android sdk.
<p>* hi , i have created an android app in which we have used Android Paypal gateway for payment .</p> <p>its working well on test account ,but when i am using it with live client-id its giving following error:</p> <p>1.when using Pay with Paypal button :</p> <p>"There was a problem setting this payment .account ...
* hi , i have created an android app in which we have used Android Paypal gateway for payment . its working well on test account ,but when i am using it with live client-id its giving following error: 1.when using Pay with Paypal button : "There was a problem setting this payment .account needs a valid funding source ,...
android|paypal|payment|paypal-rest-sdk
1
2016-06-11T09:43:51.957Z
2,016
6
9
5
573
1
571
55
4
0
false
false
false
false
false
false
low
37,790,721
Overriding AJAX Header in WebView
<p>I am using a WebView on android. I want to override the header for AJAX requests by injecting the javascript show below. </p> <pre><code>XMLHttpRequest.prototype.realSend = XMLHttpRequest.prototype.send; var newSend = function(vData) { this.setRequestHeader('ClientId', 'ANDROID'); this.setRequestHeader('Cus...
I am using a WebView on android. I want to override the header for AJAX requests by injecting the javascript show below. [CODE] I am not sure why this does not work. I have tried it on chrome directly and it did now work. When the same script is inserted into iOS/Safari it works.
javascript|android|ajax|google-chrome|webview
2
2016-06-13T13:09:57.377Z
2,016
6
13
0
573
1
280
33
5
1
true
false
false
false
false
false
low
38,042,730
Android update app across app restarts using DownloadManager (avoid downloading multiple times)
<p>Iam trying to update my app by downloading the apk using download manager. I have registered broadcast receiver to listen to <code>DownloadManager.ACTION_DOWNLOAD_COMPLETE</code> in <code>MainActivity</code> and open the apk in <code>onReceive</code> method. Following is the code:</p> <pre><code>public class MainAc...
Iam trying to update my app by downloading the apk using download manager. I have registered broadcast receiver to listen to DownloadManager.ACTION_DOWNLOAD_COMPLETE in MainActivity and open the apk in onReceive method. Following is the code: [CODE] updateApp(url) is called on click of a button in UI. Now after clickin...
android|broadcastreceiver|android-download-manager|sticky-broadcast
1
2016-06-26T20:08:31.950Z
2,016
6
20
6
573
1
1,112
95
4
1
true
false
false
false
false
false
low
37,812,903
android app side menu like google map menu
<p>I am looking to put side menu similar to "google map" side menu which appears next to "Search Google Maps" you click on the icon and you get menu is there any framework to implement ?</p> <p>spending much time but can't find out how </p> <p>can any expert advise/suggest/help me I would appreciate your help very m...
I am looking to put side menu similar to "google map" side menu which appears next to "Search Google Maps" you click on the icon and you get menu is there any framework to implement ? spending much time but can't find out how can any expert advise/suggest/help me I would appreciate your help very much
android-layout
0
2016-06-14T13:04:26.553Z
2,016
6
13
1
829
1
302
42
1
0
false
false
false
false
false
false
zero
37,693,574
OpenCV Android crashes on Imgproc.cvtColor()
<p>I have a problem with OpenCV4Android.</p> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.camtime/com.fognature.develop.smp.CameraActivity}: CvException [org.opencv.core.CvException: cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/imgpr...
I have a problem with OpenCV4Android. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.camtime/com.fognature.develop.smp.CameraActivity}: CvException [org.opencv.core.CvException: cv::Exception: /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/imgproc/src/color.cpp:3739: error: (-...
java|android|opencv
3
2016-06-08T04:57:29.377Z
2,016
6
4
2
4,157
1
1,903
44
3
1
true
false
true
false
false
false
low
37,627,782
Android SQlite Databases Can't get value from databases
<p>I have android Sqlite databases having four table, i want to get value of custumer_data "cust_id" every where in the activity when ever i need. I get value of cust_id in activity but when i implement same method in another activity i value of cust_id is shows null. Here is my database class:</p> <pre><code>public ...
I have android Sqlite databases having four table, i want to get value of custumer_data "cust_id" every where in the activity when ever i need. I get value of cust_id in activity but when i implement same method in another activity i value of cust_id is shows null. Here is my database class: [CODE] } And code use to ac...
android|sqlite|android-sqlite
-1
2016-06-04T07:48:36.807Z
2,016
6
7
5
62
1
514
55
3
3
true
false
false
false
false
true
negative
37,641,798
Close two arcs together
<p>I'm designing a custom widget which have a gauge similar to this blue one : <a href="https://i.stack.imgur.com/vZBc4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vZBc4.png" alt="gauge"></a> (except this is a continuous gauge and not a splited one)</p> <p>I tried to draw a path with two arcs :...
I'm designing a custom widget which have a gauge similar to this blue one : (except this is a continuous gauge and not a splited one) I tried to draw a path with two arcs : [CODE] my two arcs are well drawn but the gaugePath.close() don't work as excepted since it close the path with the gauge start points (lower point...
android|android-canvas
1
2016-06-05T12:18:00.987Z
2,016
6
12
6
62
1
555
23
2
1
true
false
false
false
false
false
low
37,659,904
Phonegap https-app: release version can't send data, debug version can
<p>can anyone help me with the following question please:</p> <p>My Android-App is able to send the data via <code>https</code> when compiling the <code>debug-version</code>, but the <code>release version</code> fails there.</p> <p>The <code>https</code> certificate is not self-signed and the whitelist plugin is work...
can anyone help me with the following question please: My Android-App is able to send the data via https when compiling the debug-version , but the release version fails there. The https certificate is not self-signed and the whitelist plugin is working. Interesting is, that if the debug version is installed and then t...
android|cordova|debugging|https|release
1
2016-06-06T14:22:36.203Z
2,016
6
14
0
62
1
466
70
5
0
false
false
false
false
false
false
low
37,700,779
Android - On every new Android Studio update I need to re-install Fabric Plugin - why
<p>Its about <a href="https://plugins.jetbrains.com/plugin/8002?pr=" rel="nofollow">Fabric plugin</a>, whenever I update my android studio I need to re-install the Fabric Plug-in again. Even though I import my old settings after updating the android studio. </p> <p>Any help will be appreciated. </p>
Its about Fabric plugin , whenever I update my android studio I need to re-install the Fabric Plug-in again. Even though I import my old settings after updating the android studio. Any help will be appreciated.
android|android-studio|crashlytics|twitter-fabric
0
2016-06-08T11:07:04.263Z
2,016
6
11
2
62
1
210
85
4
0
false
false
false
false
false
false
zero
37,730,327
Failed to get contentProvider
<p>i just new to Android and learn it by book. Please help me to find mistakes that may had in my small practice program. I could successfully created database but i couldn't use my query function to browse results from SQLite database due to an exception which says "Failed to find provider info for com.latrobe.databas...
i just new to Android and learn it by book. Please help me to find mistakes that may had in my small practice program. I could successfully created database but i couldn't use my query function to browse results from SQLite database due to an exception which says "Failed to find provider info for com.latrobe.database"....
android
0
2016-06-09T15:32:30.267Z
2,016
6
15
3
62
1
355
29
1
5
true
false
false
false
false
false
zero
37,812,860
using do while loop in fetching location from google api client
<p>I am fetching the location from googleApiClient, when i click on yes in the alert builder of google, then i use onActvityResult to check that if user clicks yes then i set my text view to that location, i am not getting the last location at the same time, so i used do while loop,is it a good practice? these are the ...
I am fetching the location from googleApiClient, when i click on yes in the alert builder of google, then i use onActvityResult to check that if user clicks yes then i set my text view to that location, i am not getting the last location at the same time, so i used do while loop,is it a good practice? these are the fun...
android
0
2016-06-14T13:02:37.123Z
2,016
6
13
1
62
1
479
63
1
1
true
false
false
false
false
false
zero
37,827,797
Pojo desensitization in firebase android is behaving differently
<p>This is my json </p> <pre><code>{ "profile_min_salary": 10000, "profile_requirement_checklist": "Excel Aana Chahiye.", "tags": "central,12th pass,thoda english,good english,fluent english,male,fresher,female" } </code></pre> <p>Here is my Model</p> <pre><code>@JsonAutoDetect(fieldVisibi...
This is my json [CODE] Here is my Model [CODE] This is my firebase code snippet [CODE] But my class is getting only tags parameter else are null why ?? While if I am writing this way it is working fine [CODE] What should i change in code to make it work in first scenario ?? I am stuck.
android|firebase|firebase-realtime-database|pojo
0
2016-06-15T06:37:31.397Z
2,016
6
6
2
62
1
286
64
4
4
true
false
false
false
false
false
zero
37,836,723
object orientation android move method's out of activity into new class with context
<p>I have a number of classes that have a logout button, so I thought it would make sense to move the logout method outside each individual class and give it its own class so that I do not have to fix it in more than one place if I make changes to it, however I am facing some problems relating to context</p> <p>The me...
I have a number of classes that have a logout button, so I thought it would make sense to move the logout method outside each individual class and give it its own class so that I do not have to fix it in more than one place if I make changes to it, however I am facing some problems relating to context The method takes ...
java|android
0
2016-06-15T13:21:28.647Z
2,016
6
13
2
62
1
674
84
2
3
true
false
false
false
false
false
zero
37,836,917
Performance diff between two view adding approach
<p>What will be the diff in terms of performance of adding views dynamically ( using add/remove view methods of ViewGroup ) or putting them into a static layout xml file and let it be compiled into a binary form and inflated at runtime ( regular way ) ?</p> <p>I know ViewStub is an option but I wonder if there's a dif...
What will be the diff in terms of performance of adding views dynamically ( using add/remove view methods of ViewGroup ) or putting them into a static layout xml file and let it be compiled into a binary form and inflated at runtime ( regular way ) ? I know ViewStub is an option but I wonder if there's a difference of ...
android|view|android-inflate|android-viewgroup|viewstub
1
2016-06-15T13:29:30.167Z
2,016
6
13
2
62
1
348
49
5
0
false
false
false
false
false
false
low
37,850,930
how to access java class function in an android apk remotely for testing?
<p>i have an application on android which communicates with Arduino device, it communicates with the Arduino through the USB interface and we would like to have access of some of those functions remotely in order to run our end to end tests. We're having problem in finding a way to run our Arduino mock(which we've buil...
i have an application on android which communicates with Arduino device, it communicates with the Arduino through the USB interface and we would like to have access of some of those functions remotely in order to run our end to end tests. We're having problem in finding a way to run our Arduino mock(which we've built f...
java|android|testing|apk|androidviewclient
0
2016-06-16T05:54:34.873Z
2,016
6
5
3
62
1
450
73
5
0
false
false
false
false
false
false
zero
37,903,236
For what this Android code is used?
<p>I'm new on Android development, can you please explain me the following code and for what this Android code is it used? </p> <pre><code>public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); try { if (requestCode == RESUL...
I'm new on Android development, can you please explain me the following code and for what this Android code is it used? [CODE]
java|android|android-volley|android-toast
-6
2016-06-19T01:48:43.187Z
2,016
6
1
6
62
1
126
35
4
1
true
false
false
false
false
true
negative
37,946,864
Android wear stream accelerometer data to handheld
<p>I an new to android wear app development. I wanted to create an app which streams accelerometer data continuously from wear device to handheld, and do some processing on my handheld. Does anyone know how can I do it?</p>
I an new to android wear app development. I wanted to create an app which streams accelerometer data continuously from wear device to handheld, and do some processing on my handheld. Does anyone know how can I do it?
android|android-wear-data-api
0
2016-06-21T14:13:53.983Z
2,016
6
14
1
62
1
216
50
2
0
false
false
false
false
false
false
zero
37,957,787
How to show Excel's charts via smart devices
<p>I have experienced in SAP BOBJ and I knew that we can connect between smart devices (ipad,etc) and BOBJ server to show dashboards.<br/> At present, I only used MS Excel 2013 to build dashboards and it did not use the external data.I find the solution to help my colleagues connect to this Excel file to view dashboard...
I have experienced in SAP BOBJ and I knew that we can connect between smart devices (ipad,etc) and BOBJ server to show dashboards. At present, I only used MS Excel 2013 to build dashboards and it did not use the external data.I find the solution to help my colleagues connect to this Excel file to view dashboards via sm...
android|excel|business-intelligence|dashboard|dashboard-designer
0
2016-06-22T03:01:19.470Z
2,016
6
3
2
62
1
437
44
5
0
false
false
false
false
false
false
zero
37,966,994
when i am clicking on login button without input it starts another activity?
<p>I am using shared preference and if else condition but when i am clicking on login button without touching text box it starts another activity and after giving input in text box its working fine why?</p> <pre><code>login.setOnClickListener(new OnClickListener() { @Override public void onClick(View ...
I am using shared preference and if else condition but when i am clicking on login button without touching text box it starts another activity and after giving input in text box its working fine why? [CODE]
java|android|if-statement|android-sharedpreferences
0
2016-06-22T11:40:49.367Z
2,016
6
11
2
62
1
206
76
4
1
true
false
false
false
false
false
zero
37,995,216
How to show notification that is added as new each time it is fired from broadcast receiver in Android
<p>I am developing an Android app. In my app, I am showing notification that is fired from inside of a broadcast receiver. Showing notification from receiver is working fine. But I am having a little problem with what I want it to be. It is a self-cancel notification. Cannot be closed by user.</p> <p>What is happening...
I am developing an Android app. In my app, I am showing notification that is fired from inside of a broadcast receiver. Showing notification from receiver is working fine. But I am having a little problem with what I want it to be. It is a self-cancel notification. Cannot be closed by user. What is happening now is whe...
android|notifications|android-notifications|android-notification-bar|notificationmanager
0
2016-06-23T14:56:24.260Z
2,016
6
14
3
62
1
1,198
102
5
2
true
false
false
false
false
false
zero
37,693,686
Getting "the specific child already has a parent."
<p>I have tried all stackoverflow forums but couldn't get the solution</p> <p>Error log:</p> <pre><code>06-08 10:02:24.116 18960-18960/com.example.itachiuchiha.crimeintent E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.itachiuchiha.crimeintent, PID: 18960 java.lang.RuntimeException: Unable to start acti...
I have tried all stackoverflow forums but couldn't get the solution Error log: [CODE] CrimeListActivity class: [CODE] CrimeListFragment class: [CODE] SingleFragmentActivity class: [CODE] Crime class: [CODE] CrimeLab class: [CODE] fragment_crime_list.XML: [CODE] activity_fragment.XML: [CODE] Also it will be great if you...
android|android-fragments|android-recyclerview
0
2016-06-08T05:09:05.983Z
2,016
6
5
2
318
1
388
50
3
8
true
false
false
false
false
false
zero
37,700,395
How to Check is Android Download manger enabled?
<p>As you know , User can be disable the Android download manager in the application manager , if app using the default android download manager , it can be crash if download manager disabled , Know my question how can to know is download manager disable or enable . Thanks &lt;3</p>
As you know , User can be disable the Android download manager in the application manager , if app using the default android download manager , it can be crash if download manager disabled , Know my question how can to know is download manager disable or enable . Thanks <3
android|android-download-manager
1
2016-06-08T10:49:20.523Z
2,016
6
10
2
318
1
273
48
2
0
false
false
false
false
false
false
low
37,725,487
How to add a divider to the account profile section of mikepenz materialdrawer library?
<p>How to add a divider to the account profile section of <a href="https://github.com/mikepenz/MaterialDrawer" rel="nofollow">mikepenz materialdrawer</a> library?</p> <p>I can use <code>new DividerDrawerItem()</code> to add a divider to the drawer itself, but there is no way to add a divider to the profile section. Ho...
How to add a divider to the account profile section of mikepenz materialdrawer library? I can use new DividerDrawerItem() to add a divider to the drawer itself, but there is no way to add a divider to the profile section. How can I do that?
android|navigation-drawer|materialdrawer
0
2016-06-09T12:04:08.160Z
2,016
6
12
3
318
1
240
87
3
0
false
false
false
false
false
false
zero
37,928,953
Realm gradle tasks
<p>During my profile report of <code>assembleDebug</code> gradle task I discovered two realm related gradle sub-tasks which takes quite big amount of time:</p> <pre><code>assembleDebug - 1m21.44s - transformClassesWithRealmOptionalAPITransformerForDebug - 22.386s - transformClassesWithRealmTransformerForIdeDebug - 10....
During my profile report of assembleDebug gradle task I discovered two realm related gradle sub-tasks which takes quite big amount of time: [CODE] Questions: what exactly those realm related gradle sub tasks do? Can I skip them at some point? why they took so long? (22 + 10 = 32 sec) Update As a workaround I am skippin...
android|realm
6
2016-06-20T18:00:29.133Z
2,016
6
18
0
318
1
357
18
2
2
true
false
false
false
false
false
medium
37,875,318
Access to UI from Dependency Service
<p>I would like to use StepCounter in my Xamarin.Forms project.<br/> If I have correctly understood, I need to use Dependency Service, write the interface for stepcounter and his realisation on Android/IOS app.</p> <p>The problem is that I'd like to update ui control (text) every moment, when stepper sensor state chan...
I would like to use StepCounter in my Xamarin.Forms project. If I have correctly understood, I need to use Dependency Service, write the interface for stepcounter and his realisation on Android/IOS app. The problem is that I'd like to update ui control (text) every moment, when stepper sensor state changed. For example...
c#|android|xamarin|xamarin.forms
2
2016-06-17T07:14:27.580Z
2,016
6
7
4
574
1
773
36
4
1
true
false
false
false
false
false
low
37,928,351
Gradual Transition between Fragments
<p>I recently downloaded the Google Sheets app and I was really interested in the first screen that explained the details of the app so I tried to recreate it.</p> <p>After some research I decided that it was <code>ViewPager</code> and I implemented it.</p> <p>But the <a href="https://drive.google.com/file/d/0B_WFd1N...
I recently downloaded the Google Sheets app and I was really interested in the first screen that explained the details of the app so I tried to recreate it. After some research I decided that it was ViewPager and I implemented it. But the result was not what I expected. In the sheets app the color changing was gradual ...
android|user-interface|android-fragments
3
2016-06-20T17:22:13.760Z
2,016
6
17
0
830
1
526
36
3
0
false
false
false
false
false
false
low
37,721,484
Time in axis X - GraphView for android
<pre><code>// generate Dates Calendar calendar = Calendar.getInstance(); Date d1 = calendar.getTime(); calendar.add(Calendar.SECOND, 1); Date d2 = calendar.getTime(); calendar.add(Calendar.SECOND, 1); Date d3 = calendar.getTime(); GraphView graph = (GraphView) findViewById(R.id.graph); // you can directly pass Date o...
[CODE] When use one Second as XAxis Graph is not displaying. but if use more than 60 seconds then graph is displaying. I dont know the reason. Anyone have similar problem with GRaphView.
android|android-graphview
0
2016-06-09T09:07:24.543Z
2,016
6
9
3
1,086
1
186
38
2
1
true
false
false
false
false
false
zero
37,603,008
Sencha cmd 6.1 makes app size bigger
<p>I have a sencha touch-cordova app which supports ios and android. I observed a weird thing - with exactly same code base and files if I use sencha cmd 6.0.2.14 the resulting app size is just 22.5 MB while if I build it using sencha cmd 6.1.1, the app size jumps to 77 MB.</p> <p>I am new to sencha and am really curi...
I have a sencha touch-cordova app which supports ios and android. I observed a weird thing - with exactly same code base and files if I use sencha cmd 6.0.2.14 the resulting app size is just 22.5 MB while if I build it using sencha cmd 6.1.1, the app size jumps to 77 MB. I am new to sencha and am really curious to know...
android|ios|cordova|sencha-touch-2|sencha-cmd
0
2016-06-02T22:12:51.020Z
2,016
6
22
3
63
1
585
36
5
0
false
false
false
false
false
false
zero
37,612,476
Send data to multiple fragments using Serialization
<p>I'm new here so please bear with me. I'm trying to send some data to multiple fragments from MainActivity using Serialization method in POJO. In MainActivity I open a new fragment(FragOne) and I'm able to get data but when I open a new fragment(FragTwo) from FragOne the app crashes with NullPointerException. I searc...
I'm new here so please bear with me. I'm trying to send some data to multiple fragments from MainActivity using Serialization method in POJO. In MainActivity I open a new fragment(FragOne) and I'm able to get data but when I open a new fragment(FragTwo) from FragOne the app crashes with NullPointerException. I searched...
android|android-fragments|serialization|pojo
1
2016-06-03T10:52:40.130Z
2,016
6
10
4
63
1
507
51
4
4
true
false
false
false
false
false
low
37,635,684
Is the path loss formula correct?
<p>I have been doing some tests with the path loss formula and it gives me some pretty good results so far. However, I looked at the original code and saw that the formula used is distance = Math.pow(10.0, ((-adjustedRssi+txPower)/10*0.35))</p> <p>where adjustedRssi is RSSI - adjustment. This was giving me very smal...
I have been doing some tests with the path loss formula and it gives me some pretty good results so far. However, I looked at the original code and saw that the formula used is distance = Math.pow(10.0, ((-adjustedRssi+txPower)/10*0.35)) where adjustedRssi is RSSI - adjustment. This was giving me very small values for ...
altbeacon|android-ibeacon|beacon
0
2016-06-04T22:34:06.527Z
2,016
6
22
5
63
1
953
33
3
0
false
false
false
false
false
false
zero
37,675,105
How to save a GoogleMap polly line in SQLite database?
<p>I've got a specific problem. I'm creating an application which has to save and then get a particullar locatons form database and recreate a polly line on a GoogleMap. Which tools, libraries or techniques schould I use to achieve this goal? </p>
I've got a specific problem. I'm creating an application which has to save and then get a particullar locatons form database and recreate a polly line on a GoogleMap. Which tools, libraries or techniques schould I use to achieve this goal?
java|android|sqlite|google-maps
1
2016-06-07T09:11:31.243Z
2,016
6
9
1
63
1
239
54
4
0
false
false
false
false
false
false
low
37,675,755
Ionic splash scree doesn't show up (not even with basic blank app)
<p>I tried to build several apps for android and i can't get the splash screen working..</p> <p>I even changed a few different images and it never shows. </p> <p>I think maybe my android OS is too old (4.1.2). How to build an ionic app for android 4.0 minimum? How can i know for which platform ionic builds this app?<...
I tried to build several apps for android and i can't get the splash screen working.. I even changed a few different images and it never shows. I think maybe my android OS is too old (4.1.2). How to build an ionic app for android 4.0 minimum? How can i know for which platform ionic builds this app? i just use basic com...
android|ionic-framework
0
2016-06-07T09:41:16.710Z
2,016
6
9
1
63
1
419
66
2
1
true
false
false
false
false
false
zero
37,721,098
How to add all contentNames to a list by making scroll down with Android mobile, selenium?
<p>I need your help. There are some content_episodes and Im trying to get all of them to a list.in my codes I can take a few of them,but then Im trying to scrolldown and take the remains of them,it fails.I can take only episodes which comes not doing scrolldown.How can I take the remains of content_episodes by making s...
I need your help. There are some content_episodes and Im trying to get all of them to a list.in my codes I can take a few of them,but then Im trying to scrolldown and take the remains of them,it fails.I can take only episodes which comes not doing scrolldown.How can I take the remains of content_episodes by making scro...
java|android|selenium|mobile
1
2016-06-09T08:49:33.357Z
2,016
6
8
3
63
1
389
90
4
1
true
false
false
false
false
false
low
37,749,140
Backendless multiuser flow - switch current user
<p>I'm trying to figure out a way to switch current user programmatically with backendless sdk (Android and iOS) but stuck with it so maybe someone already faced the same issue and was able to solve it.</p> <p>The issue in more details. </p> <p>I have an app which supports multiplayer flow - several users can login s...
I'm trying to figure out a way to switch current user programmatically with backendless sdk (Android and iOS) but stuck with it so maybe someone already faced the same issue and was able to solve it. The issue in more details. I have an app which supports multiplayer flow - several users can login simultaneously using ...
android|ios|backendless
0
2016-06-10T13:08:23.527Z
2,016
6
13
4
63
1
1,147
48
3
0
false
false
false
false
false
false
zero
37,751,467
How set transparency onleft side menu in NavigationDrawerActivity
<p>I am creating default Navigation Drawer Activity for my project. I would like set my left navigation bar transparent. Do you have any ideas how to do it?</p> <p><img src="https://i.stack.imgur.com/G0KsV.png" alt="enter image description here"> </p>
I am creating default Navigation Drawer Activity for my project. I would like set my left navigation bar transparent. Do you have any ideas how to do it?
android|transparency|navigator
0
2016-06-10T15:01:47.137Z
2,016
6
15
4
63
1
153
65
3
0
false
false
false
false
false
false
zero
37,822,963
WifiEnabled without connecting to a network
<p><strong>Problem:</strong></p> <p>I required my device to have its Wifi enabled, but should not connect to a network.</p> <p><strong>Tried:</strong></p> <pre><code>wifiManager.disconnect(); wifiManager.enableNetwork(-1, true); </code></pre> <p>The particular line of interest is the <code>enabledNetwork(-1, true);...
Problem: I required my device to have its Wifi enabled, but should not connect to a network. Tried: [CODE] The particular line of interest is the enabledNetwork(-1, true); Declaration: [CODE] My code disconnects from the current network, but after a brief period of time, auto-configures itself and connects to the most ...
java|android|networking|wifi
0
2016-06-14T22:10:55.613Z
2,016
6
22
1
63
1
664
43
4
4
true
false
false
false
false
false
zero
37,850,063
How do I populate my list with user-entered data
<p>I have a barcode scanning app where you can label your barcodes before you scan them. I want to make it so that when you label and scan something, it shows up in a list with the label you gave the barcode, and saves it. I put up my code for the entire project on github, please help me out as soon as possible. The cl...
I have a barcode scanning app where you can label your barcodes before you scan them. I want to make it so that when you label and scan something, it shows up in a list with the label you gave the barcode, and saves it. I put up my code for the entire project on github, please help me out as soon as possible. The class...
android|listview|populate
1
2016-06-16T04:45:57.303Z
2,016
6
4
3
63
1
545
48
3
0
false
false
false
false
false
false
low
37,866,535
Android: Detect remote command to control music
<p>I've built a music player app for android. I want it to detect remote commands like a play next command from headphone button. How do I implement this feature?</p>
I've built a music player app for android. I want it to detect remote commands like a play next command from headphone button. How do I implement this feature?
android|android-mediaplayer|android-broadcastreceiver
0
2016-06-16T18:15:00.893Z
2,016
6
18
3
63
1
159
47
3
0
false
false
false
false
false
false
zero
37,972,985
Libgdx Ending level is not working properly
<p>In my game the kid is collecting fruits but if he hits the rock 3 times or time is up before collecting the required points, the kid will jump to the half of the screen then fall down and start fail music then move to game over screen but I have two problems here:</p> <ol> <li>when time is up the boy jump to top an...
In my game the kid is collecting fruits but if he hits the rock 3 times or time is up before collecting the required points, the kid will jump to the half of the screen then fall down and start fail music then move to game over screen but I have two problems here: when time is up the boy jump to top and continue out of...
java|android|libgdx
0
2016-06-22T15:54:53.263Z
2,016
6
15
2
63
1
800
43
3
3
true
false
false
false
false
false
zero
38,017,246
Poll data from remote database and create a notification to the user
<p>Quite a while now, I have been using GCM to sending push messages to my android app users. Now I want to be able to poll data from my remote database to the app users when remote database receives new insertion. I want to create a notification when there is a new insertion into the remote database. </p> <p>I unders...
Quite a while now, I have been using GCM to sending push messages to my android app users. Now I want to be able to poll data from my remote database to the app users when remote database receives new insertion. I want to create a notification when there is a new insertion into the remote database. I understand I would...
android
0
2016-06-24T15:43:03.557Z
2,016
6
15
4
63
1
763
68
1
0
false
false
false
false
false
false
zero
38,019,136
show the near by events after integrating Facebook SDK means Facebook login in Android?
<p>How to show the near by events after integrating Facebook SDK means Facebook login in Android?</p> <p>I have written this code:</p> <pre><code>AccessToken tok; tok = AccessToken.getCurrentAccessToken(); // login_button.setReadPermissions(Arrays.asList("user_location", "user_birthday", "user_likes", "user_events",...
How to show the near by events after integrating Facebook SDK means Facebook login in Android? I have written this code: [CODE] in onsuccess of the callback method of Facebook SDK integration. But it's showing: result: {Response: responseCode: 200, graphObject: {"data":[]}, error: null}
android|facebook|facebook-android-sdk
0
2016-06-24T17:35:13.127Z
2,016
6
17
4
63
1
287
87
3
1
true
false
false
false
false
false
zero
38,029,403
Android close when success = 0
<p>I have a program to read data from php script. When the success = 1 my program work withour error but when success = 0 my program force close. No list error in logcat</p> <p>Success = 1 like this <a href="http://prntscr.com/bkw700" rel="nofollow">http://prntscr.com/bkw700</a> Success = 0 like this <a href="http://p...
I have a program to read data from php script. When the success = 1 my program work withour error but when success = 0 my program force close. No list error in logcat Success = 1 like this http://prntscr.com/bkw700 Success = 0 like this http://prntscr.com/bkw796 My code android like this [CODE] My code php like this [C...
php|android|sql-server
0
2016-06-25T14:14:41.233Z
2,016
6
14
5
63
1
378
30
3
2
true
false
false
false
false
false
zero
38,032,160
Android SQLite database doesnot Update and Delete
<p>This is mainactivity which provides the user Input </p> <pre><code>public class Welcome extends AppCompatActivity{ private DBMANAGER_person dbmanager_person; private ListView listView; private SimpleCursorAdapter adapter; final String [] from = new String[]{MyDB.COLUMN_ID, MyDB.COLUMN_NAME, MyDB.COLUMN_AGE, MyDB.C...
This is mainactivity which provides the user Input [CODE] } This is Add_prople class public class Add_people extends AppCompatActivity implements View.OnClickListener { private EditText nameEditText; private EditText ageEditText; private EditText heightEditText; private EditText weightEditText; [CODE] } This is DBMANAG...
android|sqlite|sql-update|sql-delete
0
2016-06-25T19:22:39.533Z
2,016
6
19
5
63
1
769
49
4
4
true
false
false
false
false
false
zero
37,742,964
Titanium alloy : get current window from required view
<p>I have following code (index.js) :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;Alloy&gt; &lt;Window id="home" &gt; &lt;View id="formulaire"&gt; &lt;Require type="view" id="et...
I have following code (index.js) : [CODE] On etape_1_form.xml i have to use a picker widget from : danielhanold.pickerwidget here is a simple method to use this widget inside etape_1_form.js (the controller) : [CODE] Now instead of opening a picker, this throw an error because i cannot access the current window from th...
titanium|titanium-mobile|titanium-alloy|appcelerator-titanium|titanium-android
0
2016-06-10T07:59:13.133Z
2,016
6
7
4
319
1
612
54
5
3
true
false
false
false
false
false
zero
37,676,901
Minimize app on double click (like home button)
<p>My current code exits application if press double back button and now I want to change it so that it just minimize app on double click. Just like how pressing a home button.</p> <p>This is the code: </p> <pre><code>@Override public void onBackPressed() { if (doubleBackToExitPressedOnce) { super.onBackP...
My current code exits application if press double back button and now I want to change it so that it just minimize app on double click. Just like how pressing a home button. This is the code: [CODE]
android|android-homebutton
0
2016-06-07T10:31:05.070Z
2,016
6
10
1
575
1
198
47
2
1
true
false
false
false
false
false
zero
37,909,081
How do I crop portions of large image to an ImageView
<p>Say I have an image that looks like the one to the left... Each flag is 30x20px.</p> <p>How do I display the area 0,60 to 30,80? I would also like to be able so upscale it afterwards. <a href="https://i.stack.imgur.com/vrgIc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vrgIc.png" alt="Example"...
Say I have an image that looks like the one to the left... Each flag is 30x20px. How do I display the area 0,60 to 30,80? I would also like to be able so upscale it afterwards.
android|imageview|crop
0
2016-06-19T15:55:48.290Z
2,016
6
15
6
575
1
176
53
3
0
false
false
false
false
false
false
zero
37,660,007
Using the selected state of a Android Toggle button / switch
<p>I am looking to add a toggle button or switch to my current app. What i am wanting to do is write the current clicked state to a string so that this can be called back later by another part of the app.</p> <p>what i will ultimately be doing with this is using the selected item from my spinner, and then the state of...
I am looking to add a toggle button or switch to my current app. What i am wanting to do is write the current clicked state to a string so that this can be called back later by another part of the app. what i will ultimately be doing with this is using the selected item from my spinner, and then the state of my switch ...
android
0
2016-06-06T14:27:00.970Z
2,016
6
14
0
831
1
1,194
60
1
3
true
false
false
false
false
false
zero
37,698,171
Display data from simple SQL database in MPandroidChart barchart, nullpointer exception
<p>This is my first android project and right now I make a bar chart with raw data. Now, I have a SQLite databse which stores the 2 things: ID and a number.</p> <p>I want to add this data into the barchart instead of the raw data. I used the code from [this example][1] I found here on Stackoverflow. For adding the dat...
This is my first android project and right now I make a bar chart with raw data. Now, I have a SQLite databse which stores the 2 things: ID and a number. I want to add this data into the barchart instead of the raw data. I used the code from [this example][1] I found here on Stackoverflow. For adding the data to the gr...
android|sql|sqlite|nullpointerexception|mpandroidchart
0
2016-06-08T09:13:43.890Z
2,016
6
9
2
831
1
685
87
5
4
true
false
false
false
false
false
zero
37,976,326
Searchview needs extra onBackPressed
<p>I was trying to resolve that problem almost a week, but I still have no idea why this is happening. I have a Searchview with OnQueryTextListener():</p> <pre><code>public boolean onQueryTextChange(String newText) { if(newText.length()==0) { if(!(getSupportFragmentManager().findFragmentById(R.id.routesFra...
I was trying to resolve that problem almost a week, but I still have no idea why this is happening. I have a Searchview with OnQueryTextListener(): [CODE] So, when searchview is expanded I replace current fragment with a special Search_fragment. [CODE] But if I want to hide my searchview and go back to my previous frag...
android|fragment|searchview
2
2016-06-22T19:03:55.513Z
2,016
6
19
2
831
1
626
36
3
2
true
false
false
false
false
false
low
37,690,707
android studio on 64 bit OS running 64bit OS give ERROR: 32-bit Linux Android emulator binaries are DEPRECATED
<p>I got similar to this problem: <a href="https://stackoverflow.com/questions/31680018/android-studio-64-bit-error-32-bit-linux-android-emulator-binaries-are-deprecat">Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED</a></p> <p>I run android studio 2.1.1 on Gentoo Linux/amd64, and wh...
I got similar to this problem: Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED I run android studio 2.1.1 on Gentoo Linux/amd64, and when I try to run emulator of android android studio give me error: /home/user/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_AP...
android|linux|android-emulator
5
2016-06-07T22:54:01.043Z
2,016
6
22
1
1,087
1
1,309
110
3
0
false
false
false
false
false
false
low
37,741,718
How can I change highlight (focused) color of the triangle in a Spinner
<p>I am currently working on an Android TV app, so the focus color is very important.</p> <p>I have added some spinners in my layout and I am trying to change the selector color.</p> <p>Primary/secondary/Accentcolor are not doing anything.</p> <p>First thing I have is to put the spinners in layout. The top one is th...
I am currently working on an Android TV app, so the focus color is very important. I have added some spinners in my layout and I am trying to change the selector color. Primary/secondary/Accentcolor are not doing anything. First thing I have is to put the spinners in layout. The top one is the one I am working on, and ...
android|spinner|android-appcompat|theming
0
2016-06-10T06:51:25.310Z
2,016
6
6
4
2,111
1
668
71
4
2
true
false
false
false
false
false
zero
37,641,239
How open Url after Firebase message received in background
<p>When application is in background and Firebase message received I want to open specific url that is in message data. For example i put below key-value in Firebase and i want to open google site after user tap on notification.</p> <pre><code>key: url value: http://google.com </code></pre> <p>what should i do? tnx i...
When application is in background and Firebase message received I want to open specific url that is in message data. For example i put below key-value in Firebase and i want to open google site after user tap on notification. [CODE] what should i do? tnx in advance!
android|firebase|google-cloud-messaging|firebase-cloud-messaging
6
2016-06-05T11:19:22.167Z
2,016
6
11
6
3,647
1
266
58
4
1
true
false
true
false
false
false
medium
37,646,966
How to align height two TextView in custom layout?
<p>I have problem in my custom layout how to set height on the gray <code>TextView</code> to make it look the same as yellow <code>TextView</code>. Yellow <code>TextView</code> allow multiline but grey support only single line. Below my custom layout. P.S. I set rounded background directly on <code>TextView</code> Thx...
I have problem in my custom layout how to set height on the gray TextView to make it look the same as yellow TextView . Yellow TextView allow multiline but grey support only single line. Below my custom layout. P.S. I set rounded background directly on TextView Thx. [CODE]
android|android-layout|android-recyclerview|android-custom-view|recyclerview-layout
0
2016-06-05T21:30:08.357Z
2,016
6
21
6
64
1
273
50
5
1
true
false
false
false
false
false
zero
37,663,307
Reading from arbitrary sd card folder
<p>I am trying to read a dictionary on sd card (content of the folder is managed by third party app - ex. dropbox).</p> <p>Although i granted my app permissions:</p> <pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="android.permission.WRITE...
I am trying to read a dictionary on sd card (content of the folder is managed by third party app - ex. dropbox). Although i granted my app permissions: [CODE] The app will be used only on one type of device Samsung Galaxy Tab 10.1 (Android 5.0.2) so I know the exact path to sdCard and the file I am trying to read: /sto...
android|android-sdcard|sd-card|android-permissions
3
2016-06-06T17:17:17.683Z
2,016
6
17
0
64
1
551
37
4
3
true
false
false
false
false
false
low
37,684,552
Is it possible to not animate the exit animation when using a Shared Element Transition?
<p>I just want the enter animation but want the default exit activity animation when exiting. Is that possible?</p>
I just want the enter animation but want the default exit activity animation when exiting. Is that possible?
android|android-animation|shared-element-transition
0
2016-06-07T16:23:01.613Z
2,016
6
16
1
64
1
108
88
3
0
false
false
false
false
false
false
zero
37,765,961
How do I remove the nested box in a highlighted menu item in my Android app?
<p>When I click on a menu item in my Android app, I get this nested box inside the highlighted item:</p> <p><a href="https://i.stack.imgur.com/XX4gC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XX4gC.png" alt="enter image description here"></a></p> <p>I have this in my <code>styles.xml</code></p...
When I click on a menu item in my Android app, I get this nested box inside the highlighted item: I have this in my styles.xml [CODE] and this in colors.xml [CODE] and I am using this for the ActionBar [CODE] Any ideas on how to remove this box so when I click on the menu item, it is highlighted like a button does?
android|android-layout
-1
2016-06-11T16:21:33.227Z
2,016
6
16
5
64
1
316
76
2
3
true
false
false
false
false
true
negative
37,809,999
Regarding Fused location Provider in Android to Fetch Location
<p>It seems to be a silly question but it might affect the design of application that I m developing .</p> <p>Fused location providers provides location data in onLocationChanged () callback only when device gps is turned on. So i m confused what's the benefit of using fused location provider if It has such a dependen...
It seems to be a silly question but it might affect the design of application that I m developing . Fused location providers provides location data in onLocationChanged () callback only when device gps is turned on. So i m confused what's the benefit of using fused location provider if It has such a dependency on devic...
android|location
0
2016-06-14T10:54:54.850Z
2,016
6
10
1
64
1
357
62
2
0
false
false
false
false
false
false
zero
37,822,226
Weight limit chart in Android
<p>I have created following chart in Android, but I am unable to adjust value with percentage.</p> <p><a href="https://i.stack.imgur.com/VMzGg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VMzGg.png" alt="enter image description here"></a></p> <p>Red color is upper limit of weight that is 20.64 Y...
I have created following chart in Android, but I am unable to adjust value with percentage. Red color is upper limit of weight that is 20.64 Yellow color is lower limit of weight that is 13.39 Current weight of child is 18 so it need to show between upper limit and lower limit in Green color. Please! let me know how to...
android|graph|charts|percentage
0
2016-06-14T21:15:03.027Z
2,016
6
21
1
64
1
490
29
4
1
true
false
false
false
false
false
zero
37,957,386
Alternating Random Rows into ListView from SQLite DB - Order Not Correct
<p>I have two tables in my SQLite db. I am trying to choose three random rows from table1 and three random rows from table2, and have them alternating in the listView.</p> <p>(ex) table1 random row table2 random row table1 random row table2 random row table1 random row table2 random row</p> <p>For some reason it is ...
I have two tables in my SQLite db. I am trying to choose three random rows from table1 and three random rows from table2, and have them alternating in the listView. (ex) table1 random row table2 random row table1 random row table2 random row table1 random row table2 random row For some reason it is not alternating the ...
android|sqlite|listview|random
0
2016-06-22T02:06:22.453Z
2,016
6
2
2
64
1
593
72
4
2
true
false
false
false
false
false
zero
38,019,926
Android Studio UI PNG image overlayering a map
<p>Im attempting to add a camera symbol at the bottom of my application (Like Snapchat) overlayering a map, but cant seem to make it work. The layer and the imagebutton within places itself below the layer containing the map object. If i reduce the hight of the "map-layer" it works, but then there is, naturaly, a white...
Im attempting to add a camera symbol at the bottom of my application (Like Snapchat) overlayering a map, but cant seem to make it work. The layer and the imagebutton within places itself below the layer containing the map object. If i reduce the hight of the "map-layer" it works, but then there is, naturaly, a white vo...
android|xml|android-layout|android-studio
0
2016-06-24T18:29:02.717Z
2,016
6
18
4
64
1
558
46
4
1
true
false
false
false
false
false
zero