All Questions
6 questions
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 ...
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 ...
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(...
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 ...
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<...
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 ...