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,783,534
How to go to a new activity from a pop up?
<p>I created a pop up to confirm a package and when the user selects the "confirm" button it should take the user to another activity but it is not working properly.</p> <p>Here is my code:</p> <pre><code>switch (v.getId()) { case R.id.button_solicitar: AlertDialog.Builder builder = new AlertDialo...
I created a pop up to confirm a package and when the user selects the "confirm" button it should take the user to another activity but it is not working properly. Here is my code: [CODE]
java|android|android-studio
1
2016-04-22T02:05:20.353Z
2,016
4
2
4
138
4
186
42
3
1
true
false
false
false
false
false
low
36,783,554
MediaPlayer: Error (1,-2147483648) in Cordova 6.1.1 with Phaser 2.4.6
<p>I am trying to play audio files on an Android game built with Cordova 6.1.1 and Phaser.io 2.4.6. The media will not play on Android versions less than API 21 or so, and gives the error</p> <pre><code>04-21 21:48:57.546 9659-9671/com.jtronlabs.birdu E/MediaPlayer: error (1, -2147483648) 04-21 21:48:57.546 9659-9672/...
I am trying to play audio files on an Android game built with Cordova 6.1.1 and Phaser.io 2.4.6. The media will not play on Android versions less than API 21 or so, and gives the error [CODE] I have read some SO answers, and nothing has helped. I load in audio using Phaser's Loader class: [CODE] ... [CODE] This works i...
android|cordova|audio|mobile|phaser-framework
0
2016-04-22T02:07:57.357Z
2,016
4
2
4
319
1
823
69
5
4
true
false
false
false
false
false
zero
36,783,618
How To See If One Date Is Newer Than Another
<p>Hello I think I have a very simple question but i'm having trouble figuring it out.</p> <p>I Got the Date and Time In Android using this code </p> <pre><code>String currentDateTimeString = DateFormat.getDateInstance().format(new Date()); </code></pre> <p>It gave me back this value </p> <pre><code>Apr 21, 2016 9:...
Hello I think I have a very simple question but i'm having trouble figuring it out. I Got the Date and Time In Android using this code [CODE] It gave me back this value [CODE] how do I compare using to dates with that value so if I want to see if [CODE] is newer or older than [CODE] How would I check that Thanks Attemp...
android|date|time
0
2016-04-22T02:15:38.863Z
2,016
4
2
4
37
1
535
44
3
6
true
false
false
false
false
false
zero
36,783,634
How to use DialogFragment for Date Picker in Fragment (onCreateDialog not used)
<p>I have done a little research in DialogFragment and using it a Fragment as onCreate Dialog does not work. I understand that there is this documentation</p> <p><a href="http://developer.android.com/reference/android/app/DialogFragment.html#AlertDialog" rel="nofollow">http://developer.android.com/reference/android/ap...
I have done a little research in DialogFragment and using it a Fragment as onCreate Dialog does not work. I understand that there is this documentation http://developer.android.com/reference/android/app/DialogFragment.html#AlertDialog Although I am new to Android Programming and it is not easy to understand the code in...
android|android-fragments|android-studio|android-dialogfragment
0
2016-04-22T02:17:17.920Z
2,016
4
2
4
256
0
420
79
4
1
true
true
false
false
false
false
zero
36,783,714
How to declare activity of a custom library in the manifest
<p>I try to call an activity from a library via intent. However I was unable to correct the error of the manifest declaration. I'm using Eclipse and I look for sources Android but the doc has changed, all the examples back on this damned page: <a href="http://developer.android.com/tools/help/adt.html" rel="nofollow">ht...
I try to call an activity from a library via intent. However I was unable to correct the error of the manifest declaration. I'm using Eclipse and I look for sources Android but the doc has changed, all the examples back on this damned page: http://developer.android.com/tools/help/adt.html Can you please, explain me how...
android|android-manifest|android-library
2
2016-04-22T02:24:56.990Z
2,016
4
2
4
2,489
1
1,055
59
3
3
true
false
false
false
false
false
low
36,783,787
Translate Animation coordinates issues multiple devices
<p>I want to translate an object from the center of my screen to the top left corner of my screen.</p> <p>I want the translate anim to be same on all devices currently the translate values i give are different on different devices[after animation position of object is different].</p> <p>Is there a way to translate a...
I want to translate an object from the center of my screen to the top left corner of my screen. I want the translate anim to be same on all devices currently the translate values i give are different on different devices[after animation position of object is different]. Is there a way to translate and pass values which...
android|animation
0
2016-04-22T02:34:02.110Z
2,016
4
2
4
1,483
3
388
55
2
1
true
false
false
false
false
false
zero
36,783,873
Why doesn't my state-list-drawable applied to an ImageView use the drawable for pressed-state when I touch the ImageView?
<p>I have my <code>ImageView</code> defined in XML like this:</p> <pre><code>&lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/fragment_imageView" android:src="@drawable/ic_photo" android:background="@drawable/button_state_li...
I have my ImageView defined in XML like this: [CODE] The button_state_list_drawable.xml is: [CODE] The button_pressed_state_drawable.xml is: [CODE] The button_enabled_state_drawable.xml is: [CODE] The problem is that when I click/touch the ImageView , the button_pressed_state_drawable does not seem to be used, i.e. I c...
android|imageview|android-drawable|xml-drawable|statelistdrawable
3
2016-04-22T02:43:51.530Z
2,016
4
2
4
1,968
2
542
121
5
4
true
false
false
false
false
false
low
36,783,876
Convert UTF-8 code (e.g., E052E472E04F) to text
<p>I'm working with some resource I found online which contains UTF-8 codes instead of real texts (since it's Arabic), and I have no idea at all how do I convert this into real texts in Java.</p> <p>For example:</p> <blockquote> <p>breakme~E052E472E04FE46CE04EE051E46F0020E027E04BE43EE052E484E04EE4370020E052E027E47E...
I'm working with some resource I found online which contains UTF-8 codes instead of real texts (since it's Arabic), and I have no idea at all how do I convert this into real texts in Java. For example: breakme~E052E472E04FE46CE04EE051E46F0020E027E04BE43EE052E484E04EE4370020E052E027E47EE04FE478E050E473E412E04EE4630020E0...
java|android|utf-8
0
2016-04-22T02:44:22.303Z
2,016
4
2
4
121
1
716
47
3
1
true
false
false
false
false
false
zero
36,783,932
How do I make signOut Google+ in onNavigationItemSelected
<p>I'm doing Sign In with Google+ that leads to the Navigation.activity. Ive follow the instruction on Google developer but I only took signIn method(Success) but now im stuck at navigation.activity. How do i make logout from navigationItemSelected? </p> <p>What is the problem : Google plus signIn in Main Activity bu...
I'm doing Sign In with Google+ that leads to the Navigation.activity. Ive follow the instruction on Google developer but I only took signIn method(Success) but now im stuck at navigation.activity. How do i make logout from navigationItemSelected? What is the problem : Google plus signIn in Main Activity but need to Log...
java|android
1
2016-04-22T02:48:47.257Z
2,016
4
2
4
72
1
465
57
2
3
true
false
false
false
false
false
low
36,783,988
Navigating back to Parent activity with toolbar
<p>so to break it down.</p> <p>I have two activites: A main activity and a subactivity.</p> <p>When I am in the subactivity, I want to press the return home button on the toolbar and return back home. </p> <p>I tried putting android.support.PARENT_ACTIVITY in manifest, but I still couldn't get it to work. Maybe I'm ...
so to break it down. I have two activites: A main activity and a subactivity. When I am in the subactivity, I want to press the return home button on the toolbar and return back home. I tried putting android.support.PARENT_ACTIVITY in manifest, but I still couldn't get it to work. Maybe I'm not seeing something obvious...
android|android-manifest|android-toolbar
2
2016-04-22T02:54:12.927Z
2,016
4
2
4
2,777
5
702
47
3
2
true
false
true
false
false
false
low
36,784,038
How to determine if to print or not to print out data in a array list based on if the same value has been printed before
<p>I have look for a while and worked on this but I just can't figure out the best way of doing this. So in my android app i have two arraylist. One that holds the days and another that holds items that were bought on those days. What I want to do is to print this out into a textview for display. I am thinking of usin...
I have look for a while and worked on this but I just can't figure out the best way of doing this. So in my android app i have two arraylist. One that holds the days and another that holds items that were bought on those days. What I want to do is to print this out into a textview for display. I am thinking of using a ...
java|android|arrays|arraylist
-1
2016-04-22T03:02:02.807Z
2,016
4
3
4
30
1
753
120
4
3
true
false
false
false
false
true
negative
36,784,044
ViewPager and Fragment not attached
<p>I am trying to implement tab view with fragment but my fragment didn't appear. I had already linked it with viewpager.But still didn't work.</p> <p>This my MainActivity</p> <pre><code>package com.example.minkhantlu.timetableapp; import android.support.design.widget.TabLayout; import android.support.v4.content.Cont...
I am trying to implement tab view with fragment but my fragment didn't appear. I had already linked it with viewpager.But still didn't work. This my MainActivity [CODE] } Tried with this viewPagerAdapter [CODE] } my fragment [CODE] } fragment xml [CODE] activity_main.xml [CODE] But my fragment didn't appear, plz help m...
android
1
2016-04-22T03:02:26.977Z
2,016
4
3
4
1,822
4
332
35
1
5
true
false
false
false
false
false
low
36,784,154
Android Edittext shift text instead of newline effect when inserting more text
<p>I need to change the default effect of edittext when it doesn't have enough space to add more text.</p> <p><a href="https://i.stack.imgur.com/e93LM.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e93LM.gif" alt="enter image description here"></a></p> <p>but in my case I have defined fixed height...
I need to change the default effect of edittext when it doesn't have enough space to add more text. but in my case I have defined fixed height and width to the edittext. Therefore it disappears the previous text when inserting more text. Since this is inconvenient to the users, it is better if I can change this effect ...
android|android-edittext
0
2016-04-22T03:12:16.840Z
2,016
4
3
4
84
1
433
78
2
0
false
false
false
false
false
false
zero
36,784,160
Saving multiple files with the same name to android internal storage and displaying them in a list view in a different activity
<p>Trying to get a list of files so that I can name the next file based on how many are already there. The idea is similar to downloading multiple files with the same name. Eg:</p> <p>filename.txt</p> <p>filename(1).txt</p> <p>filename(2).txt</p> <p>etc...</p> <p>this is the current method I am using, which return...
Trying to get a list of files so that I can name the next file based on how many are already there. The idea is similar to downloading multiple files with the same name. Eg: filename.txt filename(1).txt filename(2).txt etc... this is the current method I am using, which returns a list of strings. [CODE] Once I have the...
java|android|json|listview|internal-storage
3
2016-04-22T03:13:00.183Z
2,016
4
3
4
2,197
0
1,208
127
5
3
true
true
false
false
false
false
low
36,784,195
Select Where date is greater than or equal to today in SQLite
<p>I have dates stored in my Database in a <code>dd/mm/yyyy</code> format and I am looking to only show items where the date is equal to or great than today.</p> <p>I have tried WHERE <code>date(fixtures.date) &gt;= date('now')</code> but I got no results.</p> <p>Below is my query, any help would be greatly appreciat...
I have dates stored in my Database in a dd/mm/yyyy format and I am looking to only show items where the date is equal to or great than today. I have tried WHERE date(fixtures.date) >= date('now') but I got no results. Below is my query, any help would be greatly appreciated [CODE]
android|sqlite|android-studio|android-sqlite
12
2016-04-22T03:16:37.997Z
2,016
4
3
4
15,245
1
281
61
4
1
true
false
true
true
true
false
medium
36,784,472
Saving a bitmap file in android and reading back to display in Imageview
<p>I have a bitmap file which i need to upload to my php server but as the file is very large I decided to resize it and save it. Later on I try to read it back to display resized image. But this time I am not getting the same image Below is code for writing image and returning File</p> <pre><code>public static File s...
I have a bitmap file which i need to upload to my php server but as the file is very large I decided to resize it and save it. Later on I try to read it back to display resized image. But this time I am not getting the same image Below is code for writing image and returning File [CODE] Below is code for reading and di...
android|bitmap
-1
2016-04-22T03:49:18.343Z
2,016
4
3
4
979
1
383
72
2
2
true
false
false
false
false
true
negative
36,784,551
How to query all the download item from the system DownloadProvider?
<p>is there any method to query all the download item from the system downloadprovider,i do this like that,but it need the permission:android.permission.ACCESS_ALL_DOWNLOADS,and worstly,this permission is in signature level,i can't get this permission,is there other solution to do this.And i just want to develop an app...
is there any method to query all the download item from the system downloadprovider,i do this like that,but it need the permission:android.permission.ACCESS_ALL_DOWNLOADS,and worstly,this permission is in signature level,i can't get this permission,is there other solution to do this.And i just want to develop an app to...
android|android-download-manager
0
2016-04-22T03:57:03.473Z
2,016
4
3
4
427
1
377
68
2
1
true
false
false
false
false
false
zero
36,784,585
ERROR in sqlite database connectivity
<p>kindly help me resolve the error. I am getting this error in Android Studio. I am new to android development. Problem with Registration..not able to insert data into database. The error is:</p> <pre><code>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.da...
kindly help me resolve the error. I am getting this error in Android Studio. I am new to android development. Problem with Registration..not able to insert data into database. The error is: [CODE] DB_Connectivity [CODE] Logcat [CODE] on click [CODE]
java|android|sqlite
-1
2016-04-22T04:02:06.623Z
2,016
4
4
4
120
1
249
37
3
4
true
false
false
false
false
true
negative
36,784,656
Boolean show null reference exception
<p>i tried many time but all actually i am creating a setting page i mean a setting button where to handle the on and off in the application class where i extends from the application it show me the Boolean reference null exception. the following is the manifest.</p> <pre><code> &lt;application android...
i tried many time but all actually i am creating a setting page i mean a setting button where to handle the on and off in the application class where i extends from the application it show me the Boolean reference null exception. the following is the manifest. [CODE] and this is the java class. [CODE] and the setting.j...
android|nullpointerexception
-1
2016-04-22T04:08:55.880Z
2,016
4
4
4
97
1
337
37
2
3
true
false
false
false
false
true
negative
36,784,663
Requesting multiple Bluetooth permissions in Android Marshmallow
<p>I'm developing an app with connectivity which connects to a Bluetooth device with SDK 23 as compile with. I'm having problems with requesting multiple permissions for Bluetooth. This is what I have done so far:</p> <pre><code>@Override public void onStart() { super.onStart(); if (D) Log.e(TAG, "++ O...
I'm developing an app with connectivity which connects to a Bluetooth device with SDK 23 as compile with. I'm having problems with requesting multiple permissions for Bluetooth. This is what I have done so far: [CODE] Although I'm able to get the dialogue box for requesting enabling the Bluetooth, I don't get the secon...
android|bluetooth|permissions|android-6.0-marshmallow
6
2016-04-22T04:10:04.833Z
2,016
4
4
4
18,823
1
571
64
4
2
true
false
true
true
false
false
medium
36,784,713
How to refresh fragment from out of activity or fragment but from baseAdapter class
<p>I have some problem. when I click a delete(btnPlus.setOnClickListener in the interestAdepter class) button from listview baseAdapter, I want to refresh the fragment which contains the listview.</p> <p>1.InterestAdapter class{edtied}</p> <pre><code> public class InterestAdapter extends BaseAdapter{ priva...
I have some problem. when I click a delete(btnPlus.setOnClickListener in the interestAdepter class) button from listview baseAdapter, I want to refresh the fragment which contains the listview. 1.InterestAdapter class{edtied} [CODE] 2.InterestFragment{edited} [CODE] Is there any way to refresh the fragment from the but...
android
1
2016-04-22T04:15:51.283Z
2,016
4
4
4
269
2
502
83
1
2
true
false
false
false
false
false
low
36,784,727
Android: How to programmatically set longclickable of a view to true while keeping its clickable false?
<p>I have a view that initially starts like this in the xml:</p> <pre><code>&lt;ImageButton android:layout_width="64dp" android:layout_height="64dp" android:id="@+id/likeBtn" android:src="@drawable/like" android:onClick="like" android:longClickabl...
I have a view that initially starts like this in the xml: [CODE] and I already have a setOnLongClickListenter in the OnCreate of mainActivity, like this: [CODE] My problem is: when I run a code like that [CODE] I found that the view becomes clickable also as well !! I need it to be ONLY LongClickable and NOT clickable ...
android|clickable|onlongclicklistener
3
2016-04-22T04:16:35.613Z
2,016
4
4
4
2,465
4
601
103
3
3
true
false
false
false
false
false
low
36,784,772
Can't send a lot of variables from android to server
<p>i have a problem with my android studio. i have a lot of variables(76 variables) in my android when i want to sent them to server i have problem. It can't send data to my server. but when i try to reduce the variable became 2 variable it work. can explain about that?</p> <pre><code>private void orderproses(String m...
i have a problem with my android studio. i have a lot of variables(76 variables) in my android when i want to sent them to server i have problem. It can't send data to my server. but when i try to reduce the variable became 2 variable it work. can explain about that? [CODE] `
php|android|server
0
2016-04-22T04:21:50.703Z
2,016
4
4
4
49
1
276
52
3
1
true
false
false
false
false
false
zero
36,784,827
Surface Texture object is not getting the frames from a Surface Class
<p>On the one hand, I have a Surface Class which when instantiated, automatically initialize a new thread and start grabbing frames from a streaming source via native code based on FFMPEG. Here is the main parts of the code for the aforementioned Surface Class:</p> <pre><code> public class StreamingSurface extends Sur...
On the one hand, I have a Surface Class which when instantiated, automatically initialize a new thread and start grabbing frames from a streaming source via native code based on FFMPEG. Here is the main parts of the code for the aforementioned Surface Class: [CODE] In my MainActivity class, I instantiated this class in...
android|opengl-es|ffmpeg|textures|surface
1
2016-04-22T04:28:32.170Z
2,016
4
4
4
486
0
1,133
69
5
2
true
true
false
false
false
false
low
36,784,877
How to get count in first activity for shopping cart?
<pre><code>@EBean public class CartDB { @OrmLiteDao(helper = DatabaseHelper.class, model = Cart.class) CartDao cartDao; public Cart getCart() { return cartDao.getCart()} public String count(){ long count =0; try { count= cartDao.countOf(); } catch (SQLException e) { e.printStackTrace(...
[CODE] In my second Activity onCreate() I call Count method [CODE] than count method return data , but In my first activity onCreate() I call count method [CODE] nullpointer exeption and my app crashes Note: retrieving data from Sqlite database
android|android-studio|ormlite
2
2016-04-22T04:34:11.743Z
2,016
4
4
4
303
1
244
53
3
3
true
false
false
false
false
false
low
36,785,014
The number of method references in a .dex file cannot exceed 64k API 17
<p>I am building an app with SugarORM Library but when I try to build the project for API 17 (didn't check for others) it shows build error.</p> <pre><code> Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :a...
I am building an app with SugarORM Library but when I try to build the project for API 17 (didn't check for others) it shows build error. [CODE] But when I build this project for android v5.0 or above, it works fine. If I remove SugarORM gradle dependency it works fine for both devices v4.2.2 and v5.0.
android|gradle|android-gradle-plugin|android-multidex|sugarorm
222
2016-04-22T04:46:34.863Z
2,016
4
4
4
198,964
16
303
71
5
1
true
false
true
true
true
false
high
36,785,027
How can I get long value of event Id from Event object?
<p>I was using Google Calendar API to get the events. After I got the events,the Event object doesn't contain long value of event id. I want to use the event id for view event details via Google Calendar app.</p> <p>Can anyone tell me how to do that?</p> <pre><code> compile('com.google.apis:google-api-services-calen...
I was using Google Calendar API to get the events. After I got the events,the Event object doesn't contain long value of event id. I want to use the event id for view event details via Google Calendar app. Can anyone tell me how to do that? [CODE] I was using the method, but I think that is not a good practice. [CODE]
android|google-calendar-api
1
2016-04-22T04:47:30.620Z
2,016
4
4
4
103
0
319
55
2
2
true
true
false
false
false
false
low
36,785,112
How to change andorid layout as per image given below
<p>Currently my listview design looks like <a href="https://i.stack.imgur.com/NLBBW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NLBBW.jpg" alt="enter image description here"></a></p> <p>But I want to make it look like below image <a href="https://i.stack.imgur.com/oXF1o.jpg" rel="nofollow noref...
Currently my listview design looks like But I want to make it look like below image Where image will be on right hand side, title in Bold and Subtitle just below it. What changes do I need to make in my layout, Below is my code. Thanks in advance. [CODE]
android
0
2016-04-22T04:54:09.043Z
2,016
4
4
4
107
4
254
53
1
1
true
false
false
false
false
false
zero
36,785,169
Nativescript xml template not refreshing cache issue
<p>so I ran into the following issue.</p> <p>Sometimes when changing an XML template and getting an error for one reason or another (running the livesync with genymotion), even removing the file content entirely would not reset the file on compilation.</p> <p>my package.json:</p> <pre><code>"nativescript": { "id...
so I ran into the following issue. Sometimes when changing an XML template and getting an error for one reason or another (running the livesync with genymotion), even removing the file content entirely would not reset the file on compilation. my package.json: [CODE] Example: file.xml [CODE] For some reason, after addin...
android|xml|caching|nativescript
5
2016-04-22T04:59:15.367Z
2,016
4
4
4
586
0
686
52
4
3
true
true
false
false
false
false
low
36,785,175
Infinite background animation
<p>I made an infinite background for an Android 2D game but the background scrolls only one time and doesn't loop. How can I fix this?</p> <p>Another question: How do I make this same background fall from the top to bottom? For a game </p> <p><img src="https://rebelfive.files.wordpress.com/2009/11/shooter-screen.jpg"...
I made an infinite background for an Android 2D game but the background scrolls only one time and doesn't loop. How can I fix this? Another question: How do I make this same background fall from the top to bottom? For a game . This is my class (code): [CODE]
android
1
2016-04-22T04:59:31.440Z
2,016
4
4
4
209
0
258
29
1
1
true
true
false
false
false
false
low
36,785,236
How to check the status in json object to get the image from array of object in android
<p>First I need to check the json object status <code>400</code> if status <code>400</code> to get the image otherwise it shows error. I don't how to check status in JSON empty object in android volley. and also I need some help on how to get image by using banner path and banner name.</p> <p>My Json</p> <pre><code> ...
First I need to check the json object status 400 if status 400 to get the image otherwise it shows error. I don't how to check status in JSON empty object in android volley. and also I need some help on how to get image by using banner path and banner name. My Json [CODE] Thank in Advance
android|android-layout|android-fragments|android-studio|android-json
0
2016-04-22T05:04:19.787Z
2,016
4
5
4
1,961
3
289
87
5
1
true
false
false
false
false
false
zero
36,785,545
How to set a custom header for webView requests in react-native
<p>I want to be able to detect on my ruby on rails server side that a http request has come from a webView component in my app. The app is using react-native. In particular, I want to distinguish between a request from the app and a request from mobile safari running on an ios device. </p> <p>I have tried setting the ...
I want to be able to detect on my ruby on rails server side that a http request has come from a webView component in my app. The app is using react-native. In particular, I want to distinguish between a request from the app and a request from mobile safari running on an ios device. I have tried setting the following in...
android|ios|ruby-on-rails|webview|react-native
3
2016-04-22T05:28:30.893Z
2,016
4
5
4
5,179
2
758
63
5
2
true
false
true
false
false
false
low
36,785,610
When I add more than one states to an <item> in a state-list drawable, it stops working. Why?
<p><strong>What I want:</strong></p> <p>An ImageView with a transparent background. When it is clicked, its background should turn blue, and should remain blue until something else is clicked. I am using state-list drawable for it. </p> <p><strong>What is happening:</strong></p> <p>The code is given as follows. <str...
What I want: An ImageView with a transparent background. When it is clicked, its background should turn blue, and should remain blue until something else is clicked. I am using state-list drawable for it. What is happening: The code is given as follows. The problem is that the background does turn blue, but it does not...
android|android-drawable|xml-drawable|statelistdrawable|statelist
0
2016-04-22T05:32:21.543Z
2,016
4
5
4
733
2
877
93
5
4
true
false
false
false
false
false
zero
36,785,905
Error parsing JSON android when use class method
<p>Hi I'm working with android <code>Volley</code> to get <code>JSON</code>from the server then parse it to object. I'm trying to create a class with a method to parse JSON response. My URL are for example: <code>https://hacker-news.firebaseio.com/v0/item/11544988.json?print=pretty</code></p> <p>here is my class metho...
Hi I'm working with android Volley to get JSON from the server then parse it to object. I'm trying to create a class with a method to parse JSON response. My URL are for example: https://hacker-news.firebaseio.com/v0/item/11544988.json?print=pretty here is my class method (in TopStory.java ) [CODE] in the MainActivity....
android|json|parsing|android-volley
0
2016-04-22T05:52:30.143Z
2,016
4
5
4
329
1
736
48
4
4
true
false
false
false
false
false
zero
36,785,965
List is being saved in the Model without settings it in the setter
<p>I am currently working on an Android project and having trouble on the getters and setters. the problem is my Model (getter &amp; setter) is being set with a value without me setting it. im getting the data from the server and storing it in the model if the model is null.</p> <p>here is the snippet of my code:</p> ...
I am currently working on an Android project and having trouble on the getters and setters. the problem is my Model (getter & setter) is being set with a value without me setting it. im getting the data from the server and storing it in the model if the model is null. here is the snippet of my code: This is the Code fo...
java|android
0
2016-04-22T05:56:02.947Z
2,016
4
5
4
35
0
797
66
2
2
true
true
false
false
false
false
zero
36,785,985
Buetooth connection failed: read failed, socket might closed or timeout, read ret: -1
<p>I am trying to create a <strong>Bluetooth connection</strong>.</p> <p>I can search for nearby devices but when I try to connect I get an error I do not understand:</p> <h1>LOGCAT</h1> <pre><code>01-03 00:55:06.909 6654-6654/com.bluetooth.prova3.listdiscovery D/CONNECTTHREAD: Could not close connection:java.io.IOE...
I am trying to create a Bluetooth connection . I can search for nearby devices but when I try to connect I get an error I do not understand: LOGCAT [CODE] I Have two classes for connect, one that receives the device and execute the connection, an other for make connection. ConexionActivity.Java [CODE] ConnectThread.jav...
java|android|bluetooth
17
2016-04-22T05:57:20.147Z
2,016
4
5
4
17,227
5
343
85
3
4
true
false
true
true
true
false
medium
36,786,015
Could not run Calabash-android on docker
<p>I am integrating a Calabash-android test on docker. The entire setting up and running Calabash in my local was quite easy and when it comes to docker I could not run the test yet. I have been trying this for the past two weeks and did not get any positive response while trying to run the emulator. Finally according ...
I am integrating a Calabash-android test on docker. The entire setting up and running Calabash in my local was quite easy and when it comes to docker I could not run the test yet. I have been trying this for the past two weeks and did not get any positive response while trying to run the emulator. Finally according to ...
docker|automation|avd|calabash-android
0
2016-04-22T05:59:26.103Z
2,016
4
5
4
125
0
737
40
4
1
true
true
false
false
false
false
zero
36,786,060
Pinch Zoom and 2 finger Rotation the ImageView in Android
<p>I've a problem from last 2 days and unable to tackle it as I'm newbie. Actually I'm working on an Android App that needs pinch-zoom and 2-finger rotation on Android ImageView. I got the multiple tutorials and solutions that work fine for Pinch Zoom and but does not work for 2 finger rotation. I'm sharing the simple...
I've a problem from last 2 days and unable to tackle it as I'm newbie. Actually I'm working on an Android App that needs pinch-zoom and 2-finger rotation on Android ImageView. I got the multiple tutorials and solutions that work fine for Pinch Zoom and but does not work for 2 finger rotation. I'm sharing the simplest t...
android|android-studio|multi-touch|image-rotation|pinchzoom
6
2016-04-22T06:03:31.110Z
2,016
4
6
4
8,805
2
684
57
5
1
true
false
true
false
false
false
medium
36,786,077
android - styling checkbox and radiobutton
<p>I am trying to style my app and make own theme, but I faced with some problems, becouse I need some unusial behaviour.</p> <p>I use Material Design theme with parent <code>Theme.AppCompat.Light.DarkActionBar</code></p> <h1>Overview</h1> <p>Views has colors:</p> <ul> <li>Text is <code>textColorPrimary</code>, <code>t...
I am trying to style my app and make own theme, but I faced with some problems, becouse I need some unusial behaviour. I use Material Design theme with parent Theme.AppCompat.Light.DarkActionBar Overview Views has colors: Text is textColorPrimary , textColorSecondary , textColorTertiary Button is unknown gray color But...
android|android-layout|material-design
0
2016-04-22T06:04:56.607Z
2,016
4
6
4
13,062
3
1,005
42
3
4
true
false
true
true
false
false
zero
36,786,084
ClassCastException when inflating Android fragment
<p>First of all, my code was working perfectly and started this weird issue by itself. I've got a Fragment that contains a <code>TextView</code> <em>yes, a regular text view, I can verify this by examining my layout file</em>:</p> <p><a href="https://i.stack.imgur.com/fCkgx.png" rel="nofollow noreferrer"><img src="htt...
First of all, my code was working perfectly and started this weird issue by itself. I've got a Fragment that contains a TextView yes, a regular text view, I can verify this by examining my layout file : In my code (which I haven't touched neither in layout XML nor Java class file ), I am casting it to TextView : TextVi...
android|android-layout|android-fragments
0
2016-04-22T06:05:14.947Z
2,016
4
6
4
76
1
876
50
3
0
false
false
false
false
false
false
zero
36,786,171
How to show/hide a layout when gridView item is selected/unselected in Android using Custom BaseAdapter
<p>this is my Adapter class</p> <pre><code> public class GridViewCustomAdapter extends BaseAdapter { private List&lt;ProductParameterBO&gt; availList; private LayoutInflater inflater; Context context; public GridViewCustomAdapter(Context ctx,List&lt;ProductParameterBO&gt; list){ this.context = ctx; this...
this is my Adapter class [CODE] i just want to show Relativelayout r1 when row is selected and when i select the next row ,previous row must hide Relativelayout r1 layout and show on row which is selected.. Now in my case when i select the next row ,then its not hiding from previous row ..layout still showing on all ro...
android|android-fragments|gridview|baseadapter
3
2016-04-22T06:10:32.540Z
2,016
4
6
4
923
1
422
103
4
1
true
false
false
false
false
false
low
36,786,189
Cannot access resources in a layout in a PopupWindow, Objects are null referenced
<p>I have an android application when clicked on an option from a side bar it goes to a fragment, and then into another fragment which has clickable radio buttons. When clicked on these it will create a popup window with some text fields in it.</p> <p>Basically this is how the flow goes,</p> <p><strong>Activity --> F...
I have an android application when clicked on an option from a side bar it goes to a fragment, and then into another fragment which has clickable radio buttons. When clicked on these it will create a popup window with some text fields in it. Basically this is how the flow goes, Activity --> Fragment 1 --> Fragment 2 --...
android|android-fragments
1
2016-04-22T06:11:55.270Z
2,016
4
6
4
664
1
822
81
2
3
true
false
false
false
false
false
low
36,786,219
How to re open an activity after finishing it and also start the Camera Preview again in it
<p>In my camera app's Launcher activity named <code>CameraActivity</code> I've overridden the <code>onPause()</code> method as below,</p> <pre><code>@Override protected void onPause() { super.onPause(); mCamera.release(); finish(); } </code></pre> <p>So that whenever the app is exited by pressing home but...
In my camera app's Launcher activity named CameraActivity I've overridden the onPause() method as below, [CODE] So that whenever the app is exited by pressing home button or back button the camera gets released and the activity is finished to let other Camera Apps to access the Camera. But now I've created another acti...
android|android-activity|camera|android-camera
1
2016-04-22T06:13:27.373Z
2,016
4
6
4
1,351
1
1,193
91
4
4
true
false
false
false
false
false
low
36,786,261
Cordova/Phonegap Build error code 1 using admobpro
<p>I have seen lots of posts about this error code but mine does not seem to the same as the others that I have read up on lately.</p> <p>Here is the error I am getting when trying to build my project.</p> <pre><code>FAILURE: Build failed with an exception. Execution failed for task ':processDebugManifest'.&gt; Man...
I have seen lots of posts about this error code but mine does not seem to the same as the others that I have read up on lately. Here is the error I am getting when trying to build my project. [CODE] BUILD FAILED Total time: 12.759 secs [CODE] If I remove the plugin from the config.xml file then it compiles the build fi...
javascript|android|cordova|phonegap-plugins|cordova-plugins
0
2016-04-22T06:16:01.790Z
2,016
4
6
4
189
0
438
50
5
2
true
true
false
false
false
false
zero
36,786,284
Worklight push notification not working after applying proguard
<p>I am using IBM's mobilefirst worklight version 6.3 for push notification. Everything works fine when i dont apply proguard. When i apply proguard and run the build while subscribing for the push notification only i get the following exception.</p> <pre><code>java.lang.RuntimeException: Failed to find the icon resou...
I am using IBM's mobilefirst worklight version 6.3 for push notification. Everything works fine when i dont apply proguard. When i apply proguard and run the build while subscribing for the push notification only i get the following exception. [CODE] I have the push.png named file in the drawable folder. Any suggestion...
android|push-notification|ibm-mobilefirst|android-proguard
-1
2016-04-22T06:17:17.773Z
2,016
4
6
4
642
1
656
63
4
2
true
false
false
false
false
true
negative
36,786,469
Android writing to CSV RAM issue
<p>I'm collecting a bunch of sensor data in a Service, storing it into a SQL table, and when the user clicks a button I take all of that SQL data and save it to a CSV file, but I keep getting <code>Window is full: requested allocation XXX</code> errors showing in logcat</p> <p>From a bit of googling I think this might...
I'm collecting a bunch of sensor data in a Service, storing it into a SQL table, and when the user clicks a button I take all of that SQL data and save it to a CSV file, but I keep getting Window is full: requested allocation XXX errors showing in logcat From a bit of googling I think this might be due to high RAM usag...
java|android|csv|android-sqlite|android-external-storage
3
2016-04-22T06:28:00.693Z
2,016
4
6
4
124
1
788
32
5
2
true
false
false
false
false
false
low
36,786,493
Recycler view in fragment
<p>i am working on app .in which i want to do like, when i click on one button it will start fragment , and in fragment i have created a recycler view. Recycler view will show the list of songs in device. but problem is only fragment shows. no layout for recyclerview or even recycler view.<br> here is my fragment class...
i am working on app .in which i want to do like, when i click on one button it will start fragment , and in fragment i have created a recycler view. Recycler view will show the list of songs in device. but problem is only fragment shows. no layout for recyclerview or even recycler view. here is my fragment class,recycl...
android
-2
2016-04-22T06:29:55.293Z
2,016
4
6
4
2,625
2
491
25
1
2
true
false
true
false
false
true
negative
36,786,541
Issue in Google Map APi KEY
<p>I am new android developer..I am making a location based reminder app, but map is not showing.</p> <p>Here is the error. Please tell me how to get API key and where to put...</p> <pre><code>-1943/com.app.locationreminder E/b: Authentication failed on the server. 04-22 10:02:57.530 1121-1943/com.app.locationreminde...
I am new android developer..I am making a location based reminder app, but map is not showing. Here is the error. Please tell me how to get API key and where to put... [CODE]
android|xml|google-maps
0
2016-04-22T06:32:40.327Z
2,016
4
6
4
287
1
174
27
3
1
true
false
false
false
false
false
zero
36,786,551
Cordova Ionic Keyboard plugin disable completely on “Init”
<p>I have the following problem, I need to disable the native Keyboard completely. The keyboard should only show when I call the show() and hide when I call the close() function (this will be on a Button for the user to toggle the Keyboard). The Keyboard showing on clicking the Field and on Focus needs to be completely...
I have the following problem, I need to disable the native Keyboard completely. The keyboard should only show when I call the show() and hide when I call the close() function (this will be on a Button for the user to toggle the Keyboard). The Keyboard showing on clicking the Field and on Focus needs to be completely di...
javascript|android|cordova|ionic-framework|keyboard
5
2016-04-22T06:33:27.637Z
2,016
4
6
4
1,349
1
1,095
58
5
1
true
false
false
false
false
false
low
36,786,592
Rotating CoordinatoLayout Performance Issues
<p>I am working on an application where I need to make a <strong>circular layout</strong>, which rotates as the user rotates the image. I have used a <strong>CoordinatorLayout</strong> for this purpose, but it leads to laggy animations, and even the NavigationDrawer has started lagging. Is there some way to take care o...
I am working on an application where I need to make a circular layout , which rotates as the user rotates the image. I have used a CoordinatorLayout for this purpose, but it leads to laggy animations, and even the NavigationDrawer has started lagging. Is there some way to take care of these issues? Below is the TouchLi...
android|performance|android-layout|android-coordinatorlayout
0
2016-04-22T06:36:03.783Z
2,016
4
6
4
53
0
397
44
4
1
true
true
false
false
false
false
zero
36,786,643
How to redirect to web page using URL in QR Code?
<p>I'm creating a qr code scan application. I used ZXing library. How to redirect to web page using URL in QR Code? I want to use my application to redirect to web page ( not use browser ). Please help me This is my code.</p> <p>ScanActivity.java</p> <pre><code>package app.num.barcodescannerproject; import android.a...
I'm creating a qr code scan application. I used ZXing library. How to redirect to web page using URL in QR Code? I want to use my application to redirect to web page ( not use browser ). Please help me This is my code. ScanActivity.java [CODE] main.xml [CODE] ActivityMainfest.xml [CODE]
android
1
2016-04-22T06:38:54.940Z
2,016
4
6
4
2,658
1
287
49
1
3
true
false
true
false
false
false
low
36,786,652
Cant get from Activity to Activity
<p><strong>This is my first activity</strong></p> <pre><code>public class MainActivity extends SampleActivityBase { private boolean mLogShown; public static final String TAG = "MainActivity"; private SharedPreferences pref; EditText cardnumber; TextView foodorders; Button buttonorder, addsub; private static final i...
This is my first activity [CODE] This is my second activity [CODE] Profile fragment [CODE] LOGIN fragment public class LoginFragment extends Fragment implements View.OnClickListener{ [CODE] When i press the button register addsub it crashed and this message pops out : 04-22 14:35:04.384 10045-10045/com.example.android ...
java|android
1
2016-04-22T06:39:29.980Z
2,016
4
6
4
303
2
2,763
34
2
4
true
false
false
false
false
false
low
36,786,747
when the image is attached to NetworkImageview ? volley android
<p>I am using <code>Volley</code>, for loading image from network I use <code>NetworkImageview</code></p> <p>I show some scaling animation on the <code>NetworkImageview</code> </p> <pre><code>holder.imgPostPic.setImageUrl(model.Uri, imageLoader); holder.imgPostPic.setDefaultImageResId(R.drawable.im_home_no_interne...
I am using Volley , for loading image from network I use NetworkImageview I show some scaling animation on the NetworkImageview [CODE] my problem when I start scaling animation, the DefaultImageResId starts scaling , which I don't want. what I want I want the animation to start only when the image is loaded to the Netw...
android|android-volley
0
2016-04-22T06:44:30.330Z
2,016
4
6
4
417
1
430
63
2
2
true
false
false
false
false
false
zero
36,786,781
How to show progress bar efficiently?
<p>In my XML I have this progress bar but after download gets over it is rotating.How to attach this progress bar with my download code. </p> <pre><code> &lt;ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widge...
In my XML I have this progress bar but after download gets over it is rotating.How to attach this progress bar with my download code. [CODE] This is how I am downloading my files: [CODE] And also insted of progress bar If I want to show the download percentage like this image
android|progress-bar|android-download-manager
1
2016-04-22T06:46:17.323Z
2,016
4
6
4
105
0
276
37
3
2
true
true
false
false
false
false
low
36,786,983
App android error when reboot phone
<p>I am doing app Android.1 Activity and 1 Boardcast Recieve.</p> <pre><code>public abstract class PhonecallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals("android.intent.action.NEW_OUTGOING_CALL")) { savedNumber...
I am doing app Android.1 Activity and 1 Boardcast Recieve. [CODE] And manifestfile [CODE] When run , app run fine.But when I reboot phone, app error at : [CODE] How to fix error.Thank
android|reboot
0
2016-04-22T06:56:17.143Z
2,016
4
6
4
73
2
183
35
2
3
true
false
false
false
false
false
zero
36,786,989
Android SVG for multiple sizes?
<p>I am currently using PNGs for standard 24dp size. However, I needed some icons larger than 100dp. So I found it would be better to use SVG instead of large size PNGs.</p> <p>(Using gradle 2.0, Android support lib 23.3)</p> <p>One icon is of a normal share icon. Previously I used, <code>ic_share_white_24dp.png</cod...
I am currently using PNGs for standard 24dp size. However, I needed some icons larger than 100dp. So I found it would be better to use SVG instead of large size PNGs. (Using gradle 2.0, Android support lib 23.3) One icon is of a normal share icon. Previously I used, ic_share_white_24dp.png for showing a share button on...
android|svg
2
2016-04-22T06:56:45.067Z
2,016
4
6
4
913
1
1,061
31
2
1
true
false
false
false
false
false
low
36,787,015
Encrypt data using private certificate inside android keystore
<p>I am using a certificate file to encrypt data before sending it through Rest API. Currently, I am keeping it in <code>assets</code> folder.</p> <p>I put the certificate inside the Keystore file which I am using to sign my APK.</p> <pre><code>keytool -import -keystore certificate.pfx -file CertificateFile.cer </cod...
I am using a certificate file to encrypt data before sending it through Rest API. Currently, I am keeping it in assets folder. I put the certificate inside the Keystore file which I am using to sign my APK. [CODE] Now the Keystore contains the certificate and listing it shows. [CODE] But enumerating Keystore always has...
android|ssl|encryption|android-keystore
0
2016-04-22T06:58:14.887Z
2,016
4
6
4
317
1
366
62
4
3
true
false
false
false
false
false
zero
36,787,198
how to save spinner data and selected radio button saved to mysql database?
<p>i cannot save selected radio buttons and spinner into mysql database? why is this?but for editText, it saves to my database.please help! here is my submitData.php</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form action="submitData" method = "post"&gt; Gender &lt;input type = "radio" name="gende...
i cannot save selected radio buttons and spinner into mysql database? why is this?but for editText, it saves to my database.please help! here is my submitData.php [CODE] here is my FormActivity.java: [CODE] here is my activity_form.java: [CODE] here is my arrays.xml [CODE]
java|php|android|mysql
0
2016-04-22T07:07:31.407Z
2,016
4
7
4
1,158
1
273
75
4
4
true
false
false
false
false
false
zero
36,787,216
Getting value and its particular key on spinner click
<p><strong>I am getting the data in both the spinner1 and spinner 2 when spinner1 is selected then its corresponding data is automatically populated in spinner2</strong></p> <p>Below is the XML format data getting from URL then- </p> <pre><code>&lt;a:Pair&gt; &lt;a:FromID&gt;01&lt;/a:FromID&gt; &lt;---This shou...
I am getting the data in both the spinner1 and spinner 2 when spinner1 is selected then its corresponding data is automatically populated in spinner2 Below is the XML format data getting from URL then- [CODE] But the thing is if spinner1 data is USA selected then I want to toast its corresponding id i.e 10 ...which i w...
java|android|android-intent|xml-parsing|android-toast
0
2016-04-22T07:08:18.020Z
2,016
4
7
4
100
1
657
53
5
2
true
false
false
false
false
false
zero
36,787,220
Ask for runtime permission only for Android Marshmallow?
<p>I want to add run time permission only for marshmallow because it crashes my application in Android marshmallow devices otherwise its working properly. Is it possible to add multiple permissions at a single time? I have written code for camera permission, but</p> <p>I have written code for single permission and tha...
I want to add run time permission only for marshmallow because it crashes my application in Android marshmallow devices otherwise its working properly. Is it possible to add multiple permissions at a single time? I have written code for camera permission, but I have written code for single permission and that is workin...
java|android|android-permissions
2
2016-04-22T07:08:39.337Z
2,016
4
7
4
1,281
3
410
56
3
2
true
false
false
false
false
false
low
36,787,260
Background image android xamarin
<p>I tried to set a background image for the main activity in android (using xamarin). The image is shown in the design but when I emulate to my phone (Galaxy S4) is not show. Here is the code. What is wrong here ?</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="ht...
I tried to set a background image for the main activity in android (using xamarin). The image is shown in the design but when I emulate to my phone (Galaxy S4) is not show. Here is the code. What is wrong here ? [CODE]
styles|xamarin.android
0
2016-04-22T07:10:41.923Z
2,016
4
7
4
1,113
1
218
32
2
1
true
false
false
false
false
false
zero
36,787,405
Reducing the width of Dialogue fragment
<p>I am creating a DialogueFragment to Display the calender, below is the code for Dialogue fragment,</p> <pre><code>public class DatePickerFragment extends DialogFragment{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setStyle(DialogFragment...
I am creating a DialogueFragment to Display the calender, below is the code for Dialogue fragment, [CODE] This this XMl for fragment_dialogue_datepicker [CODE] My problem is the Dialogue width spans the entire screen, I just want it to wrap content. Link to screenshot http://imgur.com/iKJnhSK
android
0
2016-04-22T07:17:53.207Z
2,016
4
7
4
30
2
293
39
1
2
true
false
false
false
false
false
zero
36,787,412
first try parse error. but second try success install on android
<p>I want </p> <p>First , write my server url 2. download apk 3. install apk</p> <p>when I install apk</p> <p>parse error message . but retry install , success install apk.</p> <p>In summary , first try install apk. parse error message after try . success install apk. </p> <pre><code> String url = "https://m...
I want First , write my server url 2. download apk 3. install apk when I install apk parse error message . but retry install , success install apk. In summary , first try install apk. parse error message after try . success install apk. [CODE]
android
0
2016-04-22T07:18:07.740Z
2,016
4
7
4
165
1
243
64
1
1
true
false
false
false
false
false
zero
36,787,426
SimpleDraweeView round corners in XML
<p>I'm trying to round specific corners of image using Fresco lib.</p> <p>As shown in the pic, how to round the bottom left corner of the image. </p> <p><a href="https://i.stack.imgur.com/WT3lk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WT3lk.jpg" alt="enter image description here"></a></p> <...
I'm trying to round specific corners of image using Fresco lib. As shown in the pic, how to round the bottom left corner of the image. Here is the xml: [CODE]
android|fresco
1
2016-04-22T07:19:03.327Z
2,016
4
7
4
4,990
3
158
37
2
1
true
false
true
false
false
false
low
36,787,449
How to mock method e in Log
<p>Here Utils.java is my class to be tested and following is the method which is called in UtilsTest class. Even if I am mocking Log.e method as shown below</p> <pre><code> @Before public void setUp() { when(Log.e(any(String.class),any(String.class))).thenReturn(any(Integer.class)); utils = spy(new Uti...
Here Utils.java is my class to be tested and following is the method which is called in UtilsTest class. Even if I am mocking Log.e method as shown below [CODE] I am getting the following exception [CODE]
android|junit|mockito
98
2016-04-22T07:20:24.080Z
2,016
4
7
4
51,094
13
204
27
3
2
true
false
true
true
true
false
high
36,787,562
Adding a button to each row of a list view in android?
<p>I want to add two buttons to each row of a list view. And I want to add them in the custom adapter. The two buttons are for edit and delete. The following is my adapter code.</p> <pre><code>public class RoleList extends ArrayAdapter&lt;String&gt; { private String[] name; private String[] username; priva...
I want to add two buttons to each row of a list view. And I want to add them in the custom adapter. The two buttons are for edit and delete. The following is my adapter code. [CODE] Handler for the list:- [CODE] //User Role array [CODE] //travRoleArray [CODE] Scenario: User clicks on add user button a dialog box opens ...
java|android|listview|android-arrayadapter
1
2016-04-22T07:26:40.237Z
2,016
4
7
4
1,607
3
566
54
4
4
true
false
false
false
false
false
low
36,787,701
Getting error on recorder.start()
<p>I am new in android development. When i am recording a call in my service class the recorder.start() is getting IllegalStateException.Here is my Logcat:</p> <pre><code>java.lang.IllegalStateException.android.media.MediaRecorder.stop(Native Method) </code></pre> <p>my serivce class is:--</p> <p>public class Recor...
I am new in android development. When i am recording a call in my service class the recorder.start() is getting IllegalStateException.Here is my Logcat: [CODE] my serivce class is:-- public class RecordService extends Service { [CODE] } and broadcast receiver is this:-- public class MyPhoneReceiver extends BroadcastRec...
android|android-fragments|android-studio|broadcastreceiver|mediarecorder
1
2016-04-22T07:34:12.023Z
2,016
4
7
4
152
0
336
33
5
3
true
true
false
false
false
false
low
36,787,754
Image transfering btween JavaFX and Android via Bluetooth
<p>I'm trying implement a simple file transfering app.</p> <p>My app does like that: 1. Capture current camera preview in Android 2. Send it to Javafx application via Bluetooth 3. When Javafx app received the image saving it and show on the window 4. After some drawing over the image capture it then send it to Androi...
I'm trying implement a simple file transfering app. My app does like that: 1. Capture current camera preview in Android 2. Send it to Javafx application via Bluetooth 3. When Javafx app received the image saving it and show on the window 4. After some drawing over the image capture it then send it to Android again I im...
java|android|bluetooth
0
2016-04-22T07:37:10.750Z
2,016
4
7
4
318
1
960
57
3
3
true
false
false
false
false
false
zero
36,787,788
Casting issue while filtering using adapter, How to fix it?
<p>An exception occured during <code>performFiltering()!</code></p> <blockquote> <p>java.lang.ClassCastException: android.graphics.Bitmap cannot be cast to java.lang.String</p> </blockquote> <p>my code is this </p> <pre><code>adapter = new SimpleAdapter( getActivity(), contactList, ...
An exception occured during performFiltering()! java.lang.ClassCastException: android.graphics.Bitmap cannot be cast to java.lang.String my code is this [CODE]
android|textwatcher|simpleadapter
-1
2016-04-22T07:38:19.807Z
2,016
4
7
4
34
1
159
59
3
1
true
false
false
false
false
true
negative
36,787,797
How to convert concatenated time and date string into date?
<p>I want to set a notification for this I want to get the date and time. In my database I have saved alert time and alert date differently.</p> <p>alert date format is: </p> <pre><code>SimpleDateFormat df = new SimpleDateFormat("d MMM yyyy"); </code></pre> <p>alert time format is: </p> <pre><code>SimpleDateFormat...
I want to set a notification for this I want to get the date and time. In my database I have saved alert time and alert date differently. alert date format is: [CODE] alert time format is: [CODE] Now I tried to concatenate the alert time string and alert date string and format it into date object but it is not getting ...
android|date|simpledateformat
0
2016-04-22T07:38:53.867Z
2,016
4
7
4
3,456
4
488
59
3
3
true
false
true
false
false
false
zero
36,787,855
AAPT err: libpng error: Not a PNG file
<p>After updating Android Studio 2.0 with Gradle version 2.10, I am getting this below metioned issue.</p> <p><strong>Note</strong>:The same project working fine in Android Studio 2.0 with Gradle version 2.8</p> <p>I have reviewed all my images, don't know what will be the problem.</p> <p>The same problem has posted...
After updating Android Studio 2.0 with Gradle version 2.10, I am getting this below metioned issue. Note :The same project working fine in Android Studio 2.0 with Gradle version 2.8 I have reviewed all my images, don't know what will be the problem. The same problem has posted in code.google.com [CODE]
android
-1
2016-04-22T07:42:13.603Z
2,016
4
7
4
3,256
1
303
38
1
1
true
false
true
false
false
true
negative
36,787,918
Unfortunately Stopped , Error when Call Adapter using Fragment (i Think)
<p>no error log when im try run application, but when im open MovieFragment my apps unfortunately close idk whats the problem, but i think is problem with my adapter, please someone help me</p> <p>btw im newbie using fragment bc its more easier</p> <p>MovieFragment.java</p> <pre><code>import android.app.Activity; im...
no error log when im try run application, but when im open MovieFragment my apps unfortunately close idk whats the problem, but i think is problem with my adapter, please someone help me btw im newbie using fragment bc its more easier MovieFragment.java [CODE] CustomeListAdapter.java [CODE] log error [CODE]
java|android
0
2016-04-22T07:45:51.073Z
2,016
4
7
4
15
0
308
72
2
3
true
true
false
false
false
false
zero
36,787,935
Sugar ORM Android application loses persistent object's id field when navigating to new screen
<p>I have a Sugar ORM persistent object declared as follows:</p> <pre><code>public class Trx extends SugarRecord implements Serializable { ... } </code></pre> <p><strong>Note that</strong> when you extend SugarRecord, you inherit an <strong>id</strong> field used to uniquely identify your persistent object.</p> <p>W...
I have a Sugar ORM persistent object declared as follows: [CODE] Note that when you extend SugarRecord, you inherit an id field used to uniquely identify your persistent object. When navigating from my application's master view to it's detail view, I create the intent/activity as follows: [CODE] And in the detail view,...
java|android|android-studio|sugarorm
4
2016-04-22T07:46:57.680Z
2,016
4
7
4
403
1
722
94
4
3
true
false
false
false
false
false
low
36,787,948
Kotlin build problems with Android
<p>Integrated Kotlin into a somewhat large project that uses multidex.</p> <p><strong>So when I try to build, I get this error:</strong></p> <p><code>:incrementalDesygnerDebugJavaCompilationSafeguard UP-TO-DATE :compileDesygnerDebugKotlin WARN: Failed to initialize native filesystem for Windows java.lang.RuntimeExcep...
Integrated Kotlin into a somewhat large project that uses multidex. So when I try to build, I get this error: :incrementalDesygnerDebugJavaCompilationSafeguard UP-TO-DATE :compileDesygnerDebugKotlin WARN: Failed to initialize native filesystem for Windows java.lang.RuntimeException: Could not find installation home pat...
java|android|gradle|kotlin|kotlin-extension
2
2016-04-22T07:47:27.353Z
2,016
4
7
4
921
1
1,388
34
5
0
false
false
false
false
false
false
low
36,787,991
What state is a view in after it is clicked (i.e. after the click is released)?
<p>I have a clickable <code>ImageView</code> with a background color, and what I want is that its background color is changed when it is touched/clicked and <em>it should remain changed</em> even after the click is released, until something else is clicked. For that I am writing a <a href="http://developer.android.com...
I have a clickable ImageView with a background color, and what I want is that its background color is changed when it is touched/clicked and it should remain changed even after the click is released, until something else is clicked. For that I am writing a state-list drawable . I am using the pressed state, which is wh...
android|onclick|state|statelistdrawable|statelist
0
2016-04-22T07:49:45.487Z
2,016
4
7
4
66
1
655
79
5
0
false
false
false
false
false
false
zero
36,788,017
Running React-Native Android App on Ubuntu using Genymotion
<h1>Update</h1> <p>Apparently after running <code>react-native run-android</code> command the red screen with errors will appear then <code>react-native start</code> command should be executed. After that by pressing reload button on red screen the app starts successfully. But I still don't have any clue to start in a ...
Update Apparently after running react-native run-android command the red screen with errors will appear then react-native start command should be executed. After that by pressing reload button on red screen the app starts successfully. But I still don't have any clue to start in a single pass without getting any error ...
android|linux|ubuntu|react-native|genymotion
2
2016-04-22T07:51:14.680Z
2,016
4
7
4
796
0
1,568
59
5
3
true
true
false
false
false
false
low
36,788,065
why do certain zip files have unknown file content
<h1>background</h1> <p>I stumbled across this problem <a href="https://stackoverflow.com/questions/36768080/reading-a-decrypted-file-into-a-zipinputstream-truncates-first-file-sometimes">here</a></p> <h1>analysis</h1> <p>according to the <a href="https://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html#...
background I stumbled across this problem here analysis according to the java docs for ZipEntry, sometimes requesting the size of a zipfile entry simply returns -1 However, running the command [CODE] shows that there is a content length for all the chapters.. but also, if we unzip the same file and rezip it again with ...
java|android|zip|compression|skyepub
1
2016-04-22T07:54:00.957Z
2,016
4
7
4
375
1
575
50
5
1
true
false
false
false
false
false
low
36,788,079
Facebook Graph API Searching on Android
<p>I use the following to code to retrieve data from Facebook Graph API and it works.</p> <pre><code>GraphRequest.newGraphPathRequest(AccessToken.getCurrentAccessToken() , "/me" , new GraphRequest.Callback() { @Override ...
I use the following to code to retrieve data from Facebook Graph API and it works. [CODE] However, when I use the following search query which works in Graph API Explorer it doesn't work anymore. [CODE] The error json is below. [CODE]
android|facebook-graph-api|facebook-android-sdk
0
2016-04-22T07:54:37.017Z
2,016
4
7
4
310
1
234
39
3
3
true
false
false
false
false
false
zero
36,788,152
Android: NoSuchMethodError with static method in interface (using Retrolambda)
<p>In my project I am trying to use code written in Java 8 in Android app using <strong>Retrolambda</strong> plugin and <strong>Lightweight-Stream-API</strong> to bypass code compatibility. The source project runs well on Java platform (clarified). </p> <p>After porting the code to Android, I only had to make slight m...
In my project I am trying to use code written in Java 8 in Android app using Retrolambda plugin and Lightweight-Stream-API to bypass code compatibility. The source project runs well on Java platform (clarified). After porting the code to Android, I only had to make slight modifications in code (mostly about getting ins...
java|android|retrolambda
2
2016-04-22T07:58:55.367Z
2,016
4
7
4
2,291
1
1,207
78
3
2
true
false
false
false
false
false
low
36,788,197
Move View in WindowManager makes the view not appear
<p>I'm using DynGridView by PocketMagic to dynamically drag/drop views in grid view. Once I start dragging the DragView is created from a bitmap, added to WindowManager and shown on the screen. The problem is that the view doesn't appear if I start dragging the view fast. It appears only if I start dragging slow or sto...
I'm using DynGridView by PocketMagic to dynamically drag/drop views in grid view. Once I start dragging the DragView is created from a bitmap, added to WindowManager and shown on the screen. The problem is that the view doesn't appear if I start dragging the view fast. It appears only if I start dragging slow or stop m...
android|gridview|view|drag-and-drop|android-windowmanager
1
2016-04-22T08:00:50.653Z
2,016
4
8
4
542
0
830
52
5
4
true
true
false
false
false
false
low
36,788,277
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 96 path
<p>This is my json</p> <pre><code>{ "success": true, "error": null, "responseA": { "responseB": [{ "response": {...}, "request": "\/observations\/atlanta,ga" }, { "response": [{...}], "request": "\/forec...
This is my json [CODE] I creat my class for the json from here: http://www.jsonschema2pojo.org/ and I find the error of the title is from the two "response" which are array and object. As I said Ianalyze the that by Retrofit, How can I analy a json like this with the "repsonse" of two types(array and object) by Retrofi...
android|json|retrofit2
1
2016-04-22T08:04:39.987Z
2,016
4
8
4
1,496
1
361
66
3
3
true
false
false
false
false
false
low
36,788,283
3 equal height rows in a ScrollView
<p>Here is my layout XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;LinearLayout android:layout_width="match_parent" a...
Here is my layout XML: [CODE] As you can see from my layout, the outer LinearLayout contains 3 RelativeLayout which all have layout_weight equals to 1 and the LinearLayout has weightSum equal to 3. However, the behavior of the current layout is: The 1st RelativeLayout shared very little space (around 10%) and the 2nd &...
android|xml|android-layout|android-studio|scrollview
0
2016-04-22T08:04:59.410Z
2,016
4
8
4
223
2
408
35
5
1
true
false
false
false
false
false
zero
36,788,344
Xamarin Handler.Post does not invoke IRunnable.Run()
<p>I am trying to run this Android code in Xamarin:</p> <pre><code>final Handler handler = new Handler(); handler.post(new Runnable() { @Override public void run() { int hours = seconds/3600; int minutes = (seconds%3600)/60; int secs = seconds%60; String time = String.format("%d:%02d:%02d", ho...
I am trying to run this Android code in Xamarin: [CODE] I have tried this in Xamarin; [CODE] Test class is IRunnable as [CODE] The program runs but Handler is not calling the Run() function. I am new to Xamarin. Any solutions?
c#|xamarin|xamarin.android|runnable
2
2016-04-22T08:07:47.573Z
2,016
4
8
4
1,975
1
226
52
4
3
true
false
false
false
false
false
low
36,788,395
How can I reach users' calendar information on server?
<p>Users authorize in my android application. And I am sending users' token and other information to my server. At this server I want to implement some logic for users.</p> <p>I want to have exactly <a href="https://stackoverflow.com/questions/26351730/how-to-insert-events-into-google-calendar-from-server-with-client-...
Users authorize in my android application. And I am sending users' token and other information to my server. At this server I want to implement some logic for users. I want to have exactly this flow . I followed the steps quickstart.php in this link to get users' calendars on server. But I get following error : google ...
php|android|authentication|google-calendar-api|google-oauth
6
2016-04-22T08:10:08.680Z
2,016
4
8
4
373
1
1,298
54
5
4
true
false
false
false
false
false
medium
36,788,407
Toolbar is not fully hidden on scroll
<p>These code work fine to me, but the toolbar is not fully hidden on scrolling. I tried lot of things to solve it but i still have the same issue.</p> <p>toolbar.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="...
These code work fine to me, but the toolbar is not fully hidden on scrolling. I tried lot of things to solve it but i still have the same issue. toolbar.xml: [CODE] activity_main: [CODE] In MainActivity.java in onCreate: [CODE]
android|android-toolbar
0
2016-04-22T08:10:37.103Z
2,016
4
8
4
269
1
227
37
2
3
true
false
false
false
false
false
zero
36,788,467
Toolbar position changes with paging
<p>I have been dealing with an issue regarding the CollapsingToolbarLayout, Toolbar when dealing with a ViewPager.</p> <p>The issue is that the position of the Toolbar in the second page (always the 2nd page only) is incorrect. Then in the third, fourth ... pages it is correct again. Pretty hard to explain thoroughly ...
I have been dealing with an issue regarding the CollapsingToolbarLayout, Toolbar when dealing with a ViewPager. The issue is that the position of the Toolbar in the second page (always the 2nd page only) is incorrect. Then in the third, fourth ... pages it is correct again. Pretty hard to explain thoroughly so I includ...
android|android-fragments|android-viewpager|android-toolbar|android-maps-v2
2
2016-04-22T08:13:46.777Z
2,016
4
8
4
218
1
988
36
5
1
true
false
false
false
false
false
low
36,788,481
How to avoid unwanted space between items while using RecyclerView
<p><p>While trying to implement RecyclerView i'm getting large chunk of white space between items...<p></p> <h2>RecyclerView layout:-</h2> <pre><code>?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/cr...
While trying to implement RecyclerView i'm getting large chunk of white space between items... RecyclerView layout:- [CODE] My RecyclerView item layout- [CODE] My RecyclerView setup- [CODE] My RecyclerView adapter [CODE] This is how it looks on moblile after adding items
android|android-recyclerview
2
2016-04-22T08:14:57.500Z
2,016
4
8
4
1,243
2
271
66
2
4
true
false
false
false
false
false
low
36,788,488
Retrofit response give wrong data
<p>Im trying toget video url,title and number oflike from vid.me API.I have GET respone and result you can see from <a href="https://api.vid.me/videos/featured" rel="nofollow">https://api.vid.me/videos/featured</a> I build model,API and custom adapter for recyclerview.In RecyclerView I want to see video,but not playin...
Im trying toget video url,title and number oflike from vid.me API.I have GET respone and result you can see from https://api.vid.me/videos/featured I build model,API and custom adapter for recyclerview.In RecyclerView I want to see video,but not playing video,just snapshot orsomething like this.But when I start my app,...
android|retrofit|android-recyclerview|retrofit2
3
2016-04-22T08:15:30.477Z
2,016
4
8
4
752
1
615
33
4
3
true
false
false
false
false
false
low
36,788,502
Observer Pattern in MVP
<p>I have a System (game) which I try to implement using the architecture Model-View-Presenter. What I have done right now is a while loop in the presenter that calls continuously the view methods for displaying. The way I do this is using a Producer/Consumer pattern, where the View register and event handler for touch...
I have a System (game) which I try to implement using the architecture Model-View-Presenter. What I have done right now is a while loop in the presenter that calls continuously the view methods for displaying. The way I do this is using a Producer/Consumer pattern, where the View register and event handler for touch ev...
java|android|model-view-controller|observer-pattern
2
2016-04-22T08:16:07.913Z
2,016
4
8
4
3,210
2
1,169
23
4
0
false
false
true
false
false
false
low
36,788,529
event.source() returns null in android
<p>I'm implementing pasting clipboard text to another application's EditText view when activity change is detected by using accessibility service. </p> <p>on my Accessibility Service, accessibility event detection works well. but when onAccessibilityEvent is called, the code event.getSource() returns null object.</p> ...
I'm implementing pasting clipboard text to another application's EditText view when activity change is detected by using accessibility service. on my Accessibility Service, accessibility event detection works well. but when onAccessibilityEvent is called, the code event.getSource() returns null object. [CODE] and this ...
java|android|xml|service|accessibilityservice
0
2016-04-22T08:17:41.340Z
2,016
4
8
4
1,696
2
566
38
5
3
true
false
false
false
false
false
zero
36,788,543
navigation view with tab layout, go to a tab(fragment) by navigation view item on click
<p>I have a tabLayout with 4 four tabs(fragments) attached with the support of FragmentPagerAdapter inside the Activity .</p> <p>I want to navigate to tabs using the navigation view attached. How to go the tabs when I click on the items in the navigation view.</p> <p>Then how to remove the current four tabs(which is ...
I have a tabLayout with 4 four tabs(fragments) attached with the support of FragmentPagerAdapter inside the Activity . I want to navigate to tabs using the navigation view attached. How to go the tabs when I click on the items in the navigation view. Then how to remove the current four tabs(which is attached with tabla...
android-fragments|android-tablayout|navigationview
0
2016-04-22T08:18:37.523Z
2,016
4
8
4
1,638
1
450
87
3
3
true
false
false
false
false
false
zero
36,788,583
How to display 2d image on the screen unity3d
<p>I created a unity application for desktop and mobile platforms. There is a map on top-left corner of the screen. I draw circle on this map each frame. The position of the circle changes at runtime anytime. </p> <p>To do for this task, I draw circle on texture and draw this texture. This code works on emulator but n...
I created a unity application for desktop and mobile platforms. There is a map on top-left corner of the screen. I draw circle on this map each frame. The position of the circle changes at runtime anytime. To do for this task, I draw circle on texture and draw this texture. This code works on emulator but not android p...
android|unity3d|graphics|texture2d
-1
2016-04-22T08:20:04.903Z
2,016
4
8
4
1,021
2
682
45
4
1
true
false
false
false
false
true
negative
36,788,665
android: tableLayout is not shown
<p>i have a tableLayout that is created via xml and filled in code.</p> <p>Here is my layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:l...
i have a tableLayout that is created via xml and filled in code. Here is my layout: [CODE] My activity has these member variables: [CODE] this is what happens in the onCreate: [CODE] i fill the tableLayout with this method [CODE] naturally Add and Remove are onClicklistener . The Method is called with 0 and "" , but my...
android
0
2016-04-22T08:24:24.503Z
2,016
4
8
4
41
0
507
33
1
4
true
true
false
false
false
false
zero
36,788,726
Getting Error in integrating MATHJAX in android webview while passing json data from API in webview
<p>I need to integrate MATHJAX into my android webview to parse mathml data coming through API in json format. I took reference from this: <a href="https://github.com/leathrum/android-apps" rel="nofollow noreferrer">https://github.com/leathrum/android-apps</a>.</p> <p>When I wrote this code:</p> <pre><code>public voi...
I need to integrate MATHJAX into my android webview to parse mathml data coming through API in json format. I took reference from this: https://github.com/leathrum/android-apps . When I wrote this code: [CODE] I got error like this: [CODE] I tried this solution into it: WebView code generating Uncaught TypeError and Un...
javascript|android|webview|mathjax|mathml
2
2016-04-22T08:27:35.633Z
2,016
4
8
4
416
0
644
99
5
4
true
true
false
false
false
false
low
36,788,814
Sending Open Sound Control (OSC) in Android Studio, socket error
<p>I tried to use OSC in android studio, following by "Tutorial: Android OSC Communication" on <a href="http://courses.ideate.cmu.edu/physcomp/f14/16-223/tutorial-android-osc-communication/" rel="nofollow">http://courses.ideate.cmu.edu/physcomp/f14/16-223/tutorial-android-osc-communication/</a>. It uses JavaOSC from Il...
I tried to use OSC in android studio, following by "Tutorial: Android OSC Communication" on http://courses.ideate.cmu.edu/physcomp/f14/16-223/tutorial-android-osc-communication/ . It uses JavaOSC from Illposed. However, I got a socket exception error when I created a new OSCPortOut. Can you share some idea of what is h...
java|android|sockets|udp|osc
1
2016-04-22T08:32:20.503Z
2,016
4
8
4
1,911
1
405
64
5
1
true
false
false
false
false
false
low
36,788,893
google::protobuf used in android ndk develop
<p>I recently try to move some predict function of Caffe model(c++) to Android platform(ndk level)<a href="http://docs.opencv.org/trunk/d6/d0f/group__dnn.html#gsc.tab=0" rel="nofollow noreferrer">this is the link:</a> And this model needs support of <strong>OpenCV/OpenCV2</strong> and the <strong>google::protobuf</stro...
I recently try to move some predict function of Caffe model(c++) to Android platform(ndk level) this is the link: And this model needs support of OpenCV/OpenCV2 and the google::protobuf . I have include all the needed lib(.a) of OpenCV in the Android.mk to compile into .so lib provided for the java like below(in Androi...
android|android-ndk|caffe|protocol-buffers
3
2016-04-22T08:35:33.557Z
2,016
4
8
4
1,354
1
1,119
44
4
5
true
false
false
false
false
false
low
36,788,915
Parsing JSONObject to AlertDialog
<p>To parse the following JSONObject:</p> <pre><code>{ "success": true, "data": { "error_warning": "", "shipping_methods": { "free": { "title": "Free Shipping", "quote": { "free": { "code": "free.free", ...
To parse the following JSONObject: [CODE] I am using the following code: [CODE] But I need to create an AlertDialog with select option for shipping methods. As the shipping method array is dynamic and depends upon the address of user. So I can't hard code the keys on shipping_methods. Is there best way to parse this ty...
android|android-alertdialog|json
0
2016-04-22T08:36:18.560Z
2,016
4
8
4
738
0
386
33
3
3
true
true
false
false
false
false
zero
36,788,992
Issues in AlertDialog
<p>My issue happens when I click on a Spinner first position (Mens Accessories): it displays only a message and the cancel Button it does not show the List of Items in alert dilalog.AlertDialog created But list of items not created in Dialog</p> <p>can anyone solve this problem?if any one solve he is the master in an...
My issue happens when I click on a Spinner first position (Mens Accessories): it displays only a message and the cancel Button it does not show the List of Items in alert dilalog.AlertDialog created But list of items not created in Dialog can anyone solve this problem?if any one solve he is the master in android techno...
java|android|android-alertdialog
0
2016-04-22T08:39:59.110Z
2,016
4
8
4
58
3
331
21
3
1
true
false
false
false
false
false
zero
36,789,009
Catch Lock Screen Event
<p>Good day. I am writing in C ++ Builder in Embarcadero Xe8. I do mobile application project on Ios and android and faced such problem: I can not catch the phone lock screen event. I used to always do so:</p> <pre><code> bool TForm1::HandleApp(TApplicationEvent a, TObject *x) { if (a == TApplicationEvent::Ente...
Good day. I am writing in C ++ Builder in Embarcadero Xe8. I do mobile application project on Ios and android and faced such problem: I can not catch the phone lock screen event. I used to always do so: [CODE] But an error: \Unit1.cpp(33): cannot initialize a parameter of type 'TApplicationEventHandler' (aka 'bool ( cl...
android|c++builder|firemonkey|c++builder-xe8
0
2016-04-22T08:40:43.970Z
2,016
4
8
4
301
1
699
23
4
1
true
false
false
false
false
false
zero
36,789,019
Android: Loading Ad delays SharedElementTransition
<p>I got a problem with implementing a smooth shared element transition. When starting this animation, it seems as if Android renders the <code>DetailActivity</code> with its content first and afterwards start the shared element transition. </p> <p>My DetailActivity contains some simple views like <code>TextView</code...
I got a problem with implementing a smooth shared element transition. When starting this animation, it seems as if Android renders the DetailActivity with its content first and afterwards start the shared element transition. My DetailActivity contains some simple views like TextView and ImageView , but also an AdView w...
android|performance|admob|shared-element-transition
1
2016-04-22T08:41:03.130Z
2,016
4
8
4
95
0
833
50
4
1
true
true
false
false
false
false
low