Questions tagged as 'android'

0
answers

Find controls in a separate class from the main Activity

I need to look for controls to change values in the layout. However passing the context per parameter to the class it does not find controls declared in xml returning null for each cast done. The class where I'm trying to retrieve this data e...
asked by 01.12.2014 / 18:26
0
answers

Start service with TimerTask [closed]

I'm trying to start an Android notification service with TimerTask but it returns me the following error: 02-03 16:06:00.164 15051-15379/com.celiogarcia.setapp E/AndroidRuntime﹕ FATAL EXCEPTION: Timer-0 java.lang.NullPointerException...
asked by 03.02.2015 / 16:13
2
answers

How do I get the serial number (not the IMEI) of iOS and Android devices?

How to get the serial number of a mobile device? I need the solution in delphi, firemonkey that works on both Android and iOS.     
asked by 03.02.2015 / 12:41
0
answers

How to maintain the connection between Android client Java server?

When I connect to the server, I should receive a message saying that it is connected, but when I send a message to the server, the application pops up. This is the button code to connect to the server: public void connect(View view) { T...
asked by 07.02.2015 / 19:18
1
answer

I want to set the photo in the imageview

I'm new to programming and I'm having difficulty setting the photo on imageview , being already taking a photo and saving in the gallery, but not setting. public void usarCamera() { File diretorio = Environment.getExternalStorag...
asked by 20.03.2018 / 21:36
2
answers

Play video in or out

I'm developing a mobile service application & news for a company and in this there is an area of videos related to the institution. The doubt is:  For the best user experience, should the app play the videos or request a default player?...
asked by 13.08.2014 / 13:49
1
answer

call a main activity method from a Fragment button

I'm using a standard android activity, the "Navigation Drawer Activity", and there's a button in the navigation bar public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true;...
asked by 15.08.2014 / 17:01
1
answer

Could not find any version that matches com.android.tools.build:gradle:0.12.+

I installed Android Studio, installed the JDK, set the environment variables (JAVA_HOME, JDK_HOME, PATH). I configured my proxy (I did the test and the connection works), and when trying to create a "Blank Activity" I get the following error:...
asked by 06.08.2014 / 13:03
1
answer

How to add two floats interacting with the UI?

I wanted to add two floats, but I put the first decimal number in EditText and when I add another decimal number, I put it in EditText frame in CheckBox and it continues the same number as I put it in CheckBox . Ex...
asked by 29.09.2014 / 23:52
1
answer

Do I use Activities or Fragments? [closed]

I'm with a project to develop a game guide app that will show images through a server and the tabs will be pdf files downloaded and opened by the app. The stream would be: List of consoles (Listview) - > Game List (GridView) - > Scre...
asked by 09.01.2018 / 02:16