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
28,813,109
Android Lollipop - Service Intent must be explicit
<p>I have (what I am sure is a simple) problem with Lollipop and explicit intents. I have built an app that communicates over a bluetooth connection to a printer - this works fine on anything below Lollipop.</p> <p>I've checked various other answers and the Android documentation but cannot see any difference between t...
I have (what I am sure is a simple) problem with Lollipop and explicit intents. I have built an app that communicates over a bluetooth connection to a printer - this works fine on anything below Lollipop. I've checked various other answers and the Android documentation but cannot see any difference between the way that...
android|android-intent|service|bluetooth|android-5.0-lollipop
1
2015-03-02T15:12:24.403Z
2,015
3
15
0
1,415
1
1,145
50
5
5
true
false
false
false
false
false
low
28,813,110
NullPointerException in TurnBasedMatch when calling LeaveMatchResult in Android Sample SkeletonTbmp
<p>I want to implement the turn-based multiplayer service. So, I first tried to run the sample (SkeletonTbmp). It works so far except when clicking on leave-Button. Then, a NullpointerException is thrown and I don't understand why.</p> <pre><code>public void onLeaveClicked(View view) { showSpinner(); String ne...
I want to implement the turn-based multiplayer service. So, I first tried to run the sample (SkeletonTbmp). It works so far except when clicking on leave-Button. Then, a NullpointerException is thrown and I don't understand why. [CODE] The error message looks the following: [CODE] Can somebody explain me the error or d...
android|nullpointerexception|google-play-services|multiplayer
0
2015-03-02T15:12:28.250Z
2,015
3
15
0
117
0
413
99
4
2
true
true
false
false
false
false
zero
28,813,140
How to create an android custom DatePicker with day of week and month?
<p>I have to extend DatePicker to custom it and show the picker in this format: Monday, 12 November. How can I do? Which method I have to implement?</p>
I have to extend DatePicker to custom it and show the picker in this format: Monday, 12 November. How can I do? Which method I have to implement?
android|date|datepicker
0
2015-03-02T15:13:42.183Z
2,015
3
15
0
594
0
145
70
3
0
false
true
false
false
false
false
zero
28,813,171
When is a good time to implement/call startActivityForResult() and then onActivityResult() on Fragment or on Activity?
<p>I am currently stuck to a problem since I notice my application not updating the list adapter I created. I called MyFragment.onNoteListUpdated() (A function which notifies the list of the changes) was not being properly called on Activity.onActivityResult(). I called startActivityForResult() on Activity and receive ...
I am currently stuck to a problem since I notice my application not updating the list adapter I created. I called MyFragment.onNoteListUpdated() (A function which notifies the list of the changes) was not being properly called on Activity.onActivityResult(). I called startActivityForResult() on Activity and receive the...
android
0
2015-03-02T15:15:27.553Z
2,015
3
15
0
57
0
706
118
1
0
false
true
false
false
false
false
zero
28,813,184
How to show a Activity only once. It should be shown only the app opened at first time.?
<p>How to show a Activity only once. It should be shown only when the app is opened at first time. If the user visits 2nd or any other time. The main activity should be displayed.. Ex:- Uc browser... How to do like this .. is there any one help me</p>
How to show a Activity only once. It should be shown only when the app is opened at first time. If the user visits 2nd or any other time. The main activity should be displayed.. Ex:- Uc browser... How to do like this .. is there any one help me
android|android-intent
-4
2015-03-02T15:16:08.420Z
2,015
3
15
0
591
3
244
88
2
0
false
false
false
false
false
true
negative
28,813,186
Cordova add Android platform
<p>I'm trying to create a prgetto Cordova. The problem is when I go to add the Android platform. After this command: </p> <pre><code>cordova add Android platform </code></pre> <p>I have an answer from the shell this message:</p> <pre><code>Creating Android project ... /home/francesco/.cordova/lib/android/cordov...
I'm trying to create a prgetto Cordova. The problem is when I go to add the Android platform. After this command: [CODE] I have an answer from the shell this message: [CODE] I looked around but I could not solve. Can someone help me? There rinngrazio in advance.
android|cordova|platform
0
2015-03-02T15:16:12.960Z
2,015
3
15
0
760
3
262
28
3
2
true
false
false
false
false
false
zero
28,813,249
Sync failed with Gradle in Android Studio
<p>I' m writing my first Android app. I' ve installed successfully Android Studio. I' ve create a nw project, SDK 4.2, empty activity. I' m trying to make/build/run the app before starting to edit it, but i got this error:</p> <blockquote> <p>Error:Cause: org.slf4j.helpers.NOPLoggerFactory cannot be cast to ch.qos.l...
I' m writing my first Android app. I' ve installed successfully Android Studio. I' ve create a nw project, SDK 4.2, empty activity. I' m trying to make/build/run the app before starting to edit it, but i got this error: Error:Cause: org.slf4j.helpers.NOPLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerConte...
android|gradle
2
2015-03-02T15:19:23.990Z
2,015
3
15
0
1,177
1
927
41
2
0
false
false
false
false
false
false
low
28,813,371
Move camera position to fit LatLngBounds with regard to marker height
<p>I want to move camera to position to fit <code>LatLngBounds</code> with regard to marker height. So far I'm able for fit the anchors of markers with this code:</p> <pre><code>LatLngBounds.Builder builder = new LatLngBounds.Builder(); for (Marker marker : markerList) { builder.include(marker.getPosition()); } La...
I want to move camera to position to fit LatLngBounds with regard to marker height. So far I'm able for fit the anchors of markers with this code: [CODE] It produces output like this: As you can see there's empty space at the bottom (this is int padding ). I'd like to have the padding to be equal like this:
android|google-maps-markers|google-maps-android-api-2|google-maps-api-2
5
2015-03-02T15:25:26.723Z
2,015
3
15
0
5,507
2
308
69
4
1
true
false
true
false
false
false
low
28,813,398
Android bluetooth socket timeout
<p>Maybe I miss something, but How can I change the timeout of BluetoothSocket.connect() ? </p> <p>Thanks you</p> <p>Anthony</p>
Maybe I miss something, but How can I change the timeout of BluetoothSocket.connect() ? Thanks you Anthony
android|bluetooth
0
2015-03-02T15:26:45.633Z
2,015
3
15
0
1,048
1
106
32
2
0
false
false
false
false
false
false
zero
28,813,402
Android Media Player set Data Source FD failed
<p>My code was working just fine until I increased the number of songs. I had 200 songs but when I put 200+ I noticed that I was receiving IOException setDataSource FD failed.</p> <p>Now after some additional tests I found that the limit before this error is 334 songs which is strange. I don't understand why it plays ...
My code was working just fine until I increased the number of songs. I had 200 songs but when I put 200+ I noticed that I was receiving IOException setDataSource FD failed. Now after some additional tests I found that the limit before this error is 334 songs which is strange. I don't understand why it plays ok with <33...
android|android-mediaplayer
0
2015-03-02T15:27:01.283Z
2,015
3
15
0
560
0
806
46
2
1
true
true
false
false
false
false
zero
28,813,553
What is the use of findViewById()
<p>I am new to Android development &amp; I need sincere help from the experienced as I have loads of confusions and doubts.</p>
I am new to Android development & I need sincere help from the experienced as I have loads of confusions and doubts.
android-activity
-2
2015-03-02T15:34:48.343Z
2,015
3
15
0
59
2
116
33
1
0
false
false
false
false
false
true
negative
28,813,556
Allowing mobile app to access backend API
<p>how can I allow only my (ionic framework) cordova-based android application to access my laravel-based api?</p> <p>I added this to laravel</p> <pre><code> header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); header('Access-Control-Allow-Headers: Origin, C...
how can I allow only my (ionic framework) cordova-based android application to access my laravel-based api? I added this to laravel [CODE] But I think this will allow anyone to access my API. How can I prevent that?
android|cordova|laravel
1
2015-03-02T15:34:58.180Z
2,015
3
15
0
276
1
215
41
3
1
true
false
false
false
false
false
low
28,813,627
Android Dev - Run top command output to TextView
<p>I have been reading a lot this forum , and it help me a lot to setup my application , however , I do have another problem now , what I am trying to do is to display the "top" command output in a textview. So layout is basically two buttons ( Start and Stop ) and a textView, and I have read here that I have to use an...
I have been reading a lot this forum , and it help me a lot to setup my application , however , I do have another problem now , what I am trying to do is to display the "top" command output in a textview. So layout is basically two buttons ( Start and Stop ) and a textView, and I have read here that I have to use an as...
android|android-asynctask|textview|command|output
1
2015-03-02T15:37:49.553Z
2,015
3
15
0
471
1
1,136
48
5
1
true
false
false
false
false
false
low
28,813,701
Listening logcat and do an action if exception throws?
<p>I have a java code like this:</p> <pre><code>public class Automation { public static void main(String[] args) { try { ProcessBuilder pb = new ProcessBuilder("adb", "-s", "4df1f91a2b6b5fb9", "install", "C:\\Users\\lenovo 01\\Documents\\android\\CELLOGRAF_LG.apk", "am", "start",...
I have a java code like this: [CODE] I want to do something like: if any exception is thrown in the logcat in 30 seconds, I want to send a message that apk is corrupted. I can make the apk is terminated and uninstalled after 30 seconds but I have to listen the logcat for any exception. Is this possible or this can't be...
android|logcat
0
2015-03-02T15:40:54.150Z
2,015
3
15
0
116
0
341
54
2
1
true
true
false
false
false
false
zero
28,813,741
guide/information on building an offline mapping Android application using nutiteq
<p>Does anyone have or know of any guides/tutorials/information on how to build an offline mapping Android application using nutiteq?</p>
Does anyone have or know of any guides/tutorials/information on how to build an offline mapping Android application using nutiteq?
android|dictionary|geolocation|geospatial|nutiteq
0
2015-03-02T15:43:02.803Z
2,015
3
15
0
142
1
130
82
5
0
false
false
false
false
false
false
zero
28,813,746
AlertDialogPro with custom Typeface
<p>I'm trying to set a custom typeface to a dialog built using <a href="https://github.com/fengdai/AlertDialogPro" rel="nofollow">AlertDialogPro</a> but get a NPE when trying to retrieve the dialog Button using <code>dialog.getButton(int)</code>. And how can I set the typeface for the message and title of the dialog?<...
I'm trying to set a custom typeface to a dialog built using AlertDialogPro but get a NPE when trying to retrieve the dialog Button using dialog.getButton(int) . And how can I set the typeface for the message and title of the dialog? [CODE] Log: [CODE]
android|alertdialogpro
1
2015-03-02T15:43:13.810Z
2,015
3
15
0
285
3
251
35
2
2
true
false
false
false
false
false
low
28,813,774
Gmail API returns 403 error code and usage limits error
<p>I'm trying to add the gmail API to my application, but i get this error:</p> <pre><code>03-02 15:30:23.555: W/System.err(7765): com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 03-02 15:30:23.555: W/System.err(7765): { 03-02 15:30:23.555: W/System.err(7765): "code" : 403, 03-02 15:...
I'm trying to add the gmail API to my application, but i get this error: [CODE] this is my Gmail API class: [CODE] And in the developer Console i've created a new client id with the package name and sha1 of my application, and i've enabled also the Gmail API,Google+ API,Contacts API.
android|api|gmail
2
2015-03-02T15:44:36.383Z
2,015
3
15
0
374
0
284
55
3
2
true
true
false
false
false
false
low
28,813,790
How to Programmatically Add Views to ViewContainer?
<p>When I override the <code>public Object instantiateItem</code> function of <code>MainAdapter extends PagerAdapter</code> , at line <code>container.addView(</code>,it crash down. I receive the following log</p> <pre><code>java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup at andr...
When I override the public Object instantiateItem function of MainAdapter extends PagerAdapter , at line container.addView( ,it crash down. I receive the following log [CODE] My code of the instanstiateItem function is shown below. Class TaskCompletedView extends View [CODE]
java|android
1
2015-03-02T15:45:15.457Z
2,015
3
15
0
4,369
1
275
51
2
2
true
false
true
false
false
false
low
28,813,861
Android WebView and Market url
<p>I use a webview to navigate my site. My site contain Market url. I try to launch Playstore App when Market url is click (Code below) but the App open the last open App not Playstore. If I come back and reopen my App, Playstore is open in my webView. I need help, Thanks.</p> <pre><code> mWebview.setWebViewClient(...
I use a webview to navigate my site. My site contain Market url. I try to launch Playstore App when Market url is click (Code below) but the App open the last open App not Playstore. If I come back and reopen my App, Playstore is open in my webView. I need help, Thanks. [CODE] I solved the problem with this code change...
android|url|webview|google-play
1
2015-03-02T15:48:15.250Z
2,015
3
15
0
2,266
1
384
30
4
2
true
false
false
false
false
false
low
28,813,890
android - How can I return 5 String arrays in doInBackground?
<p>I want to return 5 string arrays from doInBackground that can be used by postExecute.</p> <p>I can't seem to find an answer for this.</p> <p>Thanks for help :D</p>
I want to return 5 string arrays from doInBackground that can be used by postExecute. I can't seem to find an answer for this. Thanks for help :D
android|android-asynctask
-5
2015-03-02T15:49:16.240Z
2,015
3
15
0
1,996
3
145
61
2
0
false
false
false
false
false
true
negative
28,813,929
Error using Google Play Game Service Cordova Plugin on phonegap build
<p>I am using in my config.xml to use the plugin. I get the following errors in the log after building using pgb.How to fix this issue?.Thanks. -pre-compile:</p> <p>-compile: [javac] Compiling 11 source files to /project/bin/classes [javac] warning: /project/com.google.playservices/google-play-services...
I am using in my config.xml to use the plugin. I get the following errors in the log after building using pgb.How to fix this issue?.Thanks. -pre-compile: -compile: [javac] Compiling 11 source files to /project/bin/classes [javac] warning: /project/com.google.playservices/google-play-services_lib/libs/google-play-servi...
android|cordova|ant|google-play-services|phonegap-build
0
2015-03-02T15:51:09.813Z
2,015
3
15
0
520
0
2,034
69
5
2
true
true
false
false
false
false
zero
28,813,968
RecyclerView smoothScrollToPosition bug
<p>I have a RecyclerView with GridLayoutManager and a button, when i click the button i want to smoothScrollToPosition. My custom view is simply a RelativeLayout containing a TextView. When i run the program on Lollipop everything's fine, i press the button and the application scrolls smoothly to the given position. Wh...
I have a RecyclerView with GridLayoutManager and a button, when i click the button i want to smoothScrollToPosition. My custom view is simply a RelativeLayout containing a TextView. When i run the program on Lollipop everything's fine, i press the button and the application scrolls smoothly to the given position. When ...
android|android-support-library|lag|android-recyclerview|android-debug
0
2015-03-02T15:53:07.267Z
2,015
3
15
0
1,431
1
775
39
5
0
false
false
false
false
false
false
zero
28,814,059
Sticky horizontal scrollview android
<p>i want create sticky horizontal scroll view like this :<a href="https://www.youtube.com/watch?v=BT9g-JdW6ms&amp;feature=youtu.be" rel="nofollow">https://www.youtube.com/watch?v=BT9g-JdW6ms&amp;feature=youtu.be</a></p> <p>how create that header ?</p>
i want create sticky horizontal scroll view like this : https://www.youtube.com/watch?v=BT9g-JdW6ms&feature=youtu.be how create that header ?
android|scrollview|sticky
2
2015-03-02T15:57:10.907Z
2,015
3
15
0
563
0
141
36
3
0
false
true
false
false
false
false
low
28,814,144
ScrollView in Navigation Drawer
<p>I designed my Own custom navigation Drawer, and it looks like this: <img src="https://i.stack.imgur.com/zjmJI.png" alt="enter image description here"></p> <p>and the xml code for this navigation drawer is:</p> <pre><code>&lt;RelativeLayout android:id="@+id/UserOptionsDrawer" android:layout_width="240dp" ...
I designed my Own custom navigation Drawer, and it looks like this: and the xml code for this navigation drawer is: [CODE] {it's just a part of entire xml file with android.support.v4.widget.DrawerLayout tags..} Anyway, there are more buttons in the bottom which i can't reach because it's not a scroll view... I tried t...
android|scrollview|navigation-drawer
1
2015-03-02T16:01:02.833Z
2,015
3
16
0
5,843
0
488
31
3
2
true
true
true
false
false
false
low
28,814,207
Set Current Network Type
<p>Good afternoon guys, I have a problem with Android. I can get the current state of the data network with <code>getNetworkType()</code>, but How can I set the current state of the data network ? </p> <p>thank you all, and sorry for my bad english.</p>
Good afternoon guys, I have a problem with Android. I can get the current state of the data network with getNetworkType() , but How can I set the current state of the data network ? thank you all, and sorry for my bad english.
android|android-networking
-1
2015-03-02T16:03:27.020Z
2,015
3
16
0
115
1
226
24
2
0
false
false
false
false
false
true
negative
28,814,236
MvxViewModels (childeren) loaded by MvxTabActivity do not raise Start() and can't use same View?
<p>Is there any solution that MvxViewModels that are loaded from MvxTabActivity do not raise Start() and can't use the same View?</p> <p>This happens when loading Child ViewModels like: </p> <pre><code>tabSpecs.SetContent(this.CreateIntentFor(MyViewModel.Child1)); </code></pre> <p>then </p> <pre><code>public overri...
Is there any solution that MvxViewModels that are loaded from MvxTabActivity do not raise Start() and can't use the same View? This happens when loading Child ViewModels like: [CODE] then [CODE] Doesn't get raised. And when I use a single type of child ViewModel for multiple childeren the tab activity seems to cache th...
android|xamarin|mvvmcross
0
2015-03-02T16:04:53.860Z
2,015
3
16
0
104
1
492
96
3
2
true
false
false
false
false
false
zero
28,814,283
Receiving custom parameter in retrofit callback
<p>This is my <code>post</code> :</p> <pre><code>@POST("/path") @FormUrlEncoded void postIt(@Field("id") String id , Callback&lt;Response&gt; response); </code></pre> <p>and this is the <code>Callback</code>: </p> <pre><code> private Callback&lt;Response&gt; responseCallBack = new Callback&lt;Response&gt;() { @O...
This is my post : [CODE] and this is the Callback : [CODE] Question: in the callback i want to receive the id which posted in @POST , how should i do that? and i can't change the server API
java|android|rest|callback|retrofit
3
2015-03-02T16:07:12.683Z
2,015
3
16
0
2,313
2
189
47
5
2
true
false
false
false
false
false
low
28,814,292
Make audio player seekbar clickable
<p>Below is the code of the seekbar for my audio player. Currently, I am able to move it along, but once I lift my finger, it returns to the original song duration again. How can I navigate to any time of the song through the seekbar?</p> <pre><code>//initialize seekbar seekbar = (SeekBar)findViewById(R.id.seekBar1); ...
Below is the code of the seekbar for my audio player. Currently, I am able to move it along, but once I lift my finger, it returns to the original song duration again. How can I navigate to any time of the song through the seekbar? [CODE] Below is where seekbar is involved, in play button onclick [CODE] And it is also ...
android|audio
0
2015-03-02T16:07:39.467Z
2,015
3
16
0
553
2
360
35
2
3
true
false
false
false
false
false
zero
28,814,303
Hide toolbar on scroll when the using a recyclerview inside a Fragment instead of an Activity
<p>I'm trying to adapt the strategy for hiding / showing a toolbar (or any visual element) from the well explained and great article: <a href="http://mzgreen.github.io/2015/02/15/How-to-hideshow-Toolbar-when-list-is-scroling%28part1%29/" rel="nofollow">http://mzgreen.github.io/2015/02/15/How-to-hideshow-Toolbar-when-li...
I'm trying to adapt the strategy for hiding / showing a toolbar (or any visual element) from the well explained and great article: http://mzgreen.github.io/2015/02/15/How-to-hideshow-Toolbar-when-list-is-scroling%28part1%29/ But in my case I'm using a Fragment to hold the recycleview instead of the activity. My problem...
android|scroll|toolbar|android-recyclerview
1
2015-03-02T16:08:20.050Z
2,015
3
16
0
4,767
1
1,619
93
4
7
true
false
true
false
false
false
low
28,814,350
RoundedBitmapDrawable with TransitionDrawable
<p>I am trying to use the support lib v4's <code>RoundedBitmapDrawable</code> in order to display Rounded bitmaps loaded asynchronously in ImageViews, either circled or rounded rectangles.<br> However, it looks like RoundedBitmapDrawable does not mesh very well with <code>LayerDrawable</code> :<br> If I try something l...
I am trying to use the support lib v4's RoundedBitmapDrawable in order to display Rounded bitmaps loaded asynchronously in ImageViews, either circled or rounded rectangles. However, it looks like RoundedBitmapDrawable does not mesh very well with LayerDrawable : If I try something like : [CODE] The TransitionDrawable l...
android
3
2015-03-02T16:10:40.357Z
2,015
3
16
0
1,252
4
687
45
1
2
true
false
false
false
false
false
low
28,814,398
Android - Display data from MySQL
<p>I'm very new to Android and I'm currently making an application wherein the user can enter and ID number once (that serves as a login) and he can use access the rest of the features of the app.</p> <p>I'm currently stuck in the displaying of a data from the MySQL server. Using the ID that the user entered (which is...
I'm very new to Android and I'm currently making an application wherein the user can enter and ID number once (that serves as a login) and he can use access the rest of the features of the app. I'm currently stuck in the displaying of a data from the MySQL server. Using the ID that the user entered (which is unique and...
java|android|mysql|json
0
2015-03-02T16:13:17.410Z
2,015
3
16
0
891
3
957
33
4
1
true
false
false
false
false
false
zero
28,814,450
How can I open a new file while my android application is still in background?
<p>When "closed" MyApp save its new data in <code>my_file.json (MODE_PRIVATE)</code>, and it can open <code>other_file.json</code> from file manager or when received by bluetooth.</p> <p>The issue is it fails to open the new file if MyApp is still in "background". I want to know what the best place is to implement the...
When "closed" MyApp save its new data in my_file.json (MODE_PRIVATE) , and it can open other_file.json from file manager or when received by bluetooth. The issue is it fails to open the new file if MyApp is still in "background". I want to know what the best place is to implement the opening process. right now I do it ...
android|oncreate
0
2015-03-02T16:15:55.963Z
2,015
3
16
0
118
0
347
78
2
1
true
true
false
false
false
false
zero
28,814,511
Calabash Android - undefined method `keys' for nil:NilClass (NoMethodError)
<p>I need your help to figure out a solution to an error I'm facing</p> <p>I'm creating tests for my app with calabash and here is my code : </p> <pre><code>url = 'myUrl' http = Net::HTTP.new(url, 80) path = '/login/login.php' resp, data = http.get(path, nil) &lt;-- This line fires the error cookie = resp.respons...
I need your help to figure out a solution to an error I'm facing I'm creating tests for my app with calabash and here is my code : [CODE] Here is what I get : [CODE] I don't understand what it refers to ? How can I solve it ? knowing that the line 33 is the one I displayed in the first code snippet. I think I am callin...
php|android|ruby-on-rails|calabash
1
2015-03-02T16:18:56.687Z
2,015
3
16
0
282
1
450
75
4
2
true
false
false
false
false
false
low
28,814,527
MPAndroidChart Labels displays all in one line - Need to wrap
<p>I am creating a chart using MPAndroidChart with 10 data sets using one of the examples provided. My labels are displaying all on one single line and are not wrapping. They are getting chopped off on the right.</p> <pre><code>Legend l = mChart.getLegend(); l.setForm(Legend.LegendForm.SQUARE); l.setPosition(Legend....
I am creating a chart using MPAndroidChart with 10 data sets using one of the examples provided. My labels are displaying all on one single line and are not wrapping. They are getting chopped off on the right. [CODE] I would like to display the labels in multi-lines. Any ideas please?
android|mpandroidchart
2
2015-03-02T16:19:55.550Z
2,015
3
16
0
1,989
1
285
61
2
1
true
false
false
false
false
false
low
28,814,569
Android Studio how do I check email address and password before starting a new activity
<p>Making a prototype app that requires an email address &amp; password I am quite new to java, I have tried the following method but the new activity does not open. If anyone has any helpful hints/tips it would be appreciated :)</p> <blockquote> <pre><code>public class LogonScreen extends ActionBarActivity { private ...
Making a prototype app that requires an email address & password I am quite new to java, I have tried the following method but the new activity does not open. If anyone has any helpful hints/tips it would be appreciated :) [CODE] [CODE]
java|android|email|android-activity|passwords
0
2015-03-02T16:22:10.653Z
2,015
3
16
0
1,557
2
236
87
5
2
true
false
false
false
false
false
zero
28,814,574
Cannot add a TextView programmatically
<p>I am trying to add a textview and keep getting a nullPointer when I try to add it to the layout.</p> <p>My layout:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/app_header" android:layout_width="mat...
I am trying to add a textview and keep getting a nullPointer when I try to add it to the layout. My layout: [CODE] My class: [CODE] Logcat gives me a nullPointer on the last line "parent.addView(title);" Does anyone know what I am doing wrong? Here is logcat: [CODE]
android
0
2015-03-02T16:22:18.013Z
2,015
3
16
0
93
3
266
38
1
3
true
false
false
false
false
false
zero
28,814,601
Phonegap InAppBrowser navigation bar disappears after compiling
<p>I have used the InAppBrowser plugin to open external webpage links in my Phonegap app. When using the Phonegap development app to preview, everything seems to work fine. The navigation bar appears over the external page after clicking on the external links and to close the page I press the 'Done' button and I am ret...
I have used the InAppBrowser plugin to open external webpage links in my Phonegap app. When using the Phonegap development app to preview, everything seems to work fine. The navigation bar appears over the external page after clicking on the external links and to close the page I press the 'Done' button and I am return...
android|ios|cordova|phonegap-plugins|inappbrowser
0
2015-03-02T16:23:33.210Z
2,015
3
16
0
665
1
797
63
5
2
true
false
false
false
false
false
zero
28,814,610
SlidingDrawer And ScrollView
<p>I have a SlidingDrawer. And I want use ScrollView in my SlidingDrawer. I Try but app is not running.</p> <p>I am tried ScrollView in LinearLayout but still not running app.</p> <p>How can I do this.</p> <p>Here İs Code:</p> <pre><code>. . . . . . &lt;LinearLayout android:id="@+id/LinearLayout01" ...
I have a SlidingDrawer. And I want use ScrollView in my SlidingDrawer. I Try but app is not running. I am tried ScrollView in LinearLayout but still not running app. How can I do this. Here İs Code: [CODE] THANKS!
android|xml|scrollview|slidingdrawer
0
2015-03-02T16:24:02.333Z
2,015
3
16
0
337
1
213
28
4
1
true
false
false
false
false
false
zero
28,814,622
How can I display installed apps in a RecyclerView?
<p>I've searched Google but haven't found anything relating to this. </p> <p>I'm using Android Studio to create my first Material App. Now I want to display all the apps installed on my phone inside a RecyclerView. Is this possible? </p>
I've searched Google but haven't found anything relating to this. I'm using Android Studio to create my first Material App. Now I want to display all the apps installed on my phone inside a RecyclerView. Is this possible?
java|android|android-studio|android-recyclerview
0
2015-03-02T16:24:46.977Z
2,015
3
16
0
2,381
1
221
51
4
0
false
false
false
false
false
false
zero
28,814,755
Android progress bar doesn't update
<p>I'm stuck with a problem with a progress bar. I've created a class which upload a file to an FTP server, the code works correctly but when I tried to implement the progress bar it doesn't update, it jumps from 0% to 100% when the upload is completed. this is my class:</p> <pre><code>class Upload extends AsyncTask&l...
I'm stuck with a problem with a progress bar. I've created a class which upload a file to an FTP server, the code works correctly but when I tried to implement the progress bar it doesn't update, it jumps from 0% to 100% when the upload is completed. this is my class: [CODE] EDIT: 03-02 17:44:00.030: E/AndroidRuntime(1...
android|file-upload|progress-bar
0
2015-03-02T16:30:09.993Z
2,015
3
16
0
383
1
2,044
35
3
1
true
false
false
false
false
false
zero
28,814,765
Performance: best practices for an app listing several images
<p>I'm developing an app with JQuery Mobile and Phonegap Build. And there's a list including images. This list is populated dynamiccaly. But I am not using JQM markup on this list, because it would be even slower.</p> <p>It's a list with 264 items for now, and increasing. And the images have to be at least 250px heigh...
I'm developing an app with JQuery Mobile and Phonegap Build. And there's a list including images. This list is populated dynamiccaly. But I am not using JQM markup on this list, because it would be even slower. It's a list with 264 items for now, and increasing. And the images have to be at least 250px height for table...
android|cordova|jquery-mobile
1
2015-03-02T16:30:32.893Z
2,015
3
16
0
97
3
487
61
3
0
false
false
false
false
false
false
low
28,814,828
Using 'this' in an Android event handler. Is there a better way?
<p>Yes, there is always a better way. But is there a better way that is possible? :)</p> <p>So this code works. It's a custom adapter for a ListActivty and the idea is that each row has a button and when the button is tapped the item for that row is removed and the list refreshes.</p> <pre><code>private class Third...
Yes, there is always a better way. But is there a better way that is possible? :) So this code works. It's a custom adapter for a ListActivty and the idea is that each row has a button and when the button is tapped the item for that row is removed and the list refreshes. [CODE] In the click listener, I am using ThirdAc...
android|listview
0
2015-03-02T16:33:35.263Z
2,015
3
16
0
49
1
528
64
2
1
true
false
false
false
false
false
zero
28,814,846
Otto event Bus loop / time events
<p>Is there build in way with square otto to send events in a loop or to time events? Or do I have to handle firing events in a loop myself?</p>
Is there build in way with square otto to send events in a loop or to time events? Or do I have to handle firing events in a loop myself?
android|otto
0
2015-03-02T16:34:30.473Z
2,015
3
16
0
400
2
137
33
2
0
false
false
false
false
false
false
zero
28,814,864
Hide first item in listView Android
<p>I'm developing an Android project and I have tried to HIDE the first item in a listView of several ways:</p> <ol> <li><p>If I put the next code, the space doesn't dissapear from the listView.</p> <blockquote> <p>convertView.setVisibility(View.GONE);</p> </blockquote></li> <li><p>If I put the next code, the item ...
I'm developing an Android project and I have tried to HIDE the first item in a listView of several ways: If I put the next code, the space doesn't dissapear from the listView. convertView.setVisibility(View.GONE); If I put the next code, the item hides, but the next items appear into row of 2px height. if(condition){ c...
android|listview
0
2015-03-02T16:35:26.513Z
2,015
3
16
0
1,256
3
630
35
2
0
false
false
false
false
false
false
zero
28,815,001
Variable 'btnsave' is accessed from within inner class, needs to be declared final
<p>I have the above error on my code. I have tried fixing this by declaring my btnsave as final, but then I get two other errors saying:</p> <blockquote> <p>Unknown class: 'btnsave'</p> <p>Not a statement</p> </blockquote> <p>Any idea how I fix this error?</p> <pre><code>btnsave = (Button)findViewById(R.id.button); ...
I have the above error on my code. I have tried fixing this by declaring my btnsave as final, but then I get two other errors saying: Unknown class: 'btnsave' Not a statement Any idea how I fix this error? [CODE]
java|android|variables|button|android-studio
0
2015-03-02T16:41:52.530Z
2,015
3
16
0
1,214
2
212
82
5
1
true
false
false
false
false
false
zero
28,815,067
Access defaultSharedPreferences in class from service
<p>Long story short, I have a class that handles my app shared preferences. I call it from various other classes without issues, but when I try to call it from my service (from the same APK) I get a null exception. I am guessing that it's getting called from the wrong context or something like that. Here is the relevan...
Long story short, I have a class that handles my app shared preferences. I call it from various other classes without issues, but when I try to call it from my service (from the same APK) I get a null exception. I am guessing that it's getting called from the wrong context or something like that. Here is the relevant c...
android
0
2015-03-02T16:45:30.277Z
2,015
3
16
0
109
1
652
53
1
4
true
false
false
false
false
false
zero
28,815,090
Android design multi-platform (pixels to dp)
<p>I have developed an Android app with an Emulator (5.4") from Eclipse.</p> <p>I have tested this app and everything works well, but I want to adapt my app for different smartphone's sizes and for different tablet's sizes. I have created some folders 'values' with differents suffixes like '-ldpi' '-mdpi' '-hdpi' '-xh...
I have developed an Android app with an Emulator (5.4") from Eclipse. I have tested this app and everything works well, but I want to adapt my app for different smartphone's sizes and for different tablet's sizes. I have created some folders 'values' with differents suffixes like '-ldpi' '-mdpi' '-hdpi' '-xhdpi' which ...
android|tablet|pixels|dpi|smartphone
0
2015-03-02T16:46:29.757Z
2,015
3
16
0
408
1
1,633
44
5
0
false
false
false
false
false
false
zero
28,815,099
Resource not found : Theme.Leanback
<p>I'm building android app for Tv and I'm setting theme as a Theme.Leanback is defined in android-support-v17-leanback.jar support library. But when I build my app getting error saying that "<strong>Error: No resource found that matches the given name (at 'theme' with value '@style/ Theme.Leanback')</strong>"<br> I h...
I'm building android app for Tv and I'm setting theme as a Theme.Leanback is defined in android-support-v17-leanback.jar support library. But when I build my app getting error saying that " Error: No resource found that matches the given name (at 'theme' with value '@style/ Theme.Leanback') " I have added the android-s...
android|android-support-library|android-theme|television|android-tv
8
2015-03-02T16:47:04.500Z
2,015
3
16
0
9,165
3
692
35
5
0
false
false
true
false
false
false
medium
28,815,154
asp.net library to access android file system
<p>I am creating a proof-of-concept web app that connects to a mainframe database, creates a SQLite database on an Android device and copies data from a table on the mainframe to a table on the Android device. Is there a simple technique for addressing the Android file system directly from the web app, that doesn't re...
I am creating a proof-of-concept web app that connects to a mainframe database, creates a SQLite database on an Android device and copies data from a table on the mainframe to a table on the Android device. Is there a simple technique for addressing the Android file system directly from the web app, that doesn't requir...
c#|android|asp.net|sqlite
0
2015-03-02T16:49:27.387Z
2,015
3
16
0
77
1
344
45
4
0
false
false
false
false
false
false
zero
28,815,193
Menu switch mode instead of clearing and inflating all the time
<p>Right now I have one activity hosting multiple fragments (and they've got fragment babies as well). In every single fragment I'm doing this: </p> <pre><code> @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); actionBar.setT...
Right now I have one activity hosting multiple fragments (and they've got fragment babies as well). In every single fragment I'm doing this: [CODE] It seems highly inefficient as I'm inflating all the time when I've definitely have done it before. Is there a better way to do this?
android|android-fragments|android-appcompat
0
2015-03-02T16:51:30.323Z
2,015
3
16
0
23
0
281
63
3
1
true
true
false
false
false
false
zero
28,815,270
Sort table names in Ascending order in SQL
<p>i have a table called Names, where the data is stored like</p> <pre class="lang-none prettyprint-override"><code>Raju; Rakesh; Preema; Swetha; +9199869986; +9145899656; +9177885555; Testing; Doggy; </code></pre> <p>Now, if i need to sort by name, i tried like this</p> <pre><code>"SELECT * FROM namesTable ORDER BY...
i have a table called Names, where the data is stored like [CODE] Now, if i need to sort by name, i tried like this [CODE] Here i'm getting numbers first, i want numbers to be at the end actual letters from A should appear first. Any help
android|sql|sqlite|sorting
-3
2015-03-02T16:55:12.490Z
2,015
3
16
0
84
2
238
42
4
2
true
false
false
false
false
true
negative
28,815,273
Parse a JSON string to a custom class
<p>In an app that I'm developing I receive from a web-service a JSON string, I'm trying to covert this string into a custom class like:</p> <pre><code>public class User { public String userID; public String description; public int PIN; public User(){} } </code></pre> <p>whith it's getter and setter method.</p> <p>I...
In an app that I'm developing I receive from a web-service a JSON string, I'm trying to covert this string into a custom class like: [CODE] whith it's getter and setter method. I've tried to do that stuff using a Gson and the method: [CODE] where the String "fromServer" it's already codified in JSON if i print the Stri...
android|json
0
2015-03-02T16:55:17.103Z
2,015
3
16
0
1,643
3
449
37
2
4
true
false
false
false
false
false
zero
28,815,277
Getting the last finger touching the screen
<p>I need to do controls, and I am having problem with multi touch.</p> <p>The concept is easy:</p> <ul> <li>if the user touches the left (half of the screen) side the ship go to the left</li> <li>if the user touches the right (half of the screen) side the ship go to the right.</li> </ul> <p>The problems come when t...
I need to do controls, and I am having problem with multi touch. The concept is easy: if the user touches the left (half of the screen) side the ship go to the left if the user touches the right (half of the screen) side the ship go to the right. The problems come when the user does the following: Put finger on left si...
java|android|multi-touch|motionevent
1
2015-03-02T16:55:27.147Z
2,015
3
16
0
532
3
574
43
4
1
true
false
false
false
false
false
low
28,815,355
How can I display an inline PDF Document on an Android Device?
<p>I need to display a PDF document on an HTML page, not on a seperate page display only the PDF.</p> <p>Basically a user will click a button, that button will take them to a new page that has a Header Section, Footer Section, and a PDF in between these two sections.</p> <p>My first thought as an iFrame. It worked be...
I need to display a PDF document on an HTML page, not on a seperate page display only the PDF. Basically a user will click a button, that button will take them to a new page that has a Header Section, Footer Section, and a PDF in between these two sections. My first thought as an iFrame. It worked beautifully on my bro...
android|html|cordova|pdf|phonegap-plugins
0
2015-03-02T16:58:21.480Z
2,015
3
16
0
1,216
2
564
62
5
0
false
false
false
false
false
false
zero
28,815,356
Android Studio Logcat not showing logs
<p>There is very awkward thing I am facing. Logcat is shown in debugging application, but while running (not debugging) application, it is not showing Logcat.</p> <p>I tried restarting it but nothing is happening.</p>
There is very awkward thing I am facing. Logcat is shown in debugging application, but while running (not debugging) application, it is not showing Logcat. I tried restarting it but nothing is happening.
java|android|android-studio|adb|logcat
40
2015-03-02T16:58:24.623Z
2,015
3
16
0
75,756
28
203
38
5
0
false
false
true
true
true
false
high
28,815,357
In Android, how can I implement text where some of the words have touch listeners to detect tap and hold-down gestures?
<p>I would like to implement text where some words in the text have listeners for both tap and hold-down gestures. What is the best way of doing this? An example would be extremely helpful</p>
I would like to implement text where some words in the text have listeners for both tap and hold-down gestures. What is the best way of doing this? An example would be extremely helpful
android|listener|word|gesture
0
2015-03-02T16:58:28.160Z
2,015
3
16
0
36
1
185
119
4
0
false
false
false
false
false
false
zero
28,815,364
Android: java.lang.IllegalStateException when executing Toast.makeText
<p>I'm getting an Exception when I'm executing this code:</p> <pre><code>public void onClick(View view){ (...) CharSequence text1 = "Please insert a number."; int id= view.getId(); (...) else if(id== R.id.buttonOK){ if(editText.getText().toString().matches("")) { ...
I'm getting an Exception when I'm executing this code: [CODE] The exception is when Toast.makeText is executed. I've already tried as 1st argument: getApplicationContext() this MyActivity.this view.getContext() and I always get this error. Can you please help me? Exception: [CODE]
android
0
2015-03-02T16:58:41.533Z
2,015
3
16
0
607
3
281
70
1
2
true
false
false
false
false
false
zero
28,815,370
Android - upload data to mysql db and without internet - save to buffer
<p>please help me. I want program for android. </p> <p>Mobile - (TEXT DATA) =><br /> save data to buffer in mobile =><br /> if internet state = online => Buffer send his data to MySQL db</p> <p>I've got a horrible English, sorry :-( <br />Please give me any full example or even source code how to because I am only be...
please help me. I want program for android. Mobile - (TEXT DATA) => save data to buffer in mobile => if internet state = online => Buffer send his data to MySQL db I've got a horrible English, sorry :-( Please give me any full example or even source code how to because I am only beginner. Thank you so much <3
android|mysql|database
-2
2015-03-02T16:58:57.337Z
2,015
3
16
0
188
1
310
71
3
0
false
false
false
false
false
true
negative
28,815,436
Android Ripple and Timing
<p>So i got my ripple working fine. My question is if I set an onClickListener on the button and navigate to a new page , I never see the ripple animation. I can use a handler with a postDelayed for about 300ms, to see the animation and then navigate and that works perfect. Is this best practice for implementing the ...
So i got my ripple working fine. My question is if I set an onClickListener on the button and navigate to a new page , I never see the ripple animation. I can use a handler with a postDelayed for about 300ms, to see the animation and then navigate and that works perfect. Is this best practice for implementing the rippl...
android|material-design|rippledrawable
2
2015-03-02T17:02:43.917Z
2,015
3
17
0
1,331
1
445
25
3
0
false
false
false
false
false
false
low
28,815,476
Why does it seem to take a long time for this synchronized block to get a lock?
<p>I am new to multi-threading in java, and I have a question some might find trivial.</p> <p>I have to debug a third party piece of code and I need some basic information, to know where to look for the problem because the code is very large.</p> <p>When the following code runs:</p> <pre><code>public void method() {...
I am new to multi-threading in java, and I have a question some might find trivial. I have to debug a third party piece of code and I need some basic information, to know where to look for the problem because the code is very large. When the following code runs: [CODE] I get: [CODE] Why is taking so long (3816 ms) to g...
java|android|multithreading|synchronized
13
2015-03-02T17:05:06.810Z
2,015
3
17
0
2,169
3
611
79
4
3
true
false
false
false
true
false
medium
28,815,544
android: sending a push notification using GCM to all the devices instead of only 1000
<p>Hi i'm developing a news android app, and i want to send a push notification to all the registered devices, but apparently Google said in their tutorials that you can send a push notification to up to 1000 users. but this is very frustrating and i know apps that send push notifications to all their users.</p> <p>I'...
Hi i'm developing a news android app, and i want to send a push notification to all the registered devices, but apparently Google said in their tutorials that you can send a push notification to up to 1000 users. but this is very frustrating and i know apps that send push notifications to all their users. I'm very conf...
android|notifications|google-cloud-messaging
-1
2015-03-02T17:08:40.413Z
2,015
3
17
0
1,229
2
501
86
3
0
false
false
false
false
false
true
negative
28,815,566
What to use instead of ListView
<p>One of the Activities in my project extended <code>ListView</code>, but since it's deprecated and I need to have a <code>MenuItem</code> showing, I don't know what to use..I can't extend <code>ActionBar</code> since I'm going to have a list of users in that <code>Activity</code>..Please help! Neena</p>
One of the Activities in my project extended ListView , but since it's deprecated and I need to have a MenuItem showing, I don't know what to use..I can't extend ActionBar since I'm going to have a list of users in that Activity ..Please help! Neena
android
-2
2015-03-02T17:09:55.133Z
2,015
3
17
0
164
1
249
31
1
0
false
false
false
false
false
true
negative
28,815,583
org.json.JSONException: No value for id - IMPOSSIBLE TO SOLVE
<p><a href="http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/" rel="nofollow">http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/</a></p> <p>Hi,</p> <p>This is a tutorial about building a group chat app using socket programming. This app al...
http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/ Hi, This is a tutorial about building a group chat app using socket programming. This app allows us to chat between multiple devices like android mobiles and web. I want to send more than one "String" at a time to the server. I'm ...
java|android|json|websocket
0
2015-03-02T17:10:35.497Z
2,015
3
17
0
2,177
2
3,538
61
4
17
true
false
false
false
false
false
zero
28,815,584
Trying to get ALL crashes in Android
<p>My company is developing a complex android project which is not available on google play. They sell tablets with the app already installed and the updates are done through our ftp.</p> <p>Recently we've started having some sporadic crashes in field, that never happen when the tablet is connected to the computer (so...
My company is developing a complex android project which is not available on google play. They sell tablets with the app already installed and the updates are done through our ftp. Recently we've started having some sporadic crashes in field, that never happen when the tablet is connected to the computer (so I can neve...
java|android|crash|splunk|uncaught-exception
1
2015-03-02T17:10:42.213Z
2,015
3
17
0
158
0
1,097
36
5
1
true
true
false
false
false
false
low
28,815,593
Android Testing with ActivityInstrumentationTestCase2
<p>I'm using ActivityInstrumentationTestCase2 to test my activities.</p> <p>When I start the test, I can see all is fine on the first activity, but when I call another activity in my test, the test of this new activity wasn't call, why ? </p> <p>The new activity is showed, but nothing happens in the test.</p> <p>I c...
I'm using ActivityInstrumentationTestCase2 to test my activities. When I start the test, I can see all is fine on the first activity, but when I call another activity in my test, the test of this new activity wasn't call, why ? The new activity is showed, but nothing happens in the test. I call my another activity like...
android|testing
0
2015-03-02T17:11:10.980Z
2,015
3
17
0
121
0
334
53
2
1
true
true
false
false
false
false
zero
28,815,614
COCOS-2d-x: Idea to implement Level progress in games
<p>I have developed a android game with 18 levels. I have menu at starting screen which has 18 buttons for 18 levels.</p> <p>For example If user dont finish level 1 level 2 button should not be enabled ,and so on.as user finish some levels in game the next level should be enabled. I want to create levels as cpp file a...
I have developed a android game with 18 levels. I have menu at starting screen which has 18 buttons for 18 levels. For example If user dont finish level 1 level 2 button should not be enabled ,and so on.as user finish some levels in game the next level should be enabled. I want to create levels as cpp file and not as a...
android|c++|ios|iphone|cocos2d-x
0
2015-03-02T17:12:38.170Z
2,015
3
17
0
127
2
334
53
5
0
false
false
false
false
false
false
zero
28,815,640
How do you look at 'this' with Eclipse debugger in object method
<p>If I use debug to break in an object method and the method doesn't directly refer to 'this', is there a way to examine the object? I've looked but I can't find one.</p>
If I use debug to break in an object method and the method doesn't directly refer to 'this', is there a way to examine the object? I've looked but I can't find one.
android|eclipse
0
2015-03-02T17:14:13.727Z
2,015
3
17
0
15
0
164
64
2
0
false
true
false
false
false
false
zero
28,815,662
Application crashing on pclose
<p>I have an application that parses the output from a command line using <code>popen</code>. However, when tested on Android, it crashes on <code>pclose</code>: Why? When tested in other Unix environment I have no error...</p> <pre><code>char commandLine[256] = "ps -A | grep -c myApplication"; FILE * fPipe = popen(c...
I have an application that parses the output from a command line using popen . However, when tested on Android, it crashes on pclose : Why? When tested in other Unix environment I have no error... [CODE] Update: It seems that using popen causes my application to crash anyway, at a later as stage, as if doing this call ...
android|c|linux|file-io|pipe
0
2015-03-02T17:15:39.293Z
2,015
3
17
0
284
1
341
30
5
1
true
false
false
false
false
false
zero
28,815,670
WebView with offline page (HTML5)
<p>I'm trying to show an interactive HTML5 page to a user offline using a WebView. Downloaded and unzipped the necessary content and launched the WebView with <code>web.loadUrl("file:///" + uri.toString());</code> While most of the stuff works there is no audio and LogCat tells me the following: </p> <pre><code>03-02...
I'm trying to show an interactive HTML5 page to a user offline using a WebView. Downloaded and unzipped the necessary content and launched the WebView with web.loadUrl("file:///" + uri.toString()); While most of the stuff works there is no audio and LogCat tells me the following: [CODE] I choose the cache directory bec...
android|html|android-webview|chromium
1
2015-03-02T17:16:01.633Z
2,015
3
17
0
1,023
2
447
33
4
2
true
false
false
false
false
false
low
28,815,744
toolbar not showing up
<p>I am trying to implement Android toolbar. Right now when I open my app it looks like this:</p> <p><img src="https://i.stack.imgur.com/hbceC.png" alt="enter image description here"></p> <p>The tabs in the above are not from the toolbar. Its an older version of tabs from android...I am in the process of updating.......
I am trying to implement Android toolbar. Right now when I open my app it looks like this: The tabs in the above are not from the toolbar. Its an older version of tabs from android...I am in the process of updating.... So far, the action bar did not show up which is correct, but the toolbar also did not show up. Here i...
android|android-layout|android-actionbar|android-toolbar
1
2015-03-02T17:19:39.140Z
2,015
3
17
0
2,383
3
449
22
4
2
true
false
false
false
false
false
low
28,815,769
Android Studio: Creating landscape layouts
<p>Until recently I used Eclipse, and in Eclipse I simply created a folder /res/layout-landscape and put alternate landscape layouts inside.</p> <p>However, it seem in Android Studio 1.1.0, I can't do it that way. How do I create the folder for alternate landscape layouts?</p>
Until recently I used Eclipse, and in Eclipse I simply created a folder /res/layout-landscape and put alternate landscape layouts inside. However, it seem in Android Studio 1.1.0, I can't do it that way. How do I create the folder for alternate landscape layouts?
android|layout|android-studio|android-resources
39
2015-03-02T17:21:25.320Z
2,015
3
17
0
85,021
6
263
42
4
0
false
false
true
true
true
false
high
28,815,771
Android WebView: ProgressBar not showing (Used Google's tutorial)
<p>Progress bar doesn't show when a web page loads in WebView. My XML code snippet:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddin...
Progress bar doesn't show when a web page loads in WebView. My XML code snippet: [CODE] My MainActivity.java code snippets: [CODE] I have checked all resources on Stackoverflow regarding this and posting this because I didn't find any solution. This was supposed to be very easy at first but this has taken more than 5 d...
android|android-webview
2
2015-03-02T17:21:28.477Z
2,015
3
17
0
3,157
1
337
65
2
2
true
false
true
false
false
false
low
28,815,823
In android, the host PC can accessed on the ip 10.0.2.2. Is there a way devices plugged in via USB to access the host?
<p>In android, the host PC can accessed on the ip 10.0.2.2 (<a href="http://developer.android.com/tools/devices/emulator.html" rel="nofollow">according to this doc</a>). Is there a way devices plugged in via USB to access the host?</p> <p>The context is I'm hopping to run a wiremock server as part of the gradle build ...
In android, the host PC can accessed on the ip 10.0.2.2 ( according to this doc ). Is there a way devices plugged in via USB to access the host? The context is I'm hopping to run a wiremock server as part of the gradle build process to aid testing. Wiremock doesn't run in android without significant work so running it ...
android
1
2015-03-02T17:24:42.817Z
2,015
3
17
0
164
1
370
118
1
0
false
false
false
false
false
false
low
28,815,885
Android Studio Gradle androidTest vs instrumentTest
<p>I'm adding unit tests to my existing Android Studio project and I'm a bit confused with the setup. Particularly, the androidTest vs instrumentTest flags within the gradle script. Can someone explain the different between these 2 sections and what exactly they target vs the other.</p> <p>My project was migrated from...
I'm adding unit tests to my existing Android Studio project and I'm a bit confused with the setup. Particularly, the androidTest vs instrumentTest flags within the gradle script. Can someone explain the different between these 2 sections and what exactly they target vs the other. My project was migrated from an Eclipse...
android|unit-testing|android-studio|gradle|android-gradle-plugin
6
2015-03-02T17:28:18.467Z
2,015
3
17
0
1,683
1
463
51
5
1
true
false
false
false
false
false
medium
28,815,963
Android app NPE: Unable to invoke virtual method setOnClickListener on null object
<p>I'm building my first Android app (basic calculator) which consists of one Activity and a single fragment. The layout of the app (display and buttons) are defined in the fragment xml <code>fragment_main.xml</code> and should be inflated on startup. However, the app immediately crashed with a NPE. I'm confused as to ...
I'm building my first Android app (basic calculator) which consists of one Activity and a single fragment. The layout of the app (display and buttons) are defined in the fragment xml fragment_main.xml and should be inflated on startup. However, the app immediately crashed with a NPE. I'm confused as to whether I should...
java|android|android-fragments
1
2015-03-02T17:31:54.580Z
2,015
3
17
0
1,754
2
535
82
3
3
true
false
false
false
false
false
low
28,815,966
Is there an observable that just propagates the error without terminating itself?
<p>I am using <a href="http://reactivex.io/RxJava/javadoc/rx/subjects/PublishSubject.html" rel="nofollow">PublishSubject</a> in the class that is responsible for synchronization. When the synchronization is done all the subscribers will be notified. The same happens in case of an error. I've noticed that the next time ...
I am using PublishSubject in the class that is responsible for synchronization. When the synchronization is done all the subscribers will be notified. The same happens in case of an error. I've noticed that the next time I subscribe after an error has occured, it is immediately return to the subscriber. So the class ma...
java|android|rx-java
0
2015-03-02T17:31:56.027Z
2,015
3
17
0
403
2
631
81
3
2
true
false
false
false
false
false
zero
28,815,990
Can I start an Intent by this method?
<p>I have a conceptual idea, just assume I have 2 intents, <code>Intent a</code> and <code>Intent b</code> , which is initialised to <strong>two</strong> different activities. I want these intents to start, considering a dynamic data on my server.</p> <p>What I mean to say is - I have a txt file on my server, <code>e...
I have a conceptual idea, just assume I have 2 intents, Intent a and Intent b , which is initialised to two different activities. I want these intents to start, considering a dynamic data on my server. What I mean to say is - I have a txt file on my server, example.com/cmd.txt which contains a string - open a , If this...
android|android-intent
0
2015-03-02T17:32:42.703Z
2,015
3
17
0
44
1
666
37
2
0
false
false
false
false
false
false
zero
28,816,018
how to make my text in textview with multi color?
<p>i'm building an app on android studio that have results for specific calculations and i need to make some notes within the result with red color, see the example:</p> <p>take in your consideration (r1,r2,r3) are strings </p> <pre><code>result.setText ( "creat result" + "\n salaz " + r1+ "\n jalf " +r2+ "\n mdar" +...
i'm building an app on android studio that have results for specific calculations and i need to make some notes within the result with red color, see the example: take in your consideration (r1,r2,r3) are strings [CODE] the result: salaz 20 mg jalf 10 mg mdar 5 mg So i need jalf 10 mg with red line need this line with ...
java|android|textview
-1
2015-03-02T17:34:21.630Z
2,015
3
17
0
773
3
377
49
3
1
true
false
false
false
false
true
negative
28,816,126
Execution failed for task ':app:compileDebugNdk' when trying to compile Android Studio project with NDK source code
<p>No matter how many tutorials I followed, every time I try to make a project containing C source files gradle outputs the error:</p> <pre><code>Error:Execution failed for task ':app:compileDebugNdk'. </code></pre> <blockquote> <p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecExc...
No matter how many tutorials I followed, every time I try to make a project containing C source files gradle outputs the error: [CODE] com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\svprdga\Downloads\android-ndk-r10d_x86\ndk-build.cmd'' finished wi...
android|android-studio|android-ndk
4
2015-03-02T17:40:10.280Z
2,015
3
17
0
14,361
2
748
115
3
1
true
false
true
true
false
false
low
28,816,137
Android custom scheme not working
<p>Manifest.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.kt.myapplication" &gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;application android:allowBackup=...
Manifest.xml [CODE] MainActivity.java [CODE] ViewerActivity.java [CODE] Error log... [CODE] I don't know why don't run... please help me...
android|activitynotfoundexception
1
2015-03-02T17:41:15.097Z
2,015
3
17
0
4,169
1
139
33
2
4
true
false
true
false
false
false
low
28,816,180
What is more efficient in Android layout drawing? android:textColor="#FFFFFF" or android:textColor="@android:color/white"?
<p>I've always wondered about this question. </p> <p>When building a XML <code>Android</code> layout, we can define a <code>TextView</code> text color using the RGB hexadecimal code or a color value from the <code>color.xml</code> file. </p> <pre><code>android:textColor="#FFFFFF" </code></pre> <p>or</p> <pre><code>...
I've always wondered about this question. When building a XML Android layout, we can define a TextView text color using the RGB hexadecimal code or a color value from the color.xml file. [CODE] or [CODE] Is this just a readability issue and does not have any effect at all when drawing the layout or does it make a diffe...
android|android-layout|colors|android-xml
1
2015-03-02T17:43:38.813Z
2,015
3
17
0
427
2
341
122
4
2
true
false
false
false
false
false
low
28,816,251
Difference between onSingleTapConfirmed and onSingleTapUp
<p>What is the difference between <code>onSingleTapConfirmed</code> and <code>onSingleTapUp</code> in <code>GestureDetector.SimpleOnGestureListener</code>? Which one of these is similar to <code>onClick</code> methods?</p>
What is the difference between onSingleTapConfirmed and onSingleTapUp in GestureDetector.SimpleOnGestureListener ? Which one of these is similar to onClick methods?
android|onclick|touch|gesture
19
2015-03-02T17:47:21.227Z
2,015
3
17
0
8,863
2
164
57
4
0
false
false
true
false
true
false
medium
28,816,261
trouble styling my toolbar and app
<p>I switched my app to use the toolbar and it looks like this now:</p> <p><img src="https://i.stack.imgur.com/GDiJh.png" alt="enter image description here"></p> <p>I used a material color picker to pick out colors, so I can make it look more like this:</p> <p><img src="https://i.stack.imgur.com/FnKT6.png" alt="ente...
I switched my app to use the toolbar and it looks like this now: I used a material color picker to pick out colors, so I can make it look more like this: The xml I have for those colors looks like this: [CODE] I tried to throw it into my styles.xml like this, but it had no effect: [CODE] My xml layout pre-defines the t...
android|android-styles|android-toolbar
0
2015-03-02T17:47:46.033Z
2,015
3
17
0
90
1
395
34
3
3
true
false
false
false
false
false
zero
28,816,269
How to define default namespace for custom controls in Android axml file?
<p>I have a lot of axml files with custom controls. This controls defines in myapp.xxx namespace. So, my axml-files looks like:</p> <pre><code> &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:orientation="verti...
I have a lot of axml files with custom controls. This controls defines in myapp.xxx namespace. So, my axml-files looks like: [CODE] Now I want use this controls without namespaces, such as: [CODE] But I have an exception when app renders this layout: [CODE] How can I do it?
android|xml|xamarin|xamarin.android
2
2015-03-02T17:48:03.507Z
2,015
3
17
0
331
1
274
73
4
3
true
false
false
false
false
false
low
28,816,422
Generating Unique Random number JAVA
<p>I'm trying to get shuffle character from String Question. But the character is repeated.</p> <p>Random Method</p> <pre><code>public ArrayList&lt;Integer&gt; Random(int length) { ArrayList&lt;Integer&gt; list = new ArrayList&lt;Integer&gt;(); for (int i=0; i&lt;length; i++) { list.add(ne...
I'm trying to get shuffle character from String Question. But the character is repeated. Random Method [CODE] MainActivity [CODE]
java|android
0
2015-03-02T17:58:27.553Z
2,015
3
17
0
136
2
129
36
2
2
true
false
false
false
false
false
zero
28,816,471
Importing AndroidMapsExtensions into Android Studio
<p>I have been trying relentlessly to use this library. Everytime I add it, I lose all android.support.v4 and com.google.android.gms.maps cababilities. There is very little documentation for this library. </p> <p>Is there any tutorial that I have overlooked in my extensive Google searching?</p> <p>Here's my gradle fi...
I have been trying relentlessly to use this library. Everytime I add it, I lose all android.support.v4 and com.google.android.gms.maps cababilities. There is very little documentation for this library. Is there any tutorial that I have overlooked in my extensive Google searching? Here's my gradle file: [CODE] Also, I w...
android|android-maps-v2|android-maps|android-maps-extensions
0
2015-03-02T18:01:40.417Z
2,015
3
18
0
658
1
403
51
4
1
true
false
false
false
false
false
zero
28,816,485
onReceive not being called when BroadcastReceiver is registered using LocalBroadcastManager
<p>I've created a <code>BroadcastReceiver</code> to receive <code>ACTION_DOWNLOAD_COMPLETE</code> when my app starts downloading something using <code>DownloadManager</code>. As I want to capture <code>ACTION_DOWNLOAD_COMPLETE</code> only when downloading is started from my app, I've used <code>LocalBroadcastManager</c...
I've created a BroadcastReceiver to receive ACTION_DOWNLOAD_COMPLETE when my app starts downloading something using DownloadManager . As I want to capture ACTION_DOWNLOAD_COMPLETE only when downloading is started from my app, I've used LocalBroadcastManager . But onReceiver is not being called at all. DownloadManager a...
android|broadcastreceiver|android-download-manager|localbroadcastmanager
3
2015-03-02T18:03:05.283Z
2,015
3
18
0
987
1
839
91
4
2
true
false
false
false
false
false
low
28,816,516
ViewPager not showing the right page
<p>I am trying to implement a ViewPager without using Fragments. Let's say, I have an unspecific amount of data stored inside some kind of database which is mapped to specific days. What I am trying to do is to display the data for a specific day on ViewPager pages.</p> <p>This is what I am currently doing:</p> <pre>...
I am trying to implement a ViewPager without using Fragments. Let's say, I have an unspecific amount of data stored inside some kind of database which is mapped to specific days. What I am trying to do is to display the data for a specific day on ViewPager pages. This is what I am currently doing: [CODE] This actually ...
android|android-viewpager
0
2015-03-02T18:04:50.597Z
2,015
3
18
0
55
0
899
36
2
1
true
true
false
false
false
false
zero
28,816,526
Google Plus One button shows wrong count in Android App(wrong count issue)
<p>I used <a href="https://developers.google.com/+/mobile/android/recommend">official tutorial</a> to add google plus one button to one of my android apps. But plus one button shows wrong count. Everything i did in the code is the same as with the tutorial. I used it before never got this stupid error. Right now my ap...
I used official tutorial to add google plus one button to one of my android apps. But plus one button shows wrong count. Everything i did in the code is the same as with the tutorial. I used it before never got this stupid error. Right now my app has been recommended 26 times so plus one button shoud show count as "26"...
android|google-plus-one
11
2015-03-02T18:05:40.950Z
2,015
3
18
0
433
1
948
74
2
3
true
false
false
false
true
false
medium
28,816,545
Android: Display Image From SQLite
<p>I'm learning about databases in android and have come across the following question, I would like to retrieve an image, how can I change the code below to image instead of string?</p> <pre><code>public List&lt;String&gt; getImage(){ List&lt;String&gt; listRows = new ArrayList&lt;String&gt;(); SQLiteDatabase...
I'm learning about databases in android and have come across the following question, I would like to retrieve an image, how can I change the code below to image instead of string? [CODE]
android|sqlite
0
2015-03-02T18:07:01.693Z
2,015
3
18
0
320
2
186
34
2
1
true
false
false
false
false
false
zero
28,816,577
Build GDB android
<p>I am trying to build the GDB and I have checked out the sources from here :</p> <p><a href="https://secure-web.cisco.com/1gNMaTaLSpyPf04-64vyJyKpMnhYszFwToxEd5acy6VS3P271v2Vw2kWu-o5O16GAU92fTpsG5ezF48gddoDV7Adx8PaRyVUyENTYoGhf4DAL5SCpsboaD9mL8rtLqTcK7yirl321lqD9Cfnoz5vju88CQIffq80iTEn4g5SSY7g/https%3A%2F%2Fandroid....
I am trying to build the GDB and I have checked out the sources from here : https://secure-web.cisco.com/1gNMaTaLSpyPf04-64vyJyKpMnhYszFwToxEd5acy6VS3P271v2Vw2kWu-o5O16GAU92fTpsG5ezF48gddoDV7Adx8PaRyVUyENTYoGhf4DAL5SCpsboaD9mL8rtLqTcK7yirl321lqD9Cfnoz5vju88CQIffq80iTEn4g5SSY7g/https%3A%2F%2Fandroid.googlesource.com%2Ft...
android|linux|android-ndk|gdb|cross-platform
0
2015-03-02T18:09:02.107Z
2,015
3
18
0
430
1
854
17
5
0
false
false
false
false
false
false
zero
28,816,591
Sending a byte[] buffer via serial
<p>I have a working code where I send the following array of byte[] via <code>FileOutputStream outputstream.write</code> method</p> <pre><code>private void SendPacket(int numBytes) { try { if(outputstream != null){ outputstream.write(writeusbdata,0,8); } ...
I have a working code where I send the following array of byte[] via FileOutputStream outputstream.write method [CODE] And I'm receiving [CODE] which is nice, but when I replace writeusbdata with [CODE] I receive [CODE] - Why am I receiving more bytes than it should? Why are they different from the buffer? - What is th...
java|android|outputstream
0
2015-03-02T18:10:12.627Z
2,015
3
18
0
247
1
419
34
3
4
true
false
false
false
false
false
zero
28,816,718
How can I programmatically connect and disconnect vpn connections by using android's "openvpn connect" app in combination with intents?
<p>I'm working on an android app that should start an OpenVPN Connect session automatically when needed.</p> <p>How can I programmatically connect and disconnect vpn connections by using android's "openvpn connect" app in combination with intents ?</p> <p>Edit: Meanwhile I found this approach - it works for me:</p> ...
I'm working on an android app that should start an OpenVPN Connect session automatically when needed. How can I programmatically connect and disconnect vpn connections by using android's "openvpn connect" app in combination with intents ? Edit: Meanwhile I found this approach - it works for me: [CODE] This starts the "...
android|android-intent|openvpn
9
2015-03-02T18:17:57.423Z
2,015
3
18
0
7,409
1
564
135
3
2
true
false
true
false
false
false
medium
28,816,725
MainActivity.java action_settings cannot be resolved or is not a field
<p>This is the only error I have now in my MainActivity.java. The line "if (id == R.id.action_settings)" which is created by eclipse gives the error :"action_settings cannot be resolved or is not a field" I appreciate your help to solve it</p> <pre><code> package chapter.two.hello_world; import android.support.v7.a...
This is the only error I have now in my MainActivity.java. The line "if (id == R.id.action_settings)" which is created by eclipse gives the error :"action_settings cannot be resolved or is not a field" I appreciate your help to solve it [CODE]
android|eclipse
0
2015-03-02T18:18:20.563Z
2,015
3
18
0
12,641
2
243
70
2
1
true
false
true
true
false
false
zero
28,816,759
Android - make GridView smaller to fit vertically without scrolling
<p>I have a <code>Gridview</code> which is on about the half of the screen. It is filled with <code>ImageViews</code> which are quadratic. The problem is that the <code>GridView</code> fills the complete width and so makes it scroll vertically.</p> <p>I want to reduce the width of the GridView so much that it fits ver...
I have a Gridview which is on about the half of the screen. It is filled with ImageViews which are quadratic. The problem is that the GridView fills the complete width and so makes it scroll vertically. I want to reduce the width of the GridView so much that it fits vertically without scrolling. I neither want the imag...
android|gridview|scroll|imageview
0
2015-03-02T18:20:53.720Z
2,015
3
18
0
2,237
2
633
67
4
1
true
false
false
false
false
false
zero
28,816,777
Views return NullPointerException in onBindViewHolder in RecyclerView Adapter
<p>I want to build custom adapter for RecyclerView but when I set Text or set value for any view it's return NullPointerException. I don't why. Tried many solution but all of them didn't work. My adapter:</p> <pre><code>public class HistoryViewAdapter extends RecyclerView.Adapter&lt;HistoryViewHolder&gt; { privat...
I want to build custom adapter for RecyclerView but when I set Text or set value for any view it's return NullPointerException. I don't why. Tried many solution but all of them didn't work. My adapter: [CODE] My ViewHolder (I tried FindViewByid instead of Butterknife but it gives the same Exception): [CODE] Finally MyF...
java|android|listadapter|android-recyclerview
4
2015-03-02T18:21:59.667Z
2,015
3
18
0
5,653
1
421
77
4
5
true
false
true
false
false
false
low
28,816,781
How to solve illegalstateexception circular dependencies cannot exist in relativelayout?
<p>I am going an unusual error in my layout. I search in the google but not really found proper solution.</p> <p><strong>My Layout:</strong> </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" a...
I am going an unusual error in my layout. I search in the google but not really found proper solution. My Layout: [CODE] This is the above xml layout , I have given the proper RelativeLayout for all ui elements but don't know , where the error is coming exactly? , so please go through it and let me know , some solution...
android|xml|layout
0
2015-03-02T18:22:15.577Z
2,015
3
18
0
514
2
321
88
3
1
true
false
false
false
false
false
zero
28,816,813
Circle Button in Android
<p>I need a circle button for my Android APP, I have read about 9 patch for buttons. I also need that the button changes its color when you press it. </p> <p>Is it 9 patch the best approach, or should I use another method?</p> <p>Thanks in advance.</p>
I need a circle button for my Android APP, I have read about 9 patch for buttons. I also need that the button changes its color when you press it. Is it 9 patch the best approach, or should I use another method? Thanks in advance.
android|user-interface|android-activity|android-studio
2
2015-03-02T18:23:58.860Z
2,015
3
18
0
21,773
4
230
24
4
0
false
false
true
true
false
false
low
28,816,834
Libgdx - android - accelerometer texture flicker
<p>im new on Libgdx(android)..</p> <p>im trying to use the accelerometer to move a object. (like doodle jump) The movement works but the object flicker the whole time.</p> <p>Here is the code:</p> <pre><code>private double getXPosAcc() { float XPosAcc = 0; float x = Gdx.input.getAccelerometerX(); float f...
im new on Libgdx(android).. im trying to use the accelerometer to move a object. (like doodle jump) The movement works but the object flicker the whole time. Here is the code: [CODE] The render methode: [CODE]
android|libgdx|accelerometer
0
2015-03-02T18:25:24.903Z
2,015
3
18
0
98
0
209
48
3
2
true
true
false
false
false
false
zero
28,816,869
How to prevent user from entering data in Edittext and enable Edittext to get data only from Dialog?
<p>My requirement is that when user clicks on edittext, a dialog should pop up enabling the user to select one of the values from lit.</p> <p>The above portion has been accomplished.</p> <p>I do not want user to enter/edit any other value than values given in list in dialog. I want user to select only the values give...
My requirement is that when user clicks on edittext, a dialog should pop up enabling the user to select one of the values from lit. The above portion has been accomplished. I do not want user to enter/edit any other value than values given in list in dialog. I want user to select only the values given in list in dialog...
android|android-layout|android-activity|android-fragments|android-edittext
0
2015-03-02T18:28:06.037Z
2,015
3
18
0
2,194
3
424
100
5
0
false
false
false
false
false
false
zero