Questions tagged as 'android'

1
answer

Error when launching app and "Run As" menu with no options

I have an application, the code has no error, but I do not see the option to select the emulator, see the image, I'm having this message:    The selection can not be launched, and there are no recent launches How to set up correctly?...
asked by 13.07.2016 / 17:00
1
answer

Instant Run Message on AndroidStudio

I updated AndroidStudio for 2.2.2 and the SDK for API 25, in build.gladle put targetSdkVersion 25. When I asked to run the application (physical device) the following message appeared: What needs to be installed? Will it be installed...
asked by 09.11.2016 / 13:35
2
answers

onClick on edittext that can not be editable

How to make an event click on an edittext, enabled="false"? (I could not do without focus being in edittext, enabled="true") Or, an event clicks on an edittext that can not be edited. Code below: .... <android.support.design....
asked by 09.11.2016 / 15:11
2
answers

Android Cursor return error

public boolean insertData( int id_item, String nome, int quantidade) { String preco_unitario = "0"; String id_pedido = "0"; SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues(); Str...
asked by 12.08.2016 / 16:58
1
answer

What to use in place of .getIntent

Does anyone know what syntax I use in place of .getIntent. Here is my code: Intent myIntent = Intent.getIntent(); if(Intent.ACTION_SEARCH.equals(myIntent.getAction())){ String query = myIntent.getStringExtra(SearchManager.QUERY);...
asked by 22.06.2016 / 13:12
1
answer

How can I use a Website form via Android?

I'm new to Android programming (java) and I've had a problem for some time: I need to use a Web form on Android, transferring data between EditText and Input, Button and Button etc ... but without Webview. I wonder if you can do this.     
asked by 28.08.2016 / 05:06
1
answer

GPS oscillating even when at a fixed location [closed]

I'm working on an Ionic app, with traceability, but the GPS signal oscillates very certain 200m, even though it's in a fixed place, do you know any solution to that?     
asked by 06.06.2016 / 23:00
1
answer

Android - How do I set a selected item from a Spinner to a string?

I have a question in my code, I'm trying to get the value of Spinner and write it to the bank, but I can not get the spinner to have String value. In case it is giving me error at the setText time, at the end of the code. "Can not resolve meth...
asked by 02.06.2016 / 05:10
1
answer

Method to take direct photo of the application only works on some cell phones [closed]

I have a problem with my apk that allows the user to take a direct photo of the application, but some phones give an error and close the app. Here is my manifesto: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http:/...
asked by 01.06.2016 / 20:45
3
answers

Change Android Fragments

Good people, I'm starting with Android Studio and I'm developing a small app and I made a menu, and I would like it when I click it, open another fragment. I tried several things already and nothing: / The last one was this FragmentManager...
asked by 27.05.2016 / 23:50