Progressbar Loading Picasso in Android

In layout XML insert code: <ProgressBar android:visibility=”gone” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/progressBar” style=”?attr/progressBarStyle” android:layout_centerVertical=”true” android:layout_centerHorizontal=”true”/> In MainActivity insert code for Picasso: protected void loadImage(String CurrentUrl,ImageView imageView){ progressBar.setVisibility(View.VISIBLE); Picasso.with(this) .load(subCurrentUrl) .resize(width,height) .into(imageView, new Callback() { @Override public void onSuccess() { progressBar.setVisibility(View.GONE); } @Override public void onError() { } }); }

Retrieve key alias or key password in android

A.   On the Mac, I found the keystore file path, password, key alias and key password in an earlier log report before I updated Android Studio. I launched the Console utility and scrolled down to ~/Library/Logs -> AndroidStudioBeta ->idea.log.1 (or any old log number) Then I searched for “” and found this from an … More Retrieve key alias or key password in android

How to Linking To the Amazon Appstore for Android

he Amazon Appstore for Android will automatically pick up on specially formatted links through the use of Android Intents. These are referred to as “deep” links. You have two options for providing a deep link. Option 1: Link to the Amazon Retail Website This type of link will be picked up by the Amazon Appstore … More How to Linking To the Amazon Appstore for Android

Howto download Image from URL in android

Code for download image: File direct = new File(Environment.getExternalStorageDirectory() + “/LightBringer”); if (!direct.exists()) { direct.mkdirs(); } DownloadManager mgr = (DownloadManager) getApplication().getSystemService(Context.DOWNLOAD_SERVICE); Uri downloadUri = Uri.parse(uRl); DownloadManager.Request request = new DownloadManager.Request( downloadUri); request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE) .setAllowedOverRoaming(false).setTitle(“Demo”) .setDescription(“Something useful. No, really.”) .setDestinationInExternalPublicDir(“/LightBringer”, “fileName.jpg”); mgr.enqueue(request);

Make transparent ActionBar in Android

  Step1: In value/style.xml: <style name=”AppTheme” parent=”Theme.AppCompat.Light”> … </style> <style name=”AppTheme.ActionBar.Transparent” parent=”AppTheme”> <item name=”android:windowContentOverlay”>@null</item> <item name=”windowActionBarOverlay”>true</item> <item name=”colorPrimary”>@android:color/transparent</item> </style> <style name=”AppTheme.ActionBar” parent=”AppTheme”> <item name=”windowActionBarOverlay”>false</item> <item name=”colorPrimary”>@color/default_yellow</item> </style> Step2: in AndroidManifest.xml > placed in activity you want to make transparent ActionBar: <activity android:name=”.MyTransparentActionbarActivity” android:theme=”@style/AppTheme.ActionBar.Transparent”/> NOTE: f you want to make sure there aren’t Views under your … More Make transparent ActionBar in Android

How to add Firebase-storage in Android Studio 2.2.2

Step1: In AndroidStudio(AS) insert tools by SDK tools: Step2: Create New Project in Step3: In Overview > Select “Add Firebase to your Android app” : Step4: Insert package name by your applicationId in build.gradle(Module:app) file. In this my example is: “com.example.firebase_example” Step5: Get “Debug signing certificate SHA-1“:     5.1: In windows, press windows + R … More How to add Firebase-storage in Android Studio 2.2.2