Back to project page DEVIEW2014_AndroidApp_Demo.
The source code is released under:
Apache License
If you think the Android project DEVIEW2014_AndroidApp_Demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nhn.android.deview.webviewer; //from w w w .ja v a 2 s . co m import com.nhn.android.deview.AppContext; import com.nhn.android.deview.R; import com.nhn.android.deview.core.lifecycle.CycleControllerActivity; import com.nhn.android.deview.core.view.DeclareView; import com.nhn.android.deview.dao.MyMemo; import com.nhn.android.deview.dao.MyMemoManager; import com.nhn.android.deview.dao.program.ProgramData; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.FrameLayout; public class ProgramWebActivity extends CycleControllerActivity { @DeclareView(id = R.id.webPanel) FrameLayout webPanel; @DeclareView(id = R.id.gnbPanel) View mGnbPanel; MemoWebToolbar mToolbar; WebPageView mWebPageView ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_programweb, true); Uri uri = getIntent().getData(); mWebPageView = new WebPageView(this); webPanel.addView(mWebPageView); mToolbar = new MemoWebToolbar(mGnbPanel); mToolbar.mProgramData = AppContext.getValue(ProgramWebActivity.class, true); mWebPageView.loadUrl(uri.toString()); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent arg2) { super.onActivityResult(requestCode, resultCode, arg2); if (requestCode == 100 && resultCode == RESULT_OK) { MyMemo memo = mToolbar.mMyMemo; MyMemoManager.addMemo(memo); } } }