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,914,241
The method getInstance(Context) in the type GoogleCloudMessaging is not applicable for the arguments (XWalkResponceClient)
<p>I want to register my application to GCM on xwalkview load but there I am not able to access context and getInstance() of GCM inside XWalkResponceClient.</p> <pre><code>@Override public void onLoadStarted(XWalkView view, String url) { super.onLoadStarted(view, url); if (TextUtils.isEmpty(regId)) { regId...
I want to register my application to GCM on xwalkview load but there I am not able to access context and getInstance() of GCM inside XWalkResponceClient. [CODE]
android|google-cloud-messaging|android-context|crosswalk
1
2016-04-28T12:09:10.533Z
2,016
4
12
3
115
1
160
122
4
1
true
false
false
false
false
false
low
36,914,255
How to get a reference to a ViewHolder, from inside another ViewHolder? (RecyclerView)
<p>I have a <code>RecyclerView</code> with some <code>view</code>'s/<code>card</code>'s (let's call it a view for now), which all contain the same things, including a <code>View</code> that I'm using as a divider bar.</p> <p>I want to be able to change the properties of this divider bar in the <code>view</code> above t...
I have a RecyclerView with some view 's/ card 's (let's call it a view for now), which all contain the same things, including a View that I'm using as a divider bar. I want to be able to change the properties of this divider bar in the view above the current one. So say I click on the card that says test3 , I want to b...
android|android-recyclerview
13
2016-04-28T12:09:50.620Z
2,016
4
12
3
15,266
2
563
86
2
2
true
false
true
true
true
false
medium
36,914,268
Arduino - Android Communication SeekBar Value
<p>I have an app which communicate Arduino via Bluetooth. I want to change speeds of DC motors using seekbar, there is not any problem about communication, the problem is format I think, because while I am moving the bar, I check the results from Arduino Serial Port screen, and see different symbols like ! " # ' $ ) ( ...
I have an app which communicate Arduino via Bluetooth. I want to change speeds of DC motors using seekbar, there is not any problem about communication, the problem is format I think, because while I am moving the bar, I check the results from Arduino Serial Port screen, and see different symbols like ! " # ' $ ) ( * <...
android|bluetooth|arduino|seekbar|dataformat
0
2016-04-28T12:10:35.523Z
2,016
4
12
3
1,170
1
513
45
5
2
true
false
false
false
false
false
zero
36,914,290
Android soft keyboard in a fullscreen Surface View
<p><strong>HI! I am currently extending an Android Game Framework,which I found in a Book written by Mario Zechner (who also develops Libgdx).</strong></p> <p>It is working great so far and I accomplished a Java Desktop Implementation of the Framework.</p> <p>But one tiny thing is missing, the correct usage of the So...
HI! I am currently extending an Android Game Framework,which I found in a Book written by Mario Zechner (who also develops Libgdx). It is working great so far and I accomplished a Java Desktop Implementation of the Framework. But one tiny thing is missing, the correct usage of the SoftKeyboard. You can try out and repr...
android|input|android-softkeyboard|keyevent
0
2016-04-28T12:11:41.747Z
2,016
4
12
3
1,322
1
1,758
50
4
4
true
false
false
false
false
false
zero
36,914,306
Read float from a line throws ArrayIndexOutOfBoundsException
<p>I have a .txt file in the format of an integer followed by a float and they are separated by the space character in every line. I want to read the float from every line and then put it in an array. Here is my code so far, but when I run it it gives me a <code>ArrayIndexOutOfBoundsException</code></p> <p>because I g...
I have a .txt file in the format of an integer followed by a float and they are separated by the space character in every line. I want to read the float from every line and then put it in an array. Here is my code so far, but when I run it it gives me a ArrayIndexOutOfBoundsException because I guess it never creates th...
java|android|indexoutofboundsexception
1
2016-04-28T12:12:09.027Z
2,016
4
12
3
86
3
375
60
3
1
true
false
false
false
false
false
low
36,914,410
Make a dynamic GridView to fit screen android
<p>I have a GridView that can contain NxM Custom Items (actually memes)</p> <p>The problem i'm facing is, when i try to save a bitmap from those images, it gets cropped to the image is rendered on screen, because not visible images or portions of images are null space.</p> <p>(if there's a way to actually capture tho...
I have a GridView that can contain NxM Custom Items (actually memes) The problem i'm facing is, when i try to save a bitmap from those images, it gets cropped to the image is rendered on screen, because not visible images or portions of images are null space. (if there's a way to actually capture those images without r...
android|gridview
0
2016-04-28T12:16:05.583Z
2,016
4
12
3
165
0
729
45
2
2
true
true
false
false
false
false
zero
36,914,487
Xamarin sample application not displaying anything
<p>I meant to try out Xamarin.Android for a project of mine, so I installed Visual Studio 2015 and Xamarin.Android. I then installed the packages for the versions of Android I meant to use.</p> <p>Now, I am trying to fire up TaskyAndroid, following <a href="https://www.xamarin.com/getting-started/android" rel="nofollo...
I meant to try out Xamarin.Android for a project of mine, so I installed Visual Studio 2015 and Xamarin.Android. I then installed the packages for the versions of Android I meant to use. Now, I am trying to fire up TaskyAndroid, following this tutorial . At first, one of the two projects was skipped, which I fixed by b...
android|visual-studio|xamarin|xamarin.android
3
2016-04-28T12:19:01.613Z
2,016
4
12
3
3,698
2
1,037
50
4
1
true
false
true
false
false
false
low
36,914,579
'?attr/colorControlActivated' not found in Android Studio preview
<p>I am using the following code for floating Edit text.</p> <pre><code>&lt;android.support.design.widget.TextInputLayout android:id="@+id/username_text_input_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_...
I am using the following code for floating Edit text. [CODE] But it's not rendering in preview and getting following rendering issue in android studio. [CODE]
android|android-layout|android-studio
2
2016-04-28T12:22:39.120Z
2,016
4
12
3
951
0
158
65
3
2
true
true
false
false
false
false
low
36,914,626
how to make vertical mirror of canvas.drawbitmap for drawing app
<p>i have created an drawing app which is working fine. now all i want is to make vertical mirror of drawing path. the code for drawing is </p> <pre><code> protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); canvasBitmap = Bitmap.createBitmap(w, h, Bitmap....
i have created an drawing app which is working fine. now all i want is to make vertical mirror of drawing path. the code for drawing is [CODE] from where i should start to make a vertical mirror of path. i searched for it and i get some info which was about [CODE] how can i use this code in my app. any help will be app...
android
1
2016-04-28T12:24:13.617Z
2,016
4
12
3
200
0
329
64
1
2
true
true
false
false
false
false
low
36,914,675
Gradle: How to display androidTest results in the console?
<p>As explained in other threads Gradle can be configured to log test results into the console:</p> <ul> <li><a href="https://stackoverflow.com/questions/30308435/gradle-android-how-to-display-test-results-without-using-info">Gradle Android: How to Display test results without using --info</a></li> <li><a href="https:...
As explained in other threads Gradle can be configured to log test results into the console: Gradle Android: How to Display test results without using --info Gradle: How to Display Test Results in the Console in Real Time? Output unit testing results on console using spock junit testing and gradle build system Basicall...
android|gradle|integration-testing|android-testing
28
2016-04-28T12:26:19.470Z
2,016
4
12
3
4,042
2
702
58
4
3
true
false
true
false
true
false
high
36,914,694
setting layout background using picasso is not updating the background on first open
<p>i am setting a drawrlayout background using Picasso, and looked at <a href="https://stackoverflow.com/questions/31464867/how-to-load-layout-background-using-picasso/31464960#31464960">this</a> question and followed the steps, it works but the weird thing that is happening is that it doesn't update the background whe...
i am setting a drawrlayout background using Picasso, and looked at this question and followed the steps, it works but the weird thing that is happening is that it doesn't update the background when the activity is first opened (meaning I have to close it then open it again and the background appears) this is my layout ...
android|android-activity|background|picasso
0
2016-04-28T12:27:03.660Z
2,016
4
12
3
688
2
392
84
4
2
true
false
false
false
false
false
zero
36,914,843
Signing and packaging the Xamarin application using Visual Studio 2015
<p>I'm trying to publish a Xamarin.Forms project with Visual Studio 2015 by following the steps <a href="https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/part_2_-_signing_the_android_application_package/#Create_a_New_Keystore" rel="nofollow noreferrer">on this addr...
I'm trying to publish a Xamarin.Forms project with Visual Studio 2015 by following the steps on this address . What I have done so far : I have changed the to project's build configuration as Release mode and have created the keystore then published and run the project in release mode, so the apk files have been create...
android|xamarin
0
2016-04-28T12:33:45.987Z
2,016
4
12
3
990
2
483
70
2
0
false
false
false
false
false
false
zero
36,914,862
Display image in full screen on clicking it
<p>I am working on an instant chat application .I have 3 tabs in an Activity namely Chat,Group and Contact.In Group Tab ,i have a list view which is populated using BaseAdapter.Now list view can contain images .On clicking image ,i want to display it in full screen.</p> <p>Inside adpater i am using following code on c...
I am working on an instant chat application .I have 3 tabs in an Activity namely Chat,Group and Contact.In Group Tab ,i have a list view which is populated using BaseAdapter.Now list view can contain images .On clicking image ,i want to display it in full screen. Inside adpater i am using following code on clicking ima...
android|android-imageview
3
2016-04-28T12:34:17.593Z
2,016
4
12
3
12,950
3
561
43
2
2
true
false
true
true
false
false
low
36,914,864
Android M Permissions: onRequestPermissionsResult() not being called in custom button class
<p>I have one Custom button class in which I have requested CALL_PHONE permission on button click.Everything is fine but I am not getting the user result in onRequestPermissionResult().Below here I am posting my custom button class.</p> <pre><code>public class CustomCallExecutiveButton extends Button implements View.O...
I have one Custom button class in which I have requested CALL_PHONE permission on button click.Everything is fine but I am not getting the user result in onRequestPermissionResult().Below here I am posting my custom button class. [CODE] Thanks in advance folks :)
android|runtime|android-6.0-marshmallow|user-permissions
0
2016-04-28T12:34:27.267Z
2,016
4
12
3
805
1
263
91
4
1
true
false
false
false
false
false
zero
36,914,961
Xamarin - CustomRenderer doesn't render controls
<p>So I made a CustomRenderer for my Android part of my app. This CustomRenderer is located in MyProject.Droid and it's called CustomSwitchRenderer which, obviously, is meant for the switches I'm using. So when I tried to test it the switches wouldn't show up in my page. It was just a blank tabbed page with two navigat...
So I made a CustomRenderer for my Android part of my app. This CustomRenderer is located in MyProject.Droid and it's called CustomSwitchRenderer which, obviously, is meant for the switches I'm using. So when I tried to test it the switches wouldn't show up in my page. It was just a blank tabbed page with two navigation...
c#|android|xamarin
0
2016-04-28T12:38:14.857Z
2,016
4
12
3
104
0
810
48
3
3
true
true
false
false
false
false
zero
36,915,091
Merging byte[] that was transfered through bluetooth
<p>So, I used <a href="http://developer.android.com/intl/pt-br/samples/BluetoothChat/index.html" rel="nofollow">this</a> Android sample as a guide to make a bluetooth connection without any kind of validation (This app will have a very restrict userbase and will not be available to download at the store).</p> <p>I was...
So, I used this Android sample as a guide to make a bluetooth connection without any kind of validation (This app will have a very restrict userbase and will not be available to download at the store). I was able to transfer string just fine, and it works like a charm. My problem is when trying to transfer images. I ha...
android|byte|android-bluetooth
1
2016-04-28T12:44:26.093Z
2,016
4
12
3
95
1
862
52
3
3
true
false
false
false
false
false
low
36,915,165
Intent Service not called
<p>Here is my service class</p> <pre><code>package com.example.com.listener; import android.app.DownloadManager; import android.app.IntentService; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v4.content.LocalBroadcastManag...
Here is my service class [CODE] Here is the code I used to start the service: [CODE] Manifest file entry is: Manifest package is com.example.com and service entry is [CODE] Unfortunately my service is not running. Please help.
android
1
2016-04-28T12:47:28.357Z
2,016
4
12
3
203
2
226
25
1
3
true
false
false
false
false
false
low
36,915,175
StackOverflowError while sorting dates recursively
<p>I have a recursive function which takes a List of Events and sort them by their date. It has worked just fine, but today I got a crash report on Google play developer console. A StackOverflowError is thrown.</p> <p>So, my question is, does someone know why this is happening and what to do to avoid it?</p> <p>My so...
I have a recursive function which takes a List of Events and sort them by their date. It has worked just fine, but today I got a crash report on Google play developer console. A StackOverflowError is thrown. So, my question is, does someone know why this is happening and what to do to avoid it? My sort function: [CODE]...
java|android|sorting|recursion|stack-overflow
0
2016-04-28T12:47:52.793Z
2,016
4
12
3
185
3
340
50
5
2
true
false
false
false
false
false
zero
36,915,194
Problems after creating styles.xml v21
<p>I'v created a new <code>styles.xml</code> file (v21) to implement material design for my app. After i did that my app didn't worked because all my activities was extending <code>AppCompatActivity</code>. I'v changed them to extand <code>Activity</code> only and it fixed it but not all the activities, one of my activ...
I'v created a new styles.xml file (v21) to implement material design for my app. After i did that my app didn't worked because all my activities was extending AppCompatActivity . I'v changed them to extand Activity only and it fixed it but not all the activities, one of my activities is crushing. Here is the stack trac...
android|xml|android-studio
0
2016-04-28T12:48:36.390Z
2,016
4
12
3
177
1
550
38
3
3
true
false
false
false
false
false
zero
36,915,290
Getting Latitude and Longitude 0.0 in Android M
<p><strong>I am suffering from the problem of getting value 0.0 as latitude and longitude in Android Marshmallow (API 23) i.e. 6.0.</strong></p> <p>I have searched a lot regarding this but didn't find solution of it. My code is fully working for the other API versions which are less than 23.</p> <p>I have also put th...
I am suffering from the problem of getting value 0.0 as latitude and longitude in Android Marshmallow (API 23) i.e. 6.0. I have searched a lot regarding this but didn't find solution of it. My code is fully working for the other API versions which are less than 23. I have also put the code for selfPermission and which ...
java|android|gps|android-manifest|android-6.0-marshmallow
5
2016-04-28T12:53:06.117Z
2,016
4
12
3
11,237
4
702
47
5
3
true
false
true
false
false
false
low
36,915,300
copyToRealmOrUpdate not working
<p>I would like to update an realm object, but I haven't had success. I tried different ways, but I'm still getting the same exception.</p> <p><a href="https://i.stack.imgur.com/uLoDt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uLoDt.png" alt="Exception"></a> </p> <p>First, I create a plant and...
I would like to update an realm object, but I haven't had success. I tried different ways, but I'm still getting the same exception. First, I create a plant and then I search it in order to be updated. This works. But, when I try to update the plant with its new name, I received the exception related to the primary key...
android|realm|rx-java
0
2016-04-28T12:53:29.057Z
2,016
4
12
3
1,276
1
667
31
3
4
true
false
false
false
false
false
zero
36,915,322
Can't send volley post request from android phone
<p>I'm using Volley to send an http post request with parameters from my android app to my local server running in <a href="http://192.168.1.4:3000/battery_signal_report" rel="nofollow noreferrer">http://192.168.1.4:3000/battery_signal_report</a> I'm pretty sure the server is running properly (I checked it with Postman...
I'm using Volley to send an http post request with parameters from my android app to my local server running in http://192.168.1.4:3000/battery_signal_report I'm pretty sure the server is running properly (I checked it with Postman successfully). also, I successfully sent the request through Android Studio's Emulator u...
android-studio|http-post|android-volley
0
2016-04-28T12:54:13.900Z
2,016
4
12
3
793
1
859
49
3
0
false
false
false
false
false
false
zero
36,915,345
Load new data when refresh RecyclerView
<p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on <code>RecyclerView</code> show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br...
I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! I want gonna put a button and when click on this button, load new dat...
android|android-json
1
2016-04-28T12:54:58.103Z
2,016
4
12
3
1,654
1
758
39
2
4
true
false
false
false
false
false
low
36,915,383
What does error code -1010 in Android MediaCodec mean?
<p>Here is the stack trace:</p> <pre><code> E/ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -1010 E/ACodec: signalError(omxError 0x80001001, internalError -1010) E/MediaCodec: Codec reported err 0xfffffc0e, actionCode 0, while in state 3 E/MediaCodec: configure failed with err 0xfffffc0e, rese...
Here is the stack trace: [CODE] Crash is on Nexus 6P. Initialization of mediaCodec: [CODE]
android|android-mediacodec
11
2016-04-28T12:56:21.790Z
2,016
4
12
3
9,893
2
90
54
2
2
true
false
true
false
true
false
medium
36,915,413
What happens if I don't set Dagger 2 Component to null in Activity onDestroy()?
<p>I see that if one instantiates a Dagger 2 Component in an Activity, then it's later nulled in the <code>onDestroy()</code> method like seen <a href="https://stackoverflow.com/questions/28411352/what-determines-the-lifecycle-of-a-component-object-graph-in-dagger-2">here</a>.</p> <pre><code>public class MyActivity { ...
I see that if one instantiates a Dagger 2 Component in an Activity, then it's later nulled in the onDestroy() method like seen here . [CODE] What happens if I don't null that instance and what would happen? Side note: in comments I've found useful hint why one would set it to null which is pretty convincing: "I don't t...
android|android-activity|activity-lifecycle|dagger-2
4
2016-04-28T12:57:34.110Z
2,016
4
12
3
970
1
375
79
4
1
true
false
false
false
false
false
low
36,915,506
Cannot resolve method 'findViewByID(int)' in Android Studio
<p>I only just started coding for androud, but I've been getting the error: "Cannot resolve method 'findViewByID(int)'" in android studio</p> <p>I can't seem to find out what is wrong, have tried setting contentView, implementing OnClickListenener, but none of these fixed anything.</p> <p>full code below, the MainAct...
I only just started coding for androud, but I've been getting the error: "Cannot resolve method 'findViewByID(int)'" in android studio I can't seem to find out what is wrong, have tried setting contentView, implementing OnClickListenener, but none of these fixed anything. full code below, the MainActivity Method is whe...
java|android
0
2016-04-28T13:01:40.903Z
2,016
4
13
3
2,070
4
345
59
2
1
true
false
false
false
false
false
zero
36,915,530
How android system autoconnects to paired device?
<p><strong>What I want to know:</strong></p> <p>I'm wondering how the android system (like Android smart phone) auto-connects to devices which is paired before.</p> <p><em>For example</em>, I pair my bluetooth headset with my android smartphone in the procedure of <code>"turn on scanning/advertising -&gt; click pairi...
What I want to know: I'm wondering how the android system (like Android smart phone) auto-connects to devices which is paired before. For example , I pair my bluetooth headset with my android smartphone in the procedure of "turn on scanning/advertising -> click pairing" on day 1. And when I turn on advertising on my he...
android|bluetooth|bluetooth-lowenergy
3
2016-04-28T13:02:53.760Z
2,016
4
13
3
1,749
3
1,507
49
3
0
false
false
false
false
false
false
low
36,915,559
Issue in realm relationships: Many-to-One, it creates duplicate objects
<p>Following the official documents guide: <a href="https://realm.io/docs/java/0.88.3/#relationships" rel="nofollow noreferrer">Realm Relationships</a></p> <p>I tried to write some code of Many-to-One relationship, and I found some things that are not consistent.</p> <p>Two POJO <code>Contace.java</code> and <code>Em...
Following the official documents guide: Realm Relationships I tried to write some code of Many-to-One relationship, and I found some things that are not consistent. Two POJO Contace.java and Email.java are defined as follows: [CODE] Situation 1: Create a normal Email object and assign to different Contact contactA and ...
android|realm
2
2016-04-28T13:03:58.483Z
2,016
4
13
3
902
2
1,074
71
2
3
true
false
false
false
false
false
low
36,915,690
Can't import library libcore.io.IoBridge
<p>I'm trying to run an open source project in Android Studio 2.0. My problem is that I can't import the class IoBridge (<code>import libcore.io.IoBridge;</code>). The compiler is saying that libcore does not exist. And effectively in my SDK (revision 23) there is not the library named libcore. Below is the code.</p> ...
I'm trying to run an open source project in Android Studio 2.0. My problem is that I can't import the class IoBridge ( import libcore.io.IoBridge; ). The compiler is saying that libcore does not exist. And effectively in my SDK (revision 23) there is not the library named libcore. Below is the code. [CODE] enter image ...
java|android|sockets|jar|static-libraries
2
2016-04-28T13:09:33.760Z
2,016
4
13
3
1,876
1
336
40
5
1
true
false
false
false
false
false
low
36,915,698
Cordova - Android - File not found error
<p>When I run the command - cordova emulate android, I get the following error:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>Application Error - net::ERR_FILE_NOT_FOUND ...
When I run the command - cordova emulate android, I get the following error: [CODE] CordovaActivity: [CODE] JS included: [CODE] screenshot of the folder structure- When I checked thoroughly, there is actually no index.html file generated. What might be the issue?
android|cordova|assets|file-not-found
3
2016-04-28T13:09:45.967Z
2,016
4
13
3
10,054
2
263
40
4
3
true
false
true
false
false
false
low
36,915,882
ImageView as a splash screen not working
<p>My android app takes some time to initialize, and I'd like to show a splash image before the loading screen appears and hide it afterwards. I searched through stackoverflow and found some solutions. I tried to follow <a href="https://www.bignerdranch.com/blog/splash-screens-the-right-way/" rel="nofollow noreferrer">...
My android app takes some time to initialize, and I'd like to show a splash image before the loading screen appears and hide it afterwards. I searched through stackoverflow and found some solutions. I tried to follow this tutorial , that explains how to implement a proper splash screen that starts within a splash activ...
android|android-layout|imageview
0
2016-04-28T13:17:04Z
-1
-1
-1
-1
2,802
3
1,078
40
3
1
true
false
true
false
false
false
zero
36,915,884
Error with Toolbar
<p>Sorry my bad English.</p> <p>I have the following "activity_main.xml" file, the problem is that the Toolbar NOT appears, someone tells me how to make her look?</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout android:id="@+id/drawer_layout" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:...
Sorry my bad English. I have the following "activity_main.xml" file, the problem is that the Toolbar NOT appears, someone tells me how to make her look? [CODE] with this other "activity_main.xml" Toolbar appears, but lacks the Navigation Drawer [CODE]
android|navigation-drawer|android-toolbar
0
2016-04-28T13:17:06.157Z
2,016
4
13
3
41
1
251
18
3
2
true
false
false
false
false
false
zero
36,916,120
BroadcastReceiver doesn't trigger when there is an alarm
<p>I am working on an app which when the alarm clock is triggered, it will do something in the background. for now its just a toast. When running i don't get any error but when the alarm sounds the broadcast receiver doesn't get called. What am I missing?</p> <p>AlarmReceiver:</p> <pre><code>public class AlarmReceive...
I am working on an app which when the alarm clock is triggered, it will do something in the background. for now its just a toast. When running i don't get any error but when the alarm sounds the broadcast receiver doesn't get called. What am I missing? AlarmReceiver: [CODE] AndroidManifest: [CODE] EDIT MainActivity: [C...
android|broadcastreceiver|android-alarms
0
2016-04-28T13:25:59.190Z
2,016
4
13
3
1,380
1
422
56
3
3
true
false
false
false
false
false
zero
36,916,144
How to set Width and Height of a dynamically created Table Layout Column(Cell)
<p>In my project, I'm creating tables dynamically. Each table is a weekly schedule for college students. So, each cell has an String in it. My working code is below;</p> <pre><code> Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); int width = size.x...
In my project, I'm creating tables dynamically. Each table is a weekly schedule for college students. So, each cell has an String in it. My working code is below; [CODE] It is working but the result is like that; here How can i fixed column height and get rid of these black lines. Please help! Thanks a lot for advice
java|android|border|cell|tablelayout
1
2016-04-28T13:26:53.240Z
2,016
4
13
3
657
0
318
78
5
1
true
true
false
false
false
false
low
36,916,198
Issues in Validation
<p>When i am click on Submit button Validation is not processed is there any mistake?if edit text is empty it will goes to next activity validation is not processed ?Can any one solve this</p> <pre><code>public void submitDetails(View v) { et = (EditText)findViewById(R.id.first); et1 = (EditText)findViewById...
When i am click on Submit button Validation is not processed is there any mistake?if edit text is empty it will goes to next activity validation is not processed ?Can any one solve this [CODE]
java|android
0
2016-04-28T13:29:04.927Z
2,016
4
13
3
31
1
192
20
2
1
true
false
false
false
false
false
zero
36,916,226
Android ViewPager visualization as a "stair"
<p>I'm trying to create a ViewPager for visualize the fragment pages like in this picture: </p> <p><a href="https://i.stack.imgur.com/BX9kH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BX9kH.png" alt="enter image description here"></a></p> <p>The page that I'm reading on top of the next two or t...
I'm trying to create a ViewPager for visualize the fragment pages like in this picture: The page that I'm reading on top of the next two or three pages as a sort of stair. When I swipe to the left, the page go to the left and from the top it arrives the next. I tried to set the padding top and bottom, but without succe...
android|android-viewpager|android-transitions
3
2016-04-28T13:30:16.137Z
2,016
4
13
3
219
1
1,102
44
3
2
true
false
false
false
false
false
low
36,916,234
How to correctly handle database in ListFragment?
<p>I am building a very simple app that contains a <code>SQLiteDatabase</code> which I want to display in a <code>ListFragment</code>, using a custom <code>SimpleCursorAdapter</code>.</p> <p>My code is working fine, but I'm not sure if I'm doing things the correct way. I have searched a lot for (authoritative) example...
I am building a very simple app that contains a SQLiteDatabase which I want to display in a ListFragment , using a custom SimpleCursorAdapter . My code is working fine, but I'm not sure if I'm doing things the correct way. I have searched a lot for (authoritative) examples of this, but have only found either overly sim...
android|android-listfragment|android-cursoradapter|android-cursor|android-database
0
2016-04-28T13:30:31.573Z
2,016
4
13
3
81
1
447
49
5
2
true
false
false
false
false
false
zero
36,916,329
Xamarin.Forms listview and kitkat phone emulator
<p>I use VS 2015 to do a simple cross-platform app which contains a Xamarin.Forms listview and the listview data is bound to the results a C# call to a remote API web service. The call of that web api service just returns about 50 data rows and they will be shown gradually when user scrolls the listview down on emulato...
I use VS 2015 to do a simple cross-platform app which contains a Xamarin.Forms listview and the listview data is bound to the results a C# call to a remote API web service. The call of that web api service just returns about 50 data rows and they will be shown gradually when user scrolls the listview down on emulators....
listview|android-emulator|xamarin.forms
1
2016-04-28T13:35:05.960Z
2,016
4
13
3
114
1
1,061
48
3
4
true
false
false
false
false
false
low
36,916,493
Android studio : Performing stop of activity that is not resumed
<p>When I execute my application (Android Studio 2.0 / RUN), i obtain this error message (log) :</p> <pre><code>05-02 14:26:10.867 2225-2225/com.fmaupin.cogito E/ActivityThread: Performing stop of activity that is not resumed: {com.fmaupin.cogito/com.fmaupin.cogito.Main2Activity} ...
When I execute my application (Android Studio 2.0 / RUN), i obtain this error message (log) : [CODE] I would like understand what is the problem ? I read a lot of posts about this problem, but i have difficulty to know where come from the 'source'. Especially as this problem does not still appear. So this is the code o...
android|android-studio|android-lifecycle
0
2016-04-28T13:41:10.090Z
2,016
4
13
3
497
0
375
64
3
2
true
true
false
false
false
false
zero
36,916,509
How to optimize google Chrome browser in Genymotion android emulator
<p>My question today is about <strong>optimizing google Chrome browser in Genymotion android emulator</strong>. I've run my Selenium / Appium scripts just perfectly on my several real Samsung &amp; HTC devices, even parallel. Since sometime I decided to try the same run on android emulators. To tell honestly, I've neve...
My question today is about optimizing google Chrome browser in Genymotion android emulator . I've run my Selenium / Appium scripts just perfectly on my several real Samsung & HTC devices, even parallel. Since sometime I decided to try the same run on android emulators. To tell honestly, I've never tried original Androi...
android|selenium|emulation|appium|genymotion
0
2016-04-28T13:41:31.403Z
2,016
4
13
3
248
0
1,557
68
5
0
false
true
false
false
false
false
zero
36,916,574
Chrome Custom Tabs navigate from Toolbar
<p>I'm implemented Chrome Custom Tabs in my project and added two ToolbarItems. With these items I want to give the user the possibility to navigate forward and backwards within the Chrome Custom Tabs.</p> <p>But when on the first page and pressing back it will close and not show the forward button. When forward is po...
I'm implemented Chrome Custom Tabs in my project and added two ToolbarItems. With these items I want to give the user the possibility to navigate forward and backwards within the Chrome Custom Tabs. But when on the first page and pressing back it will close and not show the forward button. When forward is possible show...
android|android-toolbar|android-pendingintent|chrome-custom-tabs
3
2016-04-28T13:44:18.237Z
2,016
4
13
3
577
0
718
40
4
1
true
true
false
false
false
false
low
36,916,589
After power failure I can't compile app anymore
<p>So I sat and coded in Android Studio when the power suddenly went out for a minute. Now whenever I try to build/run my app I get this Gradle error:</p> <blockquote> <p>Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionSnapshotImpl cannot be cast to org.gradle.api.i...
So I sat and coded in Android Studio when the power suddenly went out for a minute. Now whenever I try to build/run my app I get this Gradle error: Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionSnapshotImpl cannot be cast to org.gradle.api.internal.changedetection.st...
java|android|gradle
4
2016-04-28T13:45:05.750Z
2,016
4
13
3
885
1
1,125
47
3
0
false
false
false
false
false
false
low
36,916,703
How to create a directory, and save a picture to it in Android
<p>This is a function I have written that tries to: </p> <ol> <li>Create a folder with the users name </li> <li>Save a .jpg inside of that folder</li> </ol> <p>The folder creation works fine, however when I try to save the pictures, they all save with the correct name, however they do not save in their intended ...
This is a function I have written that tries to: Create a folder with the users name Save a .jpg inside of that folder The folder creation works fine, however when I try to save the pictures, they all save with the correct name, however they do not save in their intended folders. In other words, instead of having a fol...
java|android|bitmap|directory|fileoutputstream
1
2016-04-28T13:49:36.867Z
2,016
4
13
3
1,179
1
692
62
5
1
true
false
false
false
false
false
low
36,916,903
After deleting an item from list, expanded item's position does not refresh on ExpandableListView - Android?
<p>I have a problem. I have an <code>ExpandableListView</code> and a custom Adapter that is extended from <code>BaseExpandableListAdapter</code>. And I have an <code>ArrayList</code> that contains my groups and groups' children items.</p> <p>The problem is:</p> <p>1) Expand the 3rd group.</p> <p>2) Delete the first ...
I have a problem. I have an ExpandableListView and a custom Adapter that is extended from BaseExpandableListAdapter . And I have an ArrayList that contains my groups and groups' children items. The problem is: 1) Expand the 3rd group. 2) Delete the first item from ArrayList and notifyDataSetInvalidated , notifyDataSetC...
android|listview|expandablelistview|android-listfragment|expandablelistadapter
1
2016-04-28T13:57:40.887Z
2,016
4
13
3
645
1
630
108
5
1
true
false
false
false
false
false
low
36,916,910
How to back on the same activity?
<p>I have one activity which firstly show the <code>&lt;string-array name="main"&gt;</code>. This "main" array it include two items --> (Category and Manufacturer). I also defined <code>&lt;string-array name="Category"&gt;</code> and <code>&lt;string-array name="Manufacturer"&gt;</code> in <code>String.xml</code>, eac...
I have one activity which firstly show the <string-array name="main"> . This "main" array it include two items --> (Category and Manufacturer). I also defined <string-array name="Category"> and <string-array name="Manufacturer"> in String.xml , each of them contain five items. When the "Category" item is clicked the it...
android|listview|android-activity
0
2016-04-28T13:58:07.070Z
2,016
4
13
3
57
1
864
33
3
2
true
false
false
false
false
false
zero
36,916,942
I'm getting my app crashed when I implement the method setSupportActionBar
<p>Well, the thing is, if I erase that setSupportActionBar(toolbar) from the add_event activity, it works, the add_event activity opens and show all the buttons and textEdits on the screen, but dont show any button on the toolbar, just the toolbar, clean, and if I put that setSupportActionBar method, it crashes when I ...
Well, the thing is, if I erase that setSupportActionBar(toolbar) from the add_event activity, it works, the add_event activity opens and show all the buttons and textEdits on the screen, but dont show any button on the toolbar, just the toolbar, clean, and if I put that setSupportActionBar method, it crashes when I cal...
java|android
0
2016-04-28T13:59:10.150Z
2,016
4
13
3
329
1
753
74
2
5
true
false
false
false
false
false
zero
36,916,991
Transitive dependencies for local aar library
<p>We're making some library, basicly for our API, that we would make life easier for our external developers.</p> <p>So we created new library project and put Retrofit and some other libraries as dependencies.</p> <pre><code>dependencies { compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.google...
We're making some library, basicly for our API, that we would make life easier for our external developers. So we created new library project and put Retrofit and some other libraries as dependencies. [CODE] Now when we build it, it produces aar file. But now when we put the aar file to libs directory and set it as dep...
android|android-gradle-plugin|aar
45
2016-04-28T14:01:06.070Z
2,016
4
14
3
12,129
1
498
45
3
2
true
false
true
true
true
false
high
36,916,995
SurfaceView canvas drawing path with transparency
<p>I have problems with my drawing application. I need to catch the correct touch screen and draw them to the canvas. Changing the size of the brush is working properly. But when I change the transparency setting, the program does not work correctly. It imposes a new path on top of the previous one, and the transparenc...
I have problems with my drawing application. I need to catch the correct touch screen and draw them to the canvas. Changing the size of the brush is working properly. But when I change the transparency setting, the program does not work correctly. It imposes a new path on top of the previous one, and the transparency i...
android|android-canvas|transparency|surfaceview
0
2016-04-28T14:01:10.310Z
2,016
4
14
3
488
1
526
49
4
2
true
false
false
false
false
false
zero
36,917,144
ListView onItemClickListener not working. Onclick doesnot work
<p><strong>Adapter</strong></p> <pre><code>package ooad.issuemanagementsystem; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.wid...
Adapter [CODE] Activity [CODE] I have hookied on click event of my listview in my managerActivity but it is not working. I have also attached my custom adapter.I have displayed a test toast in the onclick event but it is not working. Kindly help
java|android|listview
1
2016-04-28T14:07:05.453Z
2,016
4
14
3
1,735
2
245
62
3
2
true
false
false
false
false
false
low
36,917,208
Images not being displayed in grid view
<p>I am trying to populate a grid view with images stored in the database using Active Android. The database is being populated when a post is added, however, the images are not being shown inside the grid view.</p> <p>I don't think that there is any problem with the grid view since when debugging, I am showing layout...
I am trying to populate a grid view with images stored in the database using Active Android. The database is being populated when a post is added, however, the images are not being shown inside the grid view. I don't think that there is any problem with the grid view since when debugging, I am showing layout boundaries...
android|gridview|activeandroid
0
2016-04-28T14:09:58.283Z
2,016
4
14
3
446
0
617
39
3
4
true
true
false
false
false
false
zero
36,917,243
Getting color from pixel and returning color code (in hexadecimal)
<p>I want to be able to get the color from an image pixel and to display the color "code" on the screen in hexadecimal. This is my code:</p> <pre><code>public class MainActivity extends Activity { TextView touchedXY, invertedXY, imgSize, colorRGB; ImageView imgSource1; Button b, bOpenFromGallery; static final int CAMR...
I want to be able to get the color from an image pixel and to display the color "code" on the screen in hexadecimal. This is my code: [CODE] The problem with that is that it returns something like "ff930d14" for red, which isn't the correct value of red. I want it to display "ff0000", the correct value of red.
java|android|colors|color-picker
0
2016-04-28T14:11:45.287Z
2,016
4
14
3
115
1
311
66
4
1
true
false
false
false
false
false
zero
36,917,247
Error:Failed to resolve: android.support:compatibility-v4:23.1.1
<p>I'm trying to add <code>org.mapsforge:mapsforge-map-android-extras:0.6.0</code> dependency to my project. But when I do it, I get this error after sync:</p> <blockquote> <p>Error:Failed to resolve: android.support:compatibility-v4:23.1.1</p> </blockquote> <p>This is my <em>.gradle</em> file</p> <pre><code>apply...
I'm trying to add org.mapsforge:mapsforge-map-android-extras:0.6.0 dependency to my project. But when I do it, I get this error after sync: Error:Failed to resolve: android.support:compatibility-v4:23.1.1 This is my .gradle file [CODE]
android|android-support-library|mapsforge
0
2016-04-28T14:11:55.127Z
2,016
4
14
3
557
1
235
64
3
1
true
false
false
false
false
false
zero
36,917,392
Greendao: How to update to-many entities
<p>My app uses a database with <code>SongVersions</code> having many <code>Tracks</code>. This to-manx relationship is generated by greendao and works fine so far.</p> <p>But now I try to update a track - let's say to mute it - and the update is only wokring until the next app start. This is, because the udpate is onl...
My app uses a database with SongVersions having many Tracks . This to-manx relationship is generated by greendao and works fine so far. But now I try to update a track - let's say to mute it - and the update is only wokring until the next app start. This is, because the udpate is only reflected in the cached list of tr...
android|sqlite|orm|sql-update|greendao
2
2016-04-28T14:17:12.863Z
2,016
4
14
3
1,882
1
1,015
40
5
3
true
false
false
false
false
false
low
36,917,445
How to Implement a Custom Font in a Fragment in Android Studio
<p>I cannot get a custom font to work in a Fragment in Android Studio version 1.5. Here is what I have so far in the java document. </p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_sponsor...
I cannot get a custom font to work in a Fragment in Android Studio version 1.5. Here is what I have so far in the java document. [CODE] And this is what I have in the pertinent XML code: [CODE] The font does not change and the output remains the default type. I have already created an assets folder in the main project ...
android|fonts
0
2016-04-28T14:19:16.657Z
2,016
4
14
3
1,737
2
479
62
2
2
true
false
false
false
false
false
zero
36,917,475
sbt-android gives "IllegalArgumentException already added..." running android:package for multi-project build
<p>I have an sbt <code>root</code> project with an <code>actionbarsherlock</code> subproject which I can't package into an apk.</p> <p>I am able to build both projects successfully, but when I run <code>android:package</code> I get errors from the <code>root/android:dex</code> task where classes from actionbarsherlock...
I have an sbt root project with an actionbarsherlock subproject which I can't package into an apk. I am able to build both projects successfully, but when I run android:package I get errors from the root/android:dex task where classes from actionbarsherlock are being dex'd twice: [CODE] I ran last root/android:dex and ...
sbt-android
0
2016-04-28T14:20:54.427Z
2,016
4
14
3
18
1
888
109
1
8
true
false
false
false
false
false
zero
36,917,480
SwipeRefreshLayout icon does not show but callback works
<p>I have a simple layout:</p> <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swiperefresh" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;FrameLayout android:id="@+id/...
I have a simple layout: [CODE] When 1st include is visible and 2nd gone then all is fine. When 1st include is gone and 2nd is visible then I don't see the loading image. When pulling just a super fast blink (of the loading image) just before it refreshes but the action did actually run as the callback is called. Any cl...
android|swiperefreshlayout
0
2016-04-28T14:21:01.717Z
2,016
4
14
3
266
2
345
56
2
1
true
false
false
false
false
false
zero
36,917,520
LocationManager.requestLocationUpdates is never called
<p>I have an application and I want to use the GPS's Location. After implementing what I was taught, I have two files, <code>VirtualAssistantActivity</code> which uses the <code>LocationGPS</code> file. The second file will send the result with an intent received from the first file. </p> <p>The problem is the <code>T...
I have an application and I want to use the GPS's Location. After implementing what I was taught, I have two files, VirtualAssistantActivity which uses the LocationGPS file. The second file will send the result with an intent received from the first file. The problem is the TextView that is supposed to be edited after ...
android|location|locationmanager
0
2016-04-28T14:22:13.113Z
2,016
4
14
3
305
0
1,106
54
3
4
true
true
false
false
false
false
zero
36,917,725
Error setOnClickListener from an android app
<p>Hey guys I've been having problems with a code I'm using for practice. The thing is that it works for the guy giving the tutorial, but it doesn't work for me. My question is how do I fix it?</p> <pre><code> package bt.sismo; import android.os.Bundle; import android.view.View; import android.widget.Toast;// import...
Hey guys I've been having problems with a code I'm using for practice. The thing is that it works for the guy giving the tutorial, but it doesn't work for me. My question is how do I fix it? [CODE] It later gives me this error in the logcat [CODE]
java|android
0
2016-04-28T14:30:48.680Z
2,016
4
14
3
2,894
2
247
44
2
2
true
false
true
false
false
false
zero
36,917,738
Kivy - How to authenticate Kivy apps using fingerprint scanners
<p>I am hoping to make use of fingerprint scanners within my Kivy app for authentication.</p> <p>Unfortunately, I haven't found any documentation regarding how to do this. I'm quite new to Kivy development, and I was hoping to achieve this by (e.g. for Android) importing the android API and calling the appropriate met...
I am hoping to make use of fingerprint scanners within my Kivy app for authentication. Unfortunately, I haven't found any documentation regarding how to do this. I'm quite new to Kivy development, and I was hoping to achieve this by (e.g. for Android) importing the android API and calling the appropriate method. Howeve...
android|kivy|fingerprint|biometrics|android-fingerprint-api
3
2016-04-28T14:31:16.013Z
2,016
4
14
3
480
0
809
63
5
1
true
true
false
false
false
false
low
36,917,754
AutocompleteTextView vanishes after dash key is typed (images)
<p>I have compound names/words stored in database such as <strong>good-for-nothing</strong> as you will see in the images below. I have implemented SearchView in ActionBar. It work perfectly. Except when I press/type - (hiphen/ minus sign) on Android Keyboard, the suggestion for that word is missed. How can I fix that?...
I have compound names/words stored in database such as good-for-nothing as you will see in the images below. I have implemented SearchView in ActionBar. It work perfectly. Except when I press/type - (hiphen/ minus sign) on Android Keyboard, the suggestion for that word is missed. How can I fix that? But here is showed ...
android|listview|searchview|autocompletetextview
3
2016-04-28T14:31:56.717Z
2,016
4
14
3
65
0
452
62
4
3
true
true
false
false
false
false
low
36,917,815
java.lang.NoClassDefFoundError when setting onScrollChangeListener on recyclerview
<p>I'm trying to make this onScrollListener works on api version below 23 and when i try to do that i'm getting the error i mentioned in title:</p> <p>Here i'm getting an error:</p> <pre><code>if (Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.LOLLIPOP) { list.addOnScrollListener(new RecyclerView.OnScrollList...
I'm trying to make this onScrollListener works on api version below 23 and when i try to do that i'm getting the error i mentioned in title: Here i'm getting an error: [CODE] I have enable multidex support and compile 'com.android.support:multidex:1.0.1' but still i'm getting an error. Also i have initialize MultiDex i...
android|android-recyclerview
2
2016-04-28T14:34:41.193Z
2,016
4
14
3
608
2
383
82
2
3
true
false
false
false
false
false
low
36,917,935
Android xml drawable is bigger first time
<p>I have two clickable text views with the same drawable left image. When I open fragment first time the first image looks bigger then second one. After clicking on first text view the next fragment is opening and then when I return back two images have the same size. What's wrong? Please help to find out reason of th...
I have two clickable text views with the same drawable left image. When I open fragment first time the first image looks bigger then second one. After clicking on first text view the next fragment is opening and then when I return back two images have the same size. What's wrong? Please help to find out reason of this ...
android|android-layout|android-drawable|layer-list
1
2016-04-28T14:38:58.063Z
2,016
4
14
3
230
1
571
41
4
2
true
false
false
false
false
false
low
36,918,109
Android BLE: List of discovered characteristics in service is incomplete
<p>Attempting to read characteristics from a GATT service, the list is incomplete compared to the list I get from an iOS device, or the manufacturer guide.</p> <p>I am reading the characteristics as follows:</p> <pre><code>private final BluetoothGattCallback mGattCallback = new BluetoothGattCallback() { @Over...
Attempting to read characteristics from a GATT service, the list is incomplete compared to the list I get from an iOS device, or the manufacturer guide. I am reading the characteristics as follows: [CODE] and [CODE] I also attempted to get this characteristic using getCharacteristic , but I received a null. The charact...
android|bluetooth-lowenergy|gatt
5
2016-04-28T14:46:32.063Z
2,016
4
14
3
1,566
0
559
72
3
3
true
true
false
false
false
false
low
36,918,174
Spongy Castle AES Android vs Bouncy Castle AES C#
<p>i see this code in android java code project.. :</p> <pre><code>localCipher = Cipher.getInstance("AES/CBC/NoPadding", "SC"); localCipher.init(2, new SecretKeySpec(arrayOfByte1, "AES"), new IvParameterSpec(arrayOfByte2)); byte[] resultarray = new CipherInputStream(cipherDataf, localCipher); </code></pre> <p>The pro...
i see this code in android java code project.. : [CODE] The provider is SC I refer to the spongycastle libraries : https://rtyley.github.io/spongycastle/ I tried to use native AES net 4 and the library C# BouncyCastle.Crypto.dll the bouncy castle but do not get the same results in decrypt http://www.bouncycastle.org/cs...
java|c#|android|encryption
3
2016-04-28T14:49:29.957Z
2,016
4
14
3
717
0
455
49
4
4
true
true
false
false
false
false
low
36,918,203
Android toolbar not hiding entirely (> Lollipop)
<p>In my app I use <code>AppBarLayout</code> with <code>Toolbar</code> inside it as my support action bar. I want it to hide/show when user is scrolling content. On KitKat everything works fine, but on Lollipop and Marshmallow Toolbar isn't scrolling its full height. <a href="http://imgur.com/vT7pKRx.png" rel="nofollow...
In my app I use AppBarLayout with Toolbar inside it as my support action bar. I want it to hide/show when user is scrolling content. On KitKat everything works fine, but on Lollipop and Marshmallow Toolbar isn't scrolling its full height. Screen with toolbar fully scrolled My layout: [CODE] app_bar__main.xml : [CODE] a...
android|android-actionbar|android-support-library|android-toolbar
1
2016-04-28T14:50:12.593Z
2,016
4
14
3
665
1
618
48
4
2
true
false
false
false
false
false
low
36,918,252
How to remove row from a customlistview
<p>I want to remove a row from a customlistview by pressing a button in the row that i want to delete. I put my code:</p> <p>The <strong>adapter.java</strong></p> <pre><code>public class Adapter extends ArrayAdapter&lt;String&gt; { /** VARIABILI */ int[] bandiera = {}; int[] positivo = {}; int[] negativo = {}; Strin...
I want to remove a row from a customlistview by pressing a button in the row that i want to delete. I put my code: The adapter.java [CODE] the rigatabella.xml [CODE] The MainActivity.java [CODE] So how to do it? i show a picture that represent what i mean:
java|android|listview|button|adapter
-1
2016-04-28T14:51:53.593Z
2,016
4
14
3
51
2
256
39
5
3
true
false
false
false
false
true
negative
36,918,279
Android change Actionbar background color using AppCompat
<p>I'm trying to change the background color of my ActionBar as well as the title color. I must say I am using the support library.</p> <p>My styles are as follows.</p> <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light"&gt; &lt;!-- Customize your theme here. --&gt; &lt;item name="colorPrimary...
I'm trying to change the background color of my ActionBar as well as the title color. I must say I am using the support library. My styles are as follows. [CODE] And in styles-v21 [CODE] As you guys might see by the amount of attemps to change it, I am already losing my mind. Any clues as to how I can change the Action...
android
0
2016-04-28T14:52:45.243Z
2,016
4
14
3
749
1
404
57
1
2
true
false
false
false
false
false
zero
36,918,405
Referring to Realm.io FK objects by ID
<p>I'm trying to create a Realm database in Android that mirrors one I have in SQL Server. The idea is to update periodically the one on Android so that both have the same data.</p> <p>To keep it simple, let's assume I have three tables: Object, Color, Shape. My main table Object has this form:</p> <pre><code>ID ...
I'm trying to create a Realm database in Android that mirrors one I have in SQL Server. The idea is to update periodically the one on Android so that both have the same data. To keep it simple, let's assume I have three tables: Object, Color, Shape. My main table Object has this form: [CODE] where IDColor and IDShape r...
android|sql-server|xamarin|xamarin.android|realm
0
2016-04-28T14:57:35.577Z
2,016
4
14
3
106
2
862
38
5
2
true
false
false
false
false
false
zero
36,918,574
How to parse json with retrofit and gson asynchronously
<p>I have 1 request and can got 2 different responses: </p> <p><strong>When login and password are correct:</strong></p> <pre><code>{ "token": "token..", "expires": "2016-04-28T10:46:36+0000" } </code></pre> <p><strong>when wrong:</strong></p> <pre><code>{ "error": { "id": "0123456789", ...
I have 1 request and can got 2 different responses: When login and password are correct: [CODE] when wrong: [CODE] While correct it parsed successful, but when I got wrong response (wrong login or password) it return null (not parsed). Error.java [CODE] Auth.java [CODE] ApiRequests.java [CODE] Api.java [CODE] build.gra...
android|json|gson|retrofit|retrofit2
2
2016-04-28T15:05:09.103Z
2,016
4
15
3
633
1
330
55
5
7
true
false
false
false
false
false
low
36,918,575
How to post a message from a background service to a UI fragment?
<p>I have an issue with <code>EventBus</code> from Greenrobot.</p> <p>I was trying to post an event from a background service form my sync adapter and catch it in a fragment to update the UI.</p> <p>The problem is that when I try to post the event from sync adapter I have get the following in the debug log:</p> <pre...
I have an issue with EventBus from Greenrobot. I was trying to post an event from a background service form my sync adapter and catch it in a fragment to update the UI. The problem is that when I try to post the event from sync adapter I have get the following in the debug log: [CODE] I register fragment in onResume an...
android|android-fragments|android-syncadapter|event-bus|greenrobot-eventbus
5
2016-04-28T15:05:13.323Z
2,016
4
15
3
2,397
1
806
65
5
5
true
false
false
false
false
false
low
36,918,586
How to get count of rows after tomorrow?
<p>I have a SQLite database which has a table of tasks containing a column of dueDates. I want to filter out dates that are after tomorrow's date.</p> <p>If tomorrow's date is April 29th, I should get the dates after tomorrow. I want to get the number of tasks that are after tomorrow.</p> <p>For this I have converted...
I have a SQLite database which has a table of tasks containing a column of dueDates. I want to filter out dates that are after tomorrow's date. If tomorrow's date is April 29th, I should get the dates after tomorrow. I want to get the number of tasks that are after tomorrow. For this I have converted the string into a ...
android|sqlite
1
2016-04-28T15:05:37.567Z
2,016
4
15
3
58
2
468
40
2
2
true
false
false
false
false
false
low
36,918,651
Android studio error executing "am start" and cannot attach debugger
<p>When I click the run or debug icon in android studio I get the following error.</p> <pre><code>04/28 08:03:33: Launching app No local changes, not deploying APK $ adb shell am start -D -n "com.example.sam.errorline/com.example.sam.errorline.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUN...
When I click the run or debug icon in android studio I get the following error. [CODE] The app starts on the emulator but when I try to debug there is a dialog on the emulator that says it is waiting for a dubugger to attach. A debugger never attaches. Could it not be finding an activity? My manifest looks like this. [...
android|android-studio
1
2016-04-28T15:07:58.180Z
2,016
4
15
3
546
1
363
68
2
3
true
false
false
false
false
false
low
36,918,661
SearchView on ActionBar ignores theme setting of containing window
<p>I'm trying to style a SearchView in an ActionBar. I created a style specifically for the view that has the SearchView but even if I set the style on creation of the window with</p> <pre><code> "#windowid[platform=android]":{ theme:'customTheme' } </code></pre> <p>the SearchView actually ignores it. All the o...
I'm trying to style a SearchView in an ActionBar. I created a style specifically for the view that has the SearchView but even if I set the style on creation of the window with [CODE] the SearchView actually ignores it. All the other elements of the window are correcly coloured besides the SearchView. Any workaround? T...
android|themes|appcelerator|searchview
1
2016-04-28T15:08:19.967Z
2,016
4
15
3
163
0
1,028
66
4
3
true
true
false
false
false
false
low
36,918,690
How to display list result - searchView
<p>I want to implement the best way to implement a search. In my Activity I have two tabs with a list results and I have added a searchView in the toolbar where the user can type what he is looking for. is there a way to display a list result above my activity whit the results as in whatsapp?</p> <p><a href="https://i...
I want to implement the best way to implement a search. In my Activity I have two tabs with a list results and I have added a searchView in the toolbar where the user can type what he is looking for. is there a way to display a list result above my activity whit the results as in whatsapp? Below is the code I have but ...
android|searchview
0
2016-04-28T15:10:04.797Z
2,016
4
15
3
1,641
1
354
39
2
1
true
false
false
false
false
false
zero
36,918,803
GridView dosen't display image from web server
<p>I created an application that will get pictures and display it in a GridView. the image is base64 encode on data base and in my application I decode the image. I use jtds.jar library file to connect coma database the application works fine when the server is local when is on the web server, the images do not appear ...
I created an application that will get pictures and display it in a GridView. the image is base64 encode on data base and in my application I decode the image. I use jtds.jar library file to connect coma database the application works fine when the server is local when is on the web server, the images do not appear on ...
android
0
2016-04-28T15:14:17.990Z
2,016
4
15
3
33
1
588
46
1
3
true
false
false
false
false
false
zero
36,918,872
Cordova android javascript execution difficult
<p>I have some mysterious behaviour with my javascript code in my cordova android app. The javascript execution becomes anyhow not right executed. The intervals,conditions, timeouts and <code>clearTimeout</code> gets manipulated I think. You can see a demo <a href="https://jsfiddle.net/7hp4r6ga/4/" rel="nofollow">here<...
I have some mysterious behaviour with my javascript code in my cordova android app. The javascript execution becomes anyhow not right executed. The intervals,conditions, timeouts and clearTimeout gets manipulated I think. You can see a demo here In my browser without the phonegap ready all works well. What can cause th...
javascript|android|jquery|html|cordova
0
2016-04-28T15:17:34.217Z
2,016
4
15
3
44
0
404
46
5
2
true
true
false
false
false
false
zero
36,918,950
ACRA not catching exceptions (with parse.com custom ReportSender)
<p>I have added the latest ACRA:</p> <pre><code>compile 'ch.acra:acra:4.8.5' </code></pre> <p>Configured my App class according to docs:</p> <pre><code>@ReportsCrashes( reportSenderFactoryClasses = {com.github.dht.screenger.crash.ParseSenderfactory.class} ) ... @Override protected void attachBaseContext(Co...
I have added the latest ACRA: [CODE] Configured my App class according to docs: [CODE] Defined the Sender factory: [CODE] The sender: [CODE] And the ParseObject: [CODE] And yet ACRA does not catch an exception I send from the activity: [CODE] Did I forget something? UPDATE Made some progress. Saw the CrashReportParseOb...
java|android|acra
1
2016-04-28T15:20:58.773Z
2,016
4
15
3
157
0
711
65
3
7
true
true
false
false
false
false
low
36,919,040
tabalyout loses its animation(smooth scroll)
<p>I have a TabLayout which is connected to a ViewPager. each page of my ViewPager is a Fragment. at the first, when I tap on any tab, it smoothly scrolls to that tab and its related page gets visible but after doing the same work for all tabs, when I tap again on one of tabs, it jumps to that position and I can not se...
I have a TabLayout which is connected to a ViewPager. each page of my ViewPager is a Fragment. at the first, when I tap on any tab, it smoothly scrolls to that tab and its related page gets visible but after doing the same work for all tabs, when I tap again on one of tabs, it jumps to that position and I can not see a...
android|android-viewpager|android-tablayout
0
2016-04-28T15:24:47.677Z
2,016
4
15
3
70
0
511
44
3
2
true
true
false
false
false
false
zero
36,919,070
Long-Press Touchevents
<p>I have three buttons that are tapped based on touchevents in a certain boundary and I want to change it so that the tapevents can be a long-press instead of a tap. I'm not sure how to do this. Here is my relevant code:</p> <pre><code>private void updateRunning(List&lt;TouchEvent&gt; touchEvents, float deltaTime) { ...
I have three buttons that are tapped based on touchevents in a certain boundary and I want to change it so that the tapevents can be a long-press instead of a tap. I'm not sure how to do this. Here is my relevant code: [CODE] Input.java: [CODE] TouchHandler.java: [CODE] SingleTouchHandler: [CODE] How can I go about imp...
java|android
1
2016-04-28T15:25:44.370Z
2,016
4
15
3
46
1
341
22
2
4
true
false
false
false
false
false
low
36,919,229
Converting bitmap to byte and vice versa
<p>I am currently reading an image from gallery in Bitmap format. When saving it to the database I need to convert it into byte whilst in the Image Adapter class I need to convert it to bitmap. </p> <p>The following is the code: - converting to byte in order to store it in database</p> <pre><code> public void submitA...
I am currently reading an image from gallery in Bitmap format. When saving it to the database I need to convert it into byte whilst in the Image Adapter class I need to convert it to bitmap. The following is the code: - converting to byte in order to store it in database [CODE] Code in imageAdapter class - convert the ...
android|android-studio|nullpointerexception
1
2016-04-28T15:32:15.173Z
2,016
4
15
3
3,089
1
502
40
3
2
true
false
true
false
false
false
low
36,919,239
I cannot figure out how to correctly use notifyDataSetChanged within my app
<p>I have an app that uses a ViewPager and Fragments to create tabs.</p> <p>Within my app, I have a chat function. Whenever a chat is received or sent, it is stored in a table of the database. The received chats are coming in on a different thread, and the user's chats are being entered into an EditText window in the ...
I have an app that uses a ViewPager and Fragments to create tabs. Within my app, I have a chat function. Whenever a chat is received or sent, it is stored in a table of the database. The received chats are coming in on a different thread, and the user's chats are being entered into an EditText window in the Chat fragme...
android|listview|android-fragments|simplecursoradapter
2
2016-04-28T15:32:34.650Z
2,016
4
15
3
367
1
2,352
75
4
4
true
false
false
false
false
false
low
36,919,299
Android SharedPreference not being stored
<p>I'm experiencing an issue when retrieving a "just stored" preference. Here's the simplified scenario and relevant code</p> <p>Fragment #1 </p> <pre><code>private SharedPreferences mPreferences public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ... mPreferen...
I'm experiencing an issue when retrieving a "just stored" preference. Here's the simplified scenario and relevant code Fragment #1 [CODE] Fragment #2 [CODE] 1) Both fragments are added to the activity on the Activity.onCreate method and the fragments 2) Fragment #1 stores a SharedPreference and sends an bus event to Fr...
android|android-fragments|sharedpreferences
2
2016-04-28T15:35:25.633Z
2,016
4
15
3
123
2
706
41
3
2
true
false
false
false
false
false
low
36,919,570
Android datepicker not remembering the last date selected
<p>I managed to make a datepicker dialogue into my app but I'm in a problem. When I select a date on the datepicker dialogue it do not remember that date. So, if I open that dialogue again it show me the system date as I opened for the first. Can anyone help me in this matter?</p> <p>I'm attaching my code as well:</p>...
I managed to make a datepicker dialogue into my app but I'm in a problem. When I select a date on the datepicker dialogue it do not remember that date. So, if I open that dialogue again it show me the system date as I opened for the first. Can anyone help me in this matter? I'm attaching my code as well: [CODE]
android|datepicker|android-datepicker
2
2016-04-28T15:48:17.593Z
2,016
4
15
3
368
1
312
57
3
1
true
false
false
false
false
false
low
36,919,672
Android: How to save EditText converted to Array values and load them back in place
<p>As a person who's new to Android programming, I have finally completed most of the functions I want my app to have except for the save/load system. (Although I still have to design the interface.)</p> <p>Before I proceed, here is my code for the save button:</p> <pre><code>saveList.setOnClickListener(new View.OnCl...
As a person who's new to Android programming, I have finally completed most of the functions I want my app to have except for the save/load system. (Although I still have to design the interface.) Before I proceed, here is my code for the save button: [CODE] Now, what I want to learn (know) is the method/code on how to...
android|android-edittext|save|load
0
2016-04-28T15:52:25.423Z
2,016
4
15
3
1,231
1
713
83
4
2
true
false
false
false
false
false
zero
36,919,688
Xamarin Android Mapping Java.Lang.Enum to C# Enum
<p>In java I have the enum </p> <pre class="lang-java prettyprint-override"><code>package com.acme.common; // In java world public enum FooEnum { AValue, AnotherValue } </code></pre> <p>This is used throughout the code in Java, e.g. </p> <pre class="lang-java prettyprint-override"><code>// In java world pub...
In java I have the enum [CODE] This is used throughout the code in Java, e.g. [CODE] This is getting mapped to a class in C# which inherits Java.Lang.Enum as follows: [CODE] I would like to map this to a C# enum instead using the EnumFields.xml, but no idea how to. I googled Xamarin Android EnumFields and found a few r...
xamarin|xamarin.android
5
2016-04-28T15:53:10.420Z
2,016
4
15
3
1,465
1
424
49
2
3
true
false
false
false
false
false
low
36,919,697
Android Bluetooth connection error
<p>I'm developing a bluetooth app to control an Arduino board, but now I made some mistakes: when I try to make a connection from my phone, it displays an <code>AlertDialog</code> (it is OK) and a lot of Toasts (they're called from <code>onSensorChanged</code>). The BT module connected to the board is OK (tested with o...
I'm developing a bluetooth app to control an Arduino board, but now I made some mistakes: when I try to make a connection from my phone, it displays an AlertDialog (it is OK) and a lot of Toasts (they're called from onSensorChanged ). The BT module connected to the board is OK (tested with other apps), so the problem i...
java|android|android-studio|bluetooth
0
2016-04-28T15:53:26.200Z
2,016
4
15
3
1,135
1
462
34
4
1
true
false
false
false
false
false
zero
36,919,796
Stop views overlapping horizontally in a relative layout
<p>I have two views, a day view and a event view as part of a calendar. I want my events to fill the day view in width (which is working) but when I add another at the same position/time I want them to split the width... I am adding my event dynamically using java. Is there an attribute I can use so that views don't ov...
I have two views, a day view and a event view as part of a calendar. I want my events to fill the day view in width (which is working) but when I add another at the same position/time I want them to split the width... I am adding my event dynamically using java. Is there an attribute I can use so that views don't overl...
android|views|android-relativelayout
0
2016-04-28T15:57:40.983Z
2,016
4
15
3
108
2
339
56
3
2
true
false
false
false
false
false
zero
36,919,835
GSON help/Connecting to a web service (Android Studio)
<p>I am new to Android application building. I am trying to figure out how to send a response to a web service and validate the data. Here is my code:</p> <hr> <p>LoginUser.java</p> <pre><code>import org.json.JSONException; import org.json.JSONObject; import android.app.ProgressDialog; import android.content.Intent...
I am new to Android application building. I am trying to figure out how to send a response to a web service and validate the data. Here is my code: LoginUser.java [CODE] I also created a DTO but I am not sure if it is necessary or not but here is: LoginUserDTO.java [CODE] I also have the internet permission in my Andro...
java|android|json|gson
1
2016-04-28T15:59:31.090Z
2,016
4
15
3
624
2
449
54
4
3
true
false
false
false
false
false
low
36,919,925
Android ListView with some items shown and Show More button
<p>I'm finding it hard to search for what I'm looking for so I thought I'd try and explain it here. I currently have a Custom ListView within a ScrollView. Each ListView item contains the Branch details for a shop, i.e. street address, city, phone. I've used the <code>setListViewHeightBasedOnChildren</code> function s...
I'm finding it hard to search for what I'm looking for so I thought I'd try and explain it here. I currently have a Custom ListView within a ScrollView. Each ListView item contains the Branch details for a shop, i.e. street address, city, phone. I've used the setListViewHeightBasedOnChildren function shown below to get...
java|android|listview
1
2016-04-28T16:03:54.297Z
2,016
4
16
3
698
0
1,293
59
3
4
true
true
false
false
false
false
low
36,919,933
Android: Alternative for SYSTEM_ALERT_WINDOW to display an overlay across app activities
<p>I would like to add a chat feature in my app that would be available across all activities - you can start a chat within one activity and keep it live when changing activities.</p> <p>Before Android M (6.0 - API 23), I was able to add the following permission in the app manifest:</p> <pre><code>&lt;uses-permission...
I would like to add a chat feature in my app that would be available across all activities - you can start a chat within one activity and keep it live when changing activities. Before Android M (6.0 - API 23), I was able to add the following permission in the app manifest: [CODE] And create a view above all others usin...
android|android-6.0-marshmallow
2
2016-04-28T16:04:04.250Z
2,016
4
16
3
454
0
760
88
2
2
true
true
false
false
false
false
low
36,920,021
Parse the following XML using Retrofit SimpleXml-Converter with a POJO class
<p>This is my xml structure</p> <pre><code>&lt;downloads&gt; &lt;item&gt;98cfa929ee93149e245aabf5e4377058&lt;/item&gt; &lt;item&gt;498b513aa646d6ef1c407cbeabf6bd20&lt;/item&gt; &lt;item&gt;13815d2c0dd53a251bb53717b9f43b64&lt;/item&gt; &lt;item&gt;7a0615eb601264bbae0ad510a31fd61d&lt;/item&gt; &lt;item&gt;3157910f72705e...
This is my xml structure [CODE] and the details xml [CODE] This is what I want to retrieve from the server and convert the above xml to it. [CODE] Here is the class that should represent the item elements. [CODE] I am confused on how to get an a list of the items elements. I can't seem to find a way to make the items a...
android|xml|xml-parsing|retrofit2
0
2016-04-28T16:08:17.330Z
2,016
4
16
3
3,457
1
416
76
4
4
true
false
true
false
false
false
zero
36,920,062
ValueAnimator does not work how it should. Restarts from 0 instead of from 1st value
<p>This is my code:</p> <pre><code> public static void countTextViewTravelMode(final Integer value, final TextView myView, final CrudStateCallback back){ Integer begin = 0; try { begin = Integer.parseInt(myView.getText().toString()); }catch (Exception e){ Log.e("","error trying to get value...
This is my code: [CODE] This is being called once when the activity is called, and once after the Api call to get the new data is done. First time it goes from 0 to the correct value. Second time, it goes back to 0, starts from 0, and always stops at a random number, that is smaller than the wanted number. How can I ma...
android|textview|objectanimator|animator|evaluator
0
2016-04-28T16:10:29.920Z
2,016
4
16
3
1,701
1
380
84
5
1
true
false
false
false
false
false
zero
36,920,110
Scroll up Relative Layout when scrolling up listview
<p>I'm creating an application. and the user information is shown in a relative layout. Under the relative layout is a listview with items the user created. I want if you scroll down in the List View that the Relative Layout scroll up and eventually disappeared, and the list view is stretched over the whole screen.</p>...
I'm creating an application. and the user information is shown in a relative layout. Under the relative layout is a listview with items the user created. I want if you scroll down in the List View that the Relative Layout scroll up and eventually disappeared, and the list view is stretched over the whole screen. Like y...
java|android|listview
0
2016-04-28T16:12:44.637Z
2,016
4
16
3
121
1
440
52
3
1
true
false
false
false
false
false
zero
36,920,138
json Array Parsing using Gson
<p>i have the following Json Response as :</p> <p>{"StatusCode":2,"Error_fields":[{"user":"XXX"},{"password":"YYY"}]}, and i have to parse that response using Gson, so i have built the ResponseBase class as following :</p> <p>BaseResponse.java</p> <pre><code> @SerializedName("StatusCode") private int StatusCo...
i have the following Json Response as : {"StatusCode":2,"Error_fields":[{"user":"XXX"},{"password":"YYY"}]}, and i have to parse that response using Gson, so i have built the ResponseBase class as following : BaseResponse.java [CODE] and Also i have added the Error Fields as : ErrorField.java [CODE] so in order , to re...
android|json|parsing|gson
-1
2016-04-28T16:14:00.813Z
2,016
4
16
3
41
1
730
29
4
3
true
false
false
false
false
true
negative
36,920,255
Does Immortal Object really exist?
<p>In this article: <a href="https://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#weakreferences" rel="nofollow noreferrer">Xamarin - Use Weak References to Prevent Immortal Objects</a> It says that if two objects strong reference each other, they will become ...
In this article: Xamarin - Use Weak References to Prevent Immortal Objects It says that if two objects strong reference each other, they will become imortal, meaning the GC cannot collect them, even if the objects are no longer in use by the application. However, in these 2 SO discussions: Garbage collector and circula...
java|c#|android|xamarin|garbage-collection
4
2016-04-28T16:19:02.003Z
2,016
4
16
3
372
3
624
34
5
0
false
false
false
false
false
false
low
36,920,272
Android NavigationView dual textColor
<p>I am trying to have a navigation view with two groups where the first group textColor is black and the second group is a lightGrey.</p> <p>I seem to only be able to specify a single color in the NavigationView xml configuration.</p> <p>Is there a way to override this behaviour?</p> <p>My navigation view menu:</p>...
I am trying to have a navigation view with two groups where the first group textColor is black and the second group is a lightGrey. I seem to only be able to specify a single color in the NavigationView xml configuration. Is there a way to override this behaviour? My navigation view menu: [CODE] And this is the theme p...
android
0
2016-04-28T16:20:05.157Z
2,016
4
16
3
38
1
357
37
1
2
true
false
false
false
false
false
zero
36,920,323
Application crashes when pressed on SQLite retrieve button
<p>i tried to make an application with SQLite database. I made everything like in this tutorial <a href="https://www.youtube.com/watch?v=d_PjDM4nFxI" rel="nofollow">https://www.youtube.com/watch?v=d_PjDM4nFxI</a> but i changed "players" to "books" and didn't add the "position". Application turns on, but it crashes ("Un...
i tried to make an application with SQLite database. I made everything like in this tutorial https://www.youtube.com/watch?v=d_PjDM4nFxI but i changed "players" to "books" and didn't add the "position". Application turns on, but it crashes ("Unfortunately, Library has stopped") when pressed on Retrieve button. Maybe so...
java|android|sqlite
1
2016-04-28T16:22:47.103Z
2,016
4
16
3
41
1
413
58
3
3
true
false
false
false
false
false
low
36,920,335
How can get coordinate of the position which I am clicking in the map
<p>I want when I am clicking a long click on my map I will get the coordinates of the position which I am clicking in the map this is my code:</p> <pre><code> public class MapActivity extends Activity { MapView mapView; TileCache tileCache; LatLong myLocation; TileRendererLayer tileRendererLayer; ...
I want when I am clicking a long click on my map I will get the coordinates of the position which I am clicking in the map this is my code: [CODE] Hw can I do that? I and am using open street map please help me!!
java|android
0
2016-04-28T16:23:27.480Z
2,016
4
16
3
41
0
212
69
2
1
true
true
false
false
false
false
zero
36,920,386
Backendless - Android: Removing an object from list
<p>I want to remove a user from a List but it seems that it isn't working. I have a Feeds.class in my project where I have:</p> <pre><code>public class Feeds { private List&lt;BackendlessUser&gt; usersThatLike; public List&lt;BackendlessUser&gt; getUsersThatLike() { return usersThatLike; } public void setUsersThatLi...
I want to remove a user from a List but it seems that it isn't working. I have a Feeds.class in my project where I have: [CODE] And in my adapter I try to remove the Current user like this: [CODE] And than save the Feeds class and in handleResponse I print the list as string in the log window and the current user is st...
android|list|backendless
0
2016-04-28T16:26:25.087Z
2,016
4
16
3
199
0
408
51
3
3
true
true
false
false
false
false
zero
36,920,615
java.io.FileNotFoundException while creating Bitmap from a File Object on Android
<p>I get an Object containing a File:</p> <pre><code>public class Ordo implements java.io.Serializable{ static final long serialVersionUID = 11223344; public String id; public String name; public String date; public String status; public File thumbnail; </code></pre> <p>and I need to convert this File into a Bitmap...
I get an Object containing a File: [CODE] and I need to convert this File into a Bitmap to be viewed on an Activity. I'm doing the following: [CODE] but I get the following error: 04-28 18:16:16.759: W/System.err(31995): java.io.FileNotFoundException: 1461854326445.png: open failed: ENOENT (No such file or directory) 0...
java|android
0
2016-04-28T16:37:49.837Z
2,016
4
16
3
427
1
2,091
81
2
2
true
false
false
false
false
false
zero