Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

android - Control volume keys -


in application have overridden onkeydown() , onkeyup() functions in order capture volume keys events. use such events in order control application volume. use music stream play sounds. when detecting event show custom toast (similar 1 shown android). problems i'm facing take are:

  1. android plays sound on volume keys events
  2. that sound played @ same intensity.

what i'd control intensity @ default sound played (also stream on played) in following way: louder sound higher volume , lower sound low volume, if possible. or way disable playing default sound , play custom sound @ intensity set.

actually sound played on onkeyup(...), can overload method in activity when gets called volume keys :

@override public boolean onkeyup(int keycode, keyevent event) {     if ((keycode == keyevent.keycode_volume_up) || (keycode == keyevent.keycode_volume_down)) {        return true;     }     return super.onkeyup(keycode, event); } 

this worked me :)


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -