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.

how to call subactivity of another application android? -


to call main activity saw componentname class in android.

intent = new intent(new componentname(packagenam,classname); 

if same used in case of child activity, got error , "is activity delcared in andorid manifest?" error.

how call app1 child activity in app2 using intent ? in app1 activity declared in manifest

<activity android:name=".activity.messagecompose" android:label="@string/app_name" android:enabled="false"> - <intent-filter>   <action android:name="android.intent.action.view" />    <action android:name="android.intent.action.sendto" />    <data android:scheme="mailto" />    <category android:name="android.intent.category.default" />    <category android:name="android.intent.category.browsable" />    </intent-filter> - <intent-filter android:label="@string/app_name">   <action android:name="android.intent.action.send" />    <data android:mimetype="*/*" />    <category android:name="android.intent.category.default" />    </intent-filter> - <intent-filter android:label="@string/app_name">   <action android:name="android.intent.action.send_multiple" />    <data android:mimetype="*/*" />    <category android:name="android.intent.category.default" />    </intent-filter>   </activity> 

read on how intents work in android. since component you're launching in app, can't access component directly. in short, need way identify app1 child activity intent filter, call app2 using this:

intent intent = new intent(intent.action_view, uri); startactivity(intent); 

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 -