Skip to content

SpaceTech

Exploration of Information, Communication and Technology

  • Home
  • Blog
  • Projects
    • Resx Builder
  • About
  • LinkedIn
  • Github

Android Convert Activity to Fragment

October 5, 2012November 14, 2012 Bjarne

To convert your activity to a fragment there are a few changed you’ll have to do. First of all you change extends Activity to extends Fragment in those classes.

Before:

public class Main extends Activity {
}

After:

public class Main extends Fragment {
}

Next step

Posted in Android, Tips and TricksTagged activity, android, fragment

About

Hey! I’m Bjarne, a software engineer from Denmark. This is my daily engineering diary.

I enjoy creating things, whether that be websites, plugins, mobile applications or something out of LEGO Mindstorms.

I’m currently playing around in the engineering department at The LEGO Group where I work as a Senior IT Engineer where I work on a wide variety of interesting and meaningful projects on a daily basis.

I’m currently playing around with: Machine Learning in R, IoT in Go, React in Typescript and CI/CD in GitHub Actions

Categories

  • Android
  • CI/CD
  • ErrorFix
  • Golang
  • Linux
  • Mac
  • Python
  • R Language
  • React
  • Tips and Tricks
  • Typescript
  • Uncategorized
  • Windows

Copyright ©SpaceTech

Clean Theme by WPVKP