HomeОбразованиеRelated VideosMore From: Sabith Pkc Mnr

How To Make Android Wallpaper App (AdMob ads, Categories, Material Design, Save Image, etc) - Part 4

59 ratings | 2545 views
#HowToMakeAndroidApp How To Tutorials - Creating a brand new android multiple image wallpaper app with AdMob ads, different categories, dynamic access, notification, current wallpaper, material design, save wallpaper to android gallery, and so on. In this video, we're creating a GridView Adapter and using images from the drawable folder inside the GridView. Official Website: http://www.techcetro.com Subscribe Here: https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 You must need to install Android Studio IDE (Integrated Development Environment) in order to practically continue this video series. You can find the installation instructions here: http://www.techcetro.com/android If you have any kind of suggestions or recommendation, feel free to let me know. Ask your doubts in the comment section below to that corresponding video and I will be answering each one of you! The official website for source codes: http://www.techcetro.com Hope that was a great tutorial for you. Feel free to subscribe so you won't miss any updates !! https://goo.gl/lrrGFC Find Me : Google : https://google.com/+SabithPkcMnr Twitter : https://twitter.com/SabithPkcMnr GitHub : https://github.com/sabithpkcmnr Subscribe Me : https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 The official website for source codes: http://www.techcetro.com Your master: Tutor: Sabith Pkc Mnr Skill: Android Programming Expert Profile: http://www.google.com/+SabithPkcMnr Sabith Pkc Mnr | TechCetro Official© Mirroring is strictly restricted.
Html code for embedding videos on your blog
Text Comments (120)
Gandluri Veerendra (1 day ago)
please help me... iam very new to android development.. I accidentally uninstalled app in emulator(Real device) I don't use  emulator in my pc as it has low ram.  now when I run my app its saying that "" ERROR while launching Activity.... TYPE 3 error.....mainActivity Does not exist.."" I have also tried cleanup project and rebuild project.. nothing worked.. what to do.... please save me sabith.....
Sabith Pkc Mnr (1 day ago)
Most welcome!!
Gandluri Veerendra (1 day ago)
I have got a solution ... Thank you for helping me
Gandluri Veerendra (1 day ago)
Sabith Pkc Mnr I tried it sabith..
Sabith Pkc Mnr (1 day ago)
You can try to close the project and then close Android Studio completely and again turn it on and open your project. This time it may work fine and make sure your device is properly detected by Android Studio. If this won't work, then you can follow below pages: https://stackoverflow.com/questions/36530648/session-app-error-launching-activity https://github.com/ACRA/acra/issues/473
Burak Demir (3 days ago)
will you update 5th part anytime soon ?
Sabith Pkc Mnr (3 days ago)
Soon...
Nickolas Machado (6 days ago)
Hi. it´s me again, i tried to run my app on phone with sdk version 23 and it´s crashing, the logcat is showing this: 01-10 20:41:50.328 8475-8475/com.example.nickolas.wallpaperapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.nickolas.wallpaperapp, PID: 8475 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nickolas.wallpaperapp/com.example.nickolas.wallpaperapp.MainActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class ImageView and after this message the logcat show a lot of error i not put here because will be too long, do you know just with this where is the error?
Nickolas Machado (5 days ago)
if you want, this is my AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.nickolas.wallpaperapp"> <uses-permission android:name="android.permission.SET_WALLPAPER" /> <application android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> and here is my build.gradle app: apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.example.nickolas.wallpaperapp" minSdkVersion 17 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }
Nickolas Machado (5 days ago)
I don´t have a splash screen for this app, here are the main activity: public class MainActivity extends AppCompatActivity { Integer [] myImageArray = { R.drawable.foto1, R.drawable.foto2 }; GridView myGridView; ImageView myCurrentWallpaper; Drawable myDrawable; WallpaperManager myWallManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myGridView = findViewById(R.id.myGridView); myCurrentWallpaper = findViewById(R.id.myImageView); myGridView.setAdapter(new ImageAdapter(getApplicationContext())); updateWallpaper(); } private void updateWallpaper (){ myWallManager = WallpaperManager.getInstance(getApplicationContext()); myDrawable = myWallManager.getDrawable(); myCurrentWallpaper.setImageDrawable(myDrawable); } public class ImageAdapter extends BaseAdapter{ Context myContext; public ImageAdapter(Context applicationContext) { myContext = applicationContext; } @Override public int getCount() { return myImageArray.length; } @Override public Object getItem(int i) { return null; } @Override public long getItemId(int i) {return 0; } @Override public View getView(final int i, View view, ViewGroup viewGroup) { ImageView GridImageView; if (view == null){ GridImageView = new ImageView(myContext); GridImageView.setLayoutParams(new GridView.LayoutParams(512,512)); GridImageView.setScaleType(ImageView.ScaleType.CENTER_CROP); } else { GridImageView = (ImageView) view; } GridImageView.setImageResource(myImageArray [i]); GridImageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { try { myWallManager.setResource(myImageArray [i]); } catch (IOException e) { e.printStackTrace(); } updateWallpaper(); } }); return GridImageView; } } }
Sabith Pkc Mnr (6 days ago)
Okay. Do you have a splash screen activity that runs before the MainActivity? What are the codes inside your MainActivity? Don't mind to paste it here. I can look for you...
Nickolas Machado (7 days ago)
First congratulations on your job, it´s amazing, we are waiting for part 5 for you teach us how to save the image in gallery
Sabith Pkc Mnr (7 days ago)
Thanks! Will continue this soon...
Sania Ch (9 days ago)
nice video bro i want add button that can save image in mobile or sd card from wallpaper app thanks plz make a tutorials
Sabith Pkc Mnr (9 days ago)
Let me know what's that error. May be I can solve it here because it's not easy to develop a video towards it's end-production.
Sania Ch (9 days ago)
thanks but i am facing error plz can you make video on this plz plz plz thanks...............
Sabith Pkc Mnr (9 days ago)
Most welcome!!
Sania Ch (9 days ago)
thank you much i will try my best thanks again .......................
Sabith Pkc Mnr (9 days ago)
You can try below code: int currentItem =viewPager.getCurrentItem(); Drawable drawable = getResource.getDrawable(mImages[currentItem]); Bitmap bm =((BitmapDrawable) drawable).getBitmap(); Or visit this page:https://stackoverflow.com/questions/18310447/how-to-save-image-from-viewpager
AHMED Production (12 days ago)
when is the part 5 coming
Sabith Pkc Mnr (12 days ago)
Will be there soon...
You sounds American bro
Sabith Pkc Mnr (12 days ago)
Thanks Yaa!!
TAMIL HACKS (17 days ago)
Nice video bro😍, I want to insert an translate button in my app and on clicking that the language of my app have to be translated ,i want to implement that ,how can i do that ,please help me bro.. thanks in advance
Sabith Pkc Mnr (17 days ago)
You better check these pages: https://developer.android.com/studio/write/translations-editor.html https://developer.android.com/guide/topics/resources/localization.html
Urdu Lights (18 days ago)
hello sir way You Do Not continue the wallpaper app series please make more videos on wallpaper app tutorial i want to make app for wallpaper and please add like button in wallpaper app
Sabith Pkc Mnr (18 days ago)
I am actually on the development of my new app. The app will be releasing on this NewYear day. Stay tuned!! https://plus.google.com/u/0/+sabithpkcmnr
siadat sheikh (19 days ago)
done it successfully thnkx a lot sir but i have an issue that my pictures are not fitting in the gridview and also as wallpaper...is it issue of size???if it is issue of size then what the size should be???thanks in advance
Sabith Pkc Mnr (19 days ago)
You can try this page: https://stackoverflow.com/questions/37174955/fit-image-into-grid-view
souq erbil (21 days ago)
what if i want to but Scroll View..the app well stop working..solve??
Sabith Pkc Mnr (21 days ago)
So you says that your app is not working or you want to add ScrollView feature?
souq erbil (22 days ago)
good job man.♥
Sabith Pkc Mnr (22 days ago)
Thanks man!! Join my G+ community: https://plus.google.com/u/0/+sabithpkcmnr
Josh xperia (24 days ago)
hey are you going to add another videos for this series?
Sabith Pkc Mnr (23 days ago)
I am actually on the development of my new Android App, and that's why no updates for the last few weeks. Will be back soon. Stay tuned!!
Jurabek Sharipov (26 days ago)
how to fix the error
Sabith Pkc Mnr (25 days ago)
You got it fixed man? xD
Jurabek Sharipov (26 days ago)
Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
Sabith Pkc Mnr (26 days ago)
Do you got any errors inside the Java codes? Have you tried to run the app by removing any certain lines of code?
Choof TV (27 days ago)
thanks bro , please how can add a lot of images to app wallpaper , i think four is not enough .
Sabith Pkc Mnr (27 days ago)
I am actually developing my new Android App (will be useful for all of you) and that's why no updates for the last two weeks. The app will be out there on Google Play on this New Year!!
Amrit Virk (29 days ago)
A Big thanks for this series. When will you upload next parts of this series. Also please explain how to get the images for firebase in the Image Array. Thanks :)
Sabith Pkc Mnr (27 days ago)
Thanks man!! Hope to see your support too...
Amrit Virk (28 days ago)
Best of Luck for your New App :)
Sabith Pkc Mnr (29 days ago)
I actually developing my new app which is said to be releasing on this new year day! Till then you can watch all other videos available on my channel and be sure to check out my updates: https://plus.google.com/u/0/+sabithpkcmnr
datta pande (1 month ago)
How to change constrainlayout to relativelayout ? Plz reply
Sabith Pkc Mnr (1 month ago)
Simply replace it and remove unwanted lines...
R. Avinash kumar (1 month ago)
Hi when we can expect more videos. Sabith
Sabith Pkc Mnr (1 month ago)
Soon... thanks for your patience. I am on developing my new app which will be pretty much useful for you too. See you then :) https://plus.google.com/+SabithPkcMnr
Fuzz (1 month ago)
bhai ek bata skte ho plz bhai hum kisi or website ka app bna ke upload kar skte hai play store pe???? kisi or ka youtube channel ka app bna ke daal skte hai koi problem to nhi hogi
siadat sheikh (21 days ago)
they give us warning that you are using a copyrighted logo so app is rejected....otherwise we have made the app of almost all institutions of our city but then leave it.
Sabith Pkc Mnr (22 days ago)
That's right. Copy-right strike can even take down your account completely.
siadat sheikh (22 days ago)
yes you can if there will b no issue of copyright bcz our grp also tried bt it didnt work cz of copyright
Sabith Pkc Mnr (1 month ago)
I hope this would be in English...
zeeshum bhatti (1 month ago)
Next part???
Sabith Pkc Mnr (1 month ago)
I am on developing an app and will be there soon on Google Play Store.
XxMehmetxX (1 month ago)
sir when part 5 :/
Sabith Pkc Mnr (1 month ago)
I am on developing an app and will be there soon on Google Play Store. Meantime, you can join our discussion community: https://plus.google.com/+SabithPkcMnr
Kevin Gorule (1 month ago)
When are you releasing part 5
Sabith Pkc Mnr (1 month ago)
Thanks man!! Join our discussion community: https://plus.google.com/+SabithPkcMnr
Kevin Gorule (1 month ago)
Sabith Pkc Mnr All the best
Sabith Pkc Mnr (1 month ago)
I am on developing an app and will be there soon on Google Play Store.
Tech Latest (1 month ago)
Hey can you make a tutorial on how to create inbuilt AppLock in app?thanks
Sabith Pkc Mnr (1 month ago)
As you might know, I am not that free these days because of app development and Kotlin tutorial preparation... Google search will definitely help you. Also join my Google+ to get news instantly: https://plus.google.com/+SabithPkcMnr
Tech Latest (1 month ago)
Sabith Pkc Mnr can you make a tutorial on it? Or can you give me some code?
Sabith Pkc Mnr (1 month ago)
so you want create a launcher activity and set a edittext there and ask the user to enter correct pin or password. The first start up of the app should let the user to setup a pin and save it using SharedPreference. That's all.
Tech Latest (1 month ago)
Sabith Pkc Mnr no I want to lock only a single app the app I have created, for example I have created an app hello word and I want to ask user password to enter into app
Sabith Pkc Mnr (1 month ago)
How about this one? http://codeworld55.blogspot.in/2015/10/how-to-create-android-app-lock.html
Mr. Amio (1 month ago)
halo sir where are you? please make next part we are waiting for you................
Sabith Pkc Mnr (1 month ago)
As I said to some comments, I am developing an App and will be there soon on Google Play Store.
Ankrish (1 month ago)
Hey Please Make Tutorial Playlist about Android with sqlLite
Sabith Pkc Mnr (1 month ago)
Most welcome!!
Ankrish (1 month ago)
Thanks :)
Sabith Pkc Mnr (1 month ago)
Will do with Kotlin, right now I am preparing Kotlin tutorials :)
Af Traders (1 month ago)
When will the next tutorial come out?
Sabith Pkc Mnr (1 month ago)
I am preparing the Kolin tutorial series...
Ram Rajput (1 month ago)
Hello sir where are you....next video sir where is....
Sabith Pkc Mnr (1 month ago)
Hi there! I am on a Application development now, will be rolled out soon to the Google Play Store. Also, I am preparing for Kotlin tutorials instead of all this Java tutorials.
xMB25 x (1 month ago)
Amazing bravo 👏👏👏
Sabith Pkc Mnr (1 month ago)
Thanks Man!!
Arjun Kumar (1 month ago)
i need help please help me
Sabith Pkc Mnr (1 month ago)
Yes of course I can but now I am creating that application which I mentioned before and also preparing for creating Kotlin tutorials on my channel.
Arjun Kumar (1 month ago)
Sabith Pkc Mnr reply please
Arjun Kumar (1 month ago)
Sabith Pkc Mnr can you teach me please every user should have their own refer code please bro
Sabith Pkc Mnr (1 month ago)
This can be done using Firebase, and you know what? I am actually making such a cool app for fast earning and that's why no videos for a couple days. The app will be there on Google Play Store soon...!
Arjun Kumar (1 month ago)
Sabith Pkc Mnr i started using Android studio seeing you
Gandluri Veerendra (1 month ago)
Hey sabith.. Thank you so much for your tutorials.you are an oasis in a desert for me. I have a problem in my app.once it is launched it goes through the login page and goes on..., Once I close the application and open it again,,, IT IS AGAIN GOING THROUGH LOGIN PAGE. I don't have a clear idea on that. Can you please save me Thank you in advance
Sabith Pkc Mnr (1 month ago)
Most welcome!!
Gandluri Veerendra (1 month ago)
Thank you sabith..
Sabith Pkc Mnr (1 month ago)
You have to save the logged in state of the app using SharedPreference something like that one...
Mr. Amio (1 month ago)
please make part 5
Sabith Pkc Mnr (1 month ago)
Welcome :)
Mr. Amio (1 month ago)
thank you for your reply but i am waiting for next vid..........................
Sabith Pkc Mnr (1 month ago)
I am on developing my new application, that's why little delay to upload part 5. Will be there soon...
Shabab Km (1 month ago)
Hey Nice One , Just Create A App using Firbase , Show Firbase Uploading One Image , Then Click Image View Then Go The Image Linkd Web Site Link ,
Sabith Pkc Mnr (1 month ago)
I am little busy for the next few days, I am developing a complete app for you all, will be there on Play Store soon. See ya after that :)
sri nagesh (1 month ago)
please make a video to create a chat application like what's app
Sabith Pkc Mnr (1 month ago)
I will do if possible...
Pigeons Medicines (1 month ago)
Your website is only shows GoDaddy ads
Sabith Pkc Mnr (1 month ago)
It's actually sleeping now :)
Sabith Pkc Mnr (1 month ago)
Will be better soon..
Vinay Bakle (1 month ago)
Your tutorials are great and so easy to understand
Sabith Pkc Mnr (1 month ago)
That's so great to hear. Thank you!! ✌
GS Design (1 month ago)
Hello sir can you explain how to create study app
Sabith Pkc Mnr (1 month ago)
So you're asking about creating an Android app for study/educational purpose with lessons, video tutorials, materials and so on? Let me know what you mean...
sri nagesh (1 month ago)
is this completed..or you have another tutorials
Sabith Pkc Mnr (1 month ago)
👍
sri nagesh (1 month ago)
Sabith Pkc Mnr kk ty sir...
Sabith Pkc Mnr (1 month ago)
Not yet completed, there will be more tutorials on this...
Owais Shah (1 month ago)
👌👏
Sabith Pkc Mnr (1 month ago)
👍✌
Nitin kale (1 month ago)
Great #Request load those images from internet/server
Sabith Pkc Mnr (1 month ago)
That's cool🔜
Azimuth PH (1 month ago)
im also looking forward to it
Sabith Pkc Mnr (1 month ago)
We will do that soon... Thanks for your patience 👍😊

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.