Questions tagged as 'android'

1
answer

How to play audio file using the AudioTrack class?

I want to make an app to play drums, but as I'm starting to develop for android, I'm having trouble. I need to play an audio file with the class AudioTrack (because it has the lowest latency), but I did not understand how to use it to pla...
asked by 28.05.2014 / 05:24
1
answer

Android Map Version 2 with support library

I'm using api v2 from the Android maps. I have the following statement in my Activity <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.MapFragment" android:layout_width="match_parent"...
asked by 19.03.2014 / 21:38
1
answer

What real utility of SqliteOpenHelper on Android?

I was watching a course on the online devmedia explaining about Sqlite on Android, the course example was made a basic crud, were created 1 bank and 2 tables. In the example, I was creating two classes that extended the SqliteOpenHelper, and eac...
asked by 17.11.2014 / 07:20
1
answer

Return a pre created dialog in the onActivityResult

I'm developing an android app, and I need to allow the user to upload a profile photo. The form for creating the profile is in a dialog, I have the code that loads the profile photo, but loading does not return me to the dialog, it returns to ac...
asked by 22.10.2014 / 11:21
1
answer

Prevent an Android application from being 'minimized'

I do not know if minimizing would be the correct word, I think not ... Please correct me. I have an application and want to prevent anyone from minimizing it by using the Home button, if someone presses Home, the application will be completel...
asked by 15.10.2014 / 21:43
1
answer

SQLite Android Data Update

How to get the information that is on the screen and do a Update in the database. Code that displays information in EditText. public class DatabasesDAO extends SQLiteOpenHelper { private static final String DATABASE = "baseteste"; privat...
asked by 14.04.2014 / 16:05
3
answers

HTML tags with RegEx

It is as follows, using the following expression: <div class="teste">(.+?)</div> And that's the content, for example: <div class="teste">asdasdad<div>zxczxczxc</div>lkjlkjjlkj</div><div>asdasd<...
asked by 20.07.2014 / 06:18
1
answer

How do I get images from a folder on Android?

I made an example of a ListView where ArrayList is used to fill the TextView and ImageView . But I am improving it by taking data from a MySQL database, in relation to the 'TextView all right, however how I would do to...
asked by 24.04.2014 / 22:12
1
answer

Different layout for portraint and landscape

I have the following: package carcleo.com.cadastro; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; public class Principal extends Activity { @Override protected void onCreate(Bundle...
asked by 19.11.2018 / 23:41
1
answer

How to add Onclick to a fragment?

I'm trying to add onclick to my fragment, but I'm not getting it, where is it wrong? @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_m...
asked by 11.12.2018 / 23:31