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,996,101
How to display camera preview in gridview's first item in android?
<p>I am working on a gallery app wherein I have to display all the images from the gallery to <code>gridview</code> . I have done it successfully, but i also want to display the camera preview in the first grid item of the <code>gridView</code>. Can any buddy please help me to do this?</p> <p>my code is as below:</p> ...
I am working on a gallery app wherein I have to display all the images from the gallery to gridview . I have done it successfully, but i also want to display the camera preview in the first grid item of the gridView . Can any buddy please help me to do this? my code is as below: [CODE]
android|gridview|android-camera|surfaceview
0
2016-05-03T05:15:36.693Z
2,016
5
5
1
300
0
286
66
4
1
true
true
false
false
false
false
zero
36,996,133
fixing java.util.zip.ZipException
<p>In my Android project after I add some libraries when I'm running it a exception arose. my build.gradle file is as below.</p> <pre><code>android { compileSdkVersion 'Google Inc.:Google APIs:21' buildToolsVersion '23.0.2' defaultConfig { applicationId "com.marpak.livefarmerpro" minSdkVers...
In my Android project after I add some libraries when I'm running it a exception arose. my build.gradle file is as below. [CODE] and when I running the app ir gives me following error. [CODE] I know this is because some duplication of files. can someone help he to fix this issue. thanks and regards!
java|android|android-gradle-plugin|build.gradle
0
2016-05-03T05:19:17.327Z
2,016
5
5
1
766
2
300
33
4
2
true
false
false
false
false
false
zero
36,996,263
Retrofit: Blank screen appears in android studio at irregular intervals getting java.net.SocketTimeoutException
<p>I am using retrofit for parsing. I am not sure what is happening, but all of a sudden blank screen appears while fetching data from server.And it is not regular, sometimes it appears or sometimes not. And moreover is not limited to a single page, I mean it is happening in any of the activity where I am using service...
I am using retrofit for parsing. I am not sure what is happening, but all of a sudden blank screen appears while fetching data from server.And it is not regular, sometimes it appears or sometimes not. And moreover is not limited to a single page, I mean it is happening in any of the activity where I am using services.A...
android|parsing|retrofit
0
2016-05-03T05:28:21.333Z
2,016
5
5
1
485
2
619
111
3
2
true
false
false
false
false
false
zero
36,996,268
App crashes on startup on all arm64 devices after update to Marshmallow. How do I debug using just a pc offset?
<p>My app is crashing for all Android Marshmallow arm64 devices on startup. Users were previously using the app on Lollipop on the same device, but then started reporting these crashes after their devices were updated to Marshmallow. 32-bit devices are not affected. The crash reports all look like this:</p> <pre><code...
My app is crashing for all Android Marshmallow arm64 devices on startup. Users were previously using the app on Lollipop on the same device, but then started reporting these crashes after their devices were updated to Marshmallow. 32-bit devices are not affected. The crash reports all look like this: [CODE] The offset ...
android|arm64
5
2016-05-03T05:28:49.373Z
2,016
5
5
1
2,197
1
932
111
2
1
true
false
false
false
false
false
low
36,996,301
EditText inside fragment crashes app crash
<p>The title of this question is vague because I don't really know what is happening. I hava list view inside a class called <code>SummerJobFragment.java</code> this list view has a <code>onItemClicked()</code> that is suppose to open and other fragment called <code>SummerJobDetailsFragment.java</code>. Below I've post...
The title of this question is vague because I don't really know what is happening. I hava list view inside a class called SummerJobFragment.java this list view has a onItemClicked() that is suppose to open and other fragment called SummerJobDetailsFragment.java . Below I've posted the code and the logcat screenshot. Su...
android|android-fragments
1
2016-05-03T05:31:39.873Z
2,016
5
5
1
591
3
454
42
2
3
true
false
false
false
false
false
low
36,996,365
How to fill Json data in table layout in android
<p>I am trying to display my json data in table layout and for that I have prepare one phpwebservice which run fine without error and I also got Json data at the android but I don't understand why it is not populating with tablelayout and my app unfortunately has stopped.here is my code..</p> <p>TableActivity</p> <pr...
I am trying to display my json data in table layout and for that I have prepare one phpwebservice which run fine without error and I also got Json data at the android but I don't understand why it is not populating with tablelayout and my app unfortunately has stopped.here is my code.. TableActivity [CODE] Here is my f...
android|json|android-tablelayout
0
2016-05-03T05:35:54.427Z
2,016
5
5
1
7,261
2
385
48
3
3
true
false
true
false
false
false
zero
36,996,369
JSONException occur while give the review
<h2> <strong>This is my error log.While i am parsing a data that time this error will occur.</strong></h2> <pre><code> 05-03 10:33:27.175: W/System.err(28526): org.json.JSONException: No value for userfeedback 05-03 10:33:27.175: W/System.err(28526): at org.json.JSONObject.get(JSONObject.java:354) ...
This is my error log.While i am parsing a data that time this error will occur. [CODE] This is my code of review class.While i m giving review it will give jsonexception can give only one time 2nd time it will give json exception. [CODE]
android
1
2016-05-03T05:36:03.380Z
2,016
5
5
1
67
0
237
41
1
2
true
true
false
false
false
false
low
36,996,372
how to solve "gradle failed resolve com.theartofdev.edmodo:android-image-cropper:+"
<p>I install new version of Android Studio"2.1.0.9". Now when sync gradle error message in this:</p> <pre><code>gradle failed resolve com.theartofdev.edmodo:android-image-cropper:+ </code></pre> <p>I used any version of image cropper but still this message there is. gradle:</p> <pre><code>buildscript { repositories ...
I install new version of Android Studio"2.1.0.9". Now when sync gradle error message in this: [CODE] I used any version of image cropper but still this message there is. gradle: [CODE]
android|android-studio|gradle|build.gradle
6
2016-05-03T05:36:18.890Z
2,016
5
5
1
12,419
4
184
83
4
2
true
false
true
true
false
false
medium
36,996,440
Setting dates to tabs dynamically
<p>I'm trying to get the current date to my tabs but the date to the left is not decreasing by one. I'm setting todays date to OneFragment then increasing the date by 1 in TwoFragment. This part is working fine but when i try to get the previous date from today to appear in ThreeFragment it is not working as intended.<...
I'm trying to get the current date to my tabs but the date to the left is not decreasing by one. I'm setting todays date to OneFragment then increasing the date by 1 in TwoFragment. This part is working fine but when i try to get the previous date from today to appear in ThreeFragment it is not working as intended. Cur...
java|android|date|android-fragments|tabs
0
2016-05-03T05:41:11.957Z
2,016
5
5
1
905
2
583
33
5
1
true
false
false
false
false
false
zero
36,996,448
Why will the activity not go to next activity on Button click when correct username and password are entered? Android Studio- sqlite
<p>I know the data is correctly entered in the login section because when i try to register the same username and password , it tells me that this is already taken. So the database part is working correctly. At click on the sign in button(After the correct user nd password is entered) , nothing happens. It just stays t...
I know the data is correctly entered in the login section because when i try to register the same username and password , it tells me that this is already taken. So the database part is working correctly. At click on the sign in button(After the correct user nd password is entered) , nothing happens. It just stays ther...
android
0
2016-05-03T05:41:44.763Z
2,016
5
5
1
73
0
703
132
1
3
true
true
false
false
false
false
zero
36,996,462
App language (Locale) automatically gets reset to default after opening camera to capture a photo or gallery to select image
<p>We have a setLocale function as following:</p> <pre><code> public static void setLocale(Context context, String locale) { Locale myLocale = new Locale(locale); Resources res = context.getResources(); DisplayMetrics dm = res.getDisplayMetrics(); Configuration conf = re...
We have a setLocale function as following: [CODE] We use above method as follows: [CODE] We are using following locales: [CODE] But everytime when we open a camera, capture a photo, some labels get reset to default language and some labels remain in selected language. This happens in case of selecting photo from galler...
java|android
3
2016-05-03T05:42:16.627Z
2,016
5
5
1
624
1
449
124
2
3
true
false
false
false
false
false
low
36,996,474
I get Index out of bound while changing list in listview
<p>First of all it is not Invalid index X, size X type of thing. This is a little weird is index 5 size 3 so it is not a problem for 4 ???</p> <p>I change the returned size in <code>getcount()</code> according to states. but <code>getViewAt(position)</code> gets wrong position.</p> <p>Any ideas how or why this is happe...
First of all it is not Invalid index X, size X type of thing. This is a little weird is index 5 size 3 so it is not a problem for 4 ??? I change the returned size in getcount() according to states. but getViewAt(position) gets wrong position. Any ideas how or why this is happening? I can provide extra info if needed. E...
android|listview|indexoutofboundsexception|android-appwidget
0
2016-05-03T05:42:55.927Z
2,016
5
5
1
292
2
528
56
4
2
true
false
false
false
false
false
zero
36,996,476
Attempt to reopen an already-closed object sqlitedatabase while initializing database, android
<p>I know there are lot of duplicate questions asked but I haven't found my answer yet.</p> <p>Here is my code: I have DatabaseHandler class where I have two methods <code>createTestTable(db);</code> and <code>initializeTestTable(db);</code></p> <pre><code> public class DatabaseHandler extends SQLiteOpenHelper...
I know there are lot of duplicate questions asked but I haven't found my answer yet. Here is my code: I have DatabaseHandler class where I have two methods createTestTable(db); and initializeTestTable(db); [CODE] Inside my activity I have following code in onCreate() [CODE] My application crashes after second line db.g...
java|android|database|sqlite
1
2016-05-03T05:43:07.483Z
2,016
5
5
1
962
3
428
94
4
3
true
false
false
false
false
false
low
36,996,493
android:gravity="start" in RTL aligns the text to left not right
<p>While testing my layout on a device with RTL language (Arabic) I found that TextView with gravity:start keeps aligning the text to the left instead of right ! I tried android:textAlignment="viewStart" and it works correctly but due to API reqs I didn't depend on it. </p> <p>my code (I mean the first textview in my ...
While testing my layout on a device with RTL language (Arabic) I found that TextView with gravity:start keeps aligning the text to the left instead of right ! I tried android:textAlignment="viewStart" and it works correctly but due to API reqs I didn't depend on it. my code (I mean the first textview in my code) : [COD...
android|android-linearlayout|android-gravity
8
2016-05-03T05:44:37.407Z
2,016
5
5
1
4,643
2
322
64
3
1
true
false
true
false
false
false
medium
36,996,527
Failed to resolve Junit:Junit:12
<p>I am getting following error when I tried to run my first app in android studio</p> <pre><code>Error:A problem occurred configuring project ':app'. &gt; Could not resolve all dependencies for configuration ':app:_debugUnitTestCompile'. &gt; Could not resolve junit:junit:4.12. Required by: Hellow_Wo...
I am getting following error when I tried to run my first app in android studio [CODE] Following is my Gradle.script(Module) [CODE] Following is my Gradle.script(Hellow_World) [CODE] Can somebody help me fixing this mess?
android-studio
7
2016-05-03T05:47:19.263Z
2,016
5
5
1
21,782
2
221
32
1
3
true
false
true
true
false
false
medium
36,996,596
rxandroid asks to run on ui thread even though it is subscribed on AndroidSchedulers.mainThread()
<p>I have written a subscriber that will get triggered when google map's <code>OnCameraChangeListener</code> is triggered. </p> <pre><code>Observable.create(new Observable.OnSubscribe&lt;LatLng&gt;() { @Override public void call(Subscriber&lt;? super LatLng&gt; subscriber) { if ...
I have written a subscriber that will get triggered when google map's OnCameraChangeListener is triggered. [CODE] I am updating the location marker as below: [CODE] Even though my code says to run on AndroidSchedulers.mainThread() I get this error: Caused by: rx.exceptions.OnErrorNotImplementedException: Only the origi...
android|rx-java
17
2016-05-03T05:53:14.240Z
2,016
5
5
1
6,229
2
457
97
2
2
true
false
true
false
true
false
medium
36,996,669
How to Update current selected item after backpress in navigation drawer
<p>I have successfully implemented navigation drawer but I'm having problems with it.</p> <p>After selecting fragments and I click the back button, the current fragment pops off and the previous fragment is displayed.</p> <p>But the title of the displayed fragment is still that of the previous fragment.</p> <p>Also...
I have successfully implemented navigation drawer but I'm having problems with it. After selecting fragments and I click the back button, the current fragment pops off and the previous fragment is displayed. But the title of the displayed fragment is still that of the previous fragment. Also, the item checked in the dr...
android|android-fragments|android-actionbar|navigation-drawer
1
2016-05-03T05:58:27.077Z
2,016
5
5
1
1,410
2
1,186
72
4
5
true
false
false
false
false
false
low
36,996,672
Adding PlaceAutocompleteFragment to fragment throws error
<p>I have implemented PlaceAutocompleteFragment in activity and is working successfuly. But how to implement the same in fragment in android? I have implemented placeautocomplete fragment like this</p> <pre><code> PlaceAutocompleteFragment autocompleteFragment1 = (PlaceAutocompleteFragment) getFragmentMana...
I have implemented PlaceAutocompleteFragment in activity and is working successfuly. But how to implement the same in fragment in android? I have implemented placeautocomplete fragment like this [CODE] Error I am getting is Incovertible types;cannot cast 'android.support.v4.app.Fragment' to com.google.android.gms.locat...
android|android-fragments|google-places-api
18
2016-05-03T05:58:32.110Z
2,016
5
5
1
14,355
6
391
57
3
2
true
false
true
true
true
false
medium
36,996,848
Show error when use json in Android
<p>I want develop Android application for one website, i fetch website posts from <code>JSON</code> and show in <code>RecyclerView</code>. I show <strong>title</strong>, <strong>image</strong>, <strong>description</strong> and <strong>category</strong> in <code>MainActivity</code> and i want when click on <strong>Categ...
I want develop Android application for one website, i fetch website posts from JSON and show in RecyclerView . I show title , image , description and category in MainActivity and i want when click on Category go to categoryActivity and show this category posts! I write this codes, but when click on Category (for go to ...
android|json
0
2016-05-03T06:09:50.137Z
2,016
5
6
1
98
1
878
35
2
6
true
false
false
false
false
false
zero
36,996,882
Android/Linux: Log (power) key usage on lower system level
<p>I'm not searching for a particular piece of code rather than a hint where to start my research. What I want to do might be an easy task for an experienced android developer.</p> <p>I simply want to log all hardware button interactions on a lower level than the Dalvik engine. I'm very new to Android development and ...
I'm not searching for a particular piece of code rather than a hint where to start my research. What I want to do might be an easy task for an experienced android developer. I simply want to log all hardware button interactions on a lower level than the Dalvik engine. I'm very new to Android development and I've never ...
java|android|linux|android-hardware
0
2016-05-03T06:12:19.130Z
2,016
5
6
1
108
1
1,711
58
4
0
false
false
false
false
false
false
zero
36,996,957
JsonMappingException: No suitable constructor found for type
<p>I'm using FirebaseUI to Populate a <code>RecyclerView</code> </p> <pre><code>public class ViewRequestsFragment extends Fragment { private Firebase myUserFire,myListFire; protected RecyclerView.LayoutManager mLayoutManager; private FirebaseRecyclerAdapter&lt;Request,RecyclerViewHolder&gt; recyclerAdapte...
I'm using FirebaseUI to Populate a RecyclerView [CODE] I am getting the following error Caused by: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.google.android.gms.maps.model.LatLng]: can not instantiate from JSON object (need to add/enable type info...
android|firebase|firebase-realtime-database
0
2016-05-03T06:17:47.137Z
2,016
5
6
1
618
2
510
60
3
3
true
false
false
false
false
false
zero
36,996,958
how can i create a horizontal ScrollView that scrolls from left to right at the start ( for arabic texts )
<p>how can i create a horizontal ScrollView that scrolls from left to right at the start ( for arabic texts )</p> <pre><code> &lt;HorizontalScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/horizontalScrollView" android:layout_gravity="...
how can i create a horizontal ScrollView that scrolls from left to right at the start ( for arabic texts ) [CODE] i try to change the gravity but it doesn't work. when the app starts the first object i want to be shown in the scroll view is the object at the right .
java|android
1
2016-05-03T06:17:47.317Z
2,016
5
6
1
282
2
266
106
2
1
true
false
false
false
false
false
low
36,996,973
Android input form design using TableLayout
<p>I am trying to figure out how to design the below mentioned input form. So far I have tried <code>TableLayout</code> to do this. bellow is my code. But failed. Please suggest me how to achieve this, any comment, code, effort would be appreciated.</p> <pre><code> &lt;TableLayout android:layout_wi...
I am trying to figure out how to design the below mentioned input form. So far I have tried TableLayout to do this. bellow is my code. But failed. Please suggest me how to achieve this, any comment, code, effort would be appreciated. [CODE]
android|android-layout|user-interface
0
2016-05-03T06:18:42.843Z
2,016
5
6
1
815
6
240
43
3
1
true
false
false
false
false
false
zero
36,997,039
Getting wrong answer in search option
<p>I have a <code>ListView</code> in my main <code>Activity</code> and there is a search option in the <code>ActionBar</code>. But when I try to search something it gives me a wrong list.</p> <p>This is my mainActivity class:</p> <pre><code> public class MainActivity extends AppCompatActivity{ FloatingActionButton...
I have a ListView in my main Activity and there is a search option in the ActionBar . But when I try to search something it gives me a wrong list. This is my mainActivity class: [CODE] //This is my DBHelper class [CODE] //this is my custom Adapter class [CODE] }
android|listview
0
2016-05-03T06:22:31.513Z
2,016
5
6
1
145
1
262
37
2
3
true
false
false
false
false
false
zero
36,997,112
ProgressBar visibility issue
<p>I have an issue with progressbar's visibility. Basically,I am passing a intent from activity to another activity after startActivity(intent) line I am setting the visibility of progressbar to invisible.</p> <p>While,doing this I noticed that progressbar got invisible too early. I need to fix this.</p> <p>Thanks in...
I have an issue with progressbar's visibility. Basically,I am passing a intent from activity to another activity after startActivity(intent) line I am setting the visibility of progressbar to invisible. While,doing this I noticed that progressbar got invisible too early. I need to fix this. Thanks in advance. my code i...
android
0
2016-05-03T06:26:48.103Z
2,016
5
6
1
149
2
337
28
1
1
true
false
false
false
false
false
zero
36,997,116
How to add in ListView only Keys (Firebase) start with specific Value
<p>I make an application for android in java with cloud backend. I am newbie in Firebase and I would like to add in a ListView only Keys (in Firebase e.g. Post1, Post4 <a href="http://i.stack.imgur.com/f31Y7.png" rel="nofollow">enter image description here</a>) that start with Value “Share” .I would appreciate if some...
I make an application for android in java with cloud backend. I am newbie in Firebase and I would like to add in a ListView only Keys (in Firebase e.g. Post1, Post4 enter image description here ) that start with Value “Share” .I would appreciate if someone help me. [CODE]
java|android|firebase
0
2016-05-03T06:27:24.587Z
2,016
5
6
1
166
1
272
69
3
1
true
false
false
false
false
false
zero
36,997,243
how to make pressing on the notificaton text close the app not open other activity
<p>I am developing a flashLight app and I faced a problem in notification which is : When I press the notification text I want to turn of flash and close the whole app , How can I modified the notification method to do that ?? I tried to make anthor activity and put turn of and close app methods in it, but it does not ...
I am developing a flashLight app and I faced a problem in notification which is : When I press the notification text I want to turn of flash and close the whole app , How can I modified the notification method to do that ?? I tried to make anthor activity and put turn of and close app methods in it, but it does not wor...
android|notifications|flashlight
0
2016-05-03T06:34:14.990Z
2,016
5
6
1
74
3
397
82
3
1
true
false
false
false
false
false
zero
36,997,264
Reading .txt file from Asset Folder
<p>I am reading .txt files from <code>Asset</code> Folder by Passing a String which is in the previous activity list item.</p> <p>Let us consider,<code>Recyclerview</code> item size in 5.</p> <ol> <li>Android -- Item 1</li> <li>IOS -- Item 2 </li> <li>BlackBerry -- Item 3</li> <li>Symbian...
I am reading .txt files from Asset Folder by Passing a String which is in the previous activity list item. Let us consider, Recyclerview item size in 5. Android -- Item 1 IOS -- Item 2 BlackBerry -- Item 3 Symbian -- Item 4 Bada -- Item 5 When I click Android,the "Android" String is passed through an Intent and Assigne...
android|android-recyclerview|assets
0
2016-05-03T06:35:09.087Z
2,016
5
6
1
579
1
1,018
35
3
5
true
false
false
false
false
false
zero
36,997,331
Addfrag is not accepting for more than one
<pre><code>import java.util.ArrayList; import java.util.List; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPag...
[CODE] I am getting the following error [CODE] AddressToolbar [CODE]
java|android|android-fragments
0
2016-05-03T06:38:39.907Z
2,016
5
6
1
39
0
68
42
3
3
true
true
false
false
false
false
zero
36,997,416
View on top of my toolbar in Android
<p>I have a navigation drawer which works perfect but when selecting one navigation menu (please refer to image below) a view is added on top of toolbar.</p> <p>Here is my fragment layout</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/and...
I have a navigation drawer which works perfect but when selecting one navigation menu (please refer to image below) a view is added on top of toolbar. Here is my fragment layout [CODE] Image: Here is my drawer xml [CODE] Main Activity xml. [CODE]
android-layout
0
2016-05-03T06:43:33.520Z
2,016
5
6
1
595
1
246
36
1
3
true
false
false
false
false
false
zero
36,997,429
Android AlertDialog.Builder with Radiobutton and Spinner
<p>Following code shows the radio-button with AlertDialog builder. I was trying to figure out is it possible to add a Spinner below the radio-button ? Is this supported or AlertDialog can be used either for radio-button or Spinner but not both?</p> <pre><code> // listItems has values "z","y","x" final Ch...
Following code shows the radio-button with AlertDialog builder. I was trying to figure out is it possible to add a Spinner below the radio-button ? Is this supported or AlertDialog can be used either for radio-button or Spinner but not both? [CODE]
android|android-alertdialog
0
2016-05-03T06:44:28.637Z
2,016
5
6
1
704
1
248
56
2
1
true
false
false
false
false
false
zero
36,997,512
Retrofit failing to post on samsung s3 android version 4.0.4 while on data
<p>I have an android app that works well on other android devices but it fails on samsung s3 running android version 4.0.4 on data. Retrofit throws 404 (page not found error) but the page exists and if I make the same request on wifi it works well. Anyone with an idea on what could be misbehaving. Thanks</p> <p>Please...
I have an android app that works well on other android devices but it fails on samsung s3 running android version 4.0.4 on data. Retrofit throws 404 (page not found error) but the page exists and if I make the same request on wifi it works well. Anyone with an idea on what could be misbehaving. Thanks Please find below...
android|clojure|kotlin|compojure|http-kit
0
2016-05-03T06:49:53.320Z
2,016
5
6
1
149
1
396
74
5
2
true
false
false
false
false
false
zero
36,997,569
How to set item as selected in alert dialog?
<p>I am showing an alert dialog to choose the list. Now I want to show the default list as selected in the alert dialog. I have attached the custom adapter to the list. I have used setSingleChoiceItems in the dialog.</p> <p>For this I have set the second argument to 0 but still I am unable to see the selected item.</p...
I am showing an alert dialog to choose the list. Now I want to show the default list as selected in the alert dialog. I have attached the custom adapter to the list. I have used setSingleChoiceItems in the dialog. For this I have set the second argument to 0 but still I am unable to see the selected item. code: [CODE] ...
java|android|android-alertdialog|selecteditem
3
2016-05-03T06:53:09.107Z
2,016
5
6
1
3,491
1
603
44
4
4
true
false
true
false
false
false
low
36,997,572
POST params empty, what am I doing wrong? HttpURLConnection / Android / Java
<p>The code below shows a method, downloadUrl(), that takes a String, "myurl," its parameter. There are only two possible urls that I ever send to it, and the behavior of the method is different for each.</p> <p>when myurl = URL1, it uses a GET request and everything works fine.</p> <p>when myurl = URL2, however, it...
The code below shows a method, downloadUrl(), that takes a String, "myurl," its parameter. There are only two possible urls that I ever send to it, and the behavior of the method is different for each. when myurl = URL1, it uses a GET request and everything works fine. when myurl = URL2, however, it uses a POST request...
java|android|http|post|httpurlconnection
-1
2016-05-03T06:53:19.417Z
2,016
5
6
1
878
2
561
76
5
1
true
false
false
false
false
true
negative
36,997,643
Sending files with AndroidAsyncHttp library
<p>I'm trying to send a file via Android Async Http (android-async-http:1.4.9) library, the request i'm trying to make in fiddler looks like this:</p> <p>Header: </p> <blockquote> <p>Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468 User-Agent: Fiddler Host: tehran.plaza.ir Conte...
I'm trying to send a file via Android Async Http (android-async-http:1.4.9) library, the request i'm trying to make in fiddler looks like this: Header: Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468 User-Agent: Fiddler Host: tehran.plaza.ir Content-Length: 100033 X-Authentication: R...
android|android-async-http
1
2016-05-03T06:57:09.060Z
2,016
5
6
1
327
2
940
43
2
2
true
false
false
false
false
false
low
36,997,756
"Connection refused" exception while sending push notification to GCM server
<p>Sometime getting connection refused exception while sending push notification to GCM server. </p> <p>Push notification Code:</p> <pre><code>getSender().send(message, "registrationIDs", 5); </code></pre> <p>Above line throws connection refused exception. </p> <p>Stacktrace:</p> <pre><code>[java.net.ConnectExcept...
Sometime getting connection refused exception while sending push notification to GCM server. Push notification Code: [CODE] Above line throws connection refused exception. Stacktrace: [CODE]
java|android|push-notification|google-cloud-messaging
0
2016-05-03T07:03:48.720Z
2,016
5
7
1
443
0
190
76
4
2
true
true
false
false
false
false
zero
36,997,768
Sqlite android: Update successful but new row created
<p>Update method returns true. But when listing the whole table, new rows were created for each update.</p> <p>ONE table, three columns: PRIMARY_ID, MY_ID, MY_ANOTHER_ID.</p> <p>I have the following methods:</p> <pre><code>public void insertOrUpdate(String lStringId){ boolean present= search(lStringId); if(p...
Update method returns true. But when listing the whole table, new rows were created for each update. ONE table, three columns: PRIMARY_ID, MY_ID, MY_ANOTHER_ID. I have the following methods: [CODE] Search: [CODE] Update: [CODE] Insert: [CODE] After the first new insert, the next time I call insertOrUpdate method, searc...
android|sqlite|sql-update|sql-insert
0
2016-05-03T07:04:14.950Z
2,016
5
7
1
437
1
585
53
4
4
true
false
false
false
false
false
zero
36,997,913
MockWebServer not do callback
<p>I'm trying to test our Android app using MockWebService. The request send to server is received correctly, however, the response didn't back to the client. This only happen when doing request asynchronously, when using httpclient directly it works fine... </p> <pre><code> protected void signIn(String macAddress) ...
I'm trying to test our Android app using MockWebService. The request send to server is received correctly, however, the response didn't back to the client. This only happen when doing request asynchronously, when using httpclient directly it works fine... [CODE] The code we doing the test is also very simple: [CODE] An...
android|unit-testing|asynchronous|mockwebserver
0
2016-05-03T07:13:16.320Z
2,016
5
7
1
834
1
354
29
4
2
true
false
false
false
false
false
zero
36,997,917
Why is my Service stopped when swiping app out of Recents?
<p>I declare my Service in the manifest like this:</p> <pre><code>&lt;service android:name=".MyService" android:stopWithTask="false" /&gt; </code></pre> <p><strong>MyService.java:</strong></p> <pre><code>public class MyService extends Service { private final BroadcastReceiver receiver = new BroadcastRec...
I declare my Service in the manifest like this: [CODE] MyService.java: [CODE] When i swipe out the app from Recents, onTaskRemoved runs as expected, but the BroadcastReceiver 's onReceive method does not get called anymore. As far as i know, a BroadcastReceiver 's lifetime that's registered dynamically with registerRec...
android|android-service|android-broadcast
2
2016-05-03T07:13:32.577Z
2,016
5
7
1
1,129
1
1,324
58
3
2
true
false
false
false
false
false
low
36,997,949
how to Call Fragment from main class (appCompatActivity)
<p>I have the main class and more 3 fragment classes, when I call a fragment from a main it do not works. How could I call a Fragment in main class which is extended from appCompacAtivity? i had tried many things but still facing the same problem please help me out... Here is my code below...thank you in advance</p> ...
I have the main class and more 3 fragment classes, when I call a fragment from a main it do not works. How could I call a Fragment in main class which is extended from appCompacAtivity? i had tried many things but still facing the same problem please help me out... Here is my code below...thank you in advance [CODE]
android
0
2016-05-03T07:15:04.553Z
2,016
5
7
1
651
1
317
56
1
1
true
false
false
false
false
false
zero
36,997,996
Xamarin System.ArgumentException: Parameter cannot be null
<p>I am still training with Xamarin. Now I got issue that I cannot set object to resource and I am getting this error: reference not set to an instance of object.</p> <p>What I have done, that I created Activity class. There I create LinearLayout object. Idea is when I click on blue zone object then swipes to another ...
I am still training with Xamarin. Now I got issue that I cannot set object to resource and I am getting this error: reference not set to an instance of object. What I have done, that I created Activity class. There I create LinearLayout object. Idea is when I click on blue zone object then swipes to another page: vehic...
c#|android|xamarin|xamarin.android
1
2016-05-03T07:17:52.537Z
2,016
5
7
1
91
1
678
58
4
3
true
false
false
false
false
false
low
36,998,030
Android | binding to an isolated process?
<p>I have defined a service as follows:</p> <pre><code>&lt;service android:name=".com.service.isolatedService" android:enabled="true" android:process=":specialProcess" android:isolatedProcess="true" android:exported="false" /&gt; </code></pre> <p>and when i am trying to bind to...
I have defined a service as follows: [CODE] and when i am trying to bind to this service from my application, i'm getting: [CODE] when com.Application.MainApplication is: [CODE] I am getting this error when i'm calling this: [CODE] What am i doing wrong? can't we bind to a process that is isolated? Is there any other w...
android
0
2016-05-03T07:19:36.397Z
2,016
5
7
1
1,764
1
370
41
1
4
true
false
false
false
false
false
zero
36,998,057
How to create nested dynamic Json Object pojo class in android
<p>I have a following json format:-</p> <pre><code> {"status": "ok","response": { "results": { "C9DC8215200A9180BD4F4F15097CEB0AC6F4DB6C57FDB75F": { "EDF8B7EC20005ACC5C40FF7D6E988801F5BAD83CBBCDB97F": { "ED4FE2BB2008FDA9C8133FF462959C0968FAB98C4D1DB8F2": [ { "ty...
I have a following json format:- [CODE] In the above Json , I have several dynamic Json Object keys which are change for different responses. I am using retrofit to parse json. Please help me how to create POJO class for above JSON . Thanks!!
android|json|retrofit|pojo
1
2016-05-03T07:21:29.857Z
2,016
5
7
1
1,208
1
242
62
4
1
true
false
false
false
false
false
low
36,998,066
Node js equivalent code for android AES encryption
<p>I am trying to encrypt my message in android and decrypt in node js server.</p> <p>Android Code :</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>SecretKeySpec secretkeyspec = new SecretKeySpec("password".getBy...
I am trying to encrypt my message in android and decrypt in node js server. Android Code : [CODE] Node JS Code : [CODE] When i try to print the buffers im getting different values between android and node js. Node Buffer : [26, 116, 2, -56, -70, 121, -44, 66, 101, 84, -46, 127, -70, -42, 67, 31, 124, -104, -24, 88, 74,...
android|node.js|encryption|aes|cryptojs
1
2016-05-03T07:21:58.153Z
2,016
5
7
1
858
2
623
50
5
2
true
false
false
false
false
false
low
36,998,172
Drawable Tinting: Indeterminate ProgressBar
<p>I've been trying to tint the ProgressBar drawable for an app with support till API 15. I need to do it dynamically as well. Here's what I have tried so far:</p> <h3>XML:</h3> <pre><code>&lt;ProgressBar android:id="@+id/progressBar" android:layout_width="wrap_content" android:layout_height="wrap_content...
I've been trying to tint the ProgressBar drawable for an app with support till API 15. I need to do it dynamically as well. Here's what I have tried so far: XML: [CODE] Java: [CODE] OUTPUT: Android 6: Android 4.4: Android 5.0.1, 5.1, 5.1.1: Problems: Android 5 : ProgressBar is not visible on devices running Lollipop. (...
android|android-viewpager|android-5.0-lollipop|android-drawable|android-5.1.1-lollipop
0
2016-05-03T07:28:13.653Z
2,016
5
7
1
66
0
660
43
5
3
true
true
false
false
false
false
zero
36,998,179
appcompat 23.2.1 menuitem text small case issue
<p>I have added appcompat 23.2.1 support library.This library gives menu item text small for lollipop and above version devices but its shows in small case but its not shows in small case for older versions(It shows in capital ).I have used below code for it</p> <p><a href="http://i.stack.imgur.com/qPFuB.png" rel="nof...
I have added appcompat 23.2.1 support library.This library gives menu item text small for lollipop and above version devices but its shows in small case but its not shows in small case for older versions(It shows in capital ).I have used below code for it =screnshot [CODE]
android|menu|menuitem|android-appcompat
0
2016-05-03T07:28:33.553Z
2,016
5
7
1
124
1
273
47
4
1
true
false
false
false
false
false
zero
36,998,235
What the cause of NPE here?
<p>I have mentioned the line numbers where I am getting run time error line 27,118,62 and 134.Logcat is also there.I am getting these errors after 30-35 seconds.</p> <p>Why I am getting it on line 27 </p> <blockquote> <p>Line 134 : ListView listView = (ListView) getView().findViewById(R.id.list4);</p> </blockquot...
I have mentioned the line numbers where I am getting run time error line 27,118,62 and 134.Logcat is also there.I am getting these errors after 30-35 seconds. Why I am getting it on line 27 Line 134 : ListView listView = (ListView) getView().findViewById(R.id.list4); The warning shows that may causes NPE [CODE]
android|json|fragment|warnings
-4
2016-05-03T07:31:23.880Z
2,016
5
7
1
57
1
312
27
4
1
true
false
false
false
false
true
negative
36,998,238
Exclusion strategy for RealmObject with Jackson
<p>I'm using retrofit2 to retrieve data from an API, and caching them locally with Realm. I have a ServiceFactory class that I use to create all the request to the API. It works flawlessly if the object I download don't extends RealmObject. To download (and deserialize) RealmObject I need to include a custom exclusion ...
I'm using retrofit2 to retrieve data from an API, and caching them locally with Realm. I have a ServiceFactory class that I use to create all the request to the API. It works flawlessly if the object I download don't extends RealmObject. To download (and deserialize) RealmObject I need to include a custom exclusion str...
android|jackson|gson|realm|retrofit2
2
2016-05-03T07:31:39.347Z
2,016
5
7
1
661
0
1,416
47
5
3
true
true
false
false
false
false
low
36,998,272
Toast.makeText doesn't work
<p>I have a problem with fragment.... When I click on button to call <code>showResult</code> method, <code>Toast.makeText</code> doesn't show me the name of selected checkbox.</p> <p>I don't know why. </p> <pre><code>public class MyListFragment extends Fragment implements android.widget.CompoundButton.OnCheck...
I have a problem with fragment.... When I click on button to call showResult method, Toast.makeText doesn't show me the name of selected checkbox. I don't know why. [CODE] THIS IS MAIN [CODE]
android|listview|android-fragments|android-studio|android-toast
0
2016-05-03T07:33:55.730Z
2,016
5
7
1
1,506
4
191
27
5
2
true
false
false
false
false
false
zero
36,998,506
Android : Resizing a drawable
<p>I am working on an android application and I want to reduce my icones. I have tried different ways but each time the returned drawable has a low density.. However when I resize the same image on photoshop, it keeps a good density. The following code is the best that I found. </p> <p>Could you help me to improve it...
I am working on an android application and I want to reduce my icones. I have tried different ways but each time the returned drawable has a low density.. However when I resize the same image on photoshop, it keeps a good density. The following code is the best that I found. Could you help me to improve it please ? [CO...
android|image-resizing
0
2016-05-03T07:48:43.543Z
2,016
5
7
1
669
1
323
29
2
1
true
false
false
false
false
false
zero
36,998,551
Run React Native code while application is closed
<h2>Problem</h2> <p>I have been trying to create a React Native application used to catch phone calls and send the numbers to an API. I have created a working native module for catching the phone calls in Java. I have also managed to send an event to my JavaScript code and managed to catch this event and log the numbe...
Problem I have been trying to create a React Native application used to catch phone calls and send the numbers to an API. I have created a working native module for catching the phone calls in Java. I have also managed to send an event to my JavaScript code and managed to catch this event and log the number through con...
android|react-native
10
2016-05-03T07:50:48.583Z
2,016
5
7
1
1,585
0
1,614
49
2
3
true
true
false
false
true
false
medium
36,998,601
When I change activity to fragment, I want to modify String array resource ID error
<p>When I change activity to fragment, I have a 'thread exiting with uncaught exception' error. but, I can't solve the problem. help me plz.</p> <p><a href="http://i.stack.imgur.com/GiFiP.png" rel="nofollow">enter image description here</a></p> <p>this is the error message.</p> <p>and this is the java code</p> <pre...
When I change activity to fragment, I have a 'thread exiting with uncaught exception' error. but, I can't solve the problem. help me plz. enter image description here this is the error message. and this is the java code [CODE]
android-activity|fragment
1
2016-05-03T07:54:11.947Z
2,016
5
7
1
30
0
226
83
2
1
true
true
false
false
false
false
low
36,998,614
Already set "Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK"
<p>When I start activity from a BroadCastReceiver, the exception "<strong>Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK</strong>" will happened. The follow is my receiver code</p> <pre><code>public class LogoutReceiver extends BroadcastReceiver { public static final S...
When I start activity from a BroadCastReceiver, the exception " Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK " will happened. The follow is my receiver code [CODE] } You can see it ,I have set FLAG_ACTIVITY_NEW_TASK already. I want to point another thing. I send the br...
android|android-intent
2
2016-05-03T07:54:57.690Z
2,016
5
7
1
634
1
457
109
2
2
true
false
false
false
false
false
low
36,998,796
Recycler View With Grid layout Manager and item decorator
<p>I have the below XML from URL and want the below layout with the values filled with the XML data I am getting from URL.</p> <p><strong>Below is the xml from url</strong></p> <pre><code> &lt;Seat&gt; &lt;ColumnNo&gt;0&lt;/ColumnNo&gt; &lt;Deck&gt;2&lt;/Deck&gt; &lt;RowNo&gt;0&lt;/RowNo&gt; &lt;SeatLabel&gt;E&lt;/...
I have the below XML from URL and want the below layout with the values filled with the XML data I am getting from URL. Below is the xml from url [CODE] with the below code A.java [CODE] MarginDecoration.java [CODE] activity_recycler_view.xml [CODE] The all above i did with the help of this Github link
android|android-recyclerview|android-gridlayout|gridlayoutmanager
-3
2016-05-03T08:05:49.943Z
2,016
5
8
1
712
1
303
57
4
4
true
false
false
false
false
true
negative
36,998,950
Blank screen upon new activity - Android
<p>I'm attempting to start a new activity as a result of clicking a button, but it only shows up as a blank screen. None of the XML elements display. Interestingly, whenever I press the phone's "back" button, I get a message explaining "Unfortunately, has stopped working". After clicking "Okay" on this dialogue, the a...
I'm attempting to start a new activity as a result of clicking a button, but it only shows up as a blank screen. None of the XML elements display. Interestingly, whenever I press the phone's "back" button, I get a message explaining "Unfortunately, has stopped working". After clicking "Okay" on this dialogue, the actua...
java|android|xml
0
2016-05-03T08:14:18.210Z
2,016
5
8
1
948
1
1,135
40
3
6
true
false
false
false
false
false
zero
36,999,103
Fatal signal 11 (SIGSEGV), code 1 error when using Android NDK C++
<p>I'm getting the following error when making an Android app that uses both Java as well as C++ code through the NDK. Specifically, I've tried many valid inputs (this is a calculator app) and they all result in this error, but one, for example, that I tried was 4+3-5</p> <pre><code>05-03 00:54:05.676 30652-30652/com....
I'm getting the following error when making an Android app that uses both Java as well as C++ code through the NDK. Specifically, I've tried many valid inputs (this is a calculator app) and they all result in this error, but one, for example, that I tried was 4+3-5 [CODE] I'm not sure what or where my error is or how t...
java|android|c++|android-ndk|segmentation-fault
0
2016-05-03T08:22:30.913Z
2,016
5
8
1
1,179
1
439
66
5
3
true
false
false
false
false
false
zero
36,999,260
Why does volley has duplicated Cookie in request header?
<p>I define a volley request as follows, but sometimes I cannot get the right data from server(after I just logged in), so I use Fiddler to watch the request, It SEEMS THAT there are two Cookie section in the request header, so the server treat it as guest identity and the wrong data are returned. so why two Cookie sec...
I define a volley request as follows, but sometimes I cannot get the right data from server(after I just logged in), so I use Fiddler to watch the request, It SEEMS THAT there are two Cookie section in the request header, so the server treat it as guest identity and the wrong data are returned. so why two Cookie sectio...
cookies|android-volley
0
2016-05-03T08:30:50.077Z
2,016
5
8
1
219
0
476
56
2
2
true
true
false
false
false
false
zero
36,999,264
TextToSpeech takes too much time while synthesizeToFile in Android
<p>I have used below code for synthesizing <strong><code>.txt</code></strong> file to <strong><code>.mp3</code></strong> file using Android built-in <strong><code>TTS Engine</code></strong>.</p> <p>Code:</p> <pre><code> textToSpeech.synthesizeToFile(readFileText, utterParam, destinationFileName); textToSpeech.setOn...
I have used below code for synthesizing .txt file to .mp3 file using Android built-in TTS Engine . Code: [CODE] Above is sample code. Here is flow of application execution: Get file from SD card Synthesize file to mp3 Play a mp3 file Issue : When file Synthesization is done then only I can play mp3 file. For even file ...
android|text-to-speech|speech-synthesis|google-text-to-speech
5
2016-05-03T08:31:03.140Z
2,016
5
8
1
1,808
1
477
66
4
1
true
false
false
false
false
false
low
36,999,269
Slow scrollview with background image
<p>How should I set background image for layout with scroolview, because when I add imageView to below code, scroolview start working very slow. Image has 700kb. If i set <code>android:background="@drawable/background04"</code> to relativeLayout scroolview also work very slow.</p> <pre><code>&lt;RelativeLayout xmlns:a...
How should I set background image for layout with scroolview, because when I add imageView to below code, scroolview start working very slow. Image has 700kb. If i set android:background="@drawable/background04" to relativeLayout scroolview also work very slow. [CODE] Edit: For testing I use htc desire 820. [CODE] Logc...
android|xml
1
2016-05-03T08:31:23.393Z
2,016
5
8
1
583
1
330
37
2
3
true
false
false
false
false
false
low
36,999,363
How to Share Image and text on hike application using Share Intent in android
<p>I want to share Image and text using ACTION_SEND in android, I'm using below code, I can share only a Image but I can not share Text with it on hike application.</p> <pre><code> Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/*"); // share.setPackage("com.hike"); ...
I want to share Image and text using ACTION_SEND in android, I'm using below code, I can share only a Image but I can not share Text with it on hike application. [CODE]
android|image|android-intent|share
1
2016-05-03T08:36:27Z
-1
-1
-1
-1
687
1
168
77
4
1
true
false
false
false
false
false
low
36,999,411
Custom Keyboard for Listview
<p>Im currently trying to add a custom keyboard to a list view which is dynamically populated by an ArrayAdapter.</p> <p>My View Hierarchy looks like this: One Activity, which has a top bar (self made, as LinearLayout), below a FrameLayout which will contain one of 5 Fragments, and (optionally) a bottom bar below (pro...
Im currently trying to add a custom keyboard to a list view which is dynamically populated by an ArrayAdapter. My View Hierarchy looks like this: One Activity, which has a top bar (self made, as LinearLayout), below a FrameLayout which will contain one of 5 Fragments, and (optionally) a bottom bar below (probably as Li...
android|listview|keyboard
1
2016-05-03T08:38:59.600Z
2,016
5
8
1
184
0
974
28
3
3
true
true
false
false
false
false
low
36,999,413
Create JSON result with certain structures
<p>I'm developing an Android application, I need to create a Json resul that contains some data in a certain structures.</p> <p>This is what that i must obtain:</p> <pre><code> { "speedtest":"10Mbit/s", "httpRequest":[ { "url":"www.google.com", "statusCode":"200" ...
I'm developing an Android application, I need to create a Json resul that contains some data in a certain structures. This is what that i must obtain: [CODE] And this is the code that i wrote, but it doesn't work properly and i dont understan why. [CODE] I have created a part of json now i don't know how to merge it
android|json
1
2016-05-03T08:39:03.387Z
2,016
5
8
1
74
3
317
42
2
2
true
false
false
false
false
false
low
36,999,449
How to add more items to listview xamarin.android
<p>Listview currently has 10 items.I have a button name is "load more". When I click on it then data will be show 10 items to listview.</p> <pre><code>public class TrackAdapter:BaseAdapter&lt;TrackModel.Track&gt; { LayoutInflater _inflater; List&lt;TrackModel.Track&gt; _tracks; public Trac...
Listview currently has 10 items.I have a button name is "load more". When I click on it then data will be show 10 items to listview. [CODE] LoadMore: [CODE] How to add items.tracks in loadMoreData to listview which listview won't be lost old data.
xamarin|xamarin.android
1
2016-05-03T08:41:03.890Z
2,016
5
8
1
533
1
247
49
2
2
true
false
false
false
false
false
low
36,999,531
How to set editText's text property in specified positions on Recyclerview?
<p>There are 5 rows(items) in a <code>Recyclerview</code> and it contains <code>Checkbox</code>(cbox) and editText(noOfQst). I can set current holder editText's text property using below code in my <code>onBindviewHolder</code> class.</p> <pre><code>holder.noOfQst.setText(String.valueOf(value)); </code></pre> <p>But ...
There are 5 rows(items) in a Recyclerview and it contains Checkbox (cbox) and editText(noOfQst). I can set current holder editText's text property using below code in my onBindviewHolder class. [CODE] But what I need is to set all the editText's value together such as the below code [CODE] I am doing this because need ...
android|android-recyclerview
0
2016-05-03T08:45:06.140Z
2,016
5
8
1
746
1
439
75
2
3
true
false
false
false
false
false
zero
36,999,636
Fatal Exception thrown on Scheduler.Worker thread with Retrofit 2 and Rx
<p>This is the code I use to make Http call. I can't reproduce the error, but Bugsnag tells me that some users are getting this error : <code>java.lang.IllegalStateException StrictMode.java</code></p> <pre><code>public class ApiManager { public interface Callback&lt;T&gt; { void onError(Throwable e); ...
This is the code I use to make Http call. I can't reproduce the error, but Bugsnag tells me that some users are getting this error : java.lang.IllegalStateException StrictMode.java [CODE] Here is the full trace : [CODE] I also tried to subscribe on Sheduler.io() and Scheduler.newThread() , but I get the same error.
android|retrofit|rx-java|rx-android
6
2016-05-03T08:50:22.070Z
2,016
5
8
1
15,311
4
316
72
4
2
true
false
true
true
false
false
medium
36,999,642
Android rotate crash image
<p>When I rotate my app it crashes:</p> <pre><code>05-03 10:42:45.455 30008-30052/nl.company.employeedirectory E/static_methods: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.FileOutputStream android.content.Context.openFileOutput(java.lang.String, int)' on a null object reference ...
When I rotate my app it crashes: [CODE] It looks like there is something with my downloadProfilePicture method: [CODE] What could be wrong here? --EDIT-- [CODE]
android
0
2016-05-03T08:50:27.680Z
2,016
5
8
1
58
0
160
26
1
3
true
true
false
false
false
false
zero
36,999,817
Android SQLite and Foreign Key no References error
<p>Hi I'm implementing a SQLite database in my Android app, here is an exemple:</p> <pre><code>private static final String TABLE_FREQUENCE_ACTIVITE = "frequence_activite"; private static final String FREQUENCE_ACTIVITE_TABLE_CREATE = "create table " + TABLE_FREQUENCE_ACTIVITE + " (" + KEY_ID + " Intege...
Hi I'm implementing a SQLite database in my Android app, here is an exemple: [CODE] I just found on google how to use Foreign Key in Android, and when I try to add an "Utilisateur" before adding a "Frenquence_activite" Android is not giving references error, I don't understand why because if I add "Utilisateur" before ...
android|sqlite
0
2016-05-03T08:58:45.807Z
2,016
5
8
1
111
3
416
50
2
3
true
false
false
false
false
false
zero
36,999,847
addJavascriptInterface in Web View Android
<p>I have javascript like this:</p> <pre><code>GameManager.prototype.restart = function () { AndroidFunction.showMessage("Hai"); }; </code></pre> <p>And to get string "Hai" in android, i can use this code and works</p> <pre><code>webView = (XWalkView) findViewById(R.id.walk_view); webView .addJavascriptInterfac...
I have javascript like this: [CODE] And to get string "Hai" in android, i can use this code and works [CODE] But when i change the javascript to this: [CODE] There is test between AndroidFunction and showMessage , and this is my java code: [CODE] My WebAppInterface doesn't get any message from javascript instead get er...
javascript|java|android|webview
0
2016-05-03T09:00:33.040Z
2,016
5
9
1
955
0
461
42
4
4
true
true
false
false
false
false
zero
36,999,884
Why I can not send data from my Matlab app(PC) to my Android tablet via Bluetooth?
<p>by the way : i'm not english fluent, be gentle, I'm trying to send data from my PC in my Matlab App to my Android App via Bluetooth.</p> <p>I started to create a Server bluetooth on my android app :</p> <pre><code>import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.b...
by the way : i'm not english fluent, be gentle, I'm trying to send data from my PC in my Matlab App to my Android App via Bluetooth. I started to create a Server bluetooth on my android app : [CODE] And i'm sending data on Matlab like that : [CODE] I can see my message in btsnoop_hci.log : btsnoop_hci.log image My andr...
java|android|matlab|bluetooth
0
2016-05-03T09:02:18.103Z
2,016
5
9
1
112
0
422
82
4
3
true
true
false
false
false
false
zero
36,999,969
PinPoint on Google Maps and display the map in Activity
<p>i am using google maps v2 and i'm new to it, what i'm doing is i open the map by pressing a button, the thing is that i need to pinpoint a certain location on the map and get its longitude and latitude to display the map again in another activity with the pinpointed location.</p> <p>i'm a bit confused on how to man...
i am using google maps v2 and i'm new to it, what i'm doing is i open the map by pressing a button, the thing is that i need to pinpoint a certain location on the map and get its longitude and latitude to display the map again in another activity with the pinpointed location. i'm a bit confused on how to manipulate goo...
android|google-maps
0
2016-05-03T09:06:18.940Z
2,016
5
9
1
324
2
450
55
2
1
true
false
false
false
false
false
zero
37,000,073
when i add imageview why show error libpng error: Not a PNG file?
<p>when i add imageview on my layout why then show error AAPT err(Facade for 817338050): libpng error: Not a PNG file</p> <p>FAILED</p> <p>FAILURE: Build failed with an exception.</p> <ul> <li>What went wrong: Execution failed for task ':app:mergeDebugResources'. <blockquote> <p>Some file crunching failed, see lo...
when i add imageview on my layout why then show error AAPT err(Facade for 817338050): libpng error: Not a PNG file FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:mergeDebugResources'. Some file crunching failed, see logs for details and i have tried this but still didn'...
android|png|logcat
-2
2016-05-03T09:10:39.717Z
2,016
5
9
1
333
1
418
65
3
2
true
false
false
false
false
true
negative
37,000,089
Using fused google api and pending intent ,updating location
<p>Using googlelocationapi ,how to get location updates when app is in background?</p> <p>I know for this we have to use requestLocationUpdates() in which pending intent is used.But how to implement this, please elaborate with all steps.</p> <h2>class in which i have used requestLocationUpdates with locationListener ...
Using googlelocationapi ,how to get location updates when app is in background? I know for this we have to use requestLocationUpdates() in which pending intent is used.But how to implement this, please elaborate with all steps. class in which i have used requestLocationUpdates with locationListener which update locatio...
android|location
1
2016-05-03T09:11:43.473Z
2,016
5
9
1
716
1
553
60
2
3
true
false
false
false
false
false
low
37,000,132
Webview is showing in android 5, but not in 2.3?
<p>The only warning in my logcat is:</p> <blockquote> <p><code>webcore: Can't get the viewWidth after the first layout.</code></p> </blockquote> <p>I have an ad banner using a webview in my app which is added programmatically. It shows up in Android version 5, but not in Android 2.3. I've tested XML instead of java...
The only warning in my logcat is: webcore: Can't get the viewWidth after the first layout. I have an ad banner using a webview in my app which is added programmatically. It shows up in Android version 5, but not in Android 2.3. I've tested XML instead of java, searched a lot of other posts involving the same error, but...
android|view|webview
1
2016-05-03T09:14:07.810Z
2,016
5
9
1
82
2
576
48
3
1
true
false
false
false
false
false
low
37,000,226
uploading file to server failse witha a log - VFY: unable to resolve static field 44070
<p>In my <strong>android</strong> project I'm <strong>uploading a zip file</strong> to a server using <strong>HTTP post request</strong>. In this case I'm using <strong>httpcore</strong> and <strong>httpmime</strong> libraries. I'm using an <strong>AsyncTask</strong> to make the upload. the doInBackground method of the...
In my android project I'm uploading a zip file to a server using HTTP post request . In this case I'm using httpcore and httpmime libraries. I'm using an AsyncTask to make the upload. the doInBackground method of the AsyncTask is as below, [CODE] the code is compile and run well. but when upload task is carry on it doe...
android|android-asynctask|http-post|multipartentity
0
2016-05-03T09:18:36.660Z
2,016
5
9
1
80
1
898
87
4
6
true
false
false
false
false
false
zero
37,000,294
Android security exception for permission listed in manifest file
<p>The user of the app I am developing is required to share the location during the registration process. Clicking the "Locate me" button should get the GPS coordinates ( or whatever is provided, I don't know yet ).</p> <p>When the button is clicked, I get this error message:</p> <pre><code>java.lang.SecurityExceptio...
The user of the app I am developing is required to share the location during the registration process. Clicking the "Locate me" button should get the GPS coordinates ( or whatever is provided, I don't know yet ). When the button is clicked, I get this error message: [CODE] Which, from what I understand, has to do with ...
android|android-manifest|android-permissions
4
2016-05-03T09:22:22.380Z
2,016
5
9
1
6,430
1
760
65
3
3
true
false
true
false
false
false
low
37,000,400
Deleting item from SQLite deletes next item
<p>I have wrote code to delete an item from SQLite database and from listview, it always deletes next item. For example I have 3 items to delete (&quot;1&quot;, &quot;2&quot; and &quot;3&quot;)</p> <p>I press delete on item &quot;1&quot; but it deletes item &quot;2&quot;</p> <p>I press delete item &quot;2&quot;, it de...
I have wrote code to delete an item from SQLite database and from listview, it always deletes next item. For example I have 3 items to delete (&quot;1&quot;, &quot;2&quot; and &quot;3&quot;) I press delete on item &quot;1&quot; but it deletes item &quot;2&quot; I press delete item &quot;2&quot;, it deletes &quot;3&quot...
android|sqlite|listview
0
2016-05-03T09:27:56.940Z
2,016
5
9
1
67
0
565
43
3
3
true
true
false
false
false
false
zero
37,000,475
Android Load Spinner data from Server
<p>I am learning android volley library. I am trying to populate data from server to spinner. my JSON is:</p> <pre><code>{"data":{"Bangalore":["Painting","Carpentering","Plumbing","Electrical works"],"Hydrabad":["Plumbing"],"kochi":["Painting","Carpentering"]},"status":200} </code></pre> <p>Now I am trying to get on...
I am learning android volley library. I am trying to populate data from server to spinner. my JSON is: [CODE] Now I am trying to get only Bangalore, hydrabad, kochi in One Spinner. Upon selecting the City I want to load the work(Painting , Plumbing etc..) in other spinner. I am not able to get the city names in spinner...
android|android-volley
0
2016-05-03T09:31:10.763Z
2,016
5
9
1
1,384
1
400
37
2
2
true
false
false
false
false
false
zero
37,000,546
CardView with ImageView in RecyclerView doesn't fill screen
<p>I am using a <code>CardView</code> with <code>ImageView</code> in <code>RecyclerView</code>.Below is xml code.</p> <p>List Item(<code>CardView</code>) xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_...
I am using a CardView with ImageView in RecyclerView .Below is xml code. List Item( CardView ) xml: [CODE] Using it in a RecyclerView : [CODE] But I am facing some issues: 1=>.I have set layout_width as " match_parent " of CardView and ImageView . But, still CardView doesn't fill the full screen, and shows a margin in ...
android|android-layout|android-recyclerview|material-design|android-cardview
0
2016-05-03T09:33:53.377Z
2,016
5
9
1
1,671
3
545
59
5
2
true
false
false
false
false
false
zero
37,000,578
Switching android camera back to front: app passed NULL surface
<p>Using the Android Camera framework I found a problem: if I try to switch the camera from back to front with the following code </p> <pre><code> releaseMediaRecorder(); releaseCamera(); if(currentCameraId == Camera.CameraInfo.CAMERA_FACING_BACK){ cur...
Using the Android Camera framework I found a problem: if I try to switch the camera from back to front with the following code [CODE] all works fine, except the Preview sizes. Infact, I've implemented in my Preview class a function that get the best preview sizes, but in this code there isn't that calling because I sho...
android|null|camera|switch-statement|surface
0
2016-05-03T09:35:22.097Z
2,016
5
9
1
854
1
705
63
5
3
true
false
false
false
false
false
zero
37,000,701
adb touchscreen swipe fail in a call
<p>I'm trying to simulate a auto video call with adb using touches and swipes. The scenario: </p> <p>Device1 audio calls Device2, Device2 answers, Device1 asks for video call(bidirectional), Device2 tries to answer and fails. The wired thing is that sometimes it works but most of the it fails on that point when the de...
I'm trying to simulate a auto video call with adb using touches and swipes. The scenario: Device1 audio calls Device2, Device2 answers, Device1 asks for video call(bidirectional), Device2 tries to answer and fails. The wired thing is that sometimes it works but most of the it fails on that point when the device2 trying...
java|android|automation|adb
23
2016-05-03T09:41:16.510Z
2,016
5
9
1
646
1
389
36
4
1
true
false
false
false
true
false
high
37,000,700
How to highlight a border of an Image View when I clicked imageview in android
<p>I have the list of images in horizontal view in android. If I click particular Image of an Image view have to highlight on border color programmtically. How can I do that for highlighted border of an Image View. Thanks in Advance.</p> <p><a href="https://i.stack.imgur.com/LCFEk.png" rel="nofollow noreferrer"><img s...
I have the list of images in horizontal view in android. If I click particular Image of an Image view have to highlight on border color programmtically. How can I do that for highlighted border of an Image View. Thanks in Advance. I want to display like this border of an ImageView when user clicked a single image of an...
android|android-layout|android-fragments|android-studio|android-imageview
2
2016-05-03T09:41:16.520Z
2,016
5
9
1
9,814
5
343
78
5
1
true
false
true
false
false
false
low
37,000,725
how to make Relative layout onclick work?
<p>I have a Relative layout as: </p> <pre><code> &lt;RelativeLayout android:id="@+id/iPay_btn" android:layout_width="match_parent" android:layout_height="wrap_content" android:clickable="true" android:orientation="horizontal"&gt; &lt;TextView android:layo...
I have a Relative layout as: [CODE] I want my relative layout to perform onCLickListener but does not work. I am able to do the setonclicklistener but it works only with the textview part and not for the image. [CODE] This works for the text part only but not for the image. Any idea what I might be missing.
android|xml|onclicklistener
4
2016-05-03T09:42:21.417Z
2,016
5
9
1
8,784
4
308
41
3
2
true
false
true
false
false
false
low
37,000,734
Android app not compatible by any device
<p>We have published an iOS version of our app successfully, but Android is failing. We have deployed it into the Google Play store, but there we get the message that it is compatible with 0 Android devices (which is not a good thing obviously). The following file is the <code>AndroidManifest.xml</code> file found in t...
We have published an iOS version of our app successfully, but Android is failing. We have deployed it into the Google Play store, but there we get the message that it is compatible with 0 Android devices (which is not a good thing obviously). The following file is the AndroidManifest.xml file found in the APK after com...
android|cordova|google-play|android-manifest|phonegap-build
2
2016-05-03T09:42:47.603Z
2,016
5
9
1
280
0
795
40
5
1
true
true
false
false
false
false
low
37,000,820
Android ListView inside ListFragment won't be clicked, onListItemClick() never reached
<p>The onListItemClick() method inside the class that extends ListFragment doesn't get called, and there isn't even a click animation when the list item is clicked. </p> <p>Even when I set the TextViews to focusable="false" or its root element to android:descendantFocusability="blocksDescendants" it doesn't work.</p> ...
The onListItemClick() method inside the class that extends ListFragment doesn't get called, and there isn't even a click animation when the list item is clicked. Even when I set the TextViews to focusable="false" or its root element to android:descendantFocusability="blocksDescendants" it doesn't work. The problem aris...
android|listview|android-fragments
0
2016-05-03T09:46:22.737Z
2,016
5
9
1
80
0
1,214
86
3
4
true
true
false
false
false
false
zero
37,000,892
How to prevent a user from taking a screenshot in Android Crosswalk WebView?
<p>I'm trying to prevent from taking a screenshot in Crosswalk WebView. I have tried <a href="https://github.com/Telerik-Verified-Plugins/PrivacyScreen" rel="nofollow noreferrer">PrivacyScreenPlugin</a>. This plugin works very good when I wasn't using Crosswalk plugin. However, if I added Crosswalk plugin, it only work...
I'm trying to prevent from taking a screenshot in Crosswalk WebView. I have tried PrivacyScreenPlugin . This plugin works very good when I wasn't using Crosswalk plugin. However, if I added Crosswalk plugin, it only works at the app launch time. For example, when I launch my app, I can not take a screenshot. However, i...
android|cordova|crosswalk
2
2016-05-03T09:49:52.190Z
2,016
5
9
1
1,332
2
897
76
3
1
true
false
false
false
false
false
low
37,000,952
How to set data that is parsed from the inner array of the json
<p>I have a nested array json where I have to parse. Below is the json</p> <pre><code>{ "result": { "course": [{ "course_id": "3", "parent_course_id": "0", "course_name": "Management of Portfolio (MoP)", "course_price": "51000...
I have a nested array json where I have to parse. Below is the json [CODE] There are two JsonArray:- more specifically Array within an Array namely COURSE and MODULE I have already parsed the json but the point is there will be a listview where the courses will be shown. on the click of the item it will open an activit...
android|json|listview|android-fragments
1
2016-05-03T09:52:27.417Z
2,016
5
9
1
69
1
1,004
63
4
5
true
false
false
false
false
false
low
37,000,965
codename one android intercepting urls issue
<p>I am having a problem intercepting urls with android on codename one. I got it working fine for ios using the build hints ios.urlScheme and ios.plistInject. The build hint I used for android is: </p> <pre><code>android.xintent_filter=&lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; ...
I am having a problem intercepting urls with android on codename one. I got it working fine for ios using the build hints ios.urlScheme and ios.plistInject. The build hint I used for android is: [CODE] However android is not registering the text "mibrand://..." as a link and therefore it is just plain text, not clickab...
android|android-intent|codenameone
7
2016-05-03T09:52:50.873Z
2,016
5
9
1
175
1
491
44
3
2
true
false
false
false
false
false
medium
37,000,993
Simple Framework - unknown xml tags parsing
<p>I'm developing android project which is based on Simple Framework. For some time I noticed that I must to implement dynamic parsing. In brief I have a big xml file downloaded from backend. This xml file can contains tags which can be different from time to time and unchangeable tags which are used by my application....
I'm developing android project which is based on Simple Framework. For some time I noticed that I must to implement dynamic parsing. In brief I have a big xml file downloaded from backend. This xml file can contains tags which can be different from time to time and unchangeable tags which are used by my application. Le...
java|android|xml|simple-framework
1
2016-05-03T09:54:12.057Z
2,016
5
9
1
252
1
773
43
4
3
true
false
false
false
false
false
low
37,001,114
Google Tango Update Listener onXyzIjAvailable Callback never gets called
<p>first: there are two topics in here which are pretty similar, but one ended with the device being faulty, others are on the C API... that's why a open a new question.</p> <p>I am using the <strong>Google Tango SDK with jMonkeyEngine</strong> for a scientific Augmented Reality Application. So far everything worked g...
first: there are two topics in here which are pretty similar, but one ended with the device being faulty, others are on the C API... that's why a open a new question. I am using the Google Tango SDK with jMonkeyEngine for a scientific Augmented Reality Application. So far everything worked great. But now I would like t...
java|android|depth|jmonkeyengine|tango
0
2016-05-03T10:00:31.457Z
2,016
5
10
1
211
1
971
72
5
1
true
false
false
false
false
false
zero
37,001,121
Cordova Android App's Version Number Changes in Gradle
<p>I am trying to submit my App, and the version does not come out as expected, always append the number 8 on the Playstore (which results to 30203<strong>8</strong>)</p> <p>I already tried removing and adding the same Android platform. Changing the version from Android Studio's Project Structure seems to not help eit...
I am trying to submit my App, and the version does not come out as expected, always append the number 8 on the Playstore (which results to 30203 8 ) I already tried removing and adding the same Android platform. Changing the version from Android Studio's Project Structure seems to not help either.. Where else should I ...
android|cordova|build.gradle
1
2016-05-03T10:00:50.087Z
2,016
5
10
1
1,043
3
585
54
3
3
true
false
false
false
false
false
low
37,001,126
Retrofit error in Android
<p>I am trying to create a login page. Onclick of the button, I am calling a method to verify the login credentials if already present in the backend django server. I am able to fetch the values of the username and password. The problem that I am currently facing is, if I give the login credentials already present in t...
I am trying to create a login page. Onclick of the button, I am calling a method to verify the login credentials if already present in the backend django server. I am able to fetch the values of the username and password. The problem that I am currently facing is, if I give the login credentials already present in the ...
java|android|django|rest|django-rest-framework
0
2016-05-03T10:00:57.897Z
2,016
5
10
1
130
0
542
25
5
3
true
true
false
false
false
false
zero
37,001,170
How to set my circleImageView on the border of my layout in android?
<p>Explanation: I want to set my circleImageView on the border of my layout.</p> <p>Here is my xml file in which there are more layout but i want to set circleimageview on the border of the layout.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.a...
Explanation: I want to set my circleImageView on the border of my layout. Here is my xml file in which there are more layout but i want to set circleimageview on the border of the layout. [CODE] Here is an demo image i want exactly like this Please, help me to solve out.
android
1
2016-05-03T10:02:55.833Z
2,016
5
10
1
3,429
3
271
68
1
1
true
false
true
false
false
false
low
37,001,181
Android FinalizerDaemon hanging up
<p>I'm having a really weird problem in an Android app. After a certain point (around when the main activity starts and a fragment is displayed) the FinalizerDaemon just stops processing objects and garbage keeps piling up. Looking at a thread dump, it seems to be stuck on <code>ReferenceQueue.remove()</code> :</p> <p...
I'm having a really weird problem in an Android app. After a certain point (around when the main activity starts and a fragment is displayed) the FinalizerDaemon just stops processing objects and garbage keeps piling up. Looking at a thread dump, it seems to be stuck on ReferenceQueue.remove() : [CODE] Yet the queue is...
java|android|multithreading|android-ndk|android-runtime
19
2016-05-03T10:03:17.813Z
2,016
5
10
1
5,630
1
1,379
34
5
1
true
false
true
false
true
false
medium
37,001,240
Get Lifelog API result
<p>I'm trying to use the Lifelog's API and i wrote this portion of code:</p> <pre><code>. . . //MAIN ACTIVITY private void scaricaDati(){ token = spref.getString("access_token"); Log.i(TAG, "(scaricaDati) token = " + token); String tag_json_obj = "json_obj_req"; String url = "https://platform.lifel...
I'm trying to use the Lifelog's API and i wrote this portion of code: [CODE] in the onResponse i receive a lot of data, also for days and hours different from the day and the interval of time setted in the getParams, why? where is the error? If i remove the getParams method i obtain the same data as results.
android|android-volley|sony|sony-lifelog-api
0
2016-05-03T10:06:41.690Z
2,016
5
10
1
132
1
309
22
4
1
true
false
false
false
false
false
zero
37,001,283
Multidex limit hitting while running unit test cases
<p>I have an application where I have local unit tests ( <strong>test folder</strong> ) and instrumentation unit test cases ( <strong>androidTest folder</strong> ). Right now if I click on the androidTest folder, and click "<strong>Run All Tests</strong>", it throws the following exception. </p> <pre><code>Error:Error...
I have an application where I have local unit tests ( test folder ) and instrumentation unit test cases ( androidTest folder ). Right now if I click on the androidTest folder, and click " Run All Tests ", it throws the following exception. [CODE] This exception is clearly because of hitting the multidex limit. But I ha...
android|unit-testing
8
2016-05-03T10:08:14.070Z
2,016
5
10
1
960
1
519
52
2
2
true
false
false
false
false
false
medium
37,001,314
Connect to remote server in android
<p>i have developed an android applcation. (with volley) i have a webservice and currently its on my localhost. (using xampp) </p> <p>My url strings in my AppConfig class as following:</p> <pre><code>public class AppConfig { // Server user login url public static String URL_LOGIN = "http://10.0.2.2/webservice/login.p...
i have developed an android applcation. (with volley) i have a webservice and currently its on my localhost. (using xampp) My url strings in my AppConfig class as following: [CODE] now i have moved my php files to a remote server using filezilla. its a managed wordpress hosting. my domain is something like this, www.ex...
android|web-services|remote-server
0
2016-05-03T10:10:03.650Z
2,016
5
10
1
254
2
544
35
3
4
true
false
false
false
false
false
zero
37,001,387
Xamarin.Forms AppCompat MasterDetail no titlebar showing
<p>I have a problem with Xamarin.Forms (v2.3)</p> <p>I followed this guide: <a href="https://developer.xamarin.com/guides/xamarin-forms/platform-features/android/appcompat/" rel="nofollow noreferrer">https://developer.xamarin.com/guides/xamarin-forms/platform-features/android/appcompat/</a></p> <p>And so far I have b...
I have a problem with Xamarin.Forms (v2.3) I followed this guide: https://developer.xamarin.com/guides/xamarin-forms/platform-features/android/appcompat/ And so far I have been able to integrate the Material design successfully in my Forms app. What is not actually working as I would love to is the MasterDetail, that I...
c#|android|xaml|xamarin.forms|android-appcompat
0
2016-05-03T10:13:29.173Z
2,016
5
10
1
1,602
1
570
56
5
2
true
false
false
false
false
false
zero
37,001,533
How to setup sync URL in couchbase sync gateway to connect to couchbase server
<p>I am trying to use CouchBase Lite for my mobile app. I have seen in tutorial of couchbase but it shows how to add sync URL for walrus server not couchbase server. How can I set up sync URL for couchbase server.</p> <p>Following is the code which I am using but unable to put or get data from couchbase server</p> <p...
I am trying to use CouchBase Lite for my mobile app. I have seen in tutorial of couchbase but it shows how to add sync URL for walrus server not couchbase server. How can I set up sync URL for couchbase server. Following is the code which I am using but unable to put or get data from couchbase server private URL create...
android|couchbase|couchbase-lite|couchbase-sync-gateway
2
2016-05-03T10:20:40.533Z
2,016
5
10
1
722
1
688
78
4
2
true
false
false
false
false
false
low
37,001,599
Return result from custom dialog to activity
<p>I have an Activity. In that Activity i have one Custom Dialog.In that dialog one button is there.on click of that button i want to change the color of a text which i have in my activity.how to acheive that. can anyone please help me. My code ---</p> <pre><code>public class Test extends Activity{ TextView tv...
I have an Activity. In that Activity i have one Custom Dialog.In that dialog one button is there.on click of that button i want to change the color of a text which i have in my activity.how to acheive that. can anyone please help me. My code --- [CODE]
android|dialog
2
2016-05-03T10:23:55.120Z
2,016
5
10
1
1,246
1
252
44
2
1
true
false
false
false
false
false
low
37,001,656
Android Targetsdk23 how can i open the menu by a custom button?
<p>after Google cancel the menu button,some phones don't have the button,to adjust A i use code below still don't succeed to open the menu,what i did wrong?</p> <pre><code> code: public void menu(View v) { KeyEvent event=new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); MainActivity.t...
after Google cancel the menu button,some phones don't have the button,to adjust A i use code below still don't succeed to open the menu,what i did wrong? [CODE] Main Activity code: [CODE]
android|compatibility
0
2016-05-03T10:26:47.067Z
2,016
5
10
1
51
1
187
63
2
2
true
false
false
false
false
false
zero