implementation 'com.firebaseui:firebase-ui-database:5.0.0
'
Awesome Idea
Don't Be Afraid to move forward
Saturday, June 22, 2019
Cannot resolve symbol “FirebaseRecyclerOptions”
You need to update in your build.gradle file
Wednesday, June 19, 2019
Project Build Gradle 3.4.1
Understand with new Gradle Version
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { url 'https://maven.google.com/'
name 'Google'} google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.4.1' // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
--------------------
*Minimum supported
Platform Version: Android 5.1
API Level: 22
Version Code: LOLLIPOP
How can I check if a view is visible or not in Android?
How can I check if a view is visible or not in Android?
if (myImageView.getVisibility() == View.VISIBLE) {
// Its visible
} else {
// Either gone or invisible
}
Tuesday, June 18, 2019
Android Studio | not showing attributes (Work 100%)
How to fix when it did not show attribute for Button, TextView...
First, try with: File > Invalidate Caches and Restart.
Well, there are my solutions to deal with android studio
Just follow the steps:
1: Close your Android studio if running
2: Make sure no shortcut icon is present in the bottom bar or desktop(optional)
3: Delete folder : Open C:/Users/{your_USER_NAME}/ and just delete .AndroidStudio{VERSIONCODE} folder
what does this folder do? well it saves your custom android studio themes, styles, shortcuts etc
after deleting it
4: Check you are connected to the Internet
5: open the android studio and it should present you with again setting screens like what theme you would like to use etc! just go with recommended
6: follow the recommended steps at first after that if anything android studio is missing it will download!
7: try creating a new project then!
REMEMBER you do not need to remove .gradle for just simple UI/UX glitches of android studio! just remove .androidStudo3..(
Android | Close app on back button
Add in your Activity
Example in MainActivity.class
I want to exit my app when click phone back button
auto shortcut: Ctr + O
----------------
@Override
public void onBackPressed() {
super.onBackPressed();
finishAffinity();
}
---------------
Play Store | Sign Android APK with a certificate that expires further in to the future
SIGN ANDROID APK WITH A CERTIFICATE THAT EXPIRES FURTHER INTO THE FUTURE
If you come from the Windows app/application development world it is natural to assume that you want to use a purchased code signing certificate.
That is possible but when you or your client attempts to submit the application to the google play store it will fail with the 'APK signed with a certificate that expires too soon' error. That is because the max validity of most purchased certificates is around 2/3 years.
The solution is to just generate your own certificate as explained by others. I picked a validity of 100 years and it worked just fine. I am pretty sure I won't be working on this app in 100 years.
The disconnect is because the certificates are used in a different way and for a different purpose. Rather than identifying and naming the developer, the self-generated certificate is used to ensure that two application versions came from the same but unnamed source.
PlayStore | Warning Upload failed You uploaded an APK
Upload failed You uploaded an APK or Android App Bundle signed with a certificate that expires too soon. You need to sign your APK or Android App Bundle with a certificate that expires farther into the future.
When your Generate Signed APK will show to option
1 bundle (selected this one)
2 APK
Subscribe to:
Posts (Atom)