Skip to main content

All Questions

Tagged with
0 votes
0 answers
747 views

Designing a unique id reliably based on a String date?

I am creating an Android application that sets alarms based on the String date of a list of Objects (PendingIntents, with each taking in an id, that is an integer). In order to cancel the ...
Adam Lee's user avatar
  • 129
3 votes
2 answers
181 views

Is recommendable set as final as classes by default in a SDK?

I am working on the development of an SDK in Android with Java, In general the user doesn't need to inherit any class of the SDK, so the question is if it is a good practice put by default all classes ...
Tlaloc-ES's user avatar
  • 387
11 votes
1 answer
3k views

Why doesn't CharSequence define contains(CharSequence)?

This applies to to both Java SE & Android, as the contracts are identical. CharSequence documentation for Java SE CharSequence documentation for Android CharSequence does not define a contains(...
Dioxin's user avatar
  • 953
2 votes
3 answers
377 views

Java/Android CRUD SQL design

All the SQL in my app... Should I be confining it to its own special class? For example a MyDatabase class that extends SQLiteOpenHelper and implements all the create-tables, defines all the table ...
AJJ's user avatar
  • 3,028
7 votes
1 answer
242 views

Finger Paint path gets huge over time and slows the app

So I am writing a Finger paint app. I have multiple color which user can select. I save the path and paint information inside an array. ArrayList<PaintPath> arrayPaintPath = new ArrayList<...
pokche's user avatar
  • 223
1 vote
1 answer
470 views

MyListActivity, MyCursorAdapter, MyViewHolder -- nested classes or not?

I am using several activities based on the ListActivity. All of them display information from different SQLite queries, and all of them use the ViewHolder optimization. The cursor adapter have to be ...
pepr's user avatar
  • 173