id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
36,868,713
Android Send SMS from Device Android 6.0 - SecurityException
<p>I'm trying to send sms from my android 6.0 device (Moto G 3rd. Generation) using this code:</p> <pre><code>AndroidManifest.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mycompany.sms_global"&gt; &lt;uses-permission andr...
I'm trying to send sms from my android 6.0 device (Moto G 3rd. Generation) using this code: [CODE] ... Activity: [CODE] But the App crashes and the debugger shows me this: [CODE] Why don't work the permissions?
java|android
0
2016-04-26T15:01:23.570Z
2,016
4
15
1
20
0
210
60
2
3
true
true
false
false
false
false
zero
36,868,726
Unable to run Angular2 application in Android WebView API 21
<p>I am trying to load an Angular2 application in an Android hybrid app which uses WebView. The SDK version is 21.</p> <p>I am not able to load the app. It is not able to load boot.js module.</p> <pre><code> Errormessage: "undefined is not a function↵ Error loading http://example.com/mobile/boot.js"stack: "...
I am trying to load an Angular2 application in an Android hybrid app which uses WebView. The SDK version is 21. I am not able to load the app. It is not able to load boot.js module. [CODE] It seems to be a problem with the compatibility of SystemJS with the WebView that I am using. Has anyone encountered the same issue...
android|webview|angular|systemjs
0
2016-04-26T15:01:38.480Z
2,016
4
15
1
711
1
321
60
4
1
true
false
false
false
false
false
zero
36,868,790
Blurry image after canvas rotate, only in Android 6
<p>I've got a custom view with the following code:</p> <pre><code>private final Drawable outerGauge; private final Drawable innerGauge; private float rotateX; private float rotateY; private int rotation = 0; { outerGauge = getContext().getDrawable(R.drawable.gauge_outer); innerGauge = getContext().getDrawable...
I've got a custom view with the following code: [CODE] Most of the time this produces perfectly clear images. However, sometimes the result looks like this: This only seems to happen on one of my two test devices. The device is a Motorola moto G, with the Android 6 upgrade. The other test device, which always seems to ...
android|android-6.0-marshmallow|java-canvas
5
2016-04-26T15:04:44.020Z
2,016
4
15
1
1,143
1
1,445
51
3
4
true
false
false
false
false
false
low
36,868,793
Backendless Facebook SDK implementation
<p>Is there a backendless implementation using Facebook SDK code example out there somewhere? I have done this and i can't see the user's data in my backend.</p> <p>Here is my code.</p> <pre><code> private FacebookCallback&lt;LoginResult&gt; mCallBack = new FacebookCallback&lt;LoginResult&gt;() { @Override ...
Is there a backendless implementation using Facebook SDK code example out there somewhere? I have done this and i can't see the user's data in my backend. Here is my code. [CODE] Mappings [CODE]
android|facebook|backendless
-1
2016-04-26T15:04:55.160Z
2,016
4
15
1
325
2
194
39
3
2
true
false
false
false
false
true
negative
36,868,802
can't http from android browser to ubuntu http service over wifi
<p>I have a apache server running on my Ubuntu laptop which is connected to wifi and over the same wifi network, i have my andorid phone connected.</p> <p>When i try to connect to apache web server home page from android browser, it gives host unreachable. also when i try to ping using terminal emulator on android, it...
I have a apache server running on my Ubuntu laptop which is connected to wifi and over the same wifi network, i have my andorid phone connected. When i try to connect to apache web server home page from android browser, it gives host unreachable. also when i try to ping using terminal emulator on android, it gives same...
android|http|ubuntu|networking|lan
0
2016-04-26T15:05:32.750Z
2,016
4
15
1
65
2
859
64
5
5
true
false
false
false
false
false
zero
36,868,842
Use Action Bar Back Icon as back Button
<p><strong>I want to use ActionBar Icon as back button to go to previous activity which an fragment</strong> </p> <hr> <pre><code>public class Pride_big extends AppCompatActivity { private final String Pride_big_Html = "&lt;body&gt;&lt;h1&gt;Pride&lt;/h1&gt;&lt;p&gt;" + "Plot No. 37, Sector 5, Kharghar, Navi...
I want to use ActionBar Icon as back button to go to previous activity which an fragment [CODE]
java|android
0
2016-04-26T15:07:27.023Z
2,016
4
15
1
62
0
95
39
2
1
true
true
false
false
false
false
zero
36,868,867
RingtonePreference not saving selected value
<p>I have a preferences activity that includes preference fragments for different categories of settings. One of the preference fragments includes a RingtonePreference and the problem I have is that the value that is selected is not saved. I have read similar posts about the same issue but they did not help. The intent...
I have a preferences activity that includes preference fragments for different categories of settings. One of the preference fragments includes a RingtonePreference and the problem I have is that the value that is selected is not saved. I have read similar posts about the same issue but they did not help. The intent fo...
android|android-preferences
1
2016-04-26T15:08:34.497Z
2,016
4
15
1
81
0
822
44
2
1
true
true
false
false
false
false
low
36,868,979
Mockito - MissingMethodInvocationException
<p>I am trying to test that an API call is scheduled on the right scheduler and observes on the main thread. </p> <pre><code>@RunWith(PowerMockRunner.class) @PrepareForTest({Observable.class, AndroidSchedulers.class}) public class ProductsPresenterTest { private ProductsPresenter presenter; @Before publi...
I am trying to test that an API call is scheduled on the right scheduler and observes on the main thread. [CODE] The line [CODE] throws the following exception, and I don't understand why since productObservable is a mock . Any idea or similar experience? [CODE]
android|mockito|retrofit2|rx-android
2
2016-04-26T15:12:46.567Z
2,016
4
15
1
1,855
1
262
42
4
3
true
false
false
false
false
false
low
36,869,015
how to import chrome history into android application in android studio?
<p>i want the code to import chrome history into my application in android studio and i tried to use this code :</p> <pre><code>String[] proj = new String[] { Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL }; String chnHistory = Browser.BookmarkColumns.BOOKMARK + " = 0"; // 0 = history, Cursor mycu...
i want the code to import chrome history into my application in android studio and i tried to use this code : [CODE] but the BookmarkColumns not resolved becuase of the targetSdkVersion 23
java|android|google-chrome|sdk
2
2016-04-26T15:14:01.973Z
2,016
4
15
1
133
0
188
72
4
1
true
true
false
false
false
false
low
36,869,023
Relationship between Cursor, CursorAdapter, LoaderManager, Loader
<p>So I've been working with IOS development for the past couple of months and have used Core Data and NSFetchedResultsController extensively.</p> <p>Core Data + NSFetchedResultsController : Detects changes to the database automatically and updates table elements accordingly.</p> <p>Now I've switched over to Android ...
So I've been working with IOS development for the past couple of months and have used Core Data and NSFetchedResultsController extensively. Core Data + NSFetchedResultsController : Detects changes to the database automatically and updates table elements accordingly. Now I've switched over to Android development and I'v...
java|android|android-contentprovider|loader|greendao
2
2016-04-26T15:14:21.283Z
2,016
4
15
1
647
1
4,130
65
5
7
true
false
false
false
false
false
low
36,869,059
Why does startAnimation() not working?
<p>I write code to access Flicker API. The code work fine. When I use animation on Image button, It shows the result of Flicker without executing the animation. However, if I execute only the animation without getting result from Flicker it will work. So, if I write the animation method and Flicker method, it will exec...
I write code to access Flicker API. The code work fine. When I use animation on Image button, It shows the result of Flicker without executing the animation. However, if I execute only the animation without getting result from Flicker it will work. So, if I write the animation method and Flicker method, it will execute...
java|android|android-animation
1
2016-04-26T15:15:24.483Z
2,016
4
15
1
1,093
0
340
38
3
1
true
true
false
false
false
false
low
36,869,079
SQLite Arraylist crashing android activity
<p>I'm having a problem with android and sqlite. When I receive data in the Arraylist the application crashes.</p> <p>The DbHelper code is as follows:</p> <pre><code>public ArrayList&lt;String&gt; getAllAccelerometerRegists() { ArrayList&lt;String&gt; array_list = new ArrayList&lt;String&gt;(); SQLiteDatabas...
I'm having a problem with android and sqlite. When I receive data in the Arraylist the application crashes. The DbHelper code is as follows: [CODE] The activity code is as follows: [CODE] the dbhelper class is as follows: [CODE] the logcat error is as follows: [CODE]
android|sqlite
0
2016-04-26T15:16:01.630Z
2,016
4
15
1
51
2
267
42
2
4
true
false
false
false
false
false
zero
36,869,124
How to save data in a database and open new activity after it is saved?
<p>Need help on this. When the user fills in their data and saves to the database, I want the button to open new activity after it has been saved... so far my app just saved the data and just stops on the <code>activity_form.xml.need</code> help on how to make the submit button open new activity after it saves the data...
Need help on this. When the user fills in their data and saves to the database, I want the button to open new activity after it has been saved... so far my app just saved the data and just stops on the activity_form.xml.need help on how to make the submit button open new activity after it saves the data would be much a...
java|android|xml
0
2016-04-26T15:17:51.450Z
2,016
4
15
1
56
2
603
71
3
5
true
false
false
false
false
false
zero
36,869,154
Rendering Problems on android studio: the following class could not be instantiated
<p>When I want to choose any themes in Android Studio I get the following error. I'm using android studio 2 and verified its up to date with API level 15. I'm changing the theme in main_activity file &amp; I'm want to use Holo.Light theme. Error Message:</p> <blockquote> <p>The following class could not be instantia...
When I want to choose any themes in Android Studio I get the following error. I'm using android studio 2 and verified its up to date with API level 15. I'm changing the theme in main_activity file & I'm want to use Holo.Light theme. Error Message: The following class could not be instantiated android.support.design.wid...
android|android-support-library
0
2016-04-26T15:19:20.927Z
2,016
4
15
1
117
0
366
83
2
1
true
true
false
false
false
false
zero
36,869,158
How to set time range using seekbar
<p>I stumbled upon <a href="https://github.com/anothem/android-range-seek-bar" rel="nofollow noreferrer">this library by Anothem</a>. Basically it provides a <code>SeekBar</code> similar to the default Android one, but with two thumb controls allowing a range to be selected, and some other extras as well.</p> <p>As at...
I stumbled upon this library by Anothem . Basically it provides a SeekBar similar to the default Android one, but with two thumb controls allowing a range to be selected, and some other extras as well. As at the moment the seekbar can select range between numbers/digits but cannot be used for actual time range selectio...
android|android-seekbar
2
2016-04-26T15:19:25.610Z
2,016
4
15
1
2,952
1
741
35
2
1
true
false
true
false
false
false
low
36,869,182
Fresco: SimpleDraweeView is always reseting
<p>I have a SimpleDraweeView that is processing an image request through a controller:</p> <pre><code>Postprocessor redMeshPostprocessor = new BasePostprocessor() { @Override public String getName() { return "redMeshPostprocessor"; } ...
I have a SimpleDraweeView that is processing an image request through a controller: [CODE] Then later on, I want to change the image on the SimpleDraweeView by simply saying: [CODE] Problem is that when loading the second image, there's a split second where the SimpleDraweeView is showing the placeholder. How to avoid ...
java|android|fresco
0
2016-04-26T15:20:39.833Z
2,016
4
15
1
198
1
400
43
3
2
true
false
false
false
false
false
zero
36,869,184
Android: java.lang.NullPointerException at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:490)
<p>I am trying to create scaled bitmap but on few devices (not all) I get this exception. </p> <pre><code>Bitmap bit = BitmapFactory.decodeFile(uri); Bitmap bitmap1= Bitmap.createScaledBitmap(bit, 50, 50, true); &lt;--- This line causes null pointer </code></pre> <p>The complete stacktrace is below:</p> <pre><code>j...
I am trying to create scaled bitmap but on few devices (not all) I get this exception. [CODE] The complete stacktrace is below: [CODE] Now when I look at Bitmap.java line 490, there is no code over there. I am not sure how to solve this problem. Can somebody provide any suggestions, or will be even better if someone ca...
android|bitmap|nullpointerexception
0
2016-04-26T15:20:46.647Z
2,016
4
15
1
629
1
355
102
3
3
true
false
false
false
false
false
zero
36,869,284
save screenshot in parse server
<p>I'm trying to make my android App take a screenshot for the current running activity and then save it in parse server .. but it didn't work ... does anyone knows what's wrong with this code </p> <p>my code ...</p> <pre><code>public class MainActivity extends AppCompatActivity { @Override protected void on...
I'm trying to make my android App take a screenshot for the current running activity and then save it in parse server .. but it didn't work ... does anyone knows what's wrong with this code my code ... [CODE]
android|parse-platform
0
2016-04-26T15:24:45.033Z
2,016
4
15
1
42
2
208
31
2
1
true
false
false
false
false
false
zero
36,869,388
Proguard build failed(Eclipse)
<p>This question already have been asked many times, but I am not able to resolve it. I am trying to export my app using eclipse for final release, but I am getting the below error.</p> <p>I already added </p> <pre><code>-keep class com.afollestad.materialdialogs.*{ *; } -dontwarn com.afollestad.materialdialogs.** ...
This question already have been asked many times, but I am not able to resolve it. I am trying to export my app using eclipse for final release, but I am getting the below error. I already added [CODE] Error resolved, but after running my app crashed. please help me this is the error: [CODE]
android|eclipse|proguard|android-proguard
0
2016-04-26T15:29:04.833Z
2,016
4
15
1
149
0
292
30
4
2
true
true
false
false
false
false
zero
36,869,409
Show dropdown when onQueryTextChange
<p>I have added a <code>searchView</code> in my toolbar and I would like to show a dropdown as android does with the <code>AutoCompleteTextView</code>.</p> <p>So basically I want to display a list of result and change it while the user is typing. I have added already a function to filter my results, but I have no clue...
I have added a searchView in my toolbar and I would like to show a dropdown as android does with the AutoCompleteTextView . So basically I want to display a list of result and change it while the user is typing. I have added already a function to filter my results, but I have no clue how to show the dropdown in the lis...
android|searchview
0
2016-04-26T15:30:13.023Z
2,016
4
15
1
584
1
490
36
2
1
true
false
false
false
false
false
zero
36,869,552
Android Form Factor Metrics
<p>I cannot find the answer to this question anywhere on or off stack overflow:</p> <p>Google <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow noreferrer">defines common sizes and densities</a> for devices as follows:</p> <p><a href="https://i.stack.imgur.com/0fD1J.jpg" rel="n...
I cannot find the answer to this question anywhere on or off stack overflow: Google defines common sizes and densities for devices as follows: Sizes: xlarge screens are at least 960dp x 720dp large screens are at least 640dp x 480dp normal screens are at least 470dp x 320dp small screens are at least 426dp x 320dp Dens...
android
0
2016-04-26T15:36:24.503Z
2,016
4
15
1
781
3
719
27
1
0
false
false
false
false
false
false
zero
36,869,598
Grid.Invalidate in Fragment from FragmentActivity
<p>I am nuebie in Android. I suppose i am try run code from non UI thread. How i can update my grid in Fragment. I have activity SimpleImageActivity. In this Activity i am waiting Back key and I am trying update my data in GridView. Method <code>invalidate() postInvalidate()</code> nothing doing.</p> <pre><code>privat...
I am nuebie in Android. I suppose i am try run code from non UI thread. How i can update my grid in Fragment. I have activity SimpleImageActivity. In this Activity i am waiting Back key and I am trying update my data in GridView. Method invalidate() postInvalidate() nothing doing. [CODE] In my GridViewFragment I am try...
android|gridview
0
2016-04-26T15:38:37.227Z
2,016
4
15
1
113
1
721
49
2
2
true
false
false
false
false
false
zero
36,869,602
Convert file PATH to TreeUri (Storage Access Framework)
<p>In my application of image gallery I use media content provider image to inflate recycler view . On long press on an image, I give user option to rename that image file. So I have complete file path (Ex:- /storage/sdcard1/DCIM/100ANDRO/ak.jpg ) for each image in recycler view. Then I want to rename that file.</p> ...
In my application of image gallery I use media content provider image to inflate recycler view . On long press on an image, I give user option to rename that image file. So I have complete file path (Ex:- /storage/sdcard1/DCIM/100ANDRO/ak.jpg ) for each image in recycler view. Then I want to rename that file. Now the i...
android|android-sdcard|filewriter|storage-access-framework
3
2016-04-26T15:38:46.867Z
2,016
4
15
1
3,897
4
666
55
4
1
true
false
true
false
false
false
low
36,869,804
Android Only the original thread that created a view hierarchy can touch its views
<p>Program is getting json from web and Add to ListView but I have error My Code:</p> <pre><code>Thread thread =new Thread() { @Override public void run() { Looper.prepare();//En başta gerekli HttpClient client = new DefaultHttpClient(); HttpConnectionP...
Program is getting json from web and Add to ListView but I have error My Code: [CODE]
android|json|listview
0
2016-04-26T15:47:06.097Z
2,016
4
15
1
85
2
85
82
3
1
true
false
false
false
false
false
zero
36,869,871
Share music on messenger
<p>Hi i made aplication(soundboard) I have the buton when i click(OnClick) is plays music, when i hold button(longClick) is opens ContextMenu. In ContextMenu i have button. Now i need add the action for this button(button in ContextMenu) "share this music on messneger". Can help me someone?</p> <p>Java code:</p> <pre...
Hi i made aplication(soundboard) I have the buton when i click(OnClick) is plays music, when i hold button(longClick) is opens ContextMenu. In ContextMenu i have button. Now i need add the action for this button(button in ContextMenu) "share this music on messneger". Can help me someone? Java code: [CODE]
android
0
2016-04-26T15:49:54.873Z
2,016
4
15
1
34
0
306
24
1
1
true
true
false
false
false
false
zero
36,869,914
How to add scrolling text widget in Kivy?
<p>I am new in Kivy. I would like to create an app that takes user text input, then display it. But when the user input is very long, I want the display area to be scrollable.</p> <p>I have done some tutorials and can do both things separately, but I have troubles putting them altogether.</p> <p>Here is the code to a...
I am new in Kivy. I would like to create an app that takes user text input, then display it. But when the user input is very long, I want the display area to be scrollable. I have done some tutorials and can do both things separately, but I have troubles putting them altogether. Here is the code to allow scrollable tex...
android|python-2.7|scroll|scrollview|kivy
6
2016-04-26T15:51:29.100Z
2,016
4
15
1
5,249
1
441
41
5
4
true
false
true
false
false
false
medium
36,869,925
Cannot connect to TURN server when switching networks in Android Crosswalk
<p>I'm developing a WebRTC calling app, and I'm facing some weird issues with it. I chose PeerJS to make all the development easier, and it works good.</p> <p>But I have a weird problem when it comes to network switching on Android and Crosswalk (Wifi to 3G).</p> <p>The thing is that I can make a call from one end to...
I'm developing a WebRTC calling app, and I'm facing some weird issues with it. I chose PeerJS to make all the development easier, and it works good. But I have a weird problem when it comes to network switching on Android and Crosswalk (Wifi to 3G). The thing is that I can make a call from one end to the other one over...
android|webrtc|crosswalk-runtime|crosswalk|peerjs
2
2016-04-26T15:51:57.280Z
2,016
4
15
1
410
0
936
74
5
1
true
true
false
false
false
false
low
36,869,987
How to filter ListView (SimpleCursorAdapter) from SearchView?
<p>I try to deal with ListView and SimpleCursorAdapter and faced with the following problem: I have ListView with SimpleCursorAdapter and SearchView. I try to filter my data in ListView (data from the database) according to the text from SearchView. But when I start app on emulator, app crash with NullPointerException....
I try to deal with ListView and SimpleCursorAdapter and faced with the following problem: I have ListView with SimpleCursorAdapter and SearchView. I try to filter my data in ListView (data from the database) according to the text from SearchView. But when I start app on emulator, app crash with NullPointerException. Th...
android|listview|simplecursoradapter|android-filter
0
2016-04-26T15:54:44.663Z
2,016
4
15
1
771
0
679
61
4
3
true
true
false
false
false
false
zero
36,870,051
One Toggle Button on at a time
<p>I am working on a an Android Application . i have created some toggle buttons dynamically and they are clickable too...</p> <p>what i want to achieve is toggle on any specific button and its ok. but when i toggle on any other button all other toggle button should go off.. </p> <p>like i can toggle on any one butt...
I am working on a an Android Application . i have created some toggle buttons dynamically and they are clickable too... what i want to achieve is toggle on any specific button and its ok. but when i toggle on any other button all other toggle button should go off.. like i can toggle on any one button at a time . if any...
android|onclicklistener|android-togglebutton
1
2016-04-26T15:57:52.047Z
2,016
4
15
1
917
1
574
30
3
1
true
false
false
false
false
false
low
36,870,072
Cannot find annotation method 'anyOf()' in type 'RequiresPermission':
<p>I am trying to port an Android app in Android Studio to Visual Studio 2015 / Xamarin. I try to run the project and I get:</p> <pre><code> Android application is debugging. The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (...
I am trying to port an Android app in Android Studio to Visual Studio 2015 / Xamarin. I try to run the project and I get: [CODE] I added [Activity(MainLauncher = true)] to the main class and checked Build->Configuration which appears to be correct, but these have no effect. I get this warning: [CODE] I also get this wa...
android|xamarin|xamarin.android
0
2016-04-26T15:59:04.810Z
2,016
4
15
1
1,703
1
630
69
3
4
true
false
false
false
false
false
zero
36,870,159
how to set setContentView in fragment
<p>I am trying to call a library in a fragment but dont know how to set it in a fragment I have done it in the main activity but I am getting an error in setting the setContentView in my fragment the compile dependency </p> <pre><code>compile 'com.github.medyo:android-about-page:1.0.2' </code></pre> <p>my fragment ...
I am trying to call a library in a fragment but dont know how to set it in a fragment I have done it in the main activity but I am getting an error in setting the setContentView in my fragment the compile dependency [CODE] my fragment content view [CODE] I am getting error in the second last line how to solve this. The...
android|android-fragments|setcontentview
0
2016-04-26T16:03:05.920Z
2,016
4
16
1
10,535
4
411
37
3
2
true
false
true
false
false
false
zero
36,870,166
Google Drive folder listing issue in Android SDK
<p>In Google Drive, I'm getting this issue:</p> <blockquote> <p>Status{statusCode=Drive item not found, or you are not authorized to access it., resolution=null}</p> </blockquote> <p>for getting list of files from the Google Drive folder.</p> <p>I am using the Google Drive Android SDK. Can you please help me on th...
In Google Drive, I'm getting this issue: Status{statusCode=Drive item not found, or you are not authorized to access it., resolution=null} for getting list of files from the Google Drive folder. I am using the Google Drive Android SDK. Can you please help me on this issue? Here is the source code which I am following: ...
android|google-drive-api
1
2016-04-26T16:03:15.227Z
2,016
4
16
1
219
0
326
48
2
1
true
true
false
false
false
false
low
36,870,191
Why does my file not exist even when I gave it a path that exist?
<p>My if condition on <code>imgFile.exist()</code> is giving me false, but I can see the file exist in the path when Log.d prints its result out.</p> <p>I'm simply trying to load an image from a path to put it as a background of an activitys miniature image</p> <p>I also have the read/write permission in my manifest ...
My if condition on imgFile.exist() is giving me false, but I can see the file exist in the path when Log.d prints its result out. I'm simply trying to load an image from a path to put it as a background of an activitys miniature image I also have the read/write permission in my manifest android.permission.WRITE_EXTERNA...
android
1
2016-04-26T16:04:26.950Z
2,016
4
16
1
1,550
3
549
65
1
3
true
false
false
false
false
false
low
36,870,197
Xamarin Android Binding: how to use an interface from library
<p>My Xamarin Android Binding project (after few duplicate methods fixed) compiles correctly.</p> <p>Now i have to use an interface from library. In Java i did this way:</p> <pre><code>private PCLIAE87Events btProtListener; btProtListener = new PCLIAE87Events () { @Override public void onLibraryStarted(PCLIAE...
My Xamarin Android Binding project (after few duplicate methods fixed) compiles correctly. Now i have to use an interface from library. In Java i did this way: [CODE] How can i do in C#? I have to pass this interface to a function [CODE] but interfaces passed as method parameters do not works in C#. Java Interface PCLI...
android|xamarin|binding
0
2016-04-26T16:04:45.430Z
2,016
4
16
1
1,573
1
805
61
3
3
true
false
false
false
false
false
zero
36,870,293
Volley .jar Gradle Build Failure
<p>I'm trying to build the latest version of Volley from <a href="https://android.googlesource.com/platform/frameworks/volley/" rel="nofollow">https://android.googlesource.com/platform/frameworks/volley/</a> into a .jar. When I cd into the git folder and run <code>gradle build --stacktrace</code> I get the following er...
I'm trying to build the latest version of Volley from https://android.googlesource.com/platform/frameworks/volley/ into a .jar. When I cd into the git folder and run gradle build --stacktrace I get the following error: [CODE] So, the build process is failing because the javadoc is failing to generate. I've searched aro...
java|android|git|gradle|android-volley
2
2016-04-26T16:09:28.660Z
2,016
4
16
1
203
0
403
32
5
1
true
true
false
false
false
false
low
36,870,310
Decoding an RTP stream with H264 data on Android Using MediaCodec
<p>I am currently attempting to parse H264 data from an RTP stream and then send it to the MediaCodec to render on a SurfaceView for Android. </p> <p>However, I'm not certain how to: </p> <ul> <li>build the H264 slices properly from the RTP packets</li> <li>send the H264 slices to the media codec once they are assemb...
I am currently attempting to parse H264 data from an RTP stream and then send it to the MediaCodec to render on a SurfaceView for Android. However, I'm not certain how to: build the H264 slices properly from the RTP packets send the H264 slices to the media codec once they are assembled into slices I have not seen any ...
android|h.264|rtp|android-mediacodec|live-video
1
2016-04-26T16:10:12.733Z
2,016
4
16
1
2,363
1
544
65
5
2
true
false
false
false
false
false
low
36,870,422
TCP Comunication between a WiFi Module and Android App
<p>I need to implement a TCP comunication between the <strong>SPWF01SA Wifi-Module</strong> (from <a href="http://www.st.com/web/en/catalog/sense_power/FM1968/CL1976/SC1930/PF258591" rel="nofollow">ST Microelectronics</a>) and an Android App. For the Wifi-Module firmware i'm using the <strong>X-Cube-WIFI</strong> <a hr...
I need to implement a TCP comunication between the SPWF01SA Wifi-Module (from ST Microelectronics ) and an Android App. For the Wifi-Module firmware i'm using the X-Cube-WIFI Middleware library as a Server Socket, while in Android i have an AsyncTask as a Client Socket. The wifi module is controlled by the stm32f103 mi...
android|tcp|iot|tcpsocket
0
2016-04-26T16:16:22.310Z
2,016
4
16
1
332
0
2,195
54
4
1
true
true
false
false
false
false
zero
36,870,566
pass data to broadcast receiver that already has intent filter coming from activity
<p>when the phone is connected to the bluetooth in the car. I want my app to switch on automatically. to do this i have to save the paired car bluetooth device name to a string. then when the phones bluetooth is connected to something. I have to check if its the car. If it is i want to start a service. </p> <p>I'm hav...
when the phone is connected to the bluetooth in the car. I want my app to switch on automatically. to do this i have to save the paired car bluetooth device name to a string. then when the phones bluetooth is connected to something. I have to check if its the car. If it is i want to start a service. I'm having difficul...
java|android|android-intent|broadcastreceiver|android-bluetooth
0
2016-04-26T16:23:44.957Z
2,016
4
16
1
283
1
706
83
5
2
true
false
false
false
false
false
zero
36,870,618
Gradle DSL method not found: 'buildConfigField()'
<p>I had this gradle error </p> <p>Error:(21, 0) Gradle DSL method not found: 'buildConfigField()' Possible causes:</p> <pre><code>&lt;ul&gt;&lt;li&gt;The project 'Sunshine' may be using a version of Gradle that does not contain the method. &lt;a href="openGradleSettings"&gt;Gradle settings&lt;/a&gt;&lt;/li&gt;&lt;...
I had this gradle error Error:(21, 0) Gradle DSL method not found: 'buildConfigField()' Possible causes: [CODE] my build.gradle code is here [CODE] anyone having any idea? thanks in advance
android|gradle
3
2016-04-26T16:26:47.330Z
2,016
4
16
1
6,701
4
189
49
2
2
true
false
true
false
false
false
low
36,870,812
Java HashMap iteration to find driving end event
<p>I'm working on a project where I have to determine when a driving event ends. A function is given an <code>HashMap&lt;Date, Integer&gt;</code> containing confidence levels of in vehicle/on foot in form of a percentage alongside a unix timestamp.</p> <p>I'm attempting to iterate over this HashMap, determine if a dri...
I'm working on a project where I have to determine when a driving event ends. A function is given an HashMap<Date, Integer> containing confidence levels of in vehicle/on foot in form of a percentage alongside a unix timestamp. I'm attempting to iterate over this HashMap, determine if a driving event has ended. I'm a PH...
java|android|hashmap
1
2016-04-26T16:36:35.983Z
2,016
4
16
1
149
1
563
48
3
2
true
false
false
false
false
false
low
36,870,885
Two views ontop of eachother, but only show one?
<p>I have an ImageButton and a TextView of the same size width and height inside of a RelativeView. By default, the TextView is disabled and the ImageButton is enabled. However, I am unable to click on the ImageButton under these circumstances. </p> <p>When I enable the TextView and disable the ImageButton, I CAN clic...
I have an ImageButton and a TextView of the same size width and height inside of a RelativeView. By default, the TextView is disabled and the ImageButton is enabled. However, I am unable to click on the ImageButton under these circumstances. When I enable the TextView and disable the ImageButton, I CAN click the TextVi...
android|xml|imagebutton
0
2016-04-26T16:40:32.327Z
2,016
4
16
1
47
2
566
48
3
1
true
false
false
false
false
false
zero
36,870,937
Form doesn't post if keyboard is open on Android devices
<p>I have online application (bunch of forms) developed (in ASP.net, C#) for desktops. Lately, I was asked to optimize forms to work nicely on mobile devices. Forms have "Previous" and "Next" buttons on the bottom that allow user to go to next or previous form. These buttons are asp.net LinkButtons that trigger OnClic...
I have online application (bunch of forms) developed (in ASP.net, C#) for desktops. Lately, I was asked to optimize forms to work nicely on mobile devices. Forms have "Previous" and "Next" buttons on the bottom that allow user to go to next or previous form. These buttons are asp.net LinkButtons that trigger OnClick se...
c#|android|asp.net|forms|form-submit
0
2016-04-26T16:43:27.010Z
2,016
4
16
1
77
0
1,069
56
5
1
true
true
false
false
false
false
zero
36,871,053
How do I keep my Android app running when it doesn't have focus?
<p>How do I keep my android app running in the background even when it no longer has focus? What happens now is that, after being interruputed (e.g. a message arrives) and then when it gets the focus back, it just sits there with whatever had processed up to the point of interruption. Probably my design isn't so good s...
How do I keep my android app running in the background even when it no longer has focus? What happens now is that, after being interruputed (e.g. a message arrives) and then when it gets the focus back, it just sits there with whatever had processed up to the point of interruption. Probably my design isn't so good sinc...
java|android|service|android-asynctask
2
2016-04-26T16:49:24.953Z
2,016
4
16
1
593
1
1,989
64
4
0
false
false
false
false
false
false
low
36,871,108
Replacing fragment with a new fragment in TabLayout
<p>I am newbie to android development. I have 3 fragments in tabview. BlankFragment, Map Fragment and RageComicListFragment. In the RageComicListFragment I want to change the fragment to RageComicDetailsFragment when user click one of the items in the list. But now, when user clicks and image on the RageComicListFragme...
I am newbie to android development. I have 3 fragments in tabview. BlankFragment, Map Fragment and RageComicListFragment. In the RageComicListFragment I want to change the fragment to RageComicDetailsFragment when user click one of the items in the list. But now, when user clicks and image on the RageComicListFragment,...
android|android-fragments|android-tablayout
0
2016-04-26T16:52:00.937Z
2,016
4
16
1
1,119
1
629
51
3
1
true
false
false
false
false
false
zero
36,871,222
Alternative methods for HttpClient, HttpPost, HttpResponse, HttpEntity, etc in Android
<p>I'm trying to make a login application that gets data from an online database. I've found a tutorial on the internet, but most of the methods are deprecated. So I'd like to know how I can find alternative methods for the deprecated ones.</p> <p>After I adapted the code on the tutorial to my project, I have this cod...
I'm trying to make a login application that gets data from an online database. I've found a tutorial on the internet, but most of the methods are deprecated. So I'd like to know how I can find alternative methods for the deprecated ones. After I adapted the code on the tutorial to my project, I have this code on my Mai...
android|httpclient|deprecated|httpentity
0
2016-04-26T16:58:20.143Z
2,016
4
16
1
1,896
2
543
86
4
4
true
false
false
false
false
false
zero
36,871,276
Children views having equal height
<p>I have a horizontal <code>LinearLayout</code> with two buttons with text inside. The <code>LinearLayout</code>'s and the buttons <code>layout_height</code> is <code>wrap_content</code>.</p> <p>The text of one of the two buttons takes two lines unlike the other's which takes one line.</p> <p>So at the end one of th...
I have a horizontal LinearLayout with two buttons with text inside. The LinearLayout 's and the buttons layout_height is wrap_content . The text of one of the two buttons takes two lines unlike the other's which takes one line. So at the end one of the buttons has a bigger height than the other which is something that ...
android|android-layout|android-linearlayout|android-xml
2
2016-04-26T17:01:00.233Z
2,016
4
17
1
1,509
2
1,007
34
4
2
true
false
false
false
false
false
low
36,871,314
Getting current location android
<p>App should get my current location and mark it on map, instead of this my project just crashes. Here's code:</p> <pre><code>public void onMapReady(GoogleMap googleMap) { mMap = googleMap; if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERM...
App should get my current location and mark it on map, instead of this my project just crashes. Here's code: [CODE] Any ideas how to fix it, or what's wrong here? (It's GoogleMaps project, all needed permissions are granted btw)
android|location|maps|locationmanager
0
2016-04-26T17:02:50.503Z
2,016
4
17
1
106
1
228
32
4
1
true
false
false
false
false
false
zero
36,871,368
KeyStore.setKeyEntry returns NullPointerException: Attempt to get length of null array
<p>This question is addition to my previous question <a href="https://stackoverflow.com/questions/36794576/how-to-import-rsa-private-key-which-generated-by-openssl-into-androidkeystore">How to import RSA private key, which generated by openssl, into AndroidKeyStore</a>. I try to import my privateKey in KeyStore by the ...
This question is addition to my previous question How to import RSA private key, which generated by openssl, into AndroidKeyStore . I try to import my privateKey in KeyStore by the following way: [CODE] and I get an exception: [CODE] And it is strange, because prKey.getAlgorithm() return correct algorithm. cert.getPubl...
openssl|android-keystore
2
2016-04-26T17:05:41.630Z
2,016
4
17
1
549
0
519
86
2
3
true
true
false
false
false
false
low
36,871,427
Android open failed: EACCES (Permission denied) when try to read a file in data/data
<p>I need to read a file selected by user, so I use this code:</p> <pre><code>//This code is called by a button to ask the permission private void startUpload(){ if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (ActivityComp...
I need to read a file selected by user, so I use this code: [CODE] I put the relative permission in the manifest too: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> I read the file in this way: [CODE] (toUpload is a file selected by the user with the file manager, in this case a downloaded...
java|android|file|file-permissions
3
2016-04-26T17:08:52.283Z
2,016
4
17
1
2,477
2
491
84
4
5
true
false
false
false
false
false
low
36,871,469
Cordova / Android - Can't login with Facebook
<p>I am trying to log my users with Facebook, but can't figure out how to do it. </p> <p>This is the code I have so far : </p> <pre><code> facebookConnectPlugin.getLoginStatus( function(status) { if (status.status != "connected") { facebookConnectPlugin.login( ['public_profil...
I am trying to log my users with Facebook, but can't figure out how to do it. This is the code I have so far : [CODE] On my Android device, I do not have the Facebook app installed, and I am not logged into Facebook on any browser. I would expect the facebookConnectPlugin.login() method to popup the login form, but ins...
android|facebook|cordova|facebook-graph-api|facebook-javascript-sdk
0
2016-04-26T17:10:46.807Z
2,016
4
17
1
239
1
632
45
5
1
true
false
false
false
false
false
zero
36,871,485
ngCordova camera works on emulator but not on device
<p>I'm building an app with Ionic for my Course Conclusion (I'm really in a hurry because I have only 2 weeks left) and I'm stuck with a ngCordova Camera Plugin issue. When testing on the emulator the camera works fine, on my device no image appears. It doesn't show a cracked image icon either, just a blank square. On ...
I'm building an app with Ionic for my Course Conclusion (I'm really in a hurry because I have only 2 weeks left) and I'm stuck with a ngCordova Camera Plugin issue. When testing on the emulator the camera works fine, on my device no image appears. It doesn't show a cracked image icon either, just a blank square. On the...
android|angularjs|cordova|ionic-framework|camera
0
2016-04-26T17:11:43.410Z
2,016
4
17
1
412
2
1,715
52
5
2
true
false
false
false
false
false
zero
36,871,636
java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
<p>I try to use this code to connect to server for uploading an image.</p> <pre><code> try { url = new URL(requestURL); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestProperty("connection", "close"); System.setProperty("http.keepAlive", "false"); ...
I try to use this code to connect to server for uploading an image. [CODE] I always get SocketException , like above. [CODE] UploadUI contains this code snippet on line 108: [CODE] where rh is stand for RequestHandler . It should post picture's details in a SQL database, but server side code seems working.
android|socketexception|econnreset
3
2016-04-26T17:19:07.323Z
2,016
4
17
1
7,309
1
307
78
3
3
true
false
true
false
false
false
low
36,871,651
Auth create,what I need to do next?
<p>I have login feature in my app.My app connect to open API,its succesfull request and I have OK,and code==200.I need to get list of this user following channels.But when I creating authentification session,what can I do?I insert part of my code,in this part,when I check <strong>"if(response.isSuccessful())"</strong> ...
I have login feature in my app.My app connect to open API,its succesfull request and I have OK,and code==200.I need to get list of this user following channels.But when I creating authentification session,what can I do?I insert part of my code,in this part,when I check "if(response.isSuccessful())" can I start new acti...
android|retrofit|retrofit2
0
2016-04-26T17:19:48.627Z
2,016
4
17
1
19
1
410
35
3
1
true
false
false
false
false
false
zero
36,871,732
Emulator doesn't start on level below than API 22
<p>Recently I installed <strong>Lubuntu 16.04</strong> operating system and <strong>Android Studio 2.0</strong> on it. </p> <p>First thing after that I created an <code>Hello World</code> project in AS for testing. After loading emulator with <code>AVD Galaxy Nexus API 23</code> successfully I tried to do the same thi...
Recently I installed Lubuntu 16.04 operating system and Android Studio 2.0 on it. First thing after that I created an Hello World project in AS for testing. After loading emulator with AVD Galaxy Nexus API 23 successfully I tried to do the same thing with AVD Galaxy Nexus API 16 but the emulator didn't started (only sh...
android|android-studio
0
2016-04-26T17:24:21.450Z
2,016
4
17
1
78
1
920
49
2
0
false
false
false
false
false
false
zero
36,871,945
setLatestEventInfo is deprecated I'm aware but how do I fix my code now?
<p>First of all I'm a beginner so bear with me if I miss out on something or don't get something easily. I'm working on this project the functions used were deprecated in API 23 I'm fully aware of that, can't go back so I have to fix the current code only. Below is only half code, the problem is if I'm trying to change...
First of all I'm a beginner so bear with me if I miss out on something or don't get something easily. I'm working on this project the functions used were deprecated in API 23 I'm fully aware of that, can't go back so I have to fix the current code only. Below is only half code, the problem is if I'm trying to change th...
android
0
2016-04-26T17:35:42.597Z
2,016
4
17
1
550
0
523
72
1
1
true
true
false
false
false
false
zero
36,872,005
Drawable and Android screen pixel density for fixed-size image
<p>I'm going through a problem in an application here my related to this issue. See if you can help me:</p> <p>In my case I have a ImageView showing a ruler, and then I need to show this rule in real size, where it does not need to grow or shrink as the screen size or density. Using as a basis my Moto G3, it works per...
I'm going through a problem in an application here my related to this issue. See if you can help me: In my case I have a ImageView showing a ruler, and then I need to show this rule in real size, where it does not need to grow or shrink as the screen size or density. Using as a basis my Moto G3, it works perfectly, but...
android|screen|drawable|pixel
0
2016-04-26T17:38:40.753Z
2,016
4
17
1
1,888
3
1,150
62
4
2
true
false
false
false
false
false
zero
36,872,013
Android Spinner not work multiline
<p>I have a problem when viewing spinner in android. that is multiline Android 5.1.1 is not displayed .. but below android if the multiline is the code I use is the following.</p> <p>This same code right out of another question but did not see answer to help me</p> <p>/res/values/arrays.xml:</p> <pre><code>&lt;strin...
I have a problem when viewing spinner in android. that is multiline Android 5.1.1 is not displayed .. but below android if the multiline is the code I use is the following. This same code right out of another question but did not see answer to help me /res/values/arrays.xml: [CODE] res/layout/spinner_item.xml: [CODE] S...
android|spinner|multiline
1
2016-04-26T17:38:57.783Z
2,016
4
17
1
6,329
2
352
34
3
3
true
false
true
false
false
false
low
36,872,106
Https connection closed by peer in android 5.0 lollipop
<p>I am trying to implement an android application.Therefore, I've called a web-service <code>HTTPS</code>.However, I am not able to get the response data.It showing an error </p> <blockquote> <p>" connection closed by peer "</p> </blockquote> <p>Here is my code for <code>HTTPS</code>:</p> <pre><code>public clas...
I am trying to implement an android application.Therefore, I've called a web-service HTTPS .However, I am not able to get the response data.It showing an error " connection closed by peer " Here is my code for HTTPS : [CODE] Here's the code which I wrote for DefaultHttpClient: [CODE] For getting response: [CODE] I woul...
java|android|https|socat
1
2016-04-26T17:43:35.010Z
2,016
4
17
1
680
0
378
55
4
3
true
true
false
false
false
false
low
36,872,224
Data is not inserting into database of webhost from android
<p>My data is not inserting to database of webhost.</p> <p>Here is my ActionActivity.java from where I will send data to the database.</p> <pre><code>import android.app.Activity; import android.content.Context; import android.provider.Settings; import android.support.v7.app.AppCompatActivity; import android.os.Bundle...
My data is not inserting to database of webhost. Here is my ActionActivity.java from where I will send data to the database. [CODE] Now my SignupActivity.java Which extends Asynctask. [CODE] Now my insertdata.php code is: [CODE]
android|json
2
2016-04-26T17:50:29.850Z
2,016
4
17
1
43
0
228
59
2
3
true
true
false
false
false
false
low
36,872,255
How to enable incoming message broadcast just for which contacts saved in mobile?
<p>I want to enable broadcast for incoming messages just for which contacts are saved in my mobile. I retrieved all contacts number using this code. </p> <pre><code>// Search Number from phone book public String getContactsPhoneNumber(Context context, String originatingAddress) { ContentResolver cr = conte...
I want to enable broadcast for incoming messages just for which contacts are saved in my mobile. I retrieved all contacts number using this code. [CODE] The BroadcastReciever class is: [CODE] Kindly tell me how to do this. Note: Permission granted on AndroidManifest file for broadcast.
android
0
2016-04-26T17:51:48.527Z
2,016
4
17
1
29
0
286
81
1
2
true
true
false
false
false
false
zero
36,872,431
Two views ontop of eachother, can't use the one behind the other
<p>I have two views:</p> <ol> <li>ImageButton</li> <li>AutoCompleteTextView</li> </ol> <p>that are the same dimensions and stacked ontop of eachother in a RelativeView. By default, the AutoCompleteTextView is disabled. When I click a setting, I enable the AutoCompleteTextView and disable the ImageButton. However, in ...
I have two views: ImageButton AutoCompleteTextView that are the same dimensions and stacked ontop of eachother in a RelativeView. By default, the AutoCompleteTextView is disabled. When I click a setting, I enable the AutoCompleteTextView and disable the ImageButton. However, in both states, I can never click the ImageB...
android|xml|layout
0
2016-04-26T17:59:48.130Z
2,016
4
17
1
43
1
422
64
3
1
true
false
false
false
false
false
zero
36,872,442
Migrating to API 23
<p>My android application currently with API 22:</p> <pre><code>compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { minSdkVersion 14 targetSdkVersion 22 } dependencies { ....... compile 'com.android.support:support-v4:22.2.1' ....... </code></pre> <p>}</p> <p>I would like to make a migration to A...
My android application currently with API 22: [CODE] } I would like to make a migration to API 23: [CODE] So basically i need to keep my old version of targetSdkVersion 22 for the reason to test some difference in permissions, but when i'm doing this it gives me error of compilation [CODE] Question : Is it possible to ...
android|android-6.0-marshmallow
0
2016-04-26T18:00:10.170Z
2,016
4
18
1
221
3
345
19
2
3
true
false
false
false
false
false
zero
36,872,467
Opening SQLite database file in android
<p>I am developing an android app in which i have to download the sqlite database file from the server and have to fetch information from it. For server, currently i am using my dropbox account and i am performing the downloading and opening task to open database file in class AsyncTask. In doinbackground, i am downloa...
I am developing an android app in which i have to download the sqlite database file from the server and have to fetch information from it. For server, currently i am using my dropbox account and i am performing the downloading and opening task to open database file in class AsyncTask. In doinbackground, i am downloadin...
java|android|database|sqlite|android-asynctask
0
2016-04-26T18:02:08.520Z
2,016
4
18
1
1,931
1
929
39
5
4
true
false
false
false
false
false
zero
36,872,476
Android Studio listView Add and Search
<p>I have a task to make an Android application with a <code>ListView</code>, which must have an add button and search system. I have watched a few tutorials ( <a href="https://www.youtube.com/watch?v=c9yC8XGaSv4" rel="nofollow">https://www.youtube.com/watch?v=c9yC8XGaSv4</a> and <a href="https://www.youtube.com/watch?...
I have a task to make an Android application with a ListView , which must have an add button and search system. I have watched a few tutorials ( https://www.youtube.com/watch?v=c9yC8XGaSv4 and https://www.youtube.com/watch?v=7LgEk3Cg9Yk ) and using both tutorials I have developed a program. The program can do both thin...
android|listview
0
2016-04-26T18:02:34.507Z
2,016
4
18
1
189
0
547
38
2
1
true
true
false
false
false
false
zero
36,872,615
android app notification push doesn't work
<p>I was trying to implement a push notification in my android app. Ideally, there should be a notification showing on the top of the screen with my customized title and icon when a new message arrives, if the preference is turned on. But nothing happened when I received new messages. I was running the emulator (becaus...
I was trying to implement a push notification in my android app. Ideally, there should be a notification showing on the top of the screen with my customized title and icon when a new message arrives, if the preference is turned on. But nothing happened when I received new messages. I was running the emulator (because I...
android|notifications|android-pendingintent|preference
0
2016-04-26T18:09:10.097Z
2,016
4
18
1
120
0
520
42
4
1
true
true
false
false
false
false
zero
36,872,798
$cordovaFile.removeFile() doesn't work
<p>I'm using ngCordova inside an Ionic mobile app. In one of my services, I need to delete files I've written previously with $cordovaFile</p> <pre><code> remove: function (card) { //remove a card from the store var index = cardStore.indexOf(card); if (index &gt; -1) { //remove the image f...
I'm using ngCordova inside an Ionic mobile app. In one of my services, I need to delete files I've written previously with $cordovaFile [CODE] Everything claims to be successful. In my logs, I see: [CODE] At this point I think it's a bug in $cordovaFile or other platform issue. Any ideas out there?
android|cordova|ionic-framework
2
2016-04-26T18:18:52.007Z
2,016
4
18
1
539
1
299
38
3
2
true
false
false
false
false
false
low
36,872,952
Views in container doesn't show with the Navigation Drawer
<p>I have a DrawerLayout here that works perfeclty on API 21 and higher but when I am on KitKat and lower versions, the "buttonMenu" doesn't show. "buttonMenu" allows the user to open and close the drawer. </p> <p>Thank you for your help.</p> <pre><code> &lt;android.support.v4.widget.DrawerLayout xmlns:android="ht...
I have a DrawerLayout here that works perfeclty on API 21 and higher but when I am on KitKat and lower versions, the "buttonMenu" doesn't show. "buttonMenu" allows the user to open and close the drawer. Thank you for your help. [CODE]
android|navigation-drawer|drawerlayout
0
2016-04-26T18:27:48.590Z
2,016
4
18
1
71
0
234
58
3
1
true
true
false
false
false
false
zero
36,873,033
Android admob failed to load ad
<p>I am trying to ad adds to my application, I saw somewhere this error can mean my code is fine it's just admob doesn't have an add to return but actually I am using testing mode so I can't understand what's wrong. Here's my xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmln...
I am trying to ad adds to my application, I saw somewhere this error can mean my code is fine it's just admob doesn't have an add to return but actually I am using testing mode so I can't understand what's wrong. Here's my xml file: [CODE] And my Activity : [CODE] My strings.xml (if needed): [CODE] And I also added Int...
android|admob
2
2016-04-26T18:31:31.840Z
2,016
4
18
1
3,441
1
587
31
2
4
true
false
true
false
false
false
low
36,873,037
How to close an already opened programmatically popup window in android?
<p>I seted an OnItemClickListener in my ListView which open a pop up window. However, when I click on another item on my list - another pop window is opened and I don't know how to get the already opened window so I can close it. Any help would be very appreciated!</p> <p>Here's my code that opens the pop up window:</...
I seted an OnItemClickListener in my ListView which open a pop up window. However, when I click on another item on my list - another pop window is opened and I don't know how to get the already opened window so I can close it. Any help would be very appreciated! Here's my code that opens the pop up window: [CODE]
android|listview|popupwindow|onitemclicklistener
2
2016-04-26T18:31:43.933Z
2,016
4
18
1
1,212
2
314
72
4
1
true
false
false
false
false
false
low
36,873,061
Hello Dagger2 crashes on Android Studio
<p>I am playing with Dagger2 in order to understand how it works. I have just created a "hello dagger2" basic project but it crashes</p> <p>I have three classes: Bread, Flour and Water. Bread has a dependency from Flour and Water.</p> <p>class Bread:</p> <pre><code> public class Bread { private Water water; ...
I am playing with Dagger2 in order to understand how it works. I have just created a "hello dagger2" basic project but it crashes I have three classes: Bread, Flour and Water. Bread has a dependency from Flour and Water. class Bread: [CODE] class Water: [CODE] class Flour: [CODE] As well I have implemented the module a...
android|dagger-2
0
2016-04-26T18:32:58.840Z
2,016
4
18
1
105
1
813
39
2
5
true
false
false
false
false
false
zero
36,873,162
App will not randomize the next image on ImageView, tag Array is not synced with the Imageview. How do I fix this?
<p>When I run this app the first sign is loaded into the ImageView, it's tag matches the text in a particular button. </p> <p>Then I have a method (at the bottom) where it is supposed to randomly pick the next image from an array, and the corresponding String from an ArrayList.</p> <p><strong>The problem is after the...
When I run this app the first sign is loaded into the ImageView, it's tag matches the text in a particular button. Then I have a method (at the bottom) where it is supposed to randomly pick the next image from an array, and the corresponding String from an ArrayList. The problem is after the first answer, it will not l...
java|android|arrays|arraylist|imageview
0
2016-04-26T18:38:04.770Z
2,016
4
18
1
28
1
436
114
5
1
true
false
false
false
false
false
zero
36,873,183
how run asynctask inside asynctask in the same time?
<p>i have an web-based application that must retrive text in external database and image in server after one text retrived ,using following code for retrive text:</p> <pre><code>class BackgroundTaskOne extends AsyncTask&lt;Void, Void, String&gt; { String json_url; @Override protected void onPreExecute() {...
i have an web-based application that must retrive text in external database and image in server after one text retrived ,using following code for retrive text: [CODE] i want to load image while loading first text and second image after second text in sequence but it loads all text then load all images , these folowing ...
android|android-asynctask|web-based
0
2016-04-26T18:39:10.323Z
2,016
4
18
1
493
1
350
52
3
2
true
false
false
false
false
false
zero
36,873,229
Copare value on List<Object> with other List and update other value without knowing Index
<p>Let's just said I have a ArrayList of Objects, let's called <code>"Category"</code> (<code>List&lt;Category&gt;</code>) that it has:</p> <pre><code>get/setName get/setImportance get/setImage </code></pre> <p>Those values came from a web service (for now, get/setImportance is always 0, the server doesn't have this ...
Let's just said I have a ArrayList of Objects, let's called "Category" ( List<Category> ) that it has: [CODE] Those values came from a web service (for now, get/setImportance is always 0, the server doesn't have this info)... But, in this way, the service have there own sort (non functional for the reason I need). The ...
java|android|sorting|arraylist|compare
1
2016-04-26T18:41:25.557Z
2,016
4
18
1
69
1
1,423
89
5
3
true
false
false
false
false
false
low
36,873,281
Ionic android button not working
<p>Im facing a problem with my ionic app. I coded the whole app over the webbrowser through ionic serve. Now I want to publish my app on an android device.</p> <p>In the web everything works fine but when I try to start the app on my android 4.3 or 5.5 device nothing happens when i click the login button on the login ...
Im facing a problem with my ionic app. I coded the whole app over the webbrowser through ionic serve. Now I want to publish my app on an android device. In the web everything works fine but when I try to start the app on my android 4.3 or 5.5 device nothing happens when i click the login button on the login page. this ...
android|angularjs|button|ionic-framework
0
2016-04-26T18:44:27.520Z
2,016
4
18
1
3,619
1
769
32
4
2
true
false
true
false
false
false
zero
36,873,302
Android Json Paser
<p>Can someone please help me understand why I am getting an error.</p> <pre><code>public class tools_main2 extends AppCompatActivity { private GridView mGridView; private tools_adapter2 mGridAdapter; private ArrayList&lt;tools_item2&gt; mGridData; @Override protected void onCreate(Bundle savedI...
Can someone please help me understand why I am getting an error. [CODE] error logcat [CODE]
java|android|json
-1
2016-04-26T18:45:51.980Z
2,016
4
18
1
43
1
91
18
3
2
true
false
false
false
false
true
negative
36,873,335
Sending BroadcastIntent in application.onCreate() results in booting forever
<p>I am working on a custom android for my master thesis which is based on CM12.1.</p> <p>The use case for the custom rom is capturing usage data for arbitrary apps including e.g. startup, shutdown and calls to different system resources. All this should happen with normal usage of the phone. Currently I want to utili...
I am working on a custom android for my master thesis which is based on CM12.1. The use case for the custom rom is capturing usage data for arbitrary apps including e.g. startup, shutdown and calls to different system resources. All this should happen with normal usage of the phone. Currently I want to utilize the Appl...
android|android-intent|android-broadcast|cyanogenmod
1
2016-04-26T18:47:50.037Z
2,016
4
18
1
137
1
1,623
76
4
1
true
false
false
false
false
false
low
36,873,378
Infinite Loop a Handler to classify images
<p>I need to classify an images recorded by my camera as often as possible in a infinite loop. Every classification takes about 0.5 seconds. What is the best way to implement this in android? </p> <p>So far I tried to add a Handler inside <code>onCreate</code>, but it seems I cannot just call my method from there:</p...
I need to classify an images recorded by my camera as often as possible in a infinite loop. Every classification takes about 0.5 seconds. What is the best way to implement this in android? So far I tried to add a Handler inside onCreate , but it seems I cannot just call my method from there: [CODE] The method TakeScree...
android|android-camera|handler|infinite-loop
0
2016-04-26T18:49:50.583Z
2,016
4
18
1
50
0
478
42
4
1
true
true
false
false
false
false
zero
36,873,470
Android SearchView.OnQueryTextListener() Unexpectedly Launching an Intent
<p>I have implemented a Searchview into my application, and have run into a weird problem. Basically, the user is able to enter a string to be searched and it is submitted properly. However, my application will filter the ListView based on the search query, and then an Intent will be launched resulting in the activity ...
I have implemented a Searchview into my application, and have run into a weird problem. Basically, the user is able to enter a string to be searched and it is submitted properly. However, my application will filter the ListView based on the search query, and then an Intent will be launched resulting in the activity sta...
java|android|android-intent
1
2016-04-26T18:55:13.210Z
2,016
4
18
1
715
2
1,767
73
3
3
true
false
false
false
false
false
low
36,873,477
Exiting from a loop on a runnable and move to next screen
<p>I am almost a beginner on android. I am sort of stuck at a point. In the following code I am running a while loop for 30 times and runnable post delay is 3 seconds, means loop will run for 90 seconds(which is not important yet). It does so, thats fine. But in the runnable, when I call rangeofRouter0() function,the v...
I am almost a beginner on android. I am sort of stuck at a point. In the following code I am running a while loop for 30 times and runnable post delay is 3 seconds, means loop will run for 90 seconds(which is not important yet). It does so, thats fine. But in the runnable, when I call rangeofRouter0() function,the valu...
java|android|multithreading
0
2016-04-26T18:55:36.050Z
2,016
4
18
1
81
1
941
57
3
1
true
false
false
false
false
false
zero
36,873,533
Android camera auto-focus stops working after some time
<p>In my Android app, the focus mode is set to <code>FOCUS_MODE_CONTINUOUS_PICTURE.</code>. Here is some relevant code:</p> <pre><code>private Camera.AutoFocusCallback _cbAutoFocus = new Camera.AutoFocusCallback() { private int _count = 0; @Override public void onAutoFocus(boolean success, Camera camera) ...
In my Android app, the focus mode is set to FOCUS_MODE_CONTINUOUS_PICTURE. . Here is some relevant code: [CODE] As I move the camera over some printed text, the camera seems to auto-focus properly for some time. However, after a while, it stops focusing and I don't get success as true in my onAutoFocus code. Wondering ...
android|android-camera|autofocus
0
2016-04-26T18:58:23.330Z
2,016
4
18
1
1,365
2
356
55
3
1
true
false
false
false
false
false
zero
36,873,627
VNC Client Framebuffer update during Scroll
<p>I'm working with the opensource Android vnc client (<a href="https://sourceforge.net/projects/multivnc/" rel="nofollow">https://sourceforge.net/projects/multivnc/</a>) for school and I want to do the following:</p> <p><strong>I want the framebuffer to update AS I'm scrolling/moving my finger (not when I stop scroll...
I'm working with the opensource Android vnc client ( https://sourceforge.net/projects/multivnc/ ) for school and I want to do the following: I want the framebuffer to update AS I'm scrolling/moving my finger (not when I stop scrolling) . I know that inputs are being sent as I move my finger, but the framebuffer waits t...
java|android|framebuffer|vnc|rfb-protocol
1
2016-04-26T19:04:29.007Z
2,016
4
19
1
340
0
1,617
43
5
4
true
true
false
false
false
false
low
36,873,724
Android acvitiy scale, fade exit animation not working
<p>So I'm trying to transition from one activity with:</p> <p>overridePendingTransition(R.anim.scale_fade_in, R.anim.scale_fade_out);</p> <p>scale_fade_in.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@andr...
So I'm trying to transition from one activity with: overridePendingTransition(R.anim.scale_fade_in, R.anim.scale_fade_out); scale_fade_in.xml [CODE] scale_fade_out.xml [CODE] The problem is that the scale_fade_out animation isn't happening. The first activity sits there while the second activity scales in (as it should...
android|xml|animation
0
2016-04-26T19:09:00.767Z
2,016
4
19
1
414
0
467
54
3
2
true
true
false
false
false
false
zero
36,873,806
UntTest - Mock RxJava object in UseCase Object
<p>I want to test UseCase object, in this specific case there is a LoginUseCase, which looks like this:</p> <pre><code>public class LoginUseCase implements RxUseCase&lt;AuthResponse, AuthCredentials&gt; { ApiManager mApiManager; public LoginUseCase(ApiManager apiManager) { mApiManager =apiManager; ...
I want to test UseCase object, in this specific case there is a LoginUseCase, which looks like this: [CODE] I wrote simple test: [CODE] But this test always passes and I don't know how mock error observable in this case. EDIT : I've chaged testShouldThrowsError() according to SkinnyJ, but test still passes, any sugesti...
android|unit-testing|mockito|rx-java
0
2016-04-26T19:13:44.947Z
2,016
4
19
1
643
1
324
46
4
2
true
false
false
false
false
false
zero
36,873,821
Why there's unwanted white rectangle when we perform view slide up animation
<p>Currently, I perform a footer view slide up animation, by using the following technique.</p> <pre><code>// Start the animation. ViewPropertyAnimator.animate(view).setStartDelay(2000).setDuration(2000).translationY(0).alpha(1.0f).setListener(new Animator.AnimatorListener() { @Override public void onAnimatio...
Currently, I perform a footer view slide up animation, by using the following technique. [CODE] The XML for the layout is as following [CODE] The animation is being performed on footer_linear_layout Here's is the outcome of the animation - https://youtu.be/r1zQKpj2HVo As you can see, when the bottom footer view being s...
android|animation
2
2016-04-26T19:14:48.457Z
2,016
4
19
1
96
2
446
76
2
2
true
false
false
false
false
false
low
36,874,191
Editing AndroidManifest.xml in Gradle task processManifest.doLast has no effect when running app from Android Studio
<p>I use the following Gradle script to make some modifications to the AndroidManifest.xml at compile time. In this example I want to inject a <code>&lt;meta-data&gt;</code> element. The code is based on <a href="https://stackoverflow.com/a/27372806/559745">this answer</a>.</p> <pre class="lang-groovy prettyprint-over...
I use the following Gradle script to make some modifications to the AndroidManifest.xml at compile time. In this example I want to inject a <meta-data> element. The code is based on this answer . [CODE] This works as expected when I do a Gradle sync in Android Studio or make a clean build from command line: The meta-da...
android|android-studio|android-gradle-plugin|android-manifest|android-studio-2.0
9
2016-04-26T19:34:48.590Z
2,016
4
19
1
4,808
5
1,657
116
5
1
true
false
true
false
false
false
medium
36,874,288
androidannotations 4.0.0 doesn't show layout
<p>I am using androidannotations 4.0.0 with Android studio,</p> <p>My code like this:</p> <pre><code>@EActivity(resName = "activity_demo_web_sdk") public class DemoWebSdkActivity extends AppCompatActivity { String TAG="DemoWebSdkActivity"; } </code></pre> <p>After I run this code,I can't see the layout,but If I...
I am using androidannotations 4.0.0 with Android studio, My code like this: [CODE] After I run this code,I can't see the layout,but If I use setContentView rather than androidannotations, it works well. My gradle is as follows: [CODE] Anyone have idea,why it happens? I noticed some one meet the same problem ,but no sol...
android|android-layout|android-annotations
1
2016-04-26T19:41:12.217Z
2,016
4
19
1
108
1
341
44
3
2
true
false
false
false
false
false
low
36,874,313
convert Observable<RealmResults<T>>> into Observable<List<T>>>
<p>I trying to implement the pattern Repository using Realm and RxJava. The repository interface has a signature like this</p> <pre><code>Observable&lt;List&lt;T&gt;&gt; query(Specification specification); </code></pre> <p>So, when I am working with Realm and would like to retrieve the result "asObservable", I get Ob...
I trying to implement the pattern Repository using Realm and RxJava. The repository interface has a signature like this [CODE] So, when I am working with Realm and would like to retrieve the result "asObservable", I get Observable>. I couldn't find a way to transform Observable> into Observable>. Can anybody give a han...
android|realm|rx-java
7
2016-04-26T19:42:23.263Z
2,016
4
19
1
1,854
3
425
62
3
3
true
false
false
false
false
false
medium
36,874,379
okhttp doesn't validate pins correctly
<p>Using <code>com.squareup.retrofit2:retrofit:2.0.1</code> with <code>com.squareup.okhttp3:okhttp:3.2.0</code> on an <code>AVD with Android 6.0</code>. I'm trying to implement public key pinning using a self signed certificate that is signed by a Root CA. That Root CA is in the system CA trust store. </p> <p>Using th...
Using com.squareup.retrofit2:retrofit:2.0.1 with com.squareup.okhttp3:okhttp:3.2.0 on an AVD with Android 6.0 . I'm trying to implement public key pinning using a self signed certificate that is signed by a Root CA. That Root CA is in the system CA trust store. Using the example provided by okhttp wiki with some small ...
android|ssl|ssl-certificate|retrofit|okhttp
2
2016-04-26T19:46:25.747Z
2,016
4
19
1
907
1
938
38
5
3
true
false
false
false
false
false
low
36,874,392
Try to get status of my response
<p>Im trying to get status of my response, if it's true, start new Activity, else - build alert dialog. When my data is correct all is good, Activity is starting. But when it's incorrect, my app crashed for NPE because value or <code>response.body() == null</code>. But when data is incorrect service Postman said that I...
Im trying to get status of my response, if it's true, start new Activity, else - build alert dialog. When my data is correct all is good, Activity is starting. But when it's incorrect, my app crashed for NPE because value or response.body() == null . But when data is incorrect service Postman said that I have some data...
android|retrofit|retrofit2
0
2016-04-26T19:47:17.973Z
2,016
4
19
1
394
1
644
32
3
4
true
false
false
false
false
false
zero
36,874,423
Will storing Activity Context in a DialogFragment cause a memory leak?
<p>I'm doing the following all throughout my project, would this produce a memory leak?</p> <pre><code>@Override public void onAttach(Activity activity) { super.onAttach(activity); mContext = activity; } </code></pre> <p>and then later in a method like this:</p> <pre><code>new AlertDialog.Builder(mContext) ...
I'm doing the following all throughout my project, would this produce a memory leak? [CODE] and then later in a method like this: [CODE] Is doing the above ok? What if I'm trying to show the AlertDialog in onPostExecute() of an AsyncTask? EDIT: as was pointed out, this would produce a memory leak since I'm trying to ac...
android|android-activity|memory-leaks|android-context
1
2016-04-26T19:49:06.610Z
2,016
4
19
1
1,094
1
637
70
4
4
true
false
false
false
false
false
low
36,874,439
Sending objects through sockets java TCP server to android app
<p>I'm writing a client-server pair where the server is a java TCP server running on Linux and the client is an Android app developed in Android Studio.</p> <p>I've successfully made a client-server pair that sends <code>Message</code> objects to each other, but when I try to implement similar functionality in my Andr...
I'm writing a client-server pair where the server is a java TCP server running on Linux and the client is an Android app developed in Android Studio. I've successfully made a client-server pair that sends Message objects to each other, but when I try to implement similar functionality in my Android app nothing seems to...
java|android|sockets|tcp
0
2016-04-26T19:49:51.517Z
2,016
4
19
1
885
1
635
62
4
1
true
false
false
false
false
false
zero
36,874,592
CardView Items not visible
<p>I am trying to simply place a TextView inside a CardView, but to no avail. All I need to do is make two information appear inside the CardViews. At the moment, with code below, the two CardViews appear, but do not show any text / content inside them.</p> <p><strong>Heres is the xml Layout</strong></p> <pre><code>&...
I am trying to simply place a TextView inside a CardView, but to no avail. All I need to do is make two information appear inside the CardViews. At the moment, with code below, the two CardViews appear, but do not show any text / content inside them. Heres is the xml Layout [CODE] AllCourses.java [CODE] AllUsers.java [...
java|android
2
2016-04-26T19:57:38.543Z
2,016
4
19
1
123
0
325
26
2
3
true
true
false
false
false
false
low
36,874,670
Android - Java drawing coordinates on multiple screens
<p>I'm making a game like "Draw My Thing".</p> <p>Now, in this game of course, a server is required, for which every person can see what the other player is drawing.</p> <p>I managed to paint from one screen to another, but the problem is that the coordinates of the drawings are not the same if the dimension (WIDTH A...
I'm making a game like "Draw My Thing". Now, in this game of course, a server is required, for which every person can see what the other player is drawing. I managed to paint from one screen to another, but the problem is that the coordinates of the drawings are not the same if the dimension (WIDTH AND HEIGHT) of the s...
java|android|server|drawing|screen
0
2016-04-26T20:01:48.157Z
2,016
4
20
1
58
0
477
54
5
2
true
true
false
false
false
false
zero
36,874,821
How to resolve this error VFY: unable to resolve virtual method
<p>I am using android studio 2.0 and in last time I upgrade jdk 7 to jdk 8 and I'm making some changes to file gradle but now I am getting this error</p> <pre class="lang-none prettyprint-override"><code>E/InstantRun: Could not find slices in APK; aborting. I/dalvikvm: Could not find method android.content.Context.get...
I am using android studio 2.0 and in last time I upgrade jdk 7 to jdk 8 and I'm making some changes to file gradle but now I am getting this error [CODE] An this is gradle file [CODE] How can I handle the error, I have tried to chanfe version of compile compile 'com.android.support:appcompat-v7:23.3.0' to compile 'com....
java|android|java-8|android-appcompat
8
2016-04-26T20:10:51.577Z
2,016
4
20
1
18,675
3
406
63
4
2
true
false
true
true
false
false
medium
36,874,845
Saving and retriving data using firebase and android
<p>Am using firebase in android to add a message to a chat group then retrieve it back but when i press send it adds the new message and deletes the other child(ren) message(s) that were previously added so at any given instance i only remain with one message i.e the new message. any suggestions in fixing this. </p> <...
Am using firebase in android to add a message to a chat group then retrieve it back but when i press send it adds the new message and deletes the other child(ren) message(s) that were previously added so at any given instance i only remain with one message i.e the new message. any suggestions in fixing this. capital ta...
android|firebase|android-recyclerview
0
2016-04-26T20:12:47.007Z
2,016
4
20
1
111
0
542
52
3
1
true
true
false
false
false
false
zero
36,874,850
Write and Read Android
<p>I have a problem with my code, I need to read EditText from a user and than put that text into another layout and do some calculations. My problem is that I don't understand how to read/write data in Android. Below is a snippet of the read/write code.</p> <p>Thanks for the help!</p> <p>EDIT: Should be noted that a...
I have a problem with my code, I need to read EditText from a user and than put that text into another layout and do some calculations. My problem is that I don't understand how to read/write data in Android. Below is a snippet of the read/write code. Thanks for the help! EDIT: Should be noted that all of this is insid...
java|android
0
2016-04-26T20:12:53.900Z
2,016
4
20
1
50
1
709
22
2
1
true
false
false
false
false
false
zero
36,875,010
Adding my location in OnPostExecute
<p>I was trying to solve this whole day but I cant, so I have to ask you for help. My application is monitoring data that phones receive from base station and also takes data from database through PHP and JSON and draws an marker on the map (this works fine). How can I add my location marker on the same map? I would li...
I was trying to solve this whole day but I cant, so I have to ask you for help. My application is monitoring data that phones receive from base station and also takes data from database through PHP and JSON and draws an marker on the map (this works fine). How can I add my location marker on the same map? I would like ...
android|google-maps
0
2016-04-26T20:23:12.807Z
2,016
4
20
1
49
0
534
35
2
1
true
true
false
false
false
false
zero
36,875,027
SQLiteCantOpenDatabaseException after upgrading to Android 6 (Marshmallow)
<p>I have an application in the PlayStore, and some users reported that it no longer worked after they updated their phones to android 6. The stack trace associated to the reports is the following</p> <pre><code>java.lang.RuntimeException: Unable to create application ar.com.package.android.MyApp: android.database.sql...
I have an application in the PlayStore, and some users reported that it no longer worked after they updated their phones to android 6. The stack trace associated to the reports is the following [CODE] Obviously the problem is related to ActiveAndroid (which I use in this app) not being able to open the database, but I ...
android|android-sqlite|android-6.0-marshmallow|activeandroid
3
2016-04-26T20:24:28.927Z
2,016
4
20
1
480
0
777
74
4
2
true
true
false
false
false
false
low
36,875,035
OpenCV camera image shows bluish
<p>I'm using the below code to get an image from the camera, but the camera image shows colours differently.</p> <pre><code>public Mat mat = new Mat(); private BufferedImage img; private byte[] dat; public void getSpace(Mat mat) { this.mat = mat; int w = mat.cols(), h = mat.rows(); ...
I'm using the below code to get an image from the camera, but the camera image shows colours differently. [CODE]
java|android|opencv
2
2016-04-26T20:24:55.307Z
2,016
4
20
1
1,136
1
112
32
3
1
true
false
false
false
false
false
low
36,875,104
ImageView overlay not working
<p>I have 2 layouts in my xml, a CircularImageView and a ImageView, and the ImageView must appear on top of the CircularImageView.</p> <p>I've tried:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment_kids_register_ll_kid" android:layout_width=...
I have 2 layouts in my xml, a CircularImageView and a ImageView, and the ImageView must appear on top of the CircularImageView. I've tried: [CODE] And it is getting cut off: I need the image to be shown exactly at that position in the picture, but not "cropped", what I am missing here ? BTW, this component is part of a...
android|android-layout
0
2016-04-26T20:27:50.583Z
2,016
4
20
1
278
4
470
29
2
1
true
false
false
false
false
false
zero