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,691,866
Can we alter the Views present in the layout xml file for the Views present inside the include tag.
<p>I am trying to re-use an already created layout xml file in another xml file by means of <p>My current XML file is as below:</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="match_parent" android...
I am trying to re-use an already created layout xml file in another xml file by means of My current XML file is as below: [CODE] The layout file activity_edit_screen has a button named "Update", I want to change that button to "Add". That is the only change between the two xml files. How can I achevie this? I am trying...
android|xml
0
2015-02-24T09:14:52.673Z
2,015
2
9
1
20
2
397
99
2
1
true
false
false
false
false
false
zero
28,691,867
Navigation drawer + ViewPager - fragments do not show
<p>I have a problem with the layout I created. I used the Navigation Drawer as a main navigation pattern. It looks and works as I wanted, but the problem is that after returning to the fragment which holds <code>ViewPager</code> - the inner-fragments are not shown. However, they are shown when the application is first ...
I have a problem with the layout I created. I used the Navigation Drawer as a main navigation pattern. It looks and works as I wanted, but the problem is that after returning to the fragment which holds ViewPager - the inner-fragments are not shown. However, they are shown when the application is first opened and shows...
android|android-fragments|android-viewpager|android-navigation
0
2015-02-24T09:14:52.987Z
2,015
2
9
1
990
2
673
53
4
3
true
false
false
false
false
false
zero
28,691,961
cordova phonecalltrap plugin and google play device compatibility
<p>I've built a Cordova/phonegap application that is using speech synthesis. In order to avoid disturbing phone calls on smartphones, I'm using the phonecalltrap plugin (io.gvox.plugin.phonecalltrap) to detect any incoming or ongoing phonecall, to prevent speech synthesis in that case.</p> <p>The issue is that, though...
I've built a Cordova/phonegap application that is using speech synthesis. In order to avoid disturbing phone calls on smartphones, I'm using the phonecalltrap plugin (io.gvox.plugin.phonecalltrap) to detect any incoming or ongoing phonecall, to prevent speech synthesis in that case. The issue is that, though it perfect...
android|cordova|plugins|google-play|telephony
1
2015-02-24T09:19:13.550Z
2,015
2
9
1
217
1
1,239
65
5
1
true
false
false
false
false
false
low
28,691,986
Application Level onResume Android
<p><strong>Problem</strong></p> <p>The idea is very simple. Whenever an user comes back to my app from the Recents I want to show a simple dialog prompting with the password.</p> <p>I know how to prompt the dialog with password, but my problem is how do I understand that the user has entered my app from the recents. ...
Problem The idea is very simple. Whenever an user comes back to my app from the Recents I want to show a simple dialog prompting with the password. I know how to prompt the dialog with password, but my problem is how do I understand that the user has entered my app from the recents. If I put the prompt in the onResume ...
android|android-lifecycle|resume
14
2015-02-24T09:20:32.810Z
2,015
2
9
1
10,901
4
554
34
3
0
false
false
true
false
true
false
medium
28,692,139
How to position bitmap using drawBitmap in android canvas
<p>I want to position two bitmaps next to each other using <code>drawBitmap()</code> in Canvas, Android.</p> <p>My <code>onDraw()</code> function.</p> <pre><code>protected void onDraw(Canvas canvas) { if (currentState == openedState) { fruit1Bitmap = ApplicationServices.textureManager.bitmap[fruitId...
I want to position two bitmaps next to each other using drawBitmap() in Canvas, Android. My onDraw() function. [CODE] It is inside the class public class Dhakkan extends ImageButton . Current Result I want to get it to show two fruits next to each other. So how do I position them within the ImageButton .
android|android-canvas|android-bitmap
0
2015-02-24T09:29:52.310Z
2,015
2
9
1
8,460
2
305
57
3
1
true
false
true
false
false
false
zero
28,692,166
How do you support different view for different platforms in Titanium
<p>If I am developing an application for iOS and android, is there a possibility in Titanium alloy mvc framework to maintain 2 different views for the same controller for the 2 different platforms (iOS and android)?</p>
If I am developing an application for iOS and android, is there a possibility in Titanium alloy mvc framework to maintain 2 different views for the same controller for the 2 different platforms (iOS and android)?
android|ios|titanium|titanium-mobile|titanium-alloy
0
2015-02-24T09:31:35.643Z
2,015
2
9
1
105
1
212
69
5
0
false
false
false
false
false
false
zero
28,692,217
Unknown issue with Google Play Services: error (GoogleDrive Android API)
<p>After I run the code on my Phone, I always get a "Unknown issue with Google Play Services" dialog. (It goes into the onConnectionFailed method) could someone help resolve this? I don't know how to debug this further!</p> <p>This is my code:</p> <pre><code>package com.example.ashwinpraveen1.googleapi; import andr...
After I run the code on my Phone, I always get a "Unknown issue with Google Play Services" dialog. (It goes into the onConnectionFailed method) could someone help resolve this? I don't know how to debug this further! This is my code: [CODE] This is what the log shows: [CODE]
java|android|google-api|google-drive-android-api
0
2015-02-24T09:34:09.780Z
2,015
2
9
1
1,836
0
275
72
4
2
true
true
false
false
false
false
zero
28,692,223
android.view.InflateException error android studio
<p>i'm working on a navigation drawer but got stuck in here. idk what's wrong with it:( looking for help,thanks :)</p> <p>Error Log</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{wibisonoindiarto.coba1/wibisonoindiarto.coba1.MainActivity}: android.view.InflateException: Binary XML ...
i'm working on a navigation drawer but got stuck in here. idk what's wrong with it:( looking for help,thanks :) Error Log [CODE] MainActivity.java [CODE] activity_main.xml [CODE] i'm working on a navigation drawer but got stuck in here. idk what's wrong with it:( looking for help,thanks :) Here's my project,it would be...
android|android-studio
1
2015-02-24T09:34:39.907Z
2,015
2
9
1
230
0
433
50
2
3
true
true
false
false
false
false
low
28,692,228
gps location xamarin android not working
<ul> <li>In list viewList item get the gps location using this code segment but it is not working(<code>public class ItemGeoLocationActivity : ListActivity, ILocationListener the class</code>)</li> </ul> <p>Please look at it what I did wrong.</p> <pre><code>[Activity(Label = "ItemGeoLocationActivity")] public class I...
In list viewList item get the gps location using this code segment but it is not working( public class ItemGeoLocationActivity : ListActivity, ILocationListener the class ) Please look at it what I did wrong. [CODE] }
android|gps|xamarin|latitude-longitude
0
2015-02-24T09:34:51.120Z
2,015
2
9
1
915
1
217
40
4
1
true
false
false
false
false
false
zero
28,692,259
Errors when following Android tutorial
<p>I am following android tutorials from mybringback site. I've followed correctly but I've got an error and I don't understand why:</p> <pre><code>public class Main extends MapActivity { MapView map; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState...
I am following android tutorials from mybringback site. I've followed correctly but I've got an error and I don't understand why: [CODE] logCat: 02-24 14:58:12.603: E/AndroidRuntime(1483): FATAL EXCEPTION: main 02-24 14:58:12.603: E/AndroidRuntime(1483): Process: com.prashant.maps, PID: 1483 02-24 14:58:12.603: E/Andro...
android|eclipse
0
2015-02-24T09:36:01.703Z
2,015
2
9
1
84
2
4,847
38
2
1
true
false
false
false
false
false
zero
28,692,290
LoopJ AndroidAsyncHttp posting issue
<p>I have to develope a simple chat application in android. I have to use MySQL as my backend database.</p> <p><strong>But my problem is:</strong> When I am posting data on to the server, there may be too many post happends in my app. So that, duplicate records should be inserted in my server database. For posting dat...
I have to develope a simple chat application in android. I have to use MySQL as my backend database. But my problem is: When I am posting data on to the server, there may be too many post happends in my app. So that, duplicate records should be inserted in my server database. For posting data on a server, I have to use...
android|android-async-http
0
2015-02-24T09:37:35.367Z
2,015
2
9
1
76
0
451
36
2
1
true
true
false
false
false
false
zero
28,692,330
Android Switch button color not changing in 4.0.4
<p>I have used Switch button, everything works fine when the app run it on 4.2 and above, but the text color not at all changed to white in 4.0.4 i have tried all possible solution </p> <p>My Switch : </p> <pre><code>&lt;Switch android:layout_width="100dp" android:layout_height="wrap_content" ...
I have used Switch button, everything works fine when the app run it on 4.2 and above, but the text color not at all changed to white in 4.0.4 i have tried all possible solution My Switch : [CODE] My style file [CODE] res/color/toggle_text.xml [CODE] Kindly give any idea to get rid of this problem
android|button|switch-statement|textcolor
0
2015-02-24T09:39:12.180Z
2,015
2
9
1
2,344
4
298
49
4
3
true
false
false
false
false
false
zero
28,692,342
Refreshing listview items after deleting one item
<p>This problem has encountered to me and lots of bodies here but yet i haven't seen an efficient answer. i have a listview and a delete button for each item of the list. when i click on the button, the item is deleted from the database and also removed from the list but the listview doesn't refresh the items.</p> <p>...
This problem has encountered to me and lots of bodies here but yet i haven't seen an efficient answer. i have a listview and a delete button for each item of the list. when i click on the button, the item is deleted from the database and also removed from the list but the listview doesn't refresh the items. i have call...
android|listview
0
2015-02-24T09:39:41.227Z
2,015
2
9
1
3,343
6
744
49
2
1
true
false
true
false
false
false
zero
28,692,416
Is it possible to transfer NFC data from one Android device to another device bypasing android beam?
<p>I am trying to send NFC data from one Android device to another. I was able to do it successfully using the Andoid Beam functionality. But I would like the data transfer to take place automatically (bypassing Android Beam) as soon as both the devices are together.</p>
I am trying to send NFC data from one Android device to another. I was able to do it successfully using the Andoid Beam functionality. But I would like the data transfer to take place automatically (bypassing Android Beam) as soon as both the devices are together.
android|nfc|nfc-p2p|android-beam
0
2015-02-24T09:43:00.623Z
2,015
2
9
1
290
1
264
100
4
0
false
false
false
false
false
false
zero
28,692,432
G+ Sign-In Ian Barber Implementation : onConnectionFailed not getting called when disconnecting rebuilding GoogleApiClient
<p>I have integrated google+ sign in using the developer site and for server side i followed @ianbarber 's solution on riskcompletefailure blog</p> <p>This how i am bulding the GoogleApiClient:</p> <pre><code>return new GoogleApiClient.Builder(getActivity()) .addConnectionCallbacks(this) .addO...
I have integrated google+ sign in using the developer site and for server side i followed @ianbarber 's solution on riskcompletefailure blog This how i am bulding the GoogleApiClient: [CODE] This is how getting the id token in async task [CODE] after which createSession is called and based on the response from server i...
android|google-plus|google-plus-signin
1
2015-02-24T09:43:35.130Z
2,015
2
9
1
163
1
1,254
122
3
4
true
false
false
false
false
false
low
28,692,520
Android simple widget to show image into ImageView
<p>i'm created simple widget extends from ImageView, in this simle code i want to set image into ImageView from layout xml,i want change background imageview image and change image to set other image into ImageView, but my problem in first time dont show image </p> <p>1) i'm create new attribute into attr.xml:</p> <p...
i'm created simple widget extends from ImageView, in this simle code i want to set image into ImageView from layout xml,i want change background imageview image and change image to set other image into ImageView, but my problem in first time dont show image 1) i'm create new attribute into attr.xml: [CODE] 2) use CIcon...
android|android-widget
0
2015-02-24T09:47:44.607Z
2,015
2
9
1
585
1
513
50
2
3
true
false
false
false
false
false
zero
28,692,544
onCreateOptionsMenu on Samsung Galaxy Tablet 3 (GT-P5200)
<p>as this is my first question on stackoverflow I am a bit nervous and hope I did not do anything wrong (at least I used the search function).</p> <p>I have a problem during development an android app with following code (simplified) :</p> <pre><code>public class MainActivity extends ActionBarActivity { @Override p...
as this is my first question on stackoverflow I am a bit nervous and hope I did not do anything wrong (at least I used the search function). I have a problem during development an android app with following code (simplified) : [CODE] This works as expected on all my test devices amongst others Android 2.6.3, 4.1.x, 4.2...
android
0
2015-02-24T09:49:07.850Z
2,015
2
9
1
323
0
986
57
1
2
true
true
false
false
false
false
zero
28,692,624
ONS Toolbar in ANDROID
<p>i am designing a page in mobile app using ONSEN UI. in page, i have used onsen toolbar. the problem i am facing is the text i am writing doesn't come in center even if i write that using center class. i tried some alternative solutions like, "text-allign=center", text , but none worked. please show me some way usi...
i am designing a page in mobile app using ONSEN UI. in page, i have used onsen toolbar. the problem i am facing is the text i am writing doesn't come in center even if i write that using center class. i tried some alternative solutions like, "text-allign=center", text , but none worked. please show me some way using wh...
android|html|css|cordova|onsen-ui
0
2015-02-24T09:53:19.240Z
2,015
2
9
1
361
1
506
22
5
1
true
false
false
false
false
false
zero
28,692,870
Font-size is set to EM but doesn't scale up for tablet?
<p>I've been converting <a href="http://www.murraysworld.com/forum/" rel="nofollow">my forum</a> to responsive design using Bootstrap but I', seriously struggling with typography. Even though the font is in EM, on tablet devices, the font size ends up looking a lot smaller than it does on desktop.</p> <p>So I'm having...
I've been converting my forum to responsive design using Bootstrap but I', seriously struggling with typography. Even though the font is in EM, on tablet devices, the font size ends up looking a lot smaller than it does on desktop. So I'm having to mess around with media queries to increase the font-size for smaller de...
android|css|twitter-bootstrap|media-queries
0
2015-02-24T10:05:44.267Z
2,015
2
10
1
416
1
381
55
4
0
false
false
false
false
false
false
zero
28,692,882
Fatal signal 11 when using SIFT detector from opencv4android
<p>I try to use the SIFT Feature detector from Opencv4Android</p> <p>My code is the following </p> <pre><code> public void onManagerConnected(int status) { switch (status) { case LoaderCallbackInterface.SUCCESS: { fileimage = new File(Environment.getExternalStorageDirectory().get...
I try to use the SIFT Feature detector from Opencv4Android My code is the following [CODE] My log file is the following [CODE]
android|opencv|fatal-error|feature-detection|sift
1
2015-02-24T10:06:45.517Z
2,015
2
10
1
44
0
126
60
5
2
true
true
false
false
false
false
low
28,692,907
Search asmack answerForm
<p>I want to search a user in my local open fire server But after make answerForm it crashed (in try catch go to catch)</p> <p>It’s my code:</p> <pre><code> UserSearchManager search = new UserSearchManager(connection); try { Form searchForm = search.getSearchForm("search.mahan-pc"); ...
I want to search a user in my local open fire server But after make answerForm it crashed (in try catch go to catch) It’s my code: [CODE] I am beginner in xmpp can everybody help me ?
android|xmpp|asmack
1
2015-02-24T10:07:35.043Z
2,015
2
10
1
46
0
183
24
3
1
true
true
false
false
false
false
low
28,692,931
How to swipe images both on left and right swipe?
<p>I want to change images on touch of each image. Total image count=3 where the url is stored in url[], but my problem is that its just swiping inbetween two images only.</p> <pre><code>holder.llRecommendation.setOnTouchListener(new SwipeDismissTouchListener( holder.llRecommendation, ...
I want to change images on touch of each image. Total image count=3 where the url is stored in url[], but my problem is that its just swiping inbetween two images only. [CODE]
android|swipe-gesture
0
2015-02-24T10:08:41.317Z
2,015
2
10
1
130
0
175
49
2
1
true
true
false
false
false
false
zero
28,692,996
Can't install TFS plugin in Android studio
<p>i Downloaded TFS plugin from below URL and add it my Android Studio. But when i am trying to open it is showing in RED colour. Please help me out how to resolve this.</p> <p><a href="http://plugins.jetbrains.com/plugin/4578?pr=phpStorm&amp;showAllUpdates=true" rel="noreferrer">http://plugins.jetbrains.com/plugin/45...
i Downloaded TFS plugin from below URL and add it my Android Studio. But when i am trying to open it is showing in RED colour. Please help me out how to resolve this. http://plugins.jetbrains.com/plugin/4578?pr=phpStorm&showAllUpdates=true
android|tfs|android-studio
6
2015-02-24T10:11:53.603Z
2,015
2
10
1
7,346
4
239
42
3
0
false
false
true
false
false
false
medium
28,693,024
processes & singleton in Android
<p>Three questions concerning processes in Android. I am developing one app. If I declare a service to be running in another process in AndroidManifest.xml</p> <pre><code>&lt;service android:name=".MyService" android:process=":MyProcess"/&gt; </code></pre> <ol> <li><p>Does it mean there will be two JVM instances , on...
Three questions concerning processes in Android. I am developing one app. If I declare a service to be running in another process in AndroidManifest.xml [CODE] Does it mean there will be two JVM instances , one used by MyService while the other one used by other code? If the answer of above question is YES, then does i...
android|singleton|android-service
5
2015-02-24T10:13:26.960Z
2,015
2
10
1
1,556
1
892
32
3
1
true
false
false
false
false
false
low
28,693,031
Calling simple java static method via JNI does not work, though c++ compiles and run it
<p>Considering this Java class with the static method:</p> <pre><code>public class TestClass{ public string str; public TestClass() { str = "Test From Java"; } public static String staticMethod() { return "Test From Java"; } } </code></pre> <p>I have written these lines of code in ...
Considering this Java class with the static method: [CODE] I have written these lines of code in c++ file: [CODE] It seems everything is working but I don't know how can I use the str Object. I tried to convert it to a QString object using str.tostring() method but it always returns an empty string. Why it does not wor...
android|c++|qt|java-native-interface|qtandroidextras
1
2015-02-24T10:13:39.200Z
2,015
2
10
1
1,305
1
428
87
5
2
true
false
false
false
false
false
low
28,693,079
Display a continuing progress bar in notification, android?
<p>I am trying to display a indeterminate progress bar in the notification window. But it is not displayed. </p> <p>This is my code</p> <pre><code> int id = 1; NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); ...
I am trying to display a indeterminate progress bar in the notification window. But it is not displayed. This is my code [CODE] I am following this link Continuing Activity Indicator Can someone guide me out what's wrong?
android|notifications|progress-bar
6
2015-02-24T10:15:56.973Z
2,015
2
10
1
2,853
1
221
59
3
1
true
false
true
false
false
false
medium
28,693,086
Why JavaDoc generate gradle task doesn't work with Android Plugin?
<p>I'm trying to generate JavaDoc's automatically every time I build the project. According to <a href="https://stackoverflow.com/questions/17033878/generate-javadocs-with-android-gradle-plugin">this StackOverFlow question</a>, I've got this quite simple gradle code: </p> <pre><code>android.applicationVariants.all { v...
I'm trying to generate JavaDoc's automatically every time I build the project. According to this StackOverFlow question , I've got this quite simple gradle code: [CODE] } It shows me text in console (println's) but doesn't generate JavaDocs. It only does if I write "gradle generateDebugJavaDoc". And it does perfectly. ...
android|gradle|android-gradle-plugin
3
2015-02-24T10:16:41.363Z
2,015
2
10
1
443
1
463
66
3
1
true
false
false
false
false
false
low
28,693,136
AndroidViewClient and Genymotion emulator
<p>I am setting Genymotion Android emulators and AndroidViewClient to test my app. Is AndroidViewClient able to connect to the Genymotion android emulator ? Thanks</p>
I am setting Genymotion Android emulators and AndroidViewClient to test my app. Is AndroidViewClient able to connect to the Genymotion android emulator ? Thanks
android|python|emulation|genymotion
0
2015-02-24T10:19:01.360Z
2,015
2
10
1
382
1
160
41
4
0
false
false
false
false
false
false
zero
28,693,159
Android toolbar not doing what I want
<p>I have a nearly full screen dialog fragment in my app, containing a toolbar on top. I want to style this toolbar like in the <a href="http://www.google.com/design/spec/components/dialogs.html#dialogs-full-screen-dialogs" rel="nofollow noreferrer">Material design guidelines</a>:</p> <p><img src="https://i.stack.imgu...
I have a nearly full screen dialog fragment in my app, containing a toolbar on top. I want to style this toolbar like in the Material design guidelines : Toolbar XML: [CODE] menu XML: [CODE] In my Dialog Fragment, code relevant to the toolbar: [CODE] ... [CODE] My toolbar looks like this: I have four problems: The 'Sav...
android|android-toolbar
3
2015-02-24T10:20:09.393Z
2,015
2
10
1
1,801
2
652
37
2
4
true
false
false
false
false
false
low
28,693,221
Apptentive Ratings Prompt
<p>I am trying to integrate Apptentive in my project. I have followed all the guideline in the documentation (i.e. created event, added apptentive_api_key in manifest file). Now when is write <code>boolean shown = Apptentive.engage(NewDashboard.this, "Mock_Test_Clicked");</code> it returns false. Also the Ratings Promp...
I am trying to integrate Apptentive in my project. I have followed all the guideline in the documentation (i.e. created event, added apptentive_api_key in manifest file). Now when is write boolean shown = Apptentive.engage(NewDashboard.this, "Mock_Test_Clicked"); it returns false. Also the Ratings Prompt screen is not ...
android|apptentive
1
2015-02-24T10:23:19.657Z
2,015
2
10
1
326
1
355
25
2
2
true
false
false
false
false
false
low
28,693,303
android getDate from milliseconds stored in String field
<p>I have a date stored in a <code>String</code> field in <code>SQLITE</code> with the String value </p> <pre><code>"/Date(1411472160000+0100)/" </code></pre> <p>how can I convert this back into a <code>date format</code> , the code below doesn't work. I think I need to convert from the milliseconds first but I cant ...
I have a date stored in a String field in SQLITE with the String value [CODE] how can I convert this back into a date format , the code below doesn't work. I think I need to convert from the milliseconds first but I cant see how to even get the above text into a long format first ? any suggestions ? [CODE]
java|android
0
2015-02-24T10:27:24.793Z
2,015
2
10
1
531
2
307
56
2
2
true
false
false
false
false
false
zero
28,693,325
Sending Email in Google Glass
<p>I'm trying to send a email to a (at this moment) hardcoded email adress when a streaming link is generated. I tried using the piece of code that was accepted as awnser <a href="https://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a"><strong>HERE</...
I'm trying to send a email to a (at this moment) hardcoded email adress when a streaming link is generated. I tried using the piece of code that was accepted as awnser HERE However I'm getting a error saying: No provider for smtp does anyone have a clue on what could be causing this? I dragged the needed .jar files int...
android|email|jakarta-mail|google-glass|google-gdk
0
2015-02-24T10:28:27.927Z
2,015
2
10
1
520
1
669
29
5
3
true
false
false
false
false
false
zero
28,693,363
Throw custom Exceptions in Java/Android
<p>I'm developing a custom Exception class, in which I have the following constructors:</p> <pre><code>public class UserException extends Exception { string message; public UserException() { super(); } public UserException(String message, Throwable cause) { super(message, cause); ...
I'm developing a custom Exception class, in which I have the following constructors: [CODE] And I create a new custom exception like this: [CODE] But when I insert my throw new UserException(...) it tells me to surround it with try/catch !! That's not the idea, isn't it? I want to throw custom exceptions when I need th...
java|android|exception|exception-handling
16
2015-02-24T10:30:26.253Z
2,015
2
10
1
44,673
5
455
39
4
2
true
false
true
true
true
false
medium
28,693,387
Forward touch event to dynamically attached view, without lifting finger
<p>I have a problem I am struggling with a while now.</p> <p>I have a Layout with a Button and a container in it.</p> <pre><code>&lt;FrameLayout ... &gt; &lt;Button android:id="@+id/button" ... /&gt; &lt;FrameLayout android:layout_width="match_parent" android:layout_heigh...
I have a problem I am struggling with a while now. I have a Layout with a Button and a container in it. [CODE] My goal is that as I long-press the button, I attach a custom view MyCustomView to the container and keep the finger pressed. All the following ( ACTION_MOVE , ACTION_UP ) events should then ideally be dispatc...
android
1
2015-02-24T10:31:49.587Z
2,015
2
10
1
233
1
1,239
72
1
2
true
false
false
false
false
false
low
28,693,442
Android Lollipop navigation bar overlays activity view
<p>the navigation bar is overlaying my activity view on the bottom. Same issue like here: <a href="https://stackoverflow.com/questions/25471113/android-navigation-bar-overlaying-my-view">Android Navigation Bar overlaying my view</a></p> <p>The issue seems to happen only on Android Lollipop. On my Moto G with KitKat 4....
the navigation bar is overlaying my activity view on the bottom. Same issue like here: Android Navigation Bar overlaying my view The issue seems to happen only on Android Lollipop. On my Moto G with KitKat 4.4.4. i don't have this issue. I don't know why this problem is only related to Lollipop. My problem is, with the...
android
9
2015-02-24T10:34:50.110Z
2,015
2
10
1
3,666
1
676
54
1
0
false
false
true
false
false
false
medium
28,693,514
Android: setpadding not working with imageview
<p>I have two imageviews and I want to create a border like effect whenever a user clicks on them. I have set the background of both the imageviews to colour. Now, when a user taps on the image, I set some padding on the imageview so that it creates a border like effect.But, unfortunately its not happening.</p> <p>thi...
I have two imageviews and I want to create a border like effect whenever a user clicks on them. I have set the background of both the imageviews to colour. Now, when a user taps on the image, I set some padding on the imageview so that it creates a border like effect.But, unfortunately its not happening. this is my jav...
android|imageview|padding
0
2015-02-24T10:37:24.557Z
2,015
2
10
1
1,080
2
555
46
3
5
true
false
false
false
false
false
zero
28,693,608
Deprecated ActionBarDrawerToggle
<p>I was trying to implement the <b>android.support.v4.app.ActionBarDrawerToggle</b> in my app; since this class is deprecated </p> <blockquote> <p>This class is deprecated. Please use ActionBarDrawerToggle in support-v7-appcompat.</p> </blockquote> <p>I've switched to android.support.v7.app.ActionBarDrawerToggle...
I was trying to implement the android.support.v4.app.ActionBarDrawerToggle in my app; since this class is deprecated This class is deprecated. Please use ActionBarDrawerToggle in support-v7-appcompat. I've switched to android.support.v7.app.ActionBarDrawerToggle. Before I could call the constructor in this way: [CODE] ...
android|navigation-drawer|actionbardrawertoggle
9
2015-02-24T10:42:06.577Z
2,015
2
10
1
20,306
1
594
32
3
2
true
false
true
true
false
false
medium
28,693,625
how to create video from multiple sequence of images using FFMpeg?
<p>Hello all i am new in android developing. I want to create video from sequence of images. And i already fetch images from the specific folder which is resides in external memory card in android devices but i do not know how to use FF MPEG library to convert images into a video file. i had much tried to find out solu...
Hello all i am new in android developing. I want to create video from sequence of images. And i already fetch images from the specific folder which is resides in external memory card in android devices but i do not know how to use FF MPEG library to convert images into a video file. i had much tried to find out solutio...
android|video|ffmpeg
1
2015-02-24T10:42:50.260Z
2,015
2
10
1
2,050
1
502
66
3
1
true
false
false
false
false
false
low
28,693,642
programmatically clear image cache in android
<p>I want to clear the cache in my android application and to achieve this I used the two methods given below but the cache doesn't get cleared after calling deleteCache(getApplicationContext()). This question is asked in SO multiple times but none of the answers seems to help me. Below are the methods I used. Thanks f...
I want to clear the cache in my android application and to achieve this I used the two methods given below but the cache doesn't get cleared after calling deleteCache(getApplicationContext()). This question is asked in SO multiple times but none of the answers seems to help me. Below are the methods I used. Thanks for ...
android|caching
0
2015-02-24T10:43:44.037Z
2,015
2
10
1
1,042
1
337
45
2
1
true
false
false
false
false
false
zero
28,693,688
HTML5: additional chars in input with type="number"
<p>In our app, we have many inputs that are used to fill in school grades. Till now we had</p> <pre><code>&lt;input type="text" name="mark"&gt; </code></pre> <p>As we're trying to use new features of HTML5, we changed it to</p> <pre><code>&lt;input type="number" name="mark"&gt; </code></pre> <p>so on mobiles/tablet...
In our app, we have many inputs that are used to fill in school grades. Till now we had [CODE] As we're trying to use new features of HTML5, we changed it to [CODE] so on mobiles/tablets we have interface with only numbers. And there's the case. It is possible to place in input grades like "5+" and others (for example ...
javascript|android|ios|html
0
2015-02-24T10:45:52.470Z
2,015
2
10
1
329
4
674
51
4
2
true
false
false
false
false
false
zero
28,693,750
Upgrading DB in Android
<p>I am aware of how the upgrade method works, I am confused at certain points: </p> <p>1) At the start my DB version was 1 my app version was 1. </p> <p>2) Now I upgraded my DB version to 2 and my app version is 2. </p> <p>3) I want to upgrade DB to 3 and app to 3. </p> <p>Question: What happens to people who are ...
I am aware of how the upgrade method works, I am confused at certain points: 1) At the start my DB version was 1 my app version was 1. 2) Now I upgraded my DB version to 2 and my app version is 2. 3) I want to upgrade DB to 3 and app to 3. Question: What happens to people who are upgrading from app version 1 to app ver...
android|sqlite
2
2015-02-24T10:48:42.883Z
2,015
2
10
1
80
2
446
23
2
0
false
false
false
false
false
false
low
28,693,780
Android Studio - get build machine's IP address into Android app
<p>During app development, I want the app to connect back to the machine it was built on (over Wifi).</p> <p>As we have multiple developers, this will be a different IP address for each developer.</p> <p>How can I do this?</p> <p>(Some developers use AndroidStudio on Windows 7, other AndroidStudio on Ubuntu 14.04LTS...
During app development, I want the app to connect back to the machine it was built on (over Wifi). As we have multiple developers, this will be a different IP address for each developer. How can I do this? (Some developers use AndroidStudio on Windows 7, other AndroidStudio on Ubuntu 14.04LTS.)
android|android-studio|gradle
7
2015-02-24T10:50:12.507Z
2,015
2
10
1
4,407
3
295
64
3
0
false
false
true
false
false
false
medium
28,693,809
Android Search View in fragment not taking input?
<p>My app structure is like this: Main activity - Checks whether it's the first run and open signup activity , else open default activity.</p> <p>default activity - has a navigation drawer and 4 fragments.</p> <p>I have a search view, in a fragment, not in the toolbar but in layout. Doesn't even display the keyboard ...
My app structure is like this: Main activity - Checks whether it's the first run and open signup activity , else open default activity. default activity - has a navigation drawer and 4 fragments. I have a search view, in a fragment, not in the toolbar but in layout. Doesn't even display the keyboard on touch! What am I...
android|android-fragments|android-actionbar|searchview|android-toolbar
0
2015-02-24T10:51:19.843Z
2,015
2
10
1
1,085
1
389
49
5
3
true
false
false
false
false
false
zero
28,693,942
Gson - Convert form json (List inside List) to List<> Android
<p>Yesterday I managed on how to convert a json to a list&lt;>, the json file was quite simple.</p> <p>Now I have a son file which has a list inside List here is it :</p> <p>&lt;</p> <p>here my code :</p> <pre><code>listq = new ArrayList&lt;Survey&gt;(); try { result = new RequestTask().execute("urv...
Yesterday I managed on how to convert a json to a list<>, the json file was quite simple. Now I have a son file which has a list inside List here is it : < here my code : [CODE] My class survey : [CODE] my class response : [CODE] and my class survey entity : [CODE] } What's wrong with this ?
android|json|gson
0
2015-02-24T10:56:56.373Z
2,015
2
10
1
399
1
292
61
3
4
true
false
false
false
false
false
zero
28,693,957
Display a grid using Canvas in Android
<p>I'm trying to display a grid in my Android application. I'm using the "onDraw" method of a custom view I created for this purpose.</p> <p>The problem is that the result is very strange, not all lines are drawn and some artifacts are visible. May I have your help to solve this?</p> <p>Here's the code I use:</p> <p...
I'm trying to display a grid in my Android application. I'm using the "onDraw" method of a custom view I created for this purpose. The problem is that the result is very strange, not all lines are drawn and some artifacts are visible. May I have your help to solve this? Here's the code I use: [CODE] This is what I get ...
android|canvas|grid
1
2015-02-24T10:57:30.173Z
2,015
2
10
1
2,274
0
526
38
3
1
true
true
false
false
false
false
low
28,693,962
does android tv lollipop support WebRTC?
<p>I want to write an app for android 5.0 Lollipop smart tv. I need to know if webRTC is supported by the native Chrome version which is installed in these devices. Thanks.</p>
I want to write an app for android 5.0 Lollipop smart tv. I need to know if webRTC is supported by the native Chrome version which is installed in these devices. Thanks.
webrtc|sony|google-tv|android-tv
0
2015-02-24T10:57:40.860Z
2,015
2
10
1
1,091
1
169
40
4
0
false
false
false
false
false
false
zero
28,693,970
Create a rounded shape
<p>I want to create a shape like the image below through xml. Searched a lot to make the corners smooth but not able to make it circular!</p> <p><img src="https://i.stack.imgur.com/eI9cN.png" alt="enter image description here"></p>
I want to create a shape like the image below through xml. Searched a lot to make the corners smooth but not able to make it circular!
android|xml|shapes
1
2015-02-24T10:57:53.270Z
2,015
2
10
1
74
3
134
22
3
0
false
false
false
false
false
false
low
28,693,972
How to track response time of transactions in iOS app
<p>Tracing the response time of iOS app how to do it using instrument. Also looking for a tool or way to capture response time of critical transactions in android app.</p>
Tracing the response time of iOS app how to do it using instrument. Also looking for a tool or way to capture response time of critical transactions in android app.
android|ios|instruments
-1
2015-02-24T10:57:55.493Z
2,015
2
10
1
105
1
164
53
3
0
false
false
false
false
false
true
negative
28,694,076
Is it possible to build listview with text filed & checkbox in android?
<p><img src="https://i.stack.imgur.com/UpP46.png" alt="enter image description here"></p> <p>All these data must come from a database, and I don't have a static number of fields, so what method can I use to build listView like in the Image ?</p> <p>thanks a lot.</p>
All these data must come from a database, and I don't have a static number of fields, so what method can I use to build listView like in the Image ? thanks a lot.
android
2
2015-02-24T11:02:54.327Z
2,015
2
11
1
440
2
162
71
1
0
false
false
false
false
false
false
low
28,694,091
SoundCloud API for Android - Google+ - SignIn not working
<p>I am using the SoundCloud API in my application and I wish to add support for Google + Sign in. Facebook and email sign in works well.</p> <p>I followed the steps from [<a href="https://developers.soundcloud.com/docs/api/reference][1]" rel="nofollow">https://developers.soundcloud.com/docs/api/reference][1]</a> and ...
I am using the SoundCloud API in my application and I wish to add support for Google + Sign in. Facebook and email sign in works well. I followed the steps from [ https://developers.soundcloud.com/docs/api/reference][1] and used an WebView to display the connect URL. For FB login I was sent to the redirect_uri specifie...
android|google-plus|soundcloud|google-signin
0
2015-02-24T11:03:49.600Z
2,015
2
11
1
513
2
708
57
4
0
false
false
false
false
false
false
zero
28,694,120
Parsing Exceptions between Activities in Android
<p>That's my question more or less... I've got a class that extends from <code>Exception</code> and I need it to be inserted in a parcel.</p> <p>How can I achieve that?</p> <pre><code>public class Result implements Parcelable { public Result(UserException exception){ this.exception = exception; } ...
That's my question more or less... I've got a class that extends from Exception and I need it to be inserted in a parcel. How can I achieve that? [CODE] My class: [CODE]
java|android|parcelable
0
2015-02-24T11:05:09.737Z
2,015
2
11
1
68
1
169
48
3
2
true
false
false
false
false
false
zero
28,694,192
Switch statement using a String type
<p>I'm trying to switch a string type value which I have made static. However I can't figure out how to put this into a switch statement I was previously using an 'if else' statement but due to the number of items I want to switch this doesn't work.</p> <p>For the if else I was using ` </p> <pre><...
I'm trying to switch a string type value which I have made static. However I can't figure out how to put this into a switch statement I was previously using an 'if else' statement but due to the number of items I want to switch this doesn't work. For the if else I was using ` [CODE] for switch I;m trying to use [CODE] ...
android
8
2015-02-24T11:08:54.877Z
2,015
2
11
1
18,561
7
351
36
1
2
true
false
true
true
false
false
medium
28,694,267
onCreate(savedInstanceState) savedInstanceState is NULL
<p>My issue is this: I'm new to android programming and I have created a new app, when i press the button to launch this activity below, it crashes. When I debugged it it said onCreate() got a null bundle. How do I fix this? I don't understand the other classes of the activity so please use detailed info, thanks in adv...
My issue is this: I'm new to android programming and I have created a new app, when i press the button to launch this activity below, it crashes. When I debugged it it said onCreate() got a null bundle. How do I fix this? I don't understand the other classes of the activity so please use detailed info, thanks in advanc...
android|oncreate|bundles
0
2015-02-24T11:11:58.470Z
2,015
2
11
1
1,534
2
379
55
3
2
true
false
false
false
false
false
zero
28,694,367
Android java using locationlistener but can't toast the locations on the app
<p>First of all i'm a newbie, started programming android java about a month ago, so please be patient if i dont understand complex answers.(programmed in C earlier so my expressions may be used from that language) I got stuck on a problem where i want to write a toast with the locations on the app. I have a locationl...
First of all i'm a newbie, started programming android java about a month ago, so please be patient if i dont understand complex answers.(programmed in C earlier so my expressions may be used from that language) I got stuck on a problem where i want to write a toast with the locations on the app. I have a locationliste...
java|android|static|handler|toast
0
2015-02-24T11:16:47.783Z
2,015
2
11
1
410
3
737
76
5
2
true
false
false
false
false
false
zero
28,694,422
Android content rating affected by optional feature
<p>I am developing an Android application with two flavors (free with ads, and a paid version). It is intended for educational purposes, mostly for children.</p> <p>The application has a WebView whose content includes a location button (using <a href="http://www.w3schools.com/html/html5_geolocation.asp" rel="nofollow ...
I am developing an Android application with two flavors (free with ads, and a paid version). It is intended for educational purposes, mostly for children. The application has a WebView whose content includes a location button (using html5 geolocation ), for which ACCESS_FINE_LOCATION is needed). The problem is that whe...
android|geolocation|google-play|android-productflavors
0
2015-02-24T11:19:34.460Z
2,015
2
11
1
105
1
998
51
4
0
false
false
false
false
false
false
zero
28,694,466
Android how to set run time Id
<p>I want to set run time id and get id. my code is...</p> <pre><code>TextView image=new TextView(this); LinearLayout.LayoutParams imageParams = new LinearLayout.LayoutParams(100,100); image.setLayoutParams(imageParams); image.setBackgroundResource(R.drawable.grey); ...
I want to set run time id and get id. my code is... [CODE] but When I set image.setId(1) then give the error in android studio. then how to find image id in under the view..
java|android|performance|android-activity|android-studio
0
2015-02-24T11:21:43.680Z
2,015
2
11
1
130
1
173
30
5
1
true
false
false
false
false
false
zero
28,694,520
how to implement a viewpager to load images from server side?
<p>I have written a server side program in jsp to insert images into my database and its working fine. Now i want to load the images from the URL inside a <code>ViewPager</code>(client side) I have written a <code>CustomPagerAdapter</code> class and have an activity in which i want to call the pager adapter class, i a...
I have written a server side program in jsp to insert images into my database and its working fine. Now i want to load the images from the URL inside a ViewPager (client side) I have written a CustomPagerAdapter class and have an activity in which i want to call the pager adapter class, i am getting an error Cannot dec...
java|android
2
2015-02-24T11:23:53.257Z
2,015
2
11
1
814
1
881
61
2
2
true
false
false
false
false
false
low
28,694,526
Count two different columns values from the same table using SQLite Database table in android
<p>I am trying to select multiple values from the same table. I need to select count values of the column rfid and process_status from the posts table and station_title from stations table. </p> <p>Here are the two tables:</p> <p><strong>Posts table :</strong> </p> <pre> Id ownerId rfid stationId station...
I am trying to select multiple values from the same table. I need to select count values of the column rfid and process_status from the posts table and station_title from stations table. Here are the two tables: Posts table : [CODE] Stations table : [CODE] From these two tables I want to fetch data as [CODE] The where ...
sqlite|android-sqlite
1
2015-02-24T11:24:14.260Z
2,015
2
11
1
1,650
1
714
93
2
4
true
false
false
false
false
false
low
28,694,528
How can i make my alert dialogue into a custom alert in android
<p>How can i make my alert dialogue into a custom alert in android.please help me to display my dialogue box in a custom alert. my code is pasted here. the code contains an out put of 10 list view. and when click on item in the list it could be alerted..</p> <pre><code>public void onCreate(Bundle savedInstanceState) {...
How can i make my alert dialogue into a custom alert in android.please help me to display my dialogue box in a custom alert. my code is pasted here. the code contains an out put of 10 list view. and when click on item in the list it could be alerted.. [CODE]
android|customization
-1
2015-02-24T11:24:20.977Z
2,015
2
11
1
310
4
258
63
2
1
true
false
false
false
false
true
negative
28,694,555
CustomListview Volley with Image doesn't works in real device
<p>Someone, help me with this problem. i have stuck in 3 days because this problem -_-!</p> <p>i can make listview with image and text using volley library, its works in emulator (i use genymotion emulator) the image and text show. but when i run it in my device (android Jelly 4.3.0) the listview is empty. the layer i...
Someone, help me with this problem. i have stuck in 3 days because this problem -_-! i can make listview with image and text using volley library, its works in emulator (i use genymotion emulator) the image and text show. but when i run it in my device (android Jelly 4.3.0) the listview is empty. the layer is blank (em...
android|listview|android-volley
2
2015-02-24T11:25:55.187Z
2,015
2
11
1
357
1
655
61
3
2
true
false
false
false
false
false
low
28,694,586
libGdx - different fonts for cyrillic and latin characters
<p>There is a problem. String may contains latin and cyrillic characters. For latin characters i want use "Custom Font", and for cyrillic - "Helvetica". How i can do this with freeType generator for libGdx?</p> <p>PS: it must be like font-family rule in CSS</p> <pre><code> font-family: 'Custom Font', Helvetica, sa...
There is a problem. String may contains latin and cyrillic characters. For latin characters i want use "Custom Font", and for cyrillic - "Helvetica". How i can do this with freeType generator for libGdx? PS: it must be like font-family rule in CSS [CODE]
java|android|fonts|libgdx
0
2015-02-24T11:27:34.167Z
2,015
2
11
1
291
1
254
58
4
1
true
false
false
false
false
false
zero
28,694,588
BroadCast Reciever to detect video is captured from camera
<p>Is there a way to detect through broadCast receiver (or any other way) when camera captured a video. </p> <p>I have done the same for camera photo using below code :</p> <p><strong>In Manifest :</strong></p> <pre><code>&lt;receiver android:name=".CameraPhotoReceiver" android:enabled="true"...
Is there a way to detect through broadCast receiver (or any other way) when camera captured a video. I have done the same for camera photo using below code : In Manifest : [CODE] BroadCast Receiver Class: [CODE] What I want to accomplish is to upload the video from broadcast receiver's onReceive when new video is captu...
java|android|background-service
1
2015-02-24T11:27:35.057Z
2,015
2
11
1
534
2
473
58
3
2
true
false
false
false
false
false
low
28,694,607
Android - Recyclerview shared element transition item position
<p>I hope you could help me with this issue. I have two fragments, the first one is a recyclerview with several images, the second fragment is the details view of this images. If user clicks on an image the app does a fragment transaction and the details are displayed.</p> <p>I have implemented a shared element transi...
I hope you could help me with this issue. I have two fragments, the first one is a recyclerview with several images, the second fragment is the details view of this images. If user clicks on an image the app does a fragment transaction and the details are displayed. I have implemented a shared element transition betwee...
android-fragments|android-recyclerview|shared-element-transition
16
2015-02-24T11:28:27.003Z
2,015
2
11
1
10,604
6
866
62
3
1
true
false
true
false
true
false
medium
28,694,670
How to display image over another ImageView in a GridView
<p>In android, how can i display an Image over an ImageView inside a GridView when I click a specific item, always using the second image (not two image with two drawable but with only on image drawable) programmatically.</p> <p>Any help? Thank you</p>
In android, how can i display an Image over an ImageView inside a GridView when I click a specific item, always using the second image (not two image with two drawable but with only on image drawable) programmatically. Any help? Thank you
android|gridview|onclick|imageview|drawable
0
2015-02-24T11:31:17.740Z
2,015
2
11
1
778
2
238
57
5
0
false
false
false
false
false
false
zero
28,694,719
How to add a notification settings activity to the system settings
<p>On Android 5.0 there is an option through <code>Settings -&gt; Sound &amp; notification -&gt; App notification -&gt; Calendar (for example)</code> to go directly to the notification settings of the app.<br> I also know it's a flag in the manifest as described in this <a href="https://www.youtube.com/watch?v=Uiq2kZ2J...
On Android 5.0 there is an option through Settings -> Sound & notification -> App notification -> Calendar (for example) to go directly to the notification settings of the app. I also know it's a flag in the manifest as described in this DEV.BYTES talk . How can it be achieved, what is the flag used? Here is a screensh...
android|android-manifest|android-5.0-lollipop
17
2015-02-24T11:33:49.163Z
2,015
2
11
1
5,487
2
346
66
3
0
false
false
true
false
true
false
medium
28,694,723
Java BaseAdapter - ArrayList as Return Value - NullpointerException
<p>i´m trying to display a ListView of the last ten Database Objects. If i display those Objects in Labels everything works just fine but now i created a ListView + DataAdapter but the App crashes with a NullPointerException. I googled a lot but the only solution i found was that the ArrayList was not initialized with ...
i´m trying to display a ListView of the last ten Database Objects. If i display those Objects in Labels everything works just fine but now i created a ListView + DataAdapter but the App crashes with a NullPointerException. I googled a lot but the only solution i found was that the ArrayList was not initialized with = n...
java|android|listview|arraylist|baseadapter
-1
2015-02-24T11:33:59.087Z
2,015
2
11
1
336
1
748
67
5
5
true
false
false
false
false
true
negative
28,694,791
How To Set Button Below In Layout in android
<p>hello I want To set Two Button at Bottom i have Tried So Much but unable To set i want my left right button at bottom Here Is My letsbounced </p> <pre><code>&lt;merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.c...
hello I want To set Two Button at Bottom i have Tried So Much but unable To set i want my left right button at bottom Here Is My letsbounced [CODE] Here Is Buttons layout [CODE] here Is My Fragment [CODE] i m posting Screen Shot Of Layout ..i want to set button at bottom i have tried so much
android|android-layout
-1
2015-02-24T11:37:53.617Z
2,015
2
11
1
2,819
2
292
44
2
3
true
false
true
false
false
true
negative
28,694,809
Combine coding with multiple programmers
<p>As I mentioned in the title, can anyone recommend me a software which is easy to use and higher accuracy to merge program coding mainly Java(Android).</p> <p>For example: 3 Programmers were writing ABC software. First phase will be written by Programmer A &amp; B. Later, Programmer C will be involved and they are w...
As I mentioned in the title, can anyone recommend me a software which is easy to use and higher accuracy to merge program coding mainly Java(Android). For example: 3 Programmers were writing ABC software. First phase will be written by Programmer A & B. Later, Programmer C will be involved and they are working at the s...
java|android|merge|programmers-notepad
-2
2015-02-24T11:38:43.763Z
2,015
2
11
1
218
3
617
40
4
0
false
false
false
false
false
true
negative
28,694,928
GKI exception when BLe write characteristic for 10K bytes on Android
<p>I am implement Bluetooth low energy function on Android platform. My target is sending about 10k bytes data to target device, I list down my step as below:</p> <p>step 1 : split data to multi-packet with 20bytes.</p> <p>step 2 : run function <code>characteristic.setValue(data) / gatt. writeCharacteristic()</code>...
I am implement Bluetooth low energy function on Android platform. My target is sending about 10k bytes data to target device, I list down my step as below: step 1 : split data to multi-packet with 20bytes. step 2 : run function characteristic.setValue(data) / gatt. writeCharacteristic() step 3 : wait for onCharacterist...
android|bluetooth-lowenergy
1
2015-02-24T11:43:58.103Z
2,015
2
11
1
331
0
735
68
2
0
false
true
false
false
false
false
low
28,694,984
Android Share Service with Multiple Apps
<p>My problem is, that i have multiple apps which are scanning for beacons. I want to develop one service which i can use in all of my apps and inform the apps of scanned beacons. I read this thread <a href="https://stackoverflow.com/a/6204631/3180977">https://stackoverflow.com/a/6204631/3180977</a> and a shared servi...
My problem is, that i have multiple apps which are scanning for beacons. I want to develop one service which i can use in all of my apps and inform the apps of scanned beacons. I read this thread https://stackoverflow.com/a/6204631/3180977 and a shared service is possible with the android:process attribute. Can anyone ...
android|android-service
1
2015-02-24T11:46:36.360Z
2,015
2
11
1
2,711
0
414
40
2
0
false
true
true
false
false
false
low
28,695,014
How to integrate text to speech for telugu language in android application
<p>I am developing the app to show some details in English, and when I click the button it speaks out that message in English,text contains numbers also. I want to speech that text in Telugu language, Is there any way to do that.The default android tts not supports Telugu language , how to use external tts engines in a...
I am developing the app to show some details in English, and when I click the button it speaks out that message in English,text contains numbers also. I want to speech that text in Telugu language, Is there any way to do that.The default android tts not supports Telugu language , how to use external tts engines in andr...
android|google-text-to-speech
0
2015-02-24T11:48:11.040Z
2,015
2
11
1
3,480
1
372
74
2
0
false
false
true
false
false
false
zero
28,695,041
Android view with id: '' " is not found! because of lock screen
<p>I have two functions which started three android emulators with 10,18,21 sdk versions and than send command to unlock screen.</p> <pre><code>function emulator { os=$1 density=$2 abi=$3 port=$4 EMULATOR_NAME="hudson_en_US_${density}_${os}_armeabi-v7a" echo no | /opt/android-sdk/tools/android create avd -f -a -c ...
I have two functions which started three android emulators with 10,18,21 sdk versions and than send command to unlock screen. [CODE] But my developers told me that their connectedAndroidTests tests failed because of my locked emulators. Piece of fails below: [CODE] Hot to fix this? Because locally everything is ok
java|android|android-emulator
0
2015-02-24T11:49:22.523Z
2,015
2
11
1
99
0
315
63
3
2
true
true
false
false
false
false
zero
28,695,045
How does Android Studio import Gradle projects
<p>I've read lots of "how-to" guides to importing libraries into Android Studio (now the only <em>supported</em> Android SDK, hmmpf) yet none of them explain what's actually going on during an import.</p> <p><strong>I can see projects that have Gradle build files everywhere and some that have none, why is this?</stron...
I've read lots of "how-to" guides to importing libraries into Android Studio (now the only supported Android SDK, hmmpf) yet none of them explain what's actually going on during an import. I can see projects that have Gradle build files everywhere and some that have none, why is this? Half the stuff I get on Git-hub to...
android|android-studio|android-gradle-plugin
2
2015-02-24T11:49:28.077Z
2,015
2
11
1
6,149
3
2,674
46
3
0
false
false
true
false
false
false
low
28,695,072
Multiple spans in same String
<p>I've got problems to set StyleSpan and ForegroundColorSpan in the same string. Here's my code:</p> <pre><code>SpannableStringBuilder text_1_2 = new SpannableStringBuilder(getString(R.string.why_text_1_2)); StyleSpan bss = new StyleSpan(android.graphics.Typeface.BOLD); ForegroundColorSpan fcs = new ForegroundColorS...
I've got problems to set StyleSpan and ForegroundColorSpan in the same string. Here's my code: [CODE] The resulting string has blue color but is not bold. Thanks.
android|textview|spannable
0
2015-02-24T11:50:59.820Z
2,015
2
11
1
3,572
1
162
29
3
1
true
false
true
false
false
false
zero
28,695,148
does using handler might speed up the data display?
<p>in the App i am developing, i have a a layout with 6 TextViews, these textviews wil display data received at very high rate from a server. so far, i set the values i receive to the textviews, but when i run the App. the data that textview displays are changing very slow because of the values sent at very high rate....
in the App i am developing, i have a a layout with 6 TextViews, these textviews wil display data received at very high rate from a server. so far, i set the values i receive to the textviews, but when i run the App. the data that textview displays are changing very slow because of the values sent at very high rate. for...
android|concurrency|handler|android-handler
0
2015-02-24T11:54:44.740Z
2,015
2
11
1
233
2
849
51
4
0
false
false
false
false
false
false
zero
28,695,218
Android activity unresponsive until back button is pressed
<p>Below is the oncreate to my activity. My issue is that when the activity is started it is completely unresponsive until I press the back button. Once I press the back button it works perfectly.</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
Below is the oncreate to my activity. My issue is that when the activity is started it is completely unresponsive until I press the back button. Once I press the back button it works perfectly. [CODE] I have included the dialog function as the unresponsiveness comes after it have been dismissed. [CODE]
java|android|android-activity|input|oncreate
0
2015-02-24T11:58:15.440Z
2,015
2
11
1
257
1
303
58
5
2
true
false
false
false
false
false
zero
28,695,269
How can i align textview like in the image below for all screen
<p>I have to align text on the different dots in the given image for all screens . Is there anyone who can help me in achieving this?</p> <p><img src="https://i.stack.imgur.com/FKxFk.png" alt="enter image description here"></p>
I have to align text on the different dots in the given image for all screens . Is there anyone who can help me in achieving this?
android
-1
2015-02-24T12:00:16.143Z
2,015
2
12
1
56
1
130
63
1
0
false
false
false
false
false
true
negative
28,695,333
metaio SDK6 doesn't work on Android 4.0
<p>I have upgraded metaio SDK to version 6, and experiencing issue in Android device having OS version 4.0. I'm getting the following error.</p> <pre><code>Could not find class 'com.metaio.sdk.ARViewActivity$1', referenced from method com.metaio.sdk.ARViewActivity.onCreate Could not find class 'android.hardware.displ...
I have upgraded metaio SDK to version 6, and experiencing issue in Android device having OS version 4.0. I'm getting the following error. [CODE] I couldn't find the reason for this error.
android|metaio
0
2015-02-24T12:03:29.027Z
2,015
2
12
1
282
1
187
39
2
1
true
false
false
false
false
false
zero
28,695,373
Place fragments inside a linear layout on the top of the screen
<p>I have split the screen in two parts using a LinearLayout, one contains a fragment and the other contains 2 fragments inside a scroller. I'm using android studio and in the preview mode the screen shows that the fragments of both sites are placed on the top, that's what i want. However, when I try it with a device, ...
I have split the screen in two parts using a LinearLayout, one contains a fragment and the other contains 2 fragments inside a scroller. I'm using android studio and in the preview mode the screen shows that the fragments of both sites are placed on the top, that's what i want. However, when I try it with a device, the...
android|android-layout
0
2015-02-24T12:06:03.423Z
2,015
2
12
1
1,173
2
540
63
2
1
true
false
false
false
false
false
zero
28,695,397
how to do Android task in background
<p>I am making an Android application that takes data from file i.e phone SD card and according to time,application displays data in html i.e in web browser .This application runs continuously.I have two task, first time calculating and taking data from file which is continuous and second display data on web browser w...
I am making an Android application that takes data from file i.e phone SD card and according to time,application displays data in html i.e in web browser .This application runs continuously.I have two task, first time calculating and taking data from file which is continuous and second display data on web browser which...
android
0
2015-02-24T12:07:11.817Z
2,015
2
12
1
6,201
1
516
36
1
0
false
false
true
false
false
false
zero
28,695,409
get all facebook likes on android
<p>I am currently using the code below to get my facebook likes but I get only 25 and also pagination with next.But the limit is always 25.And its always current page and next page.I want all likes in one go.How can I do it in android in 1 go? or should I have asynctask running till there is no next option in response?...
I am currently using the code below to get my facebook likes but I get only 25 and also pagination with next.But the limit is always 25.And its always current page and next page.I want all likes in one go.How can I do it in android in 1 go? or should I have asynctask running till there is no next option in response? [C...
android|facebook|facebook-android-sdk
1
2015-02-24T12:07:37.750Z
2,015
2
12
1
638
2
324
33
3
1
true
false
false
false
false
false
low
28,695,414
Android Azure: 404 Error when attempting to retrieve data from the Server
<p>I'm trying to access a Table in my Azure DB and the Code is fine (I believe so or as it seems) but when trying to retrieve table data from the Server, it returns a '404 code' with an exception: </p> <pre><code>java.util.concurrent.ExecutionException: com.microsoft.windowsazure.mobileservices.MobileServiceException:...
I'm trying to access a Table in my Azure DB and the Code is fine (I believe so or as it seems) but when trying to retrieve table data from the Server, it returns a '404 code' with an exception: [CODE] Here's my code: [CODE]
java|android|azure|azure-sql-database|azure-mobile-services
0
2015-02-24T12:07:45.143Z
2,015
2
12
1
561
1
223
73
5
2
true
false
false
false
false
false
zero
28,695,418
Playing youtube videos on android in qt C++ android application
<p>I am working on Qt and C++ android application. i am able to play videos on my android phone from my own server on a remote PC using http request. But when i try to play a youtube video using http it did not play. if i put same URL in browser it plays. what might be the possible reason. I am not using java in my qt ...
I am working on Qt and C++ android application. i am able to play videos on my android phone from my own server on a remote PC using http request. But when i try to play a youtube video using http it did not play. if i put same URL in browser it plays. what might be the possible reason. I am not using java in my qt app...
android|c++|qt|video|youtube
1
2015-02-24T12:07:49.807Z
2,015
2
12
1
426
0
329
63
5
0
false
true
false
false
false
false
low
28,695,465
Launch Activity from Fragment throws ClassNotFoundException
<p>I know it's a long shot but I tried a lot of solutions and none worked. I'm trying to launch an activity from a fragment when a button is tapped.</p> <p><strong>Fragment.java</strong></p> <pre><code>public class Lev1 extends Fragment implements OnClickListener { public View onCreateView(LayoutInflater inflate...
I know it's a long shot but I tried a lot of solutions and none worked. I'm trying to launch an activity from a fragment when a button is tapped. Fragment.java [CODE] Fragment.xml [CODE] I suppose that is not a package problem, because if I use an activity and not a fragment the following works well: [CODE] So I don't ...
java|android|android-fragments|classloader|classnotfoundexception
0
2015-02-24T12:10:37.463Z
2,015
2
12
1
158
2
484
59
5
3
true
false
false
false
false
false
zero
28,695,573
Xamarin.Android: item previously inserted in ArrayAdapter is not found again
<p>I've inherited this Xamarin.Android app and it has a few issues.</p> <p>A particular bug involves an <code>ArrayAdapter&lt;ProductListObject&gt;</code>, where <code>ProductListObject</code> is a common POCO that's shared between subprojects (i.e. Android, Windows Phone and iOS); it just has a couple of properties (...
I've inherited this Xamarin.Android app and it has a few issues. A particular bug involves an ArrayAdapter<ProductListObject> , where ProductListObject is a common POCO that's shared between subprojects (i.e. Android, Windows Phone and iOS); it just has a couple of properties (e.g. an Id ) and overrides the (.NET) Equa...
xamarin|xamarin.android|android-arrayadapter
1
2015-02-24T12:16:03.957Z
2,015
2
12
1
241
2
1,019
76
3
2
true
false
false
false
false
false
low
28,695,619
How to get `EventData` in `onEvent()` in `Photon Server`
<p>I am working on <code>multiplayer</code> game using <code>Photon Server</code>. I am send sending some data using <code>HashMaps</code> through <code>loadBalancingPeer.opRaiseEvent</code> but i am not able to get data in <code>onEvent</code> function of <code>LoadBalancingClient</code>.</p> <p>Here is my custom eve...
I am working on multiplayer game using Photon Server . I am send sending some data using HashMaps through loadBalancingPeer.opRaiseEvent but i am not able to get data in onEvent function of LoadBalancingClient . Here is my custom event code. [CODE] Here is onEvent() code. [CODE] In this function i am getting null value...
android|hashmap|photon
0
2015-02-24T12:18:26.230Z
2,015
2
12
1
1,522
1
447
56
3
2
true
false
false
false
false
false
zero
28,695,642
Camera flip animation Using TextureView
<p>I am using TextureView to show my live stream from the camera. I wrote a function that switch between front and back camera through flip animation. When I flip The Textureview through animation from 90 to 180 degree. It show the live stream right to left instead of left to right. This behavior is understandable beca...
I am using TextureView to show my live stream from the camera. I wrote a function that switch between front and back camera through flip animation. When I flip The Textureview through animation from 90 to 180 degree. It show the live stream right to left instead of left to right. This behavior is understandable because...
java|android|animation|android-camera|android-textureview
0
2015-02-24T12:19:25.770Z
2,015
2
12
1
1,218
1
523
39
5
0
false
false
false
false
false
false
zero
28,695,765
how to implement amazon webservice in android app
<p>How to implement amazon webservice in android</p> <pre><code>public void startTask() { new AsyncService().execute(); } protected void onPreExecute() { Dialog.setMessage("Please wait.."); Dialog.show(); } @Override protected Void doInBackground(Void.....
How to implement amazon webservice in android [CODE] In this way i have done json parsing but i want to know how to fetch data from amazon web server and what are the things to required for amazon web server.please give me detail step by step.so that i can easily done. i want to implement through aws web service s3 ama...
android|web-services|soap|amazon-web-services
-1
2015-02-24T12:25:35.683Z
2,015
2
12
1
99
1
396
49
4
1
true
false
false
false
false
true
negative
28,695,792
android.app.Fragment$InstantiationException: Trying to instantiate a class that is not a Fragment
<p>My activity code: </p> <pre><code>public class TrackActivity extends FragmentActivity implements OnMarkerClickListener, OnMarkerDragListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.track_layout); } </code></pre> <p>tra...
My activity code: [CODE] track_layout code [CODE] [CODE] I'm getting below error [CODE]
android|google-maps|exception|android-fragments|instantiation
-2
2015-02-24T12:27:00.293Z
2,015
2
12
1
3,216
4
87
97
5
4
true
false
true
false
false
true
negative
28,695,794
Qt does not compile callStaticObjectMethod()
<p>I wrote the following code from <a href="https://stackoverflow.com/questions/28693031/calling-simple-java-static-method-via-jni-does-not-work-though-c-compiles-and">this question</a> and it was compiled and worked perfectly:</p> <pre><code>QAndroidJniObject str = QAndroidJniObject::callStaticObjectMethod&lt;jstrin...
I wrote the following code from this question and it was compiled and worked perfectly: [CODE] Now I have changed the java method and it needs an input parameter of type string. The Java code : [CODE] But adding the method signature and input parameter does not work for me. I wrote this code to invoke the static method...
c++|qt|java-native-interface|qtandroidextras
1
2015-02-24T12:27:01.933Z
2,015
2
12
1
1,658
1
1,079
44
4
5
true
false
false
false
false
false
low
28,695,804
Android: add page before zeroth position dynamically in viewpager
<p>I have a viewpager with three pages 0,1 and 2. By default the pager should display page at position 1. When I swipe left and reach 0'th position. I want to add a new page say N before the 0'th page so that I can swipe again to reach the page N and mean while remove page 2. Once I reach N again I want to add one new ...
I have a viewpager with three pages 0,1 and 2. By default the pager should display page at position 1. When I swipe left and reach 0'th position. I want to add a new page say N before the 0'th page so that I can swipe again to reach the page N and mean while remove page 2. Once I reach N again I want to add one new pag...
android|android-viewpager
0
2015-02-24T12:27:26.823Z
2,015
2
12
1
74
0
470
65
2
0
false
true
false
false
false
false
zero
28,695,815
Handler queueIdle called twice before last message arrived
<p>i am reading EAT book and there are a code samples that show queueIdle utilisation. </p> <p>Below codes starts 10 thread and every new thread throws 10 messages. And i expect that after every message delivered, looper will be quited.</p> <pre><code>@Override public boolean queueIdle() { if (mIsFirstIdle) { ...
i am reading EAT book and there are a code samples that show queueIdle utilisation. Below codes starts 10 thread and every new thread throws 10 messages. And i expect that after every message delivered, looper will be quited. [CODE] “ The idle slots can occur before the first message, between messages, and after the la...
android|multithreading
1
2015-02-24T12:28:20.573Z
2,015
2
12
1
385
1
717
58
2
3
true
false
false
false
false
false
low
28,695,860
Forward navigation with Fragments in Android
<p>I would like to know if anyone knows a way to achieve both forward and backward navigation with Fragments?</p> <p>I would like to start with a single Fragment, when I press the next button a new Fragment must be created, when I push the back button, the previous Fragment must be shown. My code does this and it save...
I would like to know if anyone knows a way to achieve both forward and backward navigation with Fragments? I would like to start with a single Fragment, when I press the next button a new Fragment must be created, when I push the back button, the previous Fragment must be shown. My code does this and it saves any chang...
android|android-fragments
0
2015-02-24T12:30:39.347Z
2,015
2
12
1
671
0
1,328
44
2
1
true
true
false
false
false
false
zero
28,695,910
Retrofit - How parse array with different types of elements?
<p>I receive this JSON string:</p> <pre><code>{ "response": [ 346, { "id": 564, "from_id": -34454802, "to_id": -34454802, "date": 1337658196, "post_type": "post" }, { "id": 2183, "from_id": -34454802, "to_id": -34454802, "date"...
I receive this JSON string: [CODE] I create following classes: [CODE] When I try parse response, I get error: [CODE] This because first element of array is Number. Which model is required to operate without error?
android|json|parsing|gson|retrofit
0
2015-02-24T12:33:32.233Z
2,015
2
12
1
1,739
2
213
60
5
3
true
false
false
false
false
false
zero
28,695,929
TableLayout's not receiving background if i use HorizontalScrollView
<p>I'm trying use HorizontalScrollView to scroll my TableLayout horizontally, but if i set HorizontalScrollView, the background in TableLayout and TableRow don't work.</p> <p>I try set ScrollView and all work fine.</p> <p>Somebody can help me? I don't understand what's happening.</p> <p>XML bellow:</p> <pre><code>&...
I'm trying use HorizontalScrollView to scroll my TableLayout horizontally, but if i set HorizontalScrollView, the background in TableLayout and TableRow don't work. I try set ScrollView and all work fine. Somebody can help me? I don't understand what's happening. XML bellow: [CODE] img of the error below: With ScrollVi...
android|android-layout|scrollview|horizontalscrollview
0
2015-02-24T12:34:23.420Z
2,015
2
12
1
110
0
474
68
4
1
true
true
false
false
false
false
zero
28,695,976
How to change the background of a listview in android based on it's position in the list?
<p>I have a listview that is populated via an adapter. I need one of the items (which are just bits of text) in the listview to have a different background compared to the others (to mark it as the currently selected one). I have all of the background logic, I just need a way to say listview.setBackgroundById(int posit...
I have a listview that is populated via an adapter. I need one of the items (which are just bits of text) in the listview to have a different background compared to the others (to mark it as the currently selected one). I have all of the background logic, I just need a way to say listview.setBackgroundById(int position...
android|listview|android-listview
1
2015-02-24T12:36:41.733Z
2,015
2
12
1
157
2
611
89
3
1
true
false
false
false
false
false
low
28,695,990
How to detect user activity on the keyboard
<p>My task is to detect the text changes in the TextView of my app, as close to real time as possible. However, with Swype-style virtual keyboards like SwiftKey, the whole word appears at once. Is there any way to at least detect that user is doing some actions with the virtual keyboard, like moving the finger on it? <...
My task is to detect the text changes in the TextView of my app, as close to real time as possible. However, with Swype-style virtual keyboards like SwiftKey, the whole word appears at once. Is there any way to at least detect that user is doing some actions with the virtual keyboard, like moving the finger on it?
android|virtual-keyboard
0
2015-02-24T12:37:19.370Z
2,015
2
12
1
69
1
315
43
2
0
false
false
false
false
false
false
zero
28,696,006
Ignoring special characters when comparing Strings
<p>How can I ignore all special characters when comparing a String?</p> <p>I have set up the code to ignore letter capitalization but i need to also ignore all other characters except from letters. </p> <p>Here's my code so far</p> <pre><code>Collections.sort(MusicPlayerService.songNamesAll, new Comparator&lt;String...
How can I ignore all special characters when comparing a String? I have set up the code to ignore letter capitalization but i need to also ignore all other characters except from letters. Here's my code so far [CODE]
android
-1
2015-02-24T12:37:55.037Z
2,015
2
12
1
633
1
216
50
1
1
true
false
false
false
false
true
negative
28,696,040
Recursive Type-Adapter GSON
<p>Given the following structure:</p> <pre><code>abstract class Message { Message anotherMessage; String attribute; //just random stuff } </code></pre> <p>I would like to have the following json-string as output:</p> <pre><code> {type=Class.getSimpleName(), data=gson(Message)} </code></pre> <p>as Message is ...
Given the following structure: [CODE] I would like to have the following json-string as output: [CODE] as Message is abstract and can have multiple implementations. The problem is, that "anotherMessage" wouldn't have the structure type,data. My implementation of serialize: [CODE] How can I do this recursively? I cannot...
java|android|gson
1
2015-02-24T12:39:26.467Z
2,015
2
12
1
2,003
1
402
27
3
3
true
false
false
false
false
false
low
28,696,043
Do you need a browser to use webrtc?
<p>Do you need one? Or can you use it in a mobile app? And if you can, and you are working on android, how do you put the html code inside, without using webview? (since it doesnt support webrtc)</p>
Do you need one? Or can you use it in a mobile app? And if you can, and you are working on android, how do you put the html code inside, without using webview? (since it doesnt support webrtc)
android|mobile|webrtc|p2p
0
2015-02-24T12:39:29.657Z
2,015
2
12
1
279
3
192
36
4
0
false
false
false
false
false
false
zero