skip to Main Content

flutter make get request before displaying app

I have a pretty simple problem. I have a code snippet that looks like this: class home_page extends StatefulWidget { @override State<StatefulWidget> createState() => Main(); } class Main extends State<home_page> { void initState() { super.initState(); } @override Widget build(BuildContext context)…

VIEW QUESTION

flutter storage permission problem on android

I have storage permission problem on android. storage didn't granted permission. sdkversion is 33 and used permission_handler: ^10.2.0. i make a permission request and check isGranted, i got false. i've also put all the user-permission related to storage in AndroidManifext.xml.…

VIEW QUESTION

Android Studio – broadcast receiver for ACTION_HEADSET_PLUG not getting called

i'm having a broadcast reciever: private final BroadcastReceiver mediaReceiver = new MediaChangeReceiver(this); and i'm adding filters to it IntentFilter filter = new IntentFilter(); filter.addAction(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED); filter.addAction(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); filter.addAction(Intent.ACTION_HEADSET_PLUG); context.registerReceiver(mediaReceiver, filter); and I have listener to listen for that calls @Override public void…

VIEW QUESTION

Android Studio – java.lang.NullPointerException: findViewById(R.id.addtoUserFriendList) must not be null

Hello i am getting such an error i couldn't find the solution for the error ; java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.chatapp/com.example.chatapp.MainActivity}: java.lang.NullPointerException: findViewById(R.id.addtoUserFriendList) must not be null My Code is: private lateinit var userRecyclerView: RecyclerView private lateinit var userList:…

VIEW QUESTION
Back To Top
Search