skip to Main Content

Android Studio – PutExtra(String!.String?) is givng error (in android Kotlin), what could be the problem?

MainActivity.kt PutExtra(String!.String?) is givng error (in android Kotlin), what could be the problem? class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) } var name:EditText? = null fun createBirthdayCard(view: View) { name = findViewById(R.id.NameInput) val intent =…

VIEW QUESTION

Android Studio – Binary XML file line #20: Error inflating class fragment

I want to add an object to LinearLayout, but it throws an error Error line: at me.solo_team.futureleader.ui.news.NewsFragment.onCreateView(NewsFragment.java:62) ( addElement(uris.get(i),names.get(i));) NewsFragment private LayoutInflater inflater; private ViewGroup container; private LinearLayout nw; public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View…

VIEW QUESTION
Back To Top
Search