Questions tagged as 'android'

2
answers

Change the ellipsis style in TextView

I'm trying to change the style of the ellipsis in TextView, the default style is "...", I would like to change to "(...)". I've developed a method, but it only works when the user clicks and refreshes the View Does anyone know how I can cha...
asked by 24.06.2014 / 17:31
1
answer

Canvas issues within a WebView in react native [pending]

Why changing the height > 100 and width > 640 on the canvas inside a WebView in react native, nothing else and drawing? //funciona ... canvas.width = 640; canvas.height = 100; ctx.drawImage(img, 0, 0); ... //não funciona ... canvas....
asked by 10.12.2018 / 02:59
1
answer

On android 8 the Service stops and does not restart when Activity quits

I am testing a service but when the activity is terminated the service stops temporarily, then the service tries to restart, the onCreate method is called but onDestroy is called in sequence and the service is definitely called. I'm running o...
asked by 06.12.2018 / 20:23
1
answer

Google Map Marker Error v2

I'm trying to put a tag on the map and it's giving an error of NullPointExeption The method follows: private void setMapaGoogle() { if (mapa != null) { mapa = ((SupportMapFragment) getSupportFragmentManager().findFragment...
asked by 05.05.2014 / 22:02
1
answer

Black screen in android emulator

I'm trying to start the emulator by android studio and genymotion but in the two it gets a black screen in the emulator: It may be my graphics card that sucks, but would it have some way to fix it? Or some other decent emulator for and...
asked by 03.12.2018 / 15:07
1
answer

Two AsyncTasks running in parallel while requesting with HttpClient

I have two classes extending AsyncTask, in which they return a JSON from a server. I'm using the following code to run them simultaneously: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) AsyncTaskExemplo1.executeOnExecutor(...
asked by 20.02.2014 / 21:37
1
answer

Get data from SQLite DB without using ListView [closed]

My code needs to get the data from the database, in short it just needs the following commands: if (cursor.moveToNext()) { Contato contato = new Contato(); contato.setCodigo(cursor.getInt(cursor.getColumnIndex("ID"))); contato.set...
asked by 19.02.2014 / 23:16
2
answers

How to avoid the layout destroyer in the Tabbed Layout when changing the tab?

I'm making a system with tabbed layout and with recycler view, on the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking on the product disappears, how do I stop it? T...
asked by 21.11.2018 / 17:38
1
answer

You can delete ImageButton

I'm creating multiple ImageButton ImageButton imageButton = (ImageButton) LayoutInflater.from(this).inflate(R.layout.imagebutton, null); imageButton.setImageBitmap(bMap); layoutC.addView(imageButton); I want...
asked by 19.12.2014 / 20:45