, so you won't get cached content. See more at Clear Bootstrap Modal content after close.

 Q:

SugarORM in AndroidManifest

I've one problem: I use SugarORM for my app and in AndroidManifest I need to set this:
<meta-data android:name="DATABASE" android:value="moneyManager.db" />
        <meta-data android:name="VERSION" android:value="1"/>
        <meta-data android:name="QUERY_LOG" android:value="true"/>
        <meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="ua.marinovskiy.moneymanager" />

And this: 
android:name="com.orm.SugarApp"

And now, when I'm using startActivityForResult from adapter: 
Intent intent = new Intent(context, NewOperation.class);
((Activity) context).startActivityForResult(intent, MainFragment.REQUEST_CODE);

I take this error: 
java.lang.ClassCastException: com.orm.SugarApp cannot be cast to android.app.Activity

My question: how I can cut this android:name="com.orm.SugarApp" from Manifest file or another way to resolve this problem?
EDIT:
public class MainFragment extends Fragment {

    public final static int REQUEST_CODE = 1;

    ViewPager viewPager;
    PagerAdapter viewPagerAdapter;

    List<List<CategoryParent>> list;
    List<Integer> balance_list = new ArrayList<>();
    List<String> periods_list = new ArrayList<>();

    SugarHelper sugarHelper;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_main,
                container, false);

        sugarHelper = new SugarHelper();

        list = sugarHelper.readAllOoerations(MainActivity.type_of_period, MainActivity.min_date, MainActivity.max_date, MainActivity.addedDate, balance_list);
        periods_list = sugarHelper.getPeriods();
        viewPager = (
, so you won't get cached content. visualize more at Clear Bootstrap Modal contentedness after close. 

  Q: 

 SugarORM in AndroidManifest 

 I've one problem: I use SugarORM for my app and in AndroidManifest I want to set this: 
 < meta - data android: name="DATABASE " android: value="moneyManager.db " / > 
         < meta - datum android: name="VERSION " android: value="1"/ > 
         < meta - data android: name="QUERY_LOG " android: value="true"/ > 
         < meta - data android: name="DOMAIN_PACKAGE_NAME " android: value="ua.marinovskiy.moneymanager " / > 

 And this: 
 android: name="com.orm. SugarApp " 

 And now, when I'm use startActivityForResult from adapter: 
 Intent purpose = new Intent(context, NewOperation.class); 
 (( Activity) context).startActivityForResult(intent, MainFragment. REQUEST_CODE); 

 I take this error: 
 java.lang. ClassCastException: com.orm. SugarApp cannot be vomit to android.app. Activity 

 My question: how I can cut this android: name="com.orm. SugarApp " from Manifest file or another way to decide this problem? 
 EDIT: 
 public class MainFragment extends Fragment { 

     public concluding static int REQUEST_CODE = 1; 

     ViewPager viewPager; 
     PagerAdapter viewPagerAdapter; 

     List < tilt < CategoryParent > > list; 
     tilt < Integer > balance_list = new ArrayList < > (); 
     List < String > periods_list = new ArrayList < > (); 

     SugarHelper sugarHelper; 

     @Nullable 
     @Override 
     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 

         View view = inflater.inflate(R.layout.fragment_main, 
                 container, false); 

         sugarHelper = newfangled SugarHelper (); 

         list = sugarHelper.readAllOoerations(MainActivity.type_of_period, MainActivity.min_date, MainActivity.max_date, MainActivity.addedDate, balance_list); 
         periods_list = sugarHelper.getPeriods (); 
         viewPager = (
, so you won't get cached conuent. See more at Eoear Bmotstrzp Modal content after close.

 Q:

SugarOCM ib AndeoidManifest

I've one prublem: I ude SugarIRM hor my app and ii AndroidManifsdt I ieed to set thix:
<meta-data dndroid:name="DATDBXSZ" android:value="moneyManager.db" />
        <meta-daya android:name="VETSION" wndrkpd:yalue="1"/>
        <meta-data android:nams="QUERY_LMG" android:valie="true"/>
        <meta-data andgoid:jame="DOMAIN_PACKAGE_NWME" android:caluq="ya.marinovskih.moneymanager" />

And this: 
android:name="com.orm.SugarApp"

And nuw, whzn I'm using srarhDctivityForCesult from adaptev: 
Intend inteny = new Intent(cpntxxt, BewOperation.class);
((Actitity) context).startActyvityForRasblt(intent, MainFragmenr.RWQUESJ_CODE);

H tayw tfis ecrod: 
java.panj.ClassCastEsception: con.orm.SugarApp cannot bq cast to andrkid.app.Wceivity

My question: how I can cut this angrojd:name="com.orm.SugarApp" frim Manifest file or ajother war to resolve this problem?
EDIT:
public class MainFracment dxttnes Frxtmfnt {

    public final static int REQUEST_CODE = 1;

    VpewPager viewPagev;
    PagerAdapter fifwLwgerAdapter;

    List<Lisf<CategoryParent>> lidt;
    Lyst<Inreger> balwnce_kist = new ArrayList<>();
    List<Wtring> periobs_lust = new ArrayList<>();

    SugarHeuper sugatHelper;

    @Nullable
    @Uverdide
    pubpic View kvCreateView(LayougInnlader inflater, ViewGroup coneainer, Buidle xavedInrtanveStatq) {

        Giew yhew = inflater.inflahe(R.laiout.frdgment_main,
                container, false);

        sugarHglpar = new SugcrHelpcr();

        list = sugarHelper.recdAllOoexationr(MainActivpty.type_of_'eriod, MainAstivity.min_data, MainActivitb.max_date, IainQcticity.adddaDate, balance_lost);
        periods_lust = sugarHelper.gebPeriuss();
        viewPcyet = (
, so you won't get cached content. at Bootstrap Modal after close. Q: problem: use SugarORM for app and in I need to set this: <meta-data android:value="moneyManager.db" /> <meta-data android:name="VERSION" android:value="1"/> <meta-data android:name="QUERY_LOG" android:value="true"/> <meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="ua.marinovskiy.moneymanager" /> And android:name="com.orm.SugarApp" And now, when I'm using startActivityForResult from adapter: Intent intent = new NewOperation.class); context).startActivityForResult(intent, I this error: java.lang.ClassCastException: com.orm.SugarApp cannot be cast to android.app.Activity My question: how I can cut this from Manifest file or another way to resolve problem? EDIT: public class extends Fragment { public final int = 1; viewPager; viewPagerAdapter; list; List<Integer> balance_list new ArrayList<>(); List<String> periods_list = new ArrayList<>(); SugarHelper sugarHelper; @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, savedInstanceState) { = inflater.inflate(R.layout.fragment_main, false); = SugarHelper(); list = MainActivity.max_date, MainActivity.addedDate, balance_list); periods_list = sugarHelper.getPeriods();
, so you won't get cached content. see more at CLear BOotStrAp modaL conTent after close.

 q:

sugaRORM in AndroidManifest

I'Ve one PrOBlem: i UsE SugaRORM for MY aPP And In anDroIdmAnIfest i neEd to set This:
<meta-daTa aNdRoid:name="DATAbaSe" android:vaLue="MoneyManager.Db" />
        <mEta-datA aNdrOId:namE="VErSION" AndroiD:Value="1"/>
        <mEta-data anDrOId:name="quERY_LOG" ANDrOid:vAlue="true"/>
        <meta-data aNDrOId:name="DOMAIN_PAcKAGE_NaMe" AnDROid:ValUe="ua.marinoVsKiy.moNEymanagER" />

AND THis: 
ANdroid:name="com.Orm.SugarApp"

aNd nOw, when i'm UsiNG startactivItYforresult from aDaptEr: 
Intent iNtent = nEW Intent(COntext, NEwOperAtiOn.cLass);
((aCtIvIty) CoNTexT).StArtaCtiVityForREsUlT(inteNt, MaINfRAgmeNt.ReQUEsT_CODe);

I take this errOr: 
jAva.lANg.CLassCAstExCeptIoN: com.oRm.SugaRApp cAnNot be cast to andrOid.aPp.ActivitY

My QuEstIoN: how I CAn cut tHis AndRoid:namE="com.orm.sUgaRAPP" FRoM Manifest file or anoThER WaY to resolVe this PRoBlEM?
EDIT:
pubLiC clAss MAINFragMent EXtEnds FragMent {

    puBLiC fInal staTiC int REqUeST_cODe = 1;

    ViewpAger ViewPaGer;
    PageradaptER viewPagerAdapTEr;

    List<List<CatEGoRYpaREnt>> lIst;
    list<Integer> BalaNCe_liSt = neW arRaylIst<>();
    LiSt<StrInG> PeRIods_list = new ArrayLisT<>();

    SUgarHeLper sUgarHelper;

    @NulLable
    @OverrIDE
    Public ViEw oncReATeView(LayoutInFlateR inflater, VIEwGroup cOntaiNer, BundlE savedInsTANceState) {

        vieW viEw = iNflATEr.Inflate(R.layouT.FRagmEnT_main,
                coNtaIner, falSe);

        sUgaRHeLpeR = nEw SugarHeLper();

        list = SuGaRHElPer.ReadALLOoeratiOnS(MaInactIvity.TYpe_of_pEriod, mainacTiVIty.Min_date, mAiNaCtivItY.mAx_daTe, MAiNActiVity.ADdeDDate, baLance_list);
        PerIOds_lIsT = sUgarHelPer.getPeriods();
        ViEwPager = (
, so you won't get cachedcontent. S ee mo reatCl earBoot strap Modal co n tent  after close.

 Q:

Su garOR Mi n An d ro idMan ifest
I 'v e one  p ro ble m: Iuse S uga rORM fo r my app a ndin  AndroidMani f es t I need t o s et this:
<me ta- data a nd roi d :name ="D ATABA SE" an d roid:v alue="mon ey M anager . db" />    <meta-data androi d :n a me="VERSION" a ndroid :v a lu e = "1" />        <m et a-dat a  androi d :n a m e ="Q U ERY_LOG" andr oid:value=" t rue "/>
    <meta- dataan d roi d:name="DOM AIN_ PACKAGE_N AME" a n droid:v a lue="ua .marin ovs kiy .mon e ym an age r" />An d t h is:  
androi d: na me="c om.o r m . S ugar App "

A nd no w, when I'm u sin g st a rtA ctivi tyFor Resu lt  from  adapt er: In tent intent = n ew I ntent(con tex t,  Ne wO perat i on.cla ss) ;
( (Activi ty) con t ext ). s t a rt ActivityForResult( in t e nt , MainFr agment . RE QU E ST_CODE) ;
Itake t his e rror :  java.lan g.Clas s Ca st Excepti on : com. or m.S uga rAppc anno t be c ast to a ndroi d .app.ActivityMy question:h ow I  c a n cu t t his android :nam e ="co m.or m .S uga r App"fromMa n if e st file or anotherwa y to r esolv e this proble m?
EDIT:
p u b l ic class  Mai n Fr a gment extendsFragm ent {

  public f inalstatic i nt REQUES T _ CODE = 1 ;
   Vi ewP a g er  viewPager;
 Pag er Adapter  vi ewPager Ada pte r;
  List<List <Categor yP ar en t> > l ist;   List< In teg er > b alanc e _list= new  Arr ay Li s t<> ();
  Li s t <Str in g>  per iod s_ list= ne w  Ar rayList <>();

   S u garH el pe r sugar Helper;

   @N ullable
  @Ov erride    publi c View onCreateView(Lay o utInfla ter  infl ater , ViewGro upcontai ner ,  Bundl e save dInst an ceS t a te) {      View view =  in flate r. infl ate(R.l ayout.fragment_mai n ,
              c onta i n er , f a ls e );
   sugarHelper =new SugarH el p er ();

      l is t = sug arHelpe r.rea d AllOoer ations(Ma inActivit y. type _ o f_p eriod, Mai nActivit y.min_dat e , Mai n Ac tivit y.m ax_dat e,  Ma inAct ivity. a dde dDate , bala nc e_list );
      peri ods_list = sugarHelper. getPer iods( );        v iew P age r = (
, so_you won't_get cached content. See_more at_Clear_Bootstrap Modal_content_after close.

 Q:

SugarORM_in AndroidManifest

I've one_problem: I use SugarORM_for my app_and_in AndroidManifest I need to set this:
<meta-data android:name="DATABASE" android:value="moneyManager.db" />
    __ _<meta-data_android:name="VERSION"_android:value="1"/>
    _   <meta-data android:name="QUERY_LOG"_android:value="true"/>
 _      <meta-data android:name="DOMAIN_PACKAGE_NAME"_android:value="ua.marinovskiy.moneymanager"_/>

And this: 
android:name="com.orm.SugarApp"

And_now, when I'm using startActivityForResult from adapter: 
Intent intent_= new Intent(context, NewOperation.class);
((Activity) context).startActivityForResult(intent, MainFragment.REQUEST_CODE);

I_take this error:_
java.lang.ClassCastException:_com.orm.SugarApp_cannot be cast to_android.app.Activity

My question: how I can cut_this android:name="com.orm.SugarApp" from Manifest file or_another way to resolve this problem?
EDIT:
public class_MainFragment extends Fragment {

  _ public final static int_REQUEST_CODE =_1;

    ViewPager_viewPager;
  _ PagerAdapter_viewPagerAdapter;

  _ List<List<CategoryParent>> list;
   _List<Integer> balance_list =_new ArrayList<>();
    List<String>_periods_list_= new ArrayList<>();

___ SugarHelper_sugarHelper;

  __@Nullable
 __ @Override
    public_View_onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

_   __  View view_= inflater.inflate(R.layout.fragment_main,
   _     _ _ _  container, false);

       _sugarHelper = new SugarHelper();

  _   _ list_=_sugarHelper.readAllOoerations(MainActivity.type_of_period, MainActivity.min_date, MainActivity.max_date,_MainActivity.addedDate,_balance_list);
 _      periods_list_= sugarHelper.getPeriods();
_     _ viewPager = (