camera - Preview android cam in tabhost -


i have tabhost in android application , want preview camera in 1 of tabs.

thanks

use surfaceholder in sub activity in normal activity (lot of example it) insert activity in tab in classical way:

intent = new intent(this, previewactivity.class);         tabhost.addtab(tabhost                 .newtabspec("previewtab")                 .setindicator(gettext(r.string.tab_item_preview),                         getresources().getdrawable(r.drawable.icon_preview))                 .setcontent(intent)); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -