skip to Main Content

Android studio 'The activity must be exported or contain an intent-filter'

I wanted to show 'RealMainActivity.kt' to first main page, so I wrote below. <activity android:name=".RealMainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> but there is still Error running 'app': The activity must be exported or contain an intent-filter.…

VIEW QUESTION

Android Studio – How can you call a method of an activity from another activity?

Here is my first activity public class FirstActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_first); } public void addNumbers() { //// } } public class SecondActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…

VIEW QUESTION

Android Studio – Flutter app won`t run Build. It failed with an exception after installing new updates

I havent touched Flutter for few months and now my old project wont run. I tried Pub get- Pub upgrade- outdated etc. Flutter clean didn't work and Flutter doctor looks good /C:/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.3.4/lib/get_navigation/src/root/get_material_app.dart:297:15: Error: No named parameter with the name 'scrollBehavior'.…

VIEW QUESTION
Back To Top
Search