I’m learning Android programming with IntelliJ right now and got a little problem. I’ve got an Activity which looks like this: And this is how my DialogFragment looks like I’ve tried nearly everything, creating a new instance and start the method, using FragmentManager, which i wasn’t …
Tag: android
android splash screen timer plugin
I am new into developing android app, and I am trying to check if session is logged in, If the user is loggedin, It should not show the splash screen, but it the user is not loggedin, it should show the splash screen for 3 seconds. (Using code from http://web.archive.org/web/20130712051340/http://www.androidh…
Displaying some query records in random order (Parse.com)
Okay so the following is my ParseQuery. How can I display most but not all of the records in random order using Collections.shuffle() in this context? For example, I have a specific record that I want …
query.orderByRandom with Parse.com? – Displaying records in random order
I understand that you can do the following… But what if you actually want your data to come out in random order every time your activity is opened? How might this be accomplished? Answer There is no built in function for random sort order in the Parse API. You can randomize the list after you receive it…
How do I use SQLite in android?
I’ve founde already a few answers to this topic (for example this), but it is not working. I only get the warning, that it cannot resolve the method ‘openOrCreateDatabase(java.lang.String, int, null)’. Here is my sourcecode: Answer SQLite is a opensource SQL database that stores data to a te…
Android Studio – Keystore was tampered with, or password was incorrect
I am trying to generate a signed APK by using the built-in widget in Android Studio v1.4. However, I got this annoying error Error:Execution failed for task ‘:app:packageRelease’. Failed to read key cckey from store “C:UsersLancelotDesktoprelease.jks”: Keystore was tampered with, or pa…
Android: checking a button is enabled
I am having problems testing my app. I created an espresso test which is supposed to fail, since whenever I launch my app in the emulator, I get the expected behavior. There is my test: When launching the test, nothing is reported, whereas nextQuestionButton should not be enabled upon clicking the radioButton…
Gray line inside cardview :)?
How do I remove the gray line (you can see on the screen) at the bottom of CardView? Archive with source-code I reviewed everything. I don’t understand what the problem is. Its my item CardView. when all is good, but when I write another value and line appears! Answer Just use “com.google.android.materi…
ScheduledExecutorService or ScheduledThreadPoolExecutor
I’m building an Android App which have to periodically do something in a Service. And I found that using ScheduledThreadPoolExecutor and ScheduledExecutorService is preferable to Timer. Can anyone explain the difference between ScheduledExecutorService and ScheduledThreadPoolExecutor and which one is mo…
How to get to the end of a line in android studio
Is there a way to get the cursor to the end of the current line? That is, without using the End key, Ctrl + Left/Right or the mouse. It’s time consuming to get to the end of the line when there’s some code after the cursor. eg. In a strings.xml file, the end tag is automatically generated and afte…