Posts

Showing posts from March, 2019

Android Studio Picasso gif loading image for placeholder

Android Studio Picasso gif loading image for placeholder : From what I know, Android doesn't have inbuilt support for GIF. So  ImageView doesn't support GIF by default . I would suggest you to use  Glide library  for image loading, and caching since it provides support for GIF. Glide is similar to Picasso, and is sometimes considered better than Picasso. The methods used are also similar to Picasso, except that it has a  asGif()  method which can load image into ImageView as GIF. Glide . with ( context ) . load ( imageUrl ) . asGif () . placeholder ( R . drawable . loading_gif ) . into ( imageView );

Could not identify launch Activity: Default Activity not found

Solutions 1 : For  main activity  in your manifest you have to add this with category  LAUNCHER  (First Activity on launch app): <activity android:name = ".MainActivity" android:label = "YourAppName" android:theme = "@style/AppTheme.NoActionBar" > <intent-filter> <action android:name = "android.intent.action.MAIN" /> <category android:name = "android.intent.category.LAUNCHER" /> </intent-filter> </activity> For  other activity  you have to change category to  DEFAULT : <activity android:name = ".OtherActivity" android:theme = "@style/AppTheme.NoActionBar" > <intent-filter> <action android:name = "package.OtherActivity" /> <category android:name = "android.intent.category.DEFAULT" /> </intent-filter> </activ...