Questions tagged as 'android'

1
answer

"Timeout waiting for task." when trying to click webview button with espresso android

I have a button in an mdl-card of an html page that looks like this: <div class="mdl-layout-spacer"></div> <a id="btn15-minutos" href="#/" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored dialog-button">...
asked by 12.08.2016 / 19:27
1
answer

Android Button below a ViewPager with no fixed size

I'm creating a layout where I need a button below ViewPager, in this layout I also loads tabs, as in the image below: WhathappensisthatIcannotleavethiswaywithoutsettingtheViewPagersize,itfollowsthexmlofthelayout.<?xmlversion="1.0" encodin...
asked by 10.08.2016 / 20:13
1
answer

How to get the Package Name of an Android application in a C library?

I'd like to know how I can get the Package Name from my Android APP via a library written in C . What I want to get is the following com/meu_app/mainframe/MainActivity or com.meu_app.mainframe.MainActivity of the class that is...
asked by 07.08.2016 / 04:36
1
answer

MediaPlayer.create () stops working after some sounds [duplicate]

Hello, I put a different sound to touch each button pressed, but after 4 starts it simply stops. Code: numero = random.nextInt(numeros.length); MediaPlayer soundID = MediaPlayer.create(this, getResources().getIdentifier("s" + numeros[nu...
asked by 06.08.2016 / 07:07
1
answer

ListView Selector and ImageButton not working

Both the button and the ListView are not modified when clicked, but the settings when the item is not pressed work. ListView : <ListView android:id="@+id/listaListas" android:layout_width="wrap_content" android:l...
asked by 20.09.2016 / 17:01
1
answer

Help To cancel Asynctask

Good afternoon, I use this method to receive the result of a search, and implemented in the oncancelled code to stop my Asyntask, but the same not for the process, when I go to another screen do another search the previous process still continue...
asked by 14.07.2016 / 20:16
1
answer

Taking a picture with the Front Camera without using obsolete APIs

I'm developing an app where when you log in, you should take a picture! I researched and found the following example : public class PhotoHandler implements Camera.PictureCallback { private final Context context; public P...
asked by 02.08.2016 / 00:09
1
answer

Selecting and deselecting items in a ListView - Android

I have a listview that extends a baseadapter. And following the hint of this topic with the @ramaral's answer I was able to make the item select and deselect but now how do I check to see if the item is selected? listview.setOnItemClickListe...
asked by 27.07.2016 / 08:32
1
answer

View ProgressDialog Spinner?

Well I need to do a long task so I did a ProgressDialog to report such a task, however the spinner that should be appearing seems hidden or something. protected void onPreExecute (){ progress.setProgressStyle(ProgressDialog.STYLE_SPI...
asked by 28.07.2016 / 14:31
1
answer

How to 'listen' to see if SMS arrived on Android

I'm implementing a Two-Factor Authentication service where I use a gateway to send validation codes to the user's registry. I want to implement an automatic check on the android to see if the message has arrived on the user's device and does not...
asked by 17.07.2016 / 01:51