Questions tagged as 'android'

3
answers

How to check if String is null or blank in Java / Android

I went through this problem by implementing a simple database query library sqlite in android and would like to share the solution with community, I think it's useful as I've thought through until I find a simple solution.    In the imple...
asked by 27.03.2014 / 01:06
2
answers

How to get the current date / time, regardless of the device?

Well, I know that when you create an object of type Date: new Date() , the device's time and date is returned, so if I get into settings and change these values, then the time returned will be different from the universal time or local, co...
asked by 05.05.2016 / 21:50
1
answer

Gps or antenna triangulation - How to know the accuracy of the location?

I have an app that uses the api Location and works right on most devices, but it has one that even the GPS does not work with proper accuracy (goes over the house and not on the street). By the test I made it uses triangulation of antennas ev...
asked by 20.04.2016 / 16:37
1
answer

Generate private certificate APK using Eclipse Android

When I click Run in eclipse, it generates the APK, sends and installs it on Android, but it installs using a Debug certificate, I'm using Google Games Services and it only works if the APK has a private certificate which we created to send to Goo...
asked by 30.04.2014 / 05:19
1
answer

How to execute a method in a certain time?

I need at certain scheduled times, to execute a method even if the user is outside the application.Why do I research I will have to use services? I did not quite understand how to program the time, I just left the class created here: public cl...
asked by 23.07.2014 / 07:23
2
answers

Configure "Activity" hierarchy in "AndroidManifest"

I'm trying to understand how can I set a Activity to return to Activity earlier in AndroidManifest ?     
asked by 28.10.2014 / 00:00
3
answers

Increasing the size of a TextView, according to the amount of data inserted in it

I'm developing an app, for technical course work, and I have the following situation: I'm displaying data within a TextView . But there comes a time when size is not enough. Look at the pictures. App Home Photo: PhotoActivityReport,wh...
asked by 22.09.2015 / 03:17
3
answers

How to use repeated methods?

I have some methods that I use at various points of the applications and I end up having to copy in each class. For example: String getStringOrEmpty(EditText editText) { String mString = editText.getText().toString(); mString = (mSt...
asked by 02.02.2017 / 03:31
2
answers

Analysis of sound waves from an MP3 file and representation

Is there any way in Java / Android to open an MP3 or WAV file and from there get the sound waves constantly? according to its reproduction? and can from that constant return make your graphical representation? Example 1: Videowiththedesiredo...
asked by 11.02.2017 / 16:40
2
answers

What is the purpose of the setTag and getTag methods in View?

In% with% declared in this way below, the TextView is used as the definition of the 1 attribute. See: <TextView android:id="@+id/tvJonSnow" android:layout_width="wrap_content" android:layout_height="wrap_content"...
asked by 27.06.2017 / 16:52