Alright :) thanks sir!
Type: Posts; User: fallen01
Alright :) thanks sir!
What projects was you creating as a beginner ? Seems like I am choosing hard ones.
As a beginner - unfortunately no. There is no sample code for drum pad that includes longlick..
simply failed to add that longpress dammit..here is what one guy told me to do ( but I did not understand ) :
You have to add onLongClickListener to your button and implement the method onLongClick...
3488
I have lots of errors now -_-
package com.example.niko.drumpad;
import android.media.AudioManager;
import android.media.SoundPool;
import android.support.v7.app.AppCompatActivity;
Hi. basically I just made a drum pad app, but I can't figure out how to use a longpress or whatever to be able to turn on/off some buttons ( each is playing different music so all I need is to tap...
Yes sir, thanks for replying tho ;)
private void initializeDrawer() {
View mBottomSheet = findViewById(R.id.bottomSheet);
mDrawerGridView = findViewById(R.id.drawerGrid);
mBottomSheetBehavior =...
I literally can't understand logchat erros, usually I stuck on reading all red lines and just thinking but..I dont know how to explaion sorry
mLayout.setOnLongClickListener(new View.OnLongClickListener() {
this is line 67
--- Update ---
here is MainActivity :
Yes sir. Here it is :
package com.example.user.emnilauncher;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
Have a new errors now on physical device. It is because I wrote something wrong ( basically launcher is closing when I tap on any app or try to drag it ) errors log is here :
Can not really remember now, I will check it in 30 mins ;) Yes they're running different versions of android ( 7.0 on physical device ) and 5.0 on emulator.
Here is erros while running emulator...
Hi there :) I've been thinking about my problem for a long long time. I found some mistakes by myself and now the launcher is working fine, but I am not sure 100% that it will never crash cause code...
cant do that sooner than in 10hrs sorry :(
I dont remember correctly sorry, I am not on my pc now..
AppAdapter and AppObject java classes were created.
com.simcoder.novalauncherclone.ViewPagerAdapter mViewPagerAdapter;
private...
the problem is that launcher stops working. No it happens while testing on physical device only ( emulator is rly slow ).
package com.simcoder.novalauncherclone;
import...
Hi ! I am writing an android launcher, just following the guide in youtube. First 4 lessons were cool, but after that with some new lines of code + new folders etc. launcher just stopped working. I...
Hi ! I am writing an android launcher, just following the guide in youtube. First 4 lessons were cool, but after that with some new lines of code + new folders etc. launcher just stopped working. I...