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,882,453
Using StreetViewPanorama for an Android panorama viewer app?
<p>My application's output would be a panorama photo. I looked around for solutions but I couldn't find one which I liked. Almost all of what I saw were an exact copy of a many years old project back on code.google, using GL ES 10 only.</p> <p>I'd like possible good performance and I also want to avoid reinventing the...
My application's output would be a panorama photo. I looked around for solutions but I couldn't find one which I liked. Almost all of what I saw were an exact copy of a many years old project back on code.google, using GL ES 10 only. I'd like possible good performance and I also want to avoid reinventing the wheel. Goo...
android|google-street-view|panoramas|360-panorama-viewer
0
2016-04-27T06:53:19.773Z
2,016
4
6
2
539
0
860
60
4
0
false
true
false
false
false
false
zero
36,882,520
Refresh listview adapter on GSM notification receive
<p>Say <code>listview.java</code> is a file that creates adapter and assigns it to a listview.</p> <p>What I want is when I receive a GSM notification I want to refresh that listview adapter. So as soon as I receive notification my listview should contain new data.</p> <p>I am using <code>onMessageReceived(String fro...
Say listview.java is a file that creates adapter and assigns it to a listview. What I want is when I receive a GSM notification I want to refresh that listview adapter. So as soon as I receive notification my listview should contain new data. I am using onMessageReceived(String from, Bundle data) this method of GcmList...
java|android|listview
0
2016-04-27T06:56:32.513Z
2,016
4
6
2
546
3
865
52
3
0
false
false
false
false
false
false
zero
36,882,522
problems to show MarkerView on pie chart when using MPPiechart library
<p>MainActivity class code: </p> <pre><code>private float[] yData = {25, 35, 40}; private String[] xData = {"x", "y", "z"}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mainLayout = (RelativeLayout) findViewById(...
MainActivity class code: [CODE] and in MyMarkerView class [CODE] I am using this code for mark on pie chart but not showing anything on chart. Is there any mistake in my code? please help.
android|mpandroidchart
1
2016-04-27T06:56:35.477Z
2,016
4
6
2
521
1
188
70
2
2
true
false
false
false
false
false
low
36,882,530
facebook interstitialad does not display close button in android app
<p>For some reason facebook interstitialad does not display close button in my android app. I am followed all the steps from: <a href="https://developers.facebook.com/docs/audience-network/android/interstitial" rel="nofollow noreferrer">https://developers.facebook.com/docs/audience-network/android/interstitial</a></p> ...
For some reason facebook interstitialad does not display close button in my android app. I am followed all the steps from: https://developers.facebook.com/docs/audience-network/android/interstitial However, using back button it does close the ad correctly. But I need to have close button displayed, any help? First imag...
android|facebook|ads
1
2016-04-27T06:56:58.153Z
2,016
4
6
2
730
0
395
68
3
1
true
true
false
false
false
false
low
36,882,577
Best way to add android standard icons in Xamarin
<p>I'm using a Toolbar from "android.support.v7.widget.Toolbar".</p> <p>What is the best way to add (standard) icons into your android application?</p> <p><strong>What i did...</strong></p> <ul> <li>I downloaded the icons from this website (24dp, white): <a href="https://design.google.com/icons/" rel="noreferrer">ht...
I'm using a Toolbar from "android.support.v7.widget.Toolbar". What is the best way to add (standard) icons into your android application? What i did... I downloaded the icons from this website (24dp, white): https://design.google.com/icons/ Unzipped the zip files & put each icon into the specified folder in the app (hd...
android|xamarin|icons|material-design|toolbar
8
2016-04-27T06:59:29.120Z
2,016
4
6
2
10,849
1
574
49
5
3
true
false
true
false
false
false
medium
36,882,666
Tasker Plugin Variable Replacement: Developer
<p>I'm making a plugin for the Taker Android app. The plugin will essentially allow people to create list and cardviews dynamically using their own set values.</p> <p>I thought it'd be nice to also allow the use of Tasker variables to set thee list items etc. This is the it I'm struggling with.</p> <p>This is the sec...
I'm making a plugin for the Taker Android app. The plugin will essentially allow people to create list and cardviews dynamically using their own set values. I thought it'd be nice to also allow the use of Tasker variables to set thee list items etc. This is the it I'm struggling with. This is the section of my code tha...
android|automation|tasker
3
2016-04-27T07:04:49.557Z
2,016
4
7
2
522
1
900
45
3
1
true
false
false
false
false
false
low
36,882,692
how to change custom font for the list items
<p>How to change the font of the ListView items? Here I want to change the font to helvetica regular font. My TextView is assigned to the string variable. Please help me. Thank you in advance.</p> <pre><code>lv.setOnItemClickListener(newandroid.widget.AdapterView.OnItemClickListener() { @Override public void o...
How to change the font of the ListView items? Here I want to change the font to helvetica regular font. My TextView is assigned to the string variable. Please help me. Thank you in advance. [CODE]
android
1
2016-04-27T07:06:05.673Z
2,016
4
7
2
82
3
196
44
1
1
true
false
false
false
false
false
low
36,882,723
ScrollView doesn't work in Android
<p>I have a fragment that contains a view pager, a recycler view, etc. I want to place all of that inside a scroll view , but it just refuses to scroll. Am I missing something here? I've tried setting fillViewport false, and removing the scrollbars:none, and a couple of other things but nothing helps..</p> <pre><code...
I have a fragment that contains a view pager, a recycler view, etc. I want to place all of that inside a scroll view , but it just refuses to scroll. Am I missing something here? I've tried setting fillViewport false, and removing the scrollbars:none, and a couple of other things but nothing helps.. [CODE]
android|scroll|scrollview
1
2016-04-27T07:07:32.633Z
2,016
4
7
2
109
1
307
34
3
1
true
false
false
false
false
false
low
36,882,760
Set new data in dynamic spinner at specific position based on any spinner item selection
<p>I am making an application where i have product detail screen , In that screen i am creating dynamic spinners based on the length of configurable items.Every thing is working fine , but when i try to change the list of other dynamic spinners based on selection of first Dynamic spinner item , the filtered array get s...
I am making an application where i have product detail screen , In that screen i am creating dynamic spinners based on the length of configurable items.Every thing is working fine , but when i try to change the list of other dynamic spinners based on selection of first Dynamic spinner item , the filtered array get shif...
android|android-spinner
0
2016-04-27T07:08:54.757Z
2,016
4
7
2
918
1
1,282
88
2
1
true
false
false
false
false
false
zero
36,882,796
Check if new value is same as the old value
<p>I'm getting few values from a web service. The values keep changing every time I get the value from web service. I use a <code>TimerTask</code> in <code>Service</code>to get the values repeatedly.</p> <p>I can't think of how to check if the value I got is the same as before.</p> <pre><code> public ArrayList g...
I'm getting few values from a web service. The values keep changing every time I get the value from web service. I use a TimerTask in Service to get the values repeatedly. I can't think of how to check if the value I got is the same as before. [CODE]
android
0
2016-04-27T07:11:06.543Z
2,016
4
7
2
504
1
250
43
1
1
true
false
false
false
false
false
zero
36,882,857
Android Scene Transition Animation(target UI is RecyclerView)
<p>Start a Activity : </p> <pre><code> ActivityOptionsCompat activityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation( (Activity) context, new Pair&lt;View, String&gt;(view.findViewById(R.id.iv_content), ArtDetailAdapter.VIEW_NAME_HEADER_IMAGE), ne...
Start a Activity : [CODE] The target activity is contain recyclerView. So I set transitionName is viewHolder: ViewCompat.setTransitionName(vpImages, VIEW_NAME_HEADER_IMAGE); ViewCompat.setTransitionName(tvArtName, VIEW_NAME_HEADER_IMAGE_NAME); The image of target activity was contained in viewPager. The Scene Transitio...
android|animation
2
2016-04-27T07:14:02.780Z
2,016
4
7
2
400
0
531
61
2
1
true
true
false
false
false
false
low
36,882,929
transparent activity blocks touch
<p>I am creating an app which is basically an activity that automatically runs starts a service. I have defined the activity as transparent, just like the post here suggests : </p> <p><a href="https://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android">How do I create a transparent Activ...
I am creating an app which is basically an activity that automatically runs starts a service. I have defined the activity as transparent, just like the post here suggests : How do I create a transparent Activity on Android? however when the app starts, the transparent activity makes the phone "locked". I can't press an...
android|android-activity
2
2016-04-27T07:17:35.060Z
2,016
4
7
2
1,045
1
524
33
2
1
true
false
false
false
false
false
low
36,882,935
Android: ListView wont scroll when drawer is added
<p>I try to add a custom <code>Navigation Drawer</code> to an <code>Activity</code> with a <code>ListView</code>. Before I added the <code>Navigation Drawer</code>, the <code>ListView</code> could be scrolled and you could select items, but when I added the drawer it doesn't do it anymore. When I add the <code>ListView...
I try to add a custom Navigation Drawer to an Activity with a ListView . Before I added the Navigation Drawer , the ListView could be scrolled and you could select items, but when I added the drawer it doesn't do it anymore. When I add the ListView above the Navigation Drawer , the Navigation Drawer works. But when I p...
android|listview|drawerlayout|navigation-drawer
2
2016-04-27T07:17:41.507Z
2,016
4
7
2
374
1
415
50
4
2
true
false
false
false
false
false
low
36,882,958
How start new activity through intent from android SearchView widget query submit
<p>This is main activity of my app. From main activity i can navigate to item list activity by selecting any of categories from RecyclerView list. Also i need to go to the same item list activity by searching item name directly in android SearchView widget in the tool bar. I wrote the code for searchview like this</p> ...
This is main activity of my app. From main activity i can navigate to item list activity by selecting any of categories from RecyclerView list. Also i need to go to the same item list activity by searching item name directly in android SearchView widget in the tool bar. I wrote the code for searchview like this [CODE] ...
android|searchview
0
2016-04-27T07:18:59.413Z
2,016
4
7
2
864
3
418
81
2
1
true
false
false
false
false
false
zero
36,883,139
Not able to access individual data entries in SQLite database in Android
<p>I have saveinSQL class (extends SQLiteOpenHelper) where in I have defined my database accessing methods. I have created a database in Create class. I want to access the database in Home class. I'm able to get the number of rows in my database in my Home class by which I imply that I am able to access the database. B...
I have saveinSQL class (extends SQLiteOpenHelper) where in I have defined my database accessing methods. I have created a database in Create class. I want to access the database in Home class. I'm able to get the number of rows in my database in my Home class by which I imply that I am able to access the database. But ...
android|database|sqlite
-2
2016-04-27T07:28:21.700Z
2,016
4
7
2
52
3
819
72
3
3
true
false
false
false
false
true
negative
36,883,148
Floating action button doesn't appear in kitkat
<p>I have created a single page app where the floating action button is used to share content from the page. It works flawlessly in android lollipop but when i ran the app on kitkat, it doesn't show. Since the only interactive component is the FAB, the user is left with nothing to do but stare. I ran some search and fo...
I have created a single page app where the floating action button is used to share content from the page. It works flawlessly in android lollipop but when i ran the app on kitkat, it doesn't show. Since the only interactive component is the FAB, the user is left with nothing to do but stare. I ran some search and found...
android|xml|android-5.0-lollipop|android-4.4-kitkat|floating-action-button
2
2016-04-27T07:28:44.303Z
2,016
4
7
2
1,920
3
630
47
5
1
true
false
false
false
false
false
low
36,883,193
Android ContentResolver query sometimes not starting ContentProvider process
<p>I have been implementing my own custom content provider in an app A and want to query its database from a separate app B that calls ContentResolver.query(...) using the appropriate custom URI defined in A. </p> <p>All goes well when A has been running just before I launch B (thus A's process still running in the b...
I have been implementing my own custom content provider in an app A and want to query its database from a separate app B that calls ContentResolver.query(...) using the appropriate custom URI defined in A. All goes well when A has been running just before I launch B (thus A's process still running in the background). H...
android|android-contentprovider|android-contentresolver
4
2016-04-27T07:30:42.797Z
2,016
4
7
2
1,202
0
1,892
76
3
0
false
true
false
false
false
false
low
36,883,206
Android getting value empty from custom list view Edittext
<p>Am getting value here for Checkbox, and textview properly. But, I could not get the EditText Values. am getting empty only.</p> <p>my sample code:</p> <pre><code>View view = null ; for(int i = 0; i &lt; list.getCount(); i++ ) { view = list.getAdapter().getView(i, null, null) ; TextView textViewNickName = ...
Am getting value here for Checkbox, and textview properly. But, I could not get the EditText Values. am getting empty only. my sample code: [CODE] I referred this link also : Iterate through ListView and get EditText-Field values Thanks Advance
android|view|android-edittext|getview|listview-adapter
-2
2016-04-27T07:31:16.673Z
2,016
4
7
2
146
1
244
58
5
1
true
false
false
false
false
true
negative
36,883,302
Android studio minify enabled = true , not able to generate apk?
<pre><code>apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt' apply plugin: 'me.tatarka.retrolambda' apply plugin: 'com.google.gms.google-services' apply plugin: 'realm-android' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultPublishConfig "debug" defaultConfig { ...
[CODE] } [CODE] here if i make minify enabled = false the code runs fine while if i use true the code shows Information:Gradle tasks [:app:assembleRelease] google-services plugin could not detect any version for com.google.android.gms, default version: 8.3.0 will be used. please apply google-services plugin at the bott...
android|android-studio
1
2016-04-27T07:36:29.550Z
2,016
4
7
2
4,202
1
4,195
64
2
2
true
false
true
false
false
false
low
36,883,419
Android Wi-Fi P2P: Display peers in ListView
<p>I'm trying to connect 2 devices with Wi-Fi Direct, following the Google API. I want to see the list of devices in the ListView, and it fails. What's wrong with my code?</p> <p><strong>MainActivity</strong></p> <pre><code> import android.content.BroadcastReceiver; import android.content.Context; import a...
I'm trying to connect 2 devices with Wi-Fi Direct, following the Google API. I want to see the list of devices in the ListView, and it fails. What's wrong with my code? MainActivity [CODE] } WiFiDirectBroadcastReceiver [CODE] activity main: [CODE]
android|wifi|p2p|wifi-direct|wifip2p
0
2016-04-27T07:42:47.040Z
2,016
4
7
2
1,077
1
247
44
5
3
true
false
false
false
false
false
zero
36,883,500
Disable collaspsingtoolbar expand
<p>I've got an issue and I'm not able to fix it. I would like my collapsing toolbar not to be expandable if i have no image to set. In my fragment i set the imageview visibility to GONE when there is not image to be set, but by doing so my toolbar just disappear (no more title, no more menu accessible). Does someone k...
I've got an issue and I'm not able to fix it. I would like my collapsing toolbar not to be expandable if i have no image to set. In my fragment i set the imageview visibility to GONE when there is not image to be set, but by doing so my toolbar just disappear (no more title, no more menu accessible). Does someone know ...
android|imageview|android-collapsingtoolbarlayout
2
2016-04-27T07:46:31.467Z
2,016
4
7
2
342
1
552
33
3
1
true
false
false
false
false
false
low
36,883,530
Orientation and script detection (OSD) using Tesseract in Android
<p>I am an android developer and i am integrating Tesseract for OCR scanning. for my application i have the requirement to detect the OCR from any angle of phone and in any mode (portrait or landscape) mode of phone. For this I am trying to get orientation and skew angle of the OCR and based on that i will deskew the i...
I am an android developer and i am integrating Tesseract for OCR scanning. for my application i have the requirement to detect the OCR from any angle of phone and in any mode (portrait or landscape) mode of phone. For this I am trying to get orientation and skew angle of the OCR and based on that i will deskew the imag...
android|ocr|tesseract
2
2016-04-27T07:48:01.387Z
2,016
4
7
2
14,488
1
786
65
3
1
true
false
true
true
false
false
low
36,883,580
Using more times the same CustomDrawableView (java class)
<p>I create a java class that extends View, in the Main Acitivity I initialize more CostumDrawableView, but I would like to use the same CostumDrawableView (example: greenDrawableView) twice or more times, it's possible? How can I do?</p> <p>If I write "greenLayout2.addView(greenDrawableView);" the activity doesn't o...
I create a java class that extends View, in the Main Acitivity I initialize more CostumDrawableView, but I would like to use the same CostumDrawableView (example: greenDrawableView) twice or more times, it's possible? How can I do? If I write "greenLayout2.addView(greenDrawableView);" the activity doesn't open and cras...
android|android-layout|view|crash|android-drawable
2
2016-04-27T07:50:39.127Z
2,016
4
7
2
36
0
345
57
5
2
true
true
false
false
false
false
low
36,883,585
How to Android Studio load libs from other websize,like github
<p>I want to add a libs where in github to my project.For Testing, I create a new project,and add project according to README file, but I get a error. <strong>Error:Failed to resolve: com.borjabravo.readmoretextview:1.1.1:</strong></p> <p><a href="https://github.com/borjabravo10/ReadMoreTextView" rel="nofollow">https:...
I want to add a libs where in github to my project.For Testing, I create a new project,and add project according to README file, but I get a error. Error:Failed to resolve: com.borjabravo.readmoretextview:1.1.1: https://github.com/borjabravo10/ReadMoreTextView (this is project link) compile 'com.borjabravo.readmoretext...
android
0
2016-04-27T07:50:43.813Z
2,016
4
7
2
150
0
420
62
1
2
true
true
false
false
false
false
zero
36,883,636
How to compare data which is entered by user in EditText and retrieve result data in the EditText from sqlite database in android studio 2.0
<p>I am learning android. I am trying to create an application that takes data from user in EditText. Compare that data into SQLite database and return data in another EditText.</p> <p>After running my code application is closing i.e.Force Close. i.e. Unfortunately your application is closed. P...
I am learning android. I am trying to create an application that takes data from user in EditText. Compare that data into SQLite database and return data in another EditText. After running my code application is closing i.e.Force Close. i.e. Unfortunately your application is closed. Please help me to compare and retrie...
android|sqlite
0
2016-04-27T07:53:28.780Z
2,016
4
7
2
1,073
2
468
140
2
4
true
false
false
false
false
false
zero
36,883,734
Can't save multiple custom objects in SharedPreferences?
<p>Here is my issue. I can save an object, but if I save another object, it will erase the previous item. I'm using gson lib to save my items. After some researches I've seen this <a href="https://stackoverflow.com/questions/9054193/how-to-use-sharedpreferences-to-save-more-than-one-values">How to use SharedPreferences...
Here is my issue. I can save an object, but if I save another object, it will erase the previous item. I'm using gson lib to save my items. After some researches I've seen this How to use SharedPreferences to save more than one values? But I can't use it because of my custom objects, if I use .toString(), I will not be...
android|gson|sharedpreferences|adapter
1
2016-04-27T07:57:44.880Z
2,016
4
7
2
420
1
894
56
4
3
true
false
false
false
false
false
low
36,883,748
How to use google indoor maps for indoor navigation
<p>our customer want's to have a <em>BLE (ibeacon or eddystone)</em> based indoor navigation / wayfinding (<em>turn-by-turn</em> navigation) in his shopping mall app (<em>ios/ android</em>).</p> <p>he has already uploaded and created all floor plans/ indoor maps here:<br> <a href="http://www.google.com/maps/about/part...
our customer want's to have a BLE (ibeacon or eddystone) based indoor navigation / wayfinding ( turn-by-turn navigation) in his shopping mall app ( ios/ android ). he has already uploaded and created all floor plans/ indoor maps here: http://www.google.com/maps/about/partners/indoormaps/ the idea is, to equip the mall ...
android|ios|google-maps|indoor-positioning-system|google-indoor-maps
0
2016-04-27T07:58:38.383Z
2,016
4
7
2
2,608
1
954
51
5
0
false
false
true
false
false
false
zero
36,883,782
ListView doesn`t filling
<p>I faced with problem that I cant figure out. I have <strong>FragmentA</strong> and <strong>FragmentB</strong>. When I do first time transaction to <strong>FragmentB</strong> ListView doesn`t filling. If I press "back" and do transaction again, then ListView is filling. Whats wrong with my code?</p> <p>Here is my Fr...
I faced with problem that I cant figure out. I have FragmentA and FragmentB . When I do first time transaction to FragmentB ListView doesn`t filling. If I press "back" and do transaction again, then ListView is filling. Whats wrong with my code? Here is my Fragment Code: [CODE] Here is my Adapter: [CODE]
android|listview
0
2016-04-27T08:00:23.807Z
2,016
4
8
2
47
1
305
24
2
2
true
false
false
false
false
false
zero
36,883,856
Android: Butter knife unable to find and cast the corresponding views in layout
<p>I am using ButterKnief for the first time so as per <a href="http://jakewharton.github.io/butterknife/" rel="nofollow">documentation</a> </p> <p>I am trying to bind my text view and on-click of button change it's text, but its not working because butterknife is even unable to find the view(getting a null)</p> <p>M...
I am using ButterKnief for the first time so as per documentation I am trying to bind my text view and on-click of button change it's text, but its not working because butterknife is even unable to find the view(getting a null) MainActivity class [CODE] dependencies [CODE] Layout File [CODE] Any Idea what might be the ...
android|android-studio-2.0|butterknife
1
2016-04-27T08:03:09.670Z
2,016
4
8
2
1,001
2
339
79
3
3
true
false
false
false
false
false
low
36,883,877
Scene transition image drawn in tiles during transition
<p>I'm facing weird drawing issue with scene transitions (<strong>running with Nexus 5x 6.0.1 platform</strong>)</p> <p>I found out that <code>&lt;item name="android:windowBackground"&gt;@null&lt;/item&gt;</code> has some relation to the issue.</p> <p>Anyone know why this happens and what can be possible places to ch...
I'm facing weird drawing issue with scene transitions ( running with Nexus 5x 6.0.1 platform ) I found out that <item name="android:windowBackground">@null</item> has some relation to the issue. Anyone know why this happens and what can be possible places to check in order to fix this? Here is my test project setup to ...
android|android-transitions
3
2016-04-27T08:04:11.397Z
2,016
4
8
2
113
2
560
55
2
7
true
false
false
false
false
false
low
36,883,938
Retrieve firebase hashmap data in POJO
<p>I used an <code>ArrayList</code> to store data on <code>Firebase</code>.It got stored as a <code>HashMap</code> with key value starting from 0 and its value stored as string.</p> <p>The database is as follows:</p> <p><a href="https://i.stack.imgur.com/ksCcD.png" rel="nofollow noreferrer"><img src="https://i.stack....
I used an ArrayList to store data on Firebase .It got stored as a HashMap with key value starting from 0 and its value stored as string. The database is as follows: I am using POJO , to store and retrieve data. My POJO is defined as follow: [CODE] When I run this code, I get an error such as: [CODE] How do I declare th...
java|android|hashmap|firebase|pojo
0
2016-04-27T08:07:43.970Z
2,016
4
8
2
1,100
2
472
38
5
2
true
false
false
false
false
false
zero
36,883,959
Looking up index of ArrayList of Array
<p>I'm trying to learn how to use an ArrayList of Arrays. I think I understand the arrays well enough but I'm struggling with that next dimension.</p> <p>You can see from my code below that I'm just testing the concepts. I've got the exampleArrayList working but I can't figure out exampleArrayListofArrays.</p> <pre...
I'm trying to learn how to use an ArrayList of Arrays. I think I understand the arrays well enough but I'm struggling with that next dimension. You can see from my code below that I'm just testing the concepts. I've got the exampleArrayList working but I can't figure out exampleArrayListofArrays. [CODE] I have two area...
java|android|arrays|arraylist
0
2016-04-27T08:09:11.233Z
2,016
4
8
2
796
3
1,066
38
4
2
true
false
false
false
false
false
zero
36,883,971
Encrypt and decrypt with password in Android
<p>I have a cryption class like this:</p> <pre><code>import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; /** * Usage: * * String crypto = SimpleCrypto.encrypt(masterpassword, cleartext) * ... * St...
I have a cryption class like this: [CODE] And here is my activity_main.xml [CODE] And here is my MainActivity: [CODE] I can encrypt string but i can't decrypt encrypted string again. Why? What is wrong with this code? I get "javax.crypto.BadPaddingException:pad block corrupted" error with that.
android|encryption
0
2016-04-27T08:09:39.143Z
2,016
4
8
2
2,956
1
295
44
2
3
true
false
true
false
false
false
zero
36,884,050
Setting Alarm for Particular Timings with Respect to Start Date and End Date of an Event in Android
<p>I am having an Calendar Event with <strong>start date as (24hrs format) 27-Apr-2016 11:00:00 and end date as 29-Apr-2016 11:00:00</strong>. I am having three timings <strong>10:45:00</strong>, <strong>10:30:00</strong> and <strong>10:15:00</strong> which are calculated for alerting the event prior to the actual set ...
I am having an Calendar Event with start date as (24hrs format) 27-Apr-2016 11:00:00 and end date as 29-Apr-2016 11:00:00 . I am having three timings 10:45:00 , 10:30:00 and 10:15:00 which are calculated for alerting the event prior to the actual set timings (i.e 15 mins, 30 mins and 45 mins early to the start date). A...
java|android|alarmmanager|android-calendar
2
2016-04-27T08:13:56.673Z
2,016
4
8
2
990
1
606
99
4
2
true
false
false
false
false
false
low
36,884,119
Why does my SQLite database get deleted when it's changed?
<p>I'm trying to implement version control into my database. I have following code:</p> <pre><code>if (File.Exists (dbPath)) { database = new SQLiteConnection(dbPath); dbVersion = GetDatabaseVersion(); if (dbVersion != DATABASE_VERSION) { CreateDatabase(dbPath); database = new SQLiteConnect...
I'm trying to implement version control into my database. I have following code: [CODE] When I run the code for the first time File.Exists (dbPath) returns false as expected. When I then stop the app and build and deploy again, File.Exists (dbPath) returns true (as expected) and the versions get checked. But when I cha...
android|xamarin|xamarin.android|android-sqlite
0
2016-04-27T08:17:42.660Z
2,016
4
8
2
1,061
2
784
58
4
1
true
false
false
false
false
false
zero
36,884,194
Adding back button and override onBackPressed
<p>I want to add back arrow in my activity,and override back pressed to just doing "back" function,line button on my device.Can I do this without implementing parent activityA to my Activity B.Tried to use</p> <pre><code>getActionBar().setDisplayHomeAsUpEnabled(true); </code></pre> <p>but android told me that this co...
I want to add back arrow in my activity,and override back pressed to just doing "back" function,line button on my device.Can I do this without implementing parent activityA to my Activity B.Tried to use [CODE] but android told me that this code may produce NPE,and when I try to set theme Theme.AppCompat android studio ...
android|android-activity
0
2016-04-27T08:20:52.770Z
2,016
4
8
2
1,226
3
382
45
2
2
true
false
false
false
false
false
zero
36,884,343
SQlite Query to get Multiple value from same Column by passing CheckBox selected items
<p>I have populated <strong>RecyclerView with CheckBox</strong>. When I click "<strong>APPLY</strong>" button ,I have gotten all the clicked check box value(<strong>CATEGORY</strong>). I need to get relevant data by passing this category in SQLite. </p> <p>I have done it by selecting only one Category. But I need to g...
I have populated RecyclerView with CheckBox . When I click " APPLY " button ,I have gotten all the clicked check box value( CATEGORY ). I need to get relevant data by passing this category in SQLite. I have done it by selecting only one Category. But I need to get the relevant data of selected Category form the DataBas...
android|sqlite|checkbox|android-recyclerview
0
2016-04-27T08:28:44.957Z
2,016
4
8
2
678
1
517
86
4
1
true
false
false
false
false
false
zero
36,884,362
Accessing an API from webserver in xamarin android application
<p>Having an issue parsing results from API into my textview objects... please, I need help:</p> <pre><code>{"items":[{"id":0,"shortname":"NETD","_links":{"self":{"href":"http://api.iolab.net/v1/exams/0"}}}] </code></pre> <p>and this is my code:</p> <pre><code>Protected override void OnCreate(Bundle bundle) { ba...
Having an issue parsing results from API into my textview objects... please, I need help: [CODE] and this is my code: [CODE]
c#|android|xamarin
-1
2016-04-27T08:29:49.300Z
2,016
4
8
2
808
1
124
62
3
2
true
false
false
false
false
true
negative
36,884,602
How to set alarm on Given time in android
<pre><code>public class SchedulerSetupReceiver extends WakefulBroadcastReceiver { private static final String APP_TAG = "com.hascode.android"; private static final int EXEC_INTERVAL = 10 * 1000; DBhelper dbhelper; @Override public void onReceive(final Context ctx, final Intent intent) { Lo...
[CODE] This is my code for repeating alarm in each 20 second but i want Alarm should set at 3.30 , 4.50, 8.30 can any one Suggest me what i will change in Set repeating method so that Alarm will Broad cast Each 3.30 , 4.50,8.30 so that i can test some Condition in broadcast .
android
0
2016-04-27T08:41:45.583Z
2,016
4
8
2
439
1
276
41
1
1
true
false
false
false
false
false
zero
36,884,638
Display Bitmap images from Bitmap ArrayList Android
<p>I am trying to show Bitmap images stored in an ArrayList posts; However, when the code is run no images are displayed in the Fragment.</p> <p>The following is my code:</p> <pre><code>ImageAdapter() Class public class ImageAdapter extends BaseAdapter { private Context mContext; private ArrayList&lt;Bitmap&...
I am trying to show Bitmap images stored in an ArrayList posts; However, when the code is run no images are displayed in the Fragment. The following is my code: [CODE] A post is added to the arraylist whenever the user clicks the SUBMIT button on the portal screen as follows: in Portal() class: [CODE] In my Fragment Cl...
android
1
2016-04-27T08:43:16.360Z
2,016
4
8
2
1,240
2
620
51
1
6
true
false
false
false
false
false
low
36,884,651
Picking a image from Camera works, but not from the Gallary [VIDEO DEMO]
<p>I have followed some examples on SO of how to retrive an image from Camera or Gallary. The camera part works, but the gallary part dosn't. The code seems very diffuclt to understand for me, so I dont know what exactly to look after.</p> <p>I also have the needed permissions in my manifest.</p> <p>Here is a video o...
I have followed some examples on SO of how to retrive an image from Camera or Gallary. The camera part works, but the gallary part dosn't. The code seems very diffuclt to understand for me, so I dont know what exactly to look after. I also have the needed permissions in my manifest. Here is a video of the problem: http...
android
2
2016-04-27T08:43:47.130Z
2,016
4
8
2
561
1
443
72
1
2
true
false
false
false
false
false
low
36,884,655
EditText checking
<p>I'm trying to check an EditText value, but the application crashes.<br> How can I handle my EditText?</p> <pre><code> String stra_txt = edit_1.getText().toString(); boolean first = false; if (stra_txt.equals("1") || stra_txt.equals("0")) { first = true; ...
I'm trying to check an EditText value, but the application crashes. How can I handle my EditText? [CODE] this code does not work too: [CODE] upd. I've found solution: [CODE]
android|if-statement|android-edittext
-1
2016-04-27T08:43:50.133Z
2,016
4
8
2
54
3
173
17
3
3
true
false
false
false
false
true
negative
36,884,709
GcmNetworkManager scheduling issues
<p>I am using GcmNetworkManager in my application for periodic and one of task task execution. I am getting these 2 errors and unable to figure out the reason. Implementation is correct as i am unable to reproduce these issue on staging.</p> <pre><code>Fatal Exception: java.lang.RuntimeException: Package manager has d...
I am using GcmNetworkManager in my application for periodic and one of task task execution. I am getting these 2 errors and unable to figure out the reason. Implementation is correct as i am unable to reproduce these issue on staging. [CODE] & [CODE] Any help will be appreciated. Thanks P.S: Devices has play-service 8....
android|scheduling|job-scheduling|periodic-task|gcm-network-manager
13
2016-04-27T08:46:07.510Z
2,016
4
8
2
2,253
4
323
35
5
2
true
false
false
false
true
false
medium
36,884,737
ActivityNotFoundException onBackPressed and onSaveInstanceState
<p>Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {Myclass}; have you declared this activity in your AndroidManifest.xml?</p> <p>in these two overridden method:</p> <pre><code>@Override protected void onSaveInstanceState(Bundle outState) { if(result != null){ ...
Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {Myclass}; have you declared this activity in your AndroidManifest.xml? in these two overridden method: [CODE] Logcat error: Fatal Exception: android.content.ActivityNotFoundException: Unable to find explicit activity cla...
android
1
2016-04-27T08:47:30.597Z
2,016
4
8
2
120
1
1,489
63
1
1
true
false
false
false
false
false
low
36,884,742
Parse query only working from one device
<p>I am currently developping an app android app with a friend and we are using Back4App's parse as a backend.</p> <p>We're syncing our version with BitBucket and haven't encountered major problems until now.</p> <p>Our app bassically needs to get objects from a Parse Class and show them in a list.</p> <p>The thing ...
I am currently developping an app android app with a friend and we are using Back4App's parse as a backend. We're syncing our version with BitBucket and haven't encountered major problems until now. Our app bassically needs to get objects from a Parse Class and show them in a list. The thing is that the following code ...
android|parse-platform|collaboration
2
2016-04-27T08:47:39.587Z
2,016
4
8
2
65
1
656
40
3
1
true
false
false
false
false
false
low
36,884,789
Android call multiple buttons with single touch
<p>I'm trying to make a really simple touch test for android. I made a simple table layout, with 2 rows and in each row with 2 Views. It fills the screen. I set an onTouchListener that changes the Views background color. The issue is that if I swipe through multiple elements only the first touched elements ontouch even...
I'm trying to make a really simple touch test for android. I made a simple table layout, with 2 rows and in each row with 2 Views. It fills the screen. I set an onTouchListener that changes the Views background color. The issue is that if I swipe through multiple elements only the first touched elements ontouch event g...
android|button|layout|touch
0
2016-04-27T08:49:51.723Z
2,016
4
8
2
107
0
524
47
4
2
true
true
false
false
false
false
zero
36,884,798
Using Session php android
<p>In my android application i call php web service .at the first service is checking the login page if the user and the password are correct ,i create a new session for this user and i call this variable in another php page to treat some request .. The problem is when i call this variable from my android app it tells ...
In my android application i call php web service .at the first service is checking the login page if the user and the password are correct ,i create a new session for this user and i call this variable in another php page to treat some request .. The problem is when i call this variable from my android app it tells me:...
php|android|android-studio
1
2016-04-27T08:50:09.007Z
2,016
4
8
2
1,105
2
453
25
3
2
true
false
false
false
false
false
low
36,884,855
Java Android : How to extract method with context as parameter
<p>I'm trying to extract a method that returns song information to a new class so I can call its instance from more than one class. </p> <p><strong>The method :</strong></p> <pre><code>public int getSongList(ContentResolver resolver){ //retrieve song info ContentResolver musicResolver = resolver; ...
I'm trying to extract a method that returns song information to a new class so I can call its instance from more than one class. The method : [CODE] Assuming that the above method is placed in MainActivity. Here's how I'm trying to instantiate it from a fragment. [CODE] Error : java.lang.NullPointerException: Attempt t...
java|android|android-layout|android-fragments|android-studio
1
2016-04-27T08:52:32.160Z
2,016
4
8
2
265
1
497
62
5
2
true
false
false
false
false
false
low
36,884,931
Android change marker title dynamically
<p>My target is to change marker title on button click. The problem is that I cannot get marker and set title of it in <code>onCreate()</code> because it is initialized in <code>onMapReady()</code>. I have the following code: </p> <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle...
My target is to change marker title on button click. The problem is that I cannot get marker and set title of it in onCreate() because it is initialized in onMapReady() . I have the following code: [CODE] and [CODE]
android|maps|google-maps-android-api-2
1
2016-04-27T08:55:31.827Z
2,016
4
8
2
2,237
1
215
39
3
2
true
false
false
false
false
false
low
36,884,984
Unable to run android.bat file. xcopy command halts the execution
<p>I'm new to Android development on windows and don't have any idea about <code>android.bat</code> file. I just wanted to use for developing apps with <strong>NativeScript</strong> so i have installed android-sdk and did all the stuff of system variables.</p> <p>Firstly statically defined path for <code>java_exe</cod...
I'm new to Android development on windows and don't have any idea about android.bat file. I just wanted to use for developing apps with NativeScript so i have installed android-sdk and did all the stuff of system variables. Firstly statically defined path for java_exe set java_exe=%JAVA_HOME%bin\java.exe and for javaw_...
javascript|android|windows|batch-file|nativescript
-1
2016-04-27T08:57:36.333Z
2,016
4
8
2
150
1
720
65
5
3
true
false
false
false
false
true
negative
36,885,021
Android JSON parsing - Read data from a MySQL db , parsing & display result in a ListView
<p>I'm following a tutorial about <code>Android JSON parsing</code> on youtube. I want to read data from <code>MySQL db</code> parse into <code>JSON format</code> and display them in a list view in my Android app.</p> <p>I have a created a <code>PHP</code> to <code>decode JSON data</code> and it shows in my Android ap...
I'm following a tutorial about Android JSON parsing on youtube. I want to read data from MySQL db parse into JSON format and display them in a list view in my Android app. I have a created a PHP to decode JSON data and it shows in my Android app. But when I try to display them in a List View app shows a blank screen . ...
android|mysql|json|listview
1
2016-04-27T08:58:49.840Z
2,016
4
8
2
1,251
3
460
89
4
3
true
false
false
false
false
false
low
36,885,029
building android error java version
<p>I'm newbie in building android OS.</p> <p>I use Ubuntu 14.04 LTS and the JDK 8.</p> <p>The envsetup.sh gives :</p> <pre><code>============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=6.0.1 TARGET_PRODUCT=aosp_arm TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_BUILD_A...
I'm newbie in building android OS. I use Ubuntu 14.04 LTS and the JDK 8. The envsetup.sh gives : [CODE] And I try to compile with make -J4 I get the foolowing error : [CODE] So I change the JDK to version 7 but I get the same error but inverted : [CODE] So what is the pb ? How can I solve it ? Thank for your help
android|building
3
2016-04-27T08:59:06.547Z
2,016
4
8
2
4,643
2
314
35
2
3
true
false
true
false
false
false
low
36,885,081
loading spinner from url using json
<p>I am trying to load spinner values from url using json. </p> <p>The code I'm using is </p> <pre><code> private class DownloadJSON extends AsyncTask&lt;Void, Void, Void&gt; { protected Void doInBackground(Void... params) { // Locate the WorldPopulation Class world = new...
I am trying to load spinner values from url using json. The code I'm using is [CODE] This code displays result sometimes and doesn't display sometime. I am not understanding the issue and want to know if there is some other way to fetch values from url into spinner. The time when i am not getting displayed with the val...
android|json|url|spinner
1
2016-04-27T09:01:12.640Z
2,016
4
9
2
1,001
3
359
35
4
2
true
false
false
false
false
false
low
36,885,212
Force user to pass by Facebook Login when deep linking
<p>My APP is using a LoginActivity powered by Facebook SDK.</p> <p>All works fine, apart when i want to do deep linking, because if i send directly the user to one part of my app, then the user bypass the <em>so called mandatory login</em></p> <p>So what i did is the following:</p> <pre><code>&lt;activity an...
My APP is using a LoginActivity powered by Facebook SDK. All works fine, apart when i want to do deep linking, because if i send directly the user to one part of my app, then the user bypass the so called mandatory login So what i did is the following: [CODE] with the data scheme on the login activity, the user that re...
java|android|facebook-android-sdk
1
2016-04-27T09:06:55.450Z
2,016
4
9
2
477
0
844
54
3
4
true
true
false
false
false
false
low
36,885,261
android : custom progress bar
<p>I want to create Custom ProgressBar with style Spinner as below:</p> <p><a href="https://i.stack.imgur.com/iEtAB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iEtAB.png" alt="enter image description here"></a></p> <p>I have tried following way to achieve this:</p> <p><strong>layout.xml</stron...
I want to create Custom ProgressBar with style Spinner as below: I have tried following way to achieve this: layout.xml [CODE] layer_list_progress_bar_background.xml [CODE] layer_list_progress_bar_foreground.xml [CODE] But, I not able to display progress. Output of my code is as below: Am I going wrong somewhere ? Is t...
android|android-progressbar|layer-list
1
2016-04-27T09:09:32.247Z
2,016
4
9
2
281
1
430
29
3
3
true
false
false
false
false
false
low
36,885,407
Adding Events for all days between start date and end date in google calendar Android
<p>Adding Events for all days between start date and end date in google calendar Android. i want remainder every 3 months till end date. This is my function</p> <pre><code> public void addEvent1(Context ctx, String title){ SimpleDateFormat df2 = new SimpleDateFormat("dd/MM/yyyy"); SimpleDat...
Adding Events for all days between start date and end date in google calendar Android. i want remainder every 3 months till end date. This is my function [CODE] this function adds events every day. How to remove that. I need only remainder.Is there any anything wrong in my code??
android|google-calendar-api|calendarcontract
7
2016-04-27T09:16:21.063Z
2,016
4
9
2
2,652
1
280
85
3
1
true
false
true
false
false
false
medium
36,885,417
Android, API < 14 mediarecord cause the camera brightness to dim
<p>i have a piece of code here, </p> <pre><code>public boolean prepareMediaRecorder(ICameraService cameraService, String path) { mediaRecorder = new MediaRecorder(); cameraService.bindRecorder(mediaRecorder); // Step 2: Set sources mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); ...
i have a piece of code here, [CODE] when its previewing on camera the camera brightness looks normal, but when i click record that trigger this code: [CODE] the camera brightness is become dim i have tried to change the paramters with [CODE] and the camera still the same what should i do to make the camera brightness b...
android|camera|android-mediarecorder
1
2016-04-27T09:16:39.593Z
2,016
4
9
2
139
0
436
64
3
3
true
true
false
false
false
false
low
36,885,469
Out of memory error when loading bitmap from Uri
<p>I am using the following method to get the <code>Bitmap</code> from a <code>Uri</code> :</p> <pre><code>private static Bitmap getBitmapFromUri(@NonNull Context context, @NonNull Uri uri) throws IOException { ParcelFileDescriptor parcelFileDescriptor = context.getContentResolver().openFileDe...
I am using the following method to get the Bitmap from a Uri : [CODE] The problem is, I am sometimes getting OOM errors in the return statement from Crashlytics . I assume it is happening because the selected image is of a large size. How do modify it so as to return the best quality scaled down version of Bitmap so th...
android|bitmap
0
2016-04-27T09:18:40.700Z
2,016
4
9
2
1,082
5
465
48
2
1
true
false
false
false
false
false
zero
36,885,482
Get results from fragments to activity
<p>This is the fragment </p> <pre><code>private TextView tv_name,tv_email,tv_message; private SharedPreferences pref; private AppCompatButton btn_change_password,btn_order,btn_logout; private EditText et_old_password,et_new_password; private AlertDialog dialog; private ProgressBar progress; EditText cardnumber; @Over...
This is the fragment [CODE] i want to get to activityresult1 when i press the button btn_order in the fragment so that i can go to the activityresult1 and it will display the EMAIL which is tv_email please help me with it This is the activityresult1 [CODE]
android|android-fragments|android-studio
0
2016-04-27T09:19:27.033Z
2,016
4
9
2
127
2
256
38
3
2
true
false
false
false
false
false
zero
36,885,503
I have data to get but still return size=0 when I access it using service with retrofit
<p>This is my code to access URL service</p> <pre><code> public interface BukuResepMasakanAPI { public static String baseURL = "http://10.108.91.11/buku_resep_masakan_service/"; //membuat Instance Retrofit Retrofit client = new Retrofit.Builder() .baseUrl(baseURL) .addConverterF...
This is my code to access URL service [CODE] and this is my code to call retrofit [CODE] When I run my apps there is no error but I still get size =0 whereas I have data to get
android|retrofit
0
2016-04-27T09:20:09.840Z
2,016
4
9
2
32
1
176
87
2
2
true
false
false
false
false
false
zero
36,885,517
Failure delivering result - Cannot execute non-void method openCamera
<p>I'm using <a href="https://github.com/googlesamples/easypermissions" rel="nofollow">EasyPermissions</a> library from Google to handle Permissions on Android 6. The first time I click the button to capture image it asks me to give permissions for <code>CAMERA</code> and for <code>WRITE_EXTERNAL_STORAGE</code>. </p> ...
I'm using EasyPermissions library from Google to handle Permissions on Android 6. The first time I click the button to capture image it asks me to give permissions for CAMERA and for WRITE_EXTERNAL_STORAGE . After I have accepted both permissions app crashes with the error message you can see below : [CODE] and the ope...
android|android-permissions
1
2016-04-27T09:20:38.863Z
2,016
4
9
2
1,406
1
345
69
2
2
true
false
false
false
false
false
low
36,885,552
Pass data to service - android?
<p>I have an AsyncTask in my Activity,I call AsyncTask :</p> <pre><code>CallServicesSetQuestion task = new CallServicesSetQuestion(); task.execute(rb); </code></pre> <p>Then :</p> <pre><code>public class CallServicesSetQuestion extends AsyncTask&lt;RequestPackage,String,String&gt;{ @Override protected void ...
I have an AsyncTask in my Activity,I call AsyncTask : [CODE] Then : [CODE] I need to send RequestPackage to service but I can't.How I can't send it. Here is my RequestPackage : [CODE]
android|android-intent|android-asynctask|android-service
-1
2016-04-27T09:22:11.590Z
2,016
4
9
2
159
2
183
31
4
3
true
false
false
false
false
true
negative
36,885,589
Theming class extends View (Button) with AppCompat
<p>I have declared <code>Button</code> inside my XML:</p> <pre><code>&lt;Button android:id="@+id/custom_id" android:theme="@style/BlueButtonTheme" android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="1" android:text="@string/custom_string"/&gt; </code></pre> <p...
I have declared Button inside my XML: [CODE] most important line is styling with BlueButtonTheme : [CODE] And Button is blue in all os versions, nice... Now I want to create custom MyButton extends Button , but when I set in XML: [CODE] widget will stay gray in e.g. Android 4.1 (physical test device), but have white te...
android|android-appcompat|android-button|android-theme|android-styles
0
2016-04-27T09:23:38.350Z
2,016
4
9
2
181
1
529
50
5
3
true
false
false
false
false
false
zero
36,885,649
Thread.UncaughtExceptionHandler with multiple threads
<p>Our Android application uses several threads. </p> <ul> <li>The usual UI thread</li> <li>A communication layer ( a sticky service ) running several threads to connect to a socket.</li> <li>And few more, to load images, videos...</li> </ul> <p>We currently have just one <code>UncaughtExceptionHandler</code> defined...
Our Android application uses several threads. The usual UI thread A communication layer ( a sticky service ) running several threads to connect to a socket. And few more, to load images, videos... We currently have just one UncaughtExceptionHandler defined in our Application : [CODE] Making some research about this con...
java|android|multithreading|exception-handling
2
2016-04-27T09:26:20.483Z
2,016
4
9
2
1,488
0
1,164
53
4
2
true
true
false
false
false
false
low
36,885,739
"Multiple dex files" when building PhoneGap app
<p>I'm using <a href="http://build.phonegap.com" rel="nofollow">build.phonegap.com</a> to build my app (for Android in this case). However, I get the following error:</p> <pre><code>com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes; </code></pre> <p>My understanding is that t...
I'm using build.phonegap.com to build my app (for Android in this case). However, I get the following error: [CODE] My understanding is that this is caused by two or more plugins using different Android Support Library versions. A few solutions I've come across here is to: Adding multiDexEnabled true inside defaultConf...
android|cordova|phonegap-plugins|cordova-plugins|phonegap-build
2
2016-04-27T09:30:05.087Z
2,016
4
9
2
197
0
641
47
5
1
true
true
false
false
false
false
low
36,885,791
How to execute URL on Fragment change in android?
<p>I have a fragment in my app named"A" and "B" in A fragment I execute URL that fetch data from server when I change to "B" It still loading data.what I want when I change to "B" A stop executing URL when I again switch to A then A start executing.How can I do that.</p> <pre><code>@Nullable @Override public View onCr...
I have a fragment in my app named"A" and "B" in A fragment I execute URL that fetch data from server when I change to "B" It still loading data.what I want when I change to "B" A stop executing URL when I again switch to A then A start executing.How can I do that. [CODE] }
android
0
2016-04-27T09:32:34.353Z
2,016
4
9
2
330
1
273
49
1
1
true
false
false
false
false
false
zero
36,885,956
What's the correct way to form the URI to the video file I intend to send to Whatsapp?
<p>I've been trying to send videos to Instagram and Whatsapp using the following code:</p> <pre><code>private void createShareIntent(String type, shareVectorList svList){ // Create the new Intent using the 'Send' action. Intent share = new Intent(Intent.ACTION_SEND); // Set the MIME type share.setTyp...
I've been trying to send videos to Instagram and Whatsapp using the following code: [CODE] When I send the video to Instagram, it uploads fine. When I send the video to Whatsapp, however, it just shows a black screen where the video editing part is supposed to be. When I look at the Android logs, it states a FileNotFou...
android|uri|whatsapp
3
2016-04-27T09:38:49.293Z
2,016
4
9
2
732
1
946
86
3
2
true
false
false
false
false
false
low
36,886,090
Error when recording audio using MediaProjection api on android 5.0
<p>case 1: I am working on VOIP project where users can talk using their android smartphones. case 2: The same time i also want to record the voice &amp; video on a device and save it on local sd card. </p> <p>The problem is i am not able to record voice in case 2. Case 1 works fine and users are able to talk to each ...
case 1: I am working on VOIP project where users can talk using their android smartphones. case 2: The same time i also want to record the voice & video on a device and save it on local sd card. The problem is i am not able to record voice in case 2. Case 1 works fine and users are able to talk to each other. for case ...
android|audio|voip|android-mediarecorder|android-mediaprojection
3
2016-04-27T09:44:34.370Z
2,016
4
9
2
370
0
499
67
5
2
true
true
false
false
false
false
low
36,886,096
Android MD5 hash from contentresolver inputstream
<p>I'm trying to upload a file from my android app to my server, and to be sure it is done correctly I would like to add the MD5 hash. The file to be uploaded is referenced by a content:// Uri. I use the below code to calculate the MD5 hash on my android device, and a slightly different code on my server (see comment i...
I'm trying to upload a file from my android app to my server, and to be sure it is done correctly I would like to add the MD5 hash. The file to be uploaded is referenced by a content:// Uri. I use the below code to calculate the MD5 hash on my android device, and a slightly different code on my server (see comment in c...
android|md5
1
2016-04-27T09:44:47.027Z
2,016
4
9
2
352
1
500
49
2
1
true
false
false
false
false
false
low
36,886,097
creating barcode scanner with zxing source code and core java
<p>I am assigned to create a barcode scanner which wont make user install any third party app.</p> <p>My ADT is Android Studio 2.0, SDK 24.4.1, jdk edition 8.</p> <p>My target was to copy the zxing source and keep it with my app source and copy the core to the libs folder of zxing source. Then in the MainActivity of ...
I am assigned to create a barcode scanner which wont make user install any third party app. My ADT is Android Studio 2.0, SDK 24.4.1, jdk edition 8. My target was to copy the zxing source and keep it with my app source and copy the core to the libs folder of zxing source. Then in the MainActivity of my app source I cal...
android|android-studio|zxing|barcode-scanner|libs
0
2016-04-27T09:44:49.263Z
2,016
4
9
2
1,727
1
1,219
61
5
0
false
false
false
false
false
false
zero
36,886,181
Java exception not being caught?
<p>I´ve got the following code in a class called <code>UserRepository</code>, that throws an Exception:</p> <pre><code>public void addUser(final User user) throws IllegalArgumentException { final String encodedUserId = Email.encodeID(user.getEmail().getAddress()); firebaseUsersRef.child(encodedUserId)...
I´ve got the following code in a class called UserRepository , that throws an Exception: [CODE] I am using it in RegisterActivity.java , like this: [CODE] So I am catching the exception, if happens. However, for some reason, the exception is not being caught . Any hint? Thanks. EDIT : Here´s my stacktrace: [CODE]
java|android|oop|exception|try-catch
1
2016-04-27T09:48:07.110Z
2,016
4
9
2
527
2
314
32
5
3
true
false
false
false
false
false
low
36,886,416
Moving forward one by one in arraylist till the end, on button press using fragment?
<p>I want to use fragment in my activity so that on button press it will update the textView. I am storing that data in ArrayList.I want to show that data one by one in text view on button press. If ArrayList contains five data then I want to update the text in text view five times using fragment</p> <pre><code> ...
I want to use fragment in my activity so that on button press it will update the textView. I am storing that data in ArrayList.I want to show that data one by one in text view on button press. If ArrayList contains five data then I want to update the text in text view five times using fragment [CODE] Right now only fir...
android|android-fragments
0
2016-04-27T09:56:33.770Z
2,016
4
9
2
182
1
358
84
2
1
true
false
false
false
false
false
zero
36,886,568
remove Top Fragment of BackStack
<p>What I am trying to do is at <code>onBackPressed</code> I want create a new object of the top Fragment so I am trying this code:</p> <pre><code>if (getFragmentManager().getBackStackEntryCount() &gt; 1) { FragmentManager.BackStackEntry backEntry =getFragmentManager().getBackStackEntryAt(getFragmentManager().getB...
What I am trying to do is at onBackPressed I want create a new object of the top Fragment so I am trying this code: [CODE] The problem is I think I should then remove the Top Fragment from BackStack but using popBackStack is wrong because it shows the the top fragment and i only need to remove it from BackStack. any Id...
android|android-fragments
1
2016-04-27T10:02:44.203Z
2,016
4
10
2
854
1
324
32
2
1
true
false
false
false
false
false
low
36,886,629
Dismiss facebook login dialog android
<p>I've integrated <strong>facebook sdk v-4</strong> with my android app. Here I've worked facebook login in 2 activities.</p> <p>1) In one activity fb login is done via <strong>LoginButton</strong>. Where after successful login the fb login dialog is dismissed by facebook sdk automatically.</p> <p>code:</p> <pre><c...
I've integrated facebook sdk v-4 with my android app. Here I've worked facebook login in 2 activities. 1) In one activity fb login is done via LoginButton . Where after successful login the fb login dialog is dismissed by facebook sdk automatically. code: [CODE] 2)On the other hand I used LoginManager to log in to fb. ...
android|facebook|facebook-android-sdk
1
2016-04-27T10:04:54.867Z
2,016
4
10
2
1,153
1
694
37
3
2
true
false
false
false
false
false
low
36,886,678
Image shows on emulator but not on real device
<p>I'm working on an Android project where I use a custom ListView with an image on the left.<br> I use Genymotion emulator, which works fine. The image is shown perfectly: <a href="http://i.stack.imgur.com/ilsJI.png" rel="nofollow">Screenshot from Genymotion emulator</a></p> <p>However, when I use the app on my devic...
I'm working on an Android project where I use a custom ListView with an image on the left. I use Genymotion emulator, which works fine. The image is shown perfectly: Screenshot from Genymotion emulator However, when I use the app on my device (Huawei P8 Lite), nothing is shown: Screenshot from device I tried to debug t...
java|android|image|emulation|device
0
2016-04-27T10:06:55.187Z
2,016
4
10
2
2,016
3
1,378
46
5
5
true
false
false
false
false
false
zero
36,886,768
Get a list of all running applications
<p>I want to get a list of all currently running applications (also paused applications in the background). </p> <p>I can only find old answers to the problem with a deprecated api (ActivityManager.getRunningTasks()), which does not work anymore.</p> <p>I have tested the following code:</p> <pre><code>public class T...
I want to get a list of all currently running applications (also paused applications in the background). I can only find old answers to the problem with a deprecated api (ActivityManager.getRunningTasks()), which does not work anymore. I have tested the following code: [CODE] which unfortunately only returns the proces...
android
-1
2016-04-27T10:10:49.670Z
2,016
4
10
2
946
1
435
38
1
1
true
false
false
false
false
true
negative
36,886,981
Is it possible to parse json without creating CallAdapter in Retrofit2
<p>I use retrofit2 in my project and I need to parse some json answer into custom object. So I created deserializer and called it in GsonBuilder</p> <pre><code>private final Gson _gson = new GsonBuilder() .registerTypeAdapter(DaysList.class, new DaysDeserializer()) .create(); </code></pre> <p>After that I def...
I use retrofit2 in my project and I need to parse some json answer into custom object. So I created deserializer and called it in GsonBuilder [CODE] After that I defined Retrofit [CODE] But with defined retrofit service [CODE] I got an exception. After that I changed method signature to service method and it became: [C...
java|android|json|gson|retrofit2
0
2016-04-27T10:19:34.433Z
2,016
4
10
2
100
1
565
70
5
5
true
false
false
false
false
false
zero
36,887,007
Xamarin Forms and Azure Mobile Apps: CancelledBySyncStoreError Exception from PullAsync
<p>I'm trying to reproduce the post "Getting Started with Azure Mobile Apps’ Easy Tables" from <em>James Montemagno</em>. However I'd like to make some changes and/or additions, so that the result fits into my personal interests. Everything works fine except one issue:</p> <p><strong>PullAsync</strong> (from <strong>I...
I'm trying to reproduce the post "Getting Started with Azure Mobile Apps’ Easy Tables" from James Montemagno . However I'd like to make some changes and/or additions, so that the result fits into my personal interests. Everything works fine except one issue: PullAsync (from IMobileServiceSyncTable ) throws an Cancelled...
c#|android|visual-studio-2013|xamarin.forms|azure-mobile-services
0
2016-04-27T10:20:10.283Z
2,016
4
10
2
550
1
2,013
87
5
5
true
false
false
false
false
false
zero
36,887,049
How can I do better than brute force in finding closest location?
<p>I have the following code: </p> <pre><code>public static Location findClosest(Location myPosition, ArrayList&lt;Location&gt; spots) { double min = Double.MAX_VALUE; Location closer = null; for(MyPosition aPosition:spots) { float dist = Math.abs(aPosition.distanceTo(myPosition)); if(dist &...
I have the following code: [CODE] This is a brute force O(N^2) approach because this is called from the following function: [CODE] which for now works ok taking into account that the size of spots is not that big ~200 max. What can I do to improve my approach? Besides geohashing is there any other algorithm I could use...
java|android|algorithm|geolocation|coordinates
5
2016-04-27T10:21:49.887Z
2,016
4
10
2
98
2
425
65
5
2
true
false
false
false
false
false
low
36,887,207
MediaRecorder do not start with code -38
<p>I am trying to write video to socket (with ParcelFileDescriptor). But when calling mediaPlayer.start() method - an IllegalStateException occurs with this message - "E/MediaRecorder: start failed: -38".</p> <p>Code for file descriptor (Socket is 100% properly connected by the time programm calls it):</p> <pre><code...
I am trying to write video to socket (with ParcelFileDescriptor). But when calling mediaPlayer.start() method - an IllegalStateException occurs with this message - "E/MediaRecorder: start failed: -38". Code for file descriptor (Socket is 100% properly connected by the time programm calls it): [CODE] Preparing media rec...
android|sockets|video-streaming
3
2016-04-27T10:29:19.247Z
2,016
4
10
2
558
0
507
40
3
3
true
true
false
false
false
false
low
36,887,221
libGDX AssetManager file not found *.pack
<p>Hi I have some problems with the texture atlas packer assetmanager from libgdx.... maybe someone had the same issue... I pack my textures in my desktop app like this ... which is running and the pack files are generated...</p> <pre><code>public class DesktopLauncher { private static boolean rebuildAtlas = false; pr...
Hi I have some problems with the texture atlas packer assetmanager from libgdx.... maybe someone had the same issue... I pack my textures in my desktop app like this ... which is running and the pack files are generated... [CODE] in my assetloader class i load this or i try too ... [CODE] ... However i get the error : ...
java|android|libgdx|texturepacker
2
2016-04-27T10:29:45.880Z
2,016
4
10
2
705
2
432
41
4
3
true
false
false
false
false
false
low
36,887,245
ProcessDebugResources FAILED
<p>We develop an app just that can overlay a png file (sticker) on a picture (like putting a mustache on the image selected and we can resize and rotate it, the problem is it only work on iOS, we keep getting this error on building or running it into an android platform.</p> <p>This is the Error (ProcessDebugResources...
We develop an app just that can overlay a png file (sticker) on a picture (like putting a mustache on the image selected and we can resize and rotate it, the problem is it only work on iOS, we keep getting this error on building or running it into an android platform. This is the Error (ProcessDebugResources FAILED) i ...
android|ios|angularjs|ionic-framework|fabricjs
0
2016-04-27T10:30:41.260Z
2,016
4
10
2
124
0
691
28
5
0
false
true
false
false
false
false
zero
36,887,259
Getting "You cannot access body after reading from request's data stream" while using django-rest-framework
<p>My first question here, &amp; a newbie to everything including coding. </p> <p>I am using django-rest-framework to call a rest api from an android app I am building. </p> <p>I am calling another view's method from the api_view method of django-rest-framework. </p> <p>This works great with the GET method, but fail...
My first question here, & a newbie to everything including coding. I am using django-rest-framework to call a rest api from an android app I am building. I am calling another view's method from the api_view method of django-rest-framework. This works great with the GET method, but fails while using the POST method. Bel...
android|django|python-2.7|django-rest-framework
3
2016-04-27T10:31:38.673Z
2,016
4
10
2
587
0
602
107
4
2
true
true
false
false
false
false
low
36,887,277
How to send Intent to SMS Receiver?
<p>I would like a send an intent to this receiver from another application, which handles SMS. I am quite new to this SMS handling. Can someone kindly guide me on what intent,I mean, how and what and intent should have to execute this piece of receiver code. Thanks.</p> <pre><code>import android.content.BroadcastRecei...
I would like a send an intent to this receiver from another application, which handles SMS. I am quite new to this SMS handling. Can someone kindly guide me on what intent,I mean, how and what and intent should have to execute this piece of receiver code. Thanks. [CODE] }
android|android-intent|smsmanager|android-broadcastreceiver
-1
2016-04-27T10:32:22.453Z
2,016
4
10
2
259
1
272
35
4
1
true
false
false
false
false
true
negative
36,887,339
Recyclerview footer at bottom of screen when no scroll AND at end of the list when it has scroll
<p>In my application I have branding footer at the end of scroll on all screens (for screens which have scroll) and static at bottom of the screen when(no scroll).</p> <p>But I am facing issues to achieve this with screen which has list. I am using recyclerview for showing list. I want to show <strong>Branding Footer ...
In my application I have branding footer at the end of scroll on all screens (for screens which have scroll) and static at bottom of the screen when(no scroll). But I am facing issues to achieve this with screen which has list. I am using recyclerview for showing list. I want to show Branding Footer at end of the recyc...
android|android-recyclerview|footer
6
2016-04-27T10:34:53.673Z
2,016
4
10
2
3,689
1
587
96
3
0
false
false
true
false
false
false
medium
36,887,352
Variable width GridView according to number of cells
<p>Continuation of this question <a href="https://stackoverflow.com/questions/36800705/layout-dynamic-grid-in-middle">Layout dynamic grid in middle</a></p> <p>I have a grid. It have different widths depending on what the user does. Sometimes it may be 4 * 3 other times 2 *5</p> <p>The width can be greater than 4 as w...
Continuation of this question Layout dynamic grid in middle I have a grid. It have different widths depending on what the user does. Sometimes it may be 4 * 3 other times 2 *5 The width can be greater than 4 as well. My problem is that the grid itself is always the same width and the cells stretch to fill it. It means ...
android|android-layout|gridview|layout|android-linearlayout
2
2016-04-27T10:35:19.587Z
2,016
4
10
2
285
1
1,021
52
5
1
true
false
false
false
false
false
low
36,887,355
Your device isn't compatible with this version in Asus Nexus 7-inch tab
<p>I developed my app for only Tablets. It was working fine previously but playstore app is not even listing my app on Nexus 7-in Tablet after recent update of my app. On playstore website it's showing the message -"Your device isn't compatible with this version". I'am able to see and download my app on 10-in Tablet. O...
I developed my app for only Tablets. It was working fine previously but playstore app is not even listing my app on Nexus 7-in Tablet after recent update of my app. On playstore website it's showing the message -"Your device isn't compatible with this version". I'am able to see and download my app on 10-in Tablet. On d...
android|android-screen-support|uses-feature
2
2016-04-27T10:35:33.737Z
2,016
4
10
2
286
1
493
71
3
1
true
false
false
false
false
false
low
36,887,410
Alert Dialog Dialog Builder setView crops the top layout when height of dialog is maximum i.e. stretched to the screen - Android
<p>I have created an alert dialog and use setView.<br> The layout height is set to <code>wrap_content</code></p> <p>When text in dialog is enough to fill the screen, dialog crops the top view. </p> <p><strong>Normal Text:</strong><br> <a href="https://i.stack.imgur.com/0xNny.png" rel="nofollow noreferrer"><img src="...
I have created an alert dialog and use setView. The layout height is set to wrap_content When text in dialog is enough to fill the screen, dialog crops the top view. Normal Text: Large Text: XML of the dialog layout: [CODE] Java Code of Dialog: [CODE]
java|android|android-layout|dialog|android-alertdialog
1
2016-04-27T10:38:14.127Z
2,016
4
10
2
395
0
251
128
5
2
true
true
false
false
false
false
low
36,887,489
How to access hidden RecyclerView items?
<p>I tried searching this problem but couldn't find a proper solution.</p> <p>Basically, I have a layout containing a RecyclerView, with 6 items.</p> <p>Of the 6 items 5 are visible on screen. 6th is hidden. </p> <p>Now on performing an action (drag and drop here), I modify the contents within each item. This is hap...
I tried searching this problem but couldn't find a proper solution. Basically, I have a layout containing a RecyclerView, with 6 items. Of the 6 items 5 are visible on screen. 6th is hidden. Now on performing an action (drag and drop here), I modify the contents within each item. This is happening. However, only for th...
android|drag-and-drop|android-recyclerview
4
2016-04-27T10:41:25.957Z
2,016
4
10
2
1,906
1
1,793
40
3
0
false
false
false
false
false
false
low
36,887,534
android studio duplicate entry error
<p>I have been searching for three days in the following error and I don't know what is the problem </p> <pre><code>Information:Gradle tasks [:_4SaleApp:assembleDebug] :_4SaleApp:preBuild UP-TO-DATE :_4SaleApp:preDebugBuild UP-TO-DATE :_4SaleApp:checkDebugManifest :ffmpeg4android_lib:preBuild UP-TO-DATE :gestureimagev...
I have been searching for three days in the following error and I don't know what is the problem [CODE] can anyone help please ?? EDIT this is my gradle file, it may help [CODE]
android|android-studio
0
2016-04-27T10:43:44.320Z
2,016
4
10
2
298
0
177
36
2
2
true
true
false
false
false
false
zero
36,887,573
Recyclerview and D-pad navigation
<p>I'm developing an app that needs to use D-pad navigation in a <code>RecyclerView</code>. My problem is that although I set <code>android:focusable=true</code> in the <code>items.xml</code>(news_items), it doesn't seems to work. </p> <p>My question is: <strong>how should I implement D-pad navigation in a <code>Recyc...
I'm developing an app that needs to use D-pad navigation in a RecyclerView . My problem is that although I set android:focusable=true in the items.xml (news_items), it doesn't seems to work. My question is: how should I implement D-pad navigation in a RecyclerView ? The RecyclerView is inside the following layout: [COD...
android|android-recyclerview|d-pad
2
2016-04-27T10:45:17.383Z
2,016
4
10
2
4,744
1
670
33
3
2
true
false
true
false
false
false
low
36,887,697
Html Styling in textview goes wrong Android
<p>I am selecting a part of the TextView and on click of a "highlight" button, I am sending the start and the end index of selection to the database. Then I am loading all the start and end indexes from db and changing the color of text between them. </p> <p>The problem is after once or twice, the app is changing the ...
I am selecting a part of the TextView and on click of a "highlight" button, I am sending the start and the end index of selection to the database. Then I am loading all the start and end indexes from db and changing the color of text between them. The problem is after once or twice, the app is changing the color of tex...
android|android-layout|textview|android-styles|android-text-color
3
2016-04-27T10:51:35.520Z
2,016
4
10
2
335
2
776
43
5
2
true
false
false
false
false
false
low
36,887,736
Alarm is not Fired when i set time in android
<pre><code>public class SchedulerSetupReceiver extends WakefulBroadcastReceiver { private static final String APP_TAG = "com.hascode.android"; private static final int EXEC_INTERVAL = 10 * 1000; DBhelper dbhelper; @Override public void onReceive(final Context ctx, Intent intent) { Log.d(AP...
[CODE] This is My code for Alarm i want to set Alarm for particular time But its not trigger when time completed i have use calendar and i have set to fire 4:20 minute Pm for that i have add in Hour 16 and in minute 20 but its not triggered when Device time reach 4.20 Pm please tell me what i doing mistake
android
-1
2016-04-27T10:54:02.053Z
2,016
4
10
2
113
3
307
45
1
1
true
false
false
false
false
true
negative
36,887,746
Retrofit Error com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
<p>I want to retrive data from server...This is my method to call </p> <pre><code>private void getBooks(){ //While the app fetched data we are displaying a progress dialog //Creating a rest adapter RestAdapter adapter = new RestAdapter.Builder() .setEndpoint(ROOT_URL) .build(); ...
I want to retrive data from server...This is my method to call [CODE] This is my interface [CODE] I am getting error com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $. Please help me..For the first time i am using retofit library.
java|android|json|retrofit
1
2016-04-27T10:54:38.663Z
2,016
4
10
2
2,673
1
313
147
4
2
true
false
true
false
false
false
low
36,887,828
IllegalStateException in PlaceAutocompleteAdapter for Google Places API
<p>I am getting the following crash report:</p> <pre><code>Fatal Exception: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your ad...
I am getting the following crash report: [CODE] And here is my PlaceAutoCompleteAdapter : [CODE] This code is taken from Google's places api autocomplete sample. I modified it for UI changes otherwise, more or less it is same. I can't figure out how this crash happened and what could be reason for it? Any help would be...
android|android-adapter|autocompletetextview
0
2016-04-27T10:58:36.683Z
2,016
4
10
2
892
1
430
71
3
3
true
false
false
false
false
false
zero
36,887,954
LayoutInflater Onclick Not working
<p>I have 2 xml one main xml and one menu xml. I want to get the click event from menu xml to main xml activity. is there is any way to solve this problem.</p> <p>Main Home Page</p> <p><a href="https://i.stack.imgur.com/u4Lhe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u4Lhe.png" alt="Main Home...
I have 2 xml one main xml and one menu xml. I want to get the click event from menu xml to main xml activity. is there is any way to solve this problem. Main Home Page Menu Page Now click on the menu page button event i want in my main home activity page. I done Like this [CODE]
android|onclick|layout-inflater
0
2016-04-27T11:04:59Z
-1
-1
-1
-1
620
1
279
34
3
1
true
false
false
false
false
false
zero
36,887,955
Show error when load more data in RecyclerView on Android
<p>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, Glide and RecyclerView!<br> <strong>Json link :</strong> <a href="http://tellfa.com/...
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, Glide and RecyclerView! Json link : JSON LINK I can load first 10 posts, but when scrol...
android|json
1
2016-04-27T11:05:01.170Z
2,016
4
11
2
521
2
625
57
2
3
true
false
false
false
false
false
low
36,887,973
Use Json file instead of the server respond and use it for filtering
<p>I have Json file in my assets folder. I am using AutoCompleteTextView to filter result that coming from remote server using php as Json. But i want to use my Json file instead of the server response Json. </p> <p>This is my code.</p> <pre><code>private static final String url = AppConfig.URL_JSON_AVAILABLE_PRODUCT...
I have Json file in my assets folder. I am using AutoCompleteTextView to filter result that coming from remote server using php as Json. But i want to use my Json file instead of the server response Json. This is my code. [CODE] I want to use my Json file's data to use instead of the url here. I don't know how to imple...
php|android|json|filter
0
2016-04-27T11:05:42.903Z
2,016
4
11
2
138
1
354
68
4
1
true
false
false
false
false
false
zero
36,888,054
Playing the audio Video files from the internal storage path
<p>My app Doesn't work in playing video and audio files. I use internal storage for saving the audio video files.here is my code video and audio doesn't play the error showing my code is :Attempt to invoke virtual method 'void android.media.MediaPlayer.setDataSource(java.lang.String)' on a null object reference</p> <p...
My app Doesn't work in playing video and audio files. I use internal storage for saving the audio video files.here is my code video and audio doesn't play the error showing my code is :Attempt to invoke virtual method 'void android.media.MediaPlayer.setDataSource(java.lang.String)' on a null object reference [CODE] }
android|media-player
0
2016-04-27T11:09:54.453Z
2,016
4
11
2
552
2
318
60
2
1
true
false
false
false
false
false
zero
36,888,062
Recyclerview row color issue
<p>I want the <code>recyclerview</code> must work like <code>facebook</code> <code>videoview</code> list.I have added a footer at the end of the <code>recyclerview</code> items just like <code>facebook</code>. everything is working fine except the row color change is not working. I want the middle item view must be tra...
I want the recyclerview must work like facebook videoview list.I have added a footer at the end of the recyclerview items just like facebook . everything is working fine except the row color change is not working. I want the middle item view must be transparent and other items must be black in color on scroll of the re...
android|android-recyclerview
0
2016-04-27T11:10:15.240Z
2,016
4
11
2
100
0
352
28
2
2
true
true
false
false
false
false
zero