(Android) Call Fragment from other Package within the Project -


so scenario is

com.example.fragment1.fragmentsample.class com.example.fragment2.fragmentsample2.class ,,, com.example.main.mainactivity.class

so when app start create fragmentsample default , call fragmentsample2 when press enter button in fragmentsample... code has error how can this?? btw mainactivity extend on activity... wrong should fragmentacitivity or ok?

in experience, adt unhappy (doesn't recognize r file) when fragments don't belong same package activity, in case need move fragmentsample.java & fragmentsample2.java com.example.main

if doesn't solve problem, need provide more detail on error/s you're seeing.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -