RosActivity.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (version 1.7.0_21) on Wed Sep 25 23:19:37 KST 2013 -->
  6. <title>RosActivity</title>
  7. <meta name="date" content="2013-09-25">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. </head>
  10. <body>
  11. <script type="text/javascript"><!--
  12. if (location.href.indexOf('is-external=true') == -1) {
  13. parent.document.title="RosActivity";
  14. }
  15. //-->
  16. </script>
  17. <noscript>
  18. <div>JavaScript is disabled on your browser.</div>
  19. </noscript>
  20. <!-- ========= START OF TOP NAVBAR ======= -->
  21. <div class="topNav"><a name="navbar_top">
  22. <!-- -->
  23. </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
  24. <!-- -->
  25. </a>
  26. <ul class="navList" title="Navigation">
  27. <li><a href="../../../overview-summary.html">Overview</a></li>
  28. <li><a href="package-summary.html">Package</a></li>
  29. <li class="navBarCell1Rev">Class</li>
  30. <li><a href="package-tree.html">Tree</a></li>
  31. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  32. <li><a href="../../../index-all.html">Index</a></li>
  33. <li><a href="../../../help-doc.html">Help</a></li>
  34. </ul>
  35. </div>
  36. <div class="subNav">
  37. <ul class="navList">
  38. <li><a href="../../../org/ros/android/OrientationPublisher.html" title="class in org.ros.android"><span class="strong">Prev Class</span></a></li>
  39. <li>Next Class</li>
  40. </ul>
  41. <ul class="navList">
  42. <li><a href="../../../index.html?org/ros/android/RosActivity.html" target="_top">Frames</a></li>
  43. <li><a href="RosActivity.html" target="_top">No Frames</a></li>
  44. </ul>
  45. <ul class="navList" id="allclasses_navbar_top">
  46. <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
  47. </ul>
  48. <div>
  49. <script type="text/javascript"><!--
  50. allClassesLink = document.getElementById("allclasses_navbar_top");
  51. if(window==top) {
  52. allClassesLink.style.display = "block";
  53. }
  54. else {
  55. allClassesLink.style.display = "none";
  56. }
  57. //-->
  58. </script>
  59. </div>
  60. <div>
  61. <ul class="subNavList">
  62. <li>Summary:&nbsp;</li>
  63. <li>Nested&nbsp;|&nbsp;</li>
  64. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  65. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  66. <li><a href="#method_summary">Method</a></li>
  67. </ul>
  68. <ul class="subNavList">
  69. <li>Detail:&nbsp;</li>
  70. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  71. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  72. <li><a href="#method_detail">Method</a></li>
  73. </ul>
  74. </div>
  75. <a name="skip-navbar_top">
  76. <!-- -->
  77. </a></div>
  78. <!-- ========= END OF TOP NAVBAR ========= -->
  79. <!-- ======== START OF CLASS DATA ======== -->
  80. <div class="header">
  81. <div class="subTitle">org.ros.android</div>
  82. <h2 title="Class RosActivity" class="title">Class RosActivity</h2>
  83. </div>
  84. <div class="contentContainer">
  85. <ul class="inheritance">
  86. <li>java.lang.Object</li>
  87. <li>
  88. <ul class="inheritance">
  89. <li>Activity</li>
  90. <li>
  91. <ul class="inheritance">
  92. <li>org.ros.android.RosActivity</li>
  93. </ul>
  94. </li>
  95. </ul>
  96. </li>
  97. </ul>
  98. <div class="description">
  99. <ul class="blockList">
  100. <li class="blockList">
  101. <dl>
  102. <dt>Direct Known Subclasses:</dt>
  103. <dd><a href="../../../org/ros/android/android_acm_serial/AcmDeviceActivity.html" title="class in org.ros.android.android_acm_serial">AcmDeviceActivity</a>, <a href="../../../org/ros/android/android_benchmarks/MainActivity.html" title="class in org.ros.android.android_benchmarks">MainActivity</a>, <a href="../../../org/ros/android/android_tutorial_camera/MainActivity.html" title="class in org.ros.android.android_tutorial_camera">MainActivity</a>, <a href="../../../org/ros/android/android_tutorial_image_transport/MainActivity.html" title="class in org.ros.android.android_tutorial_image_transport">MainActivity</a>, <a href="../../../org/ros/android/android_tutorial_map_viewer/MainActivity.html" title="class in org.ros.android.android_tutorial_map_viewer">MainActivity</a>, <a href="../../../org/ros/android/android_tutorial_pubsub/MainActivity.html" title="class in org.ros.android.android_tutorial_pubsub">MainActivity</a>, <a href="../../../org/ros/android/android_tutorial_teleop/MainActivity.html" title="class in org.ros.android.android_tutorial_teleop">MainActivity</a></dd>
  104. </dl>
  105. <hr>
  106. <br>
  107. <pre>public abstract class <span class="strong">RosActivity</span>
  108. extends Activity</pre>
  109. </li>
  110. </ul>
  111. </div>
  112. <div class="summary">
  113. <ul class="blockList">
  114. <li class="blockList">
  115. <!-- =========== FIELD SUMMARY =========== -->
  116. <ul class="blockList">
  117. <li class="blockList"><a name="field_summary">
  118. <!-- -->
  119. </a>
  120. <h3>Field Summary</h3>
  121. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  122. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  123. <tr>
  124. <th class="colFirst" scope="col">Modifier and Type</th>
  125. <th class="colLast" scope="col">Field and Description</th>
  126. </tr>
  127. <tr class="altColor">
  128. <td class="colFirst"><code>protected <a href="../../../org/ros/android/NodeMainExecutorService.html" title="class in org.ros.android">NodeMainExecutorService</a></code></td>
  129. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#nodeMainExecutorService">nodeMainExecutorService</a></strong></code>&nbsp;</td>
  130. </tr>
  131. </table>
  132. </li>
  133. </ul>
  134. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  135. <ul class="blockList">
  136. <li class="blockList"><a name="constructor_summary">
  137. <!-- -->
  138. </a>
  139. <h3>Constructor Summary</h3>
  140. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  141. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  142. <tr>
  143. <th class="colFirst" scope="col">Modifier</th>
  144. <th class="colLast" scope="col">Constructor and Description</th>
  145. </tr>
  146. <tr class="altColor">
  147. <td class="colFirst"><code>protected </code></td>
  148. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#RosActivity(java.lang.String, java.lang.String)">RosActivity</a></strong>(java.lang.String&nbsp;notificationTicker,
  149. java.lang.String&nbsp;notificationTitle)</code>&nbsp;</td>
  150. </tr>
  151. </table>
  152. </li>
  153. </ul>
  154. <!-- ========== METHOD SUMMARY =========== -->
  155. <ul class="blockList">
  156. <li class="blockList"><a name="method_summary">
  157. <!-- -->
  158. </a>
  159. <h3>Method Summary</h3>
  160. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  161. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  162. <tr>
  163. <th class="colFirst" scope="col">Modifier and Type</th>
  164. <th class="colLast" scope="col">Method and Description</th>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colFirst"><code>java.net.URI</code></td>
  168. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#getMasterUri()">getMasterUri</a></strong>()</code>&nbsp;</td>
  169. </tr>
  170. <tr class="rowColor">
  171. <td class="colFirst"><code>protected abstract void</code></td>
  172. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#init(org.ros.node.NodeMainExecutor)">init</a></strong>(org.ros.node.NodeMainExecutor&nbsp;nodeMainExecutor)</code>
  173. <div class="block">This method is called in a background thread once this <code>Activity</code> has
  174. been initialized with a master <code>URI</code> via the <a href="../../../org/ros/android/MasterChooser.html" title="class in org.ros.android"><code>MasterChooser</code></a>
  175. and a <a href="../../../org/ros/android/NodeMainExecutorService.html" title="class in org.ros.android"><code>NodeMainExecutorService</code></a> has started.</div>
  176. </td>
  177. </tr>
  178. <tr class="altColor">
  179. <td class="colFirst"><code>protected void</code></td>
  180. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#onActivityResult(int, int, Intent)">onActivityResult</a></strong>(int&nbsp;requestCode,
  181. int&nbsp;resultCode,
  182. Intent&nbsp;data)</code>&nbsp;</td>
  183. </tr>
  184. <tr class="rowColor">
  185. <td class="colFirst"><code>protected void</code></td>
  186. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#onDestroy()">onDestroy</a></strong>()</code>&nbsp;</td>
  187. </tr>
  188. <tr class="altColor">
  189. <td class="colFirst"><code>protected void</code></td>
  190. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#onStart()">onStart</a></strong>()</code>&nbsp;</td>
  191. </tr>
  192. <tr class="rowColor">
  193. <td class="colFirst"><code>void</code></td>
  194. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#startActivityForResult(Intent, int)">startActivityForResult</a></strong>(Intent&nbsp;intent,
  195. int&nbsp;requestCode)</code>&nbsp;</td>
  196. </tr>
  197. <tr class="altColor">
  198. <td class="colFirst"><code>void</code></td>
  199. <td class="colLast"><code><strong><a href="../../../org/ros/android/RosActivity.html#startMasterChooser()">startMasterChooser</a></strong>()</code>&nbsp;</td>
  200. </tr>
  201. </table>
  202. <ul class="blockList">
  203. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  204. <!-- -->
  205. </a>
  206. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  207. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  208. </ul>
  209. </li>
  210. </ul>
  211. </li>
  212. </ul>
  213. </div>
  214. <div class="details">
  215. <ul class="blockList">
  216. <li class="blockList">
  217. <!-- ============ FIELD DETAIL =========== -->
  218. <ul class="blockList">
  219. <li class="blockList"><a name="field_detail">
  220. <!-- -->
  221. </a>
  222. <h3>Field Detail</h3>
  223. <a name="nodeMainExecutorService">
  224. <!-- -->
  225. </a>
  226. <ul class="blockListLast">
  227. <li class="blockList">
  228. <h4>nodeMainExecutorService</h4>
  229. <pre>protected&nbsp;<a href="../../../org/ros/android/NodeMainExecutorService.html" title="class in org.ros.android">NodeMainExecutorService</a> nodeMainExecutorService</pre>
  230. </li>
  231. </ul>
  232. </li>
  233. </ul>
  234. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  235. <ul class="blockList">
  236. <li class="blockList"><a name="constructor_detail">
  237. <!-- -->
  238. </a>
  239. <h3>Constructor Detail</h3>
  240. <a name="RosActivity(java.lang.String, java.lang.String)">
  241. <!-- -->
  242. </a>
  243. <ul class="blockListLast">
  244. <li class="blockList">
  245. <h4>RosActivity</h4>
  246. <pre>protected&nbsp;RosActivity(java.lang.String&nbsp;notificationTicker,
  247. java.lang.String&nbsp;notificationTitle)</pre>
  248. </li>
  249. </ul>
  250. </li>
  251. </ul>
  252. <!-- ============ METHOD DETAIL ========== -->
  253. <ul class="blockList">
  254. <li class="blockList"><a name="method_detail">
  255. <!-- -->
  256. </a>
  257. <h3>Method Detail</h3>
  258. <a name="onStart()">
  259. <!-- -->
  260. </a>
  261. <ul class="blockList">
  262. <li class="blockList">
  263. <h4>onStart</h4>
  264. <pre>protected&nbsp;void&nbsp;onStart()</pre>
  265. </li>
  266. </ul>
  267. <a name="onDestroy()">
  268. <!-- -->
  269. </a>
  270. <ul class="blockList">
  271. <li class="blockList">
  272. <h4>onDestroy</h4>
  273. <pre>protected&nbsp;void&nbsp;onDestroy()</pre>
  274. </li>
  275. </ul>
  276. <a name="init(org.ros.node.NodeMainExecutor)">
  277. <!-- -->
  278. </a>
  279. <ul class="blockList">
  280. <li class="blockList">
  281. <h4>init</h4>
  282. <pre>protected abstract&nbsp;void&nbsp;init(org.ros.node.NodeMainExecutor&nbsp;nodeMainExecutor)</pre>
  283. <div class="block">This method is called in a background thread once this <code>Activity</code> has
  284. been initialized with a master <code>URI</code> via the <a href="../../../org/ros/android/MasterChooser.html" title="class in org.ros.android"><code>MasterChooser</code></a>
  285. and a <a href="../../../org/ros/android/NodeMainExecutorService.html" title="class in org.ros.android"><code>NodeMainExecutorService</code></a> has started. Your <code>NodeMain</code>s
  286. should be started here using the provided <code>NodeMainExecutor</code>.</div>
  287. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>nodeMainExecutor</code> - the <code>NodeMainExecutor</code> created for this <code>Activity</code></dd></dl>
  288. </li>
  289. </ul>
  290. <a name="startMasterChooser()">
  291. <!-- -->
  292. </a>
  293. <ul class="blockList">
  294. <li class="blockList">
  295. <h4>startMasterChooser</h4>
  296. <pre>public&nbsp;void&nbsp;startMasterChooser()</pre>
  297. </li>
  298. </ul>
  299. <a name="getMasterUri()">
  300. <!-- -->
  301. </a>
  302. <ul class="blockList">
  303. <li class="blockList">
  304. <h4>getMasterUri</h4>
  305. <pre>public&nbsp;java.net.URI&nbsp;getMasterUri()</pre>
  306. </li>
  307. </ul>
  308. <a name="startActivityForResult(Intent, int)">
  309. <!-- -->
  310. </a>
  311. <ul class="blockList">
  312. <li class="blockList">
  313. <h4>startActivityForResult</h4>
  314. <pre>public&nbsp;void&nbsp;startActivityForResult(Intent&nbsp;intent,
  315. int&nbsp;requestCode)</pre>
  316. </li>
  317. </ul>
  318. <a name="onActivityResult(int, int, Intent)">
  319. <!-- -->
  320. </a>
  321. <ul class="blockListLast">
  322. <li class="blockList">
  323. <h4>onActivityResult</h4>
  324. <pre>protected&nbsp;void&nbsp;onActivityResult(int&nbsp;requestCode,
  325. int&nbsp;resultCode,
  326. Intent&nbsp;data)</pre>
  327. </li>
  328. </ul>
  329. </li>
  330. </ul>
  331. </li>
  332. </ul>
  333. </div>
  334. </div>
  335. <!-- ========= END OF CLASS DATA ========= -->
  336. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  337. <div class="bottomNav"><a name="navbar_bottom">
  338. <!-- -->
  339. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  340. <!-- -->
  341. </a>
  342. <ul class="navList" title="Navigation">
  343. <li><a href="../../../overview-summary.html">Overview</a></li>
  344. <li><a href="package-summary.html">Package</a></li>
  345. <li class="navBarCell1Rev">Class</li>
  346. <li><a href="package-tree.html">Tree</a></li>
  347. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  348. <li><a href="../../../index-all.html">Index</a></li>
  349. <li><a href="../../../help-doc.html">Help</a></li>
  350. </ul>
  351. </div>
  352. <div class="subNav">
  353. <ul class="navList">
  354. <li><a href="../../../org/ros/android/OrientationPublisher.html" title="class in org.ros.android"><span class="strong">Prev Class</span></a></li>
  355. <li>Next Class</li>
  356. </ul>
  357. <ul class="navList">
  358. <li><a href="../../../index.html?org/ros/android/RosActivity.html" target="_top">Frames</a></li>
  359. <li><a href="RosActivity.html" target="_top">No Frames</a></li>
  360. </ul>
  361. <ul class="navList" id="allclasses_navbar_bottom">
  362. <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
  363. </ul>
  364. <div>
  365. <script type="text/javascript"><!--
  366. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  367. if(window==top) {
  368. allClassesLink.style.display = "block";
  369. }
  370. else {
  371. allClassesLink.style.display = "none";
  372. }
  373. //-->
  374. </script>
  375. </div>
  376. <div>
  377. <ul class="subNavList">
  378. <li>Summary:&nbsp;</li>
  379. <li>Nested&nbsp;|&nbsp;</li>
  380. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  381. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  382. <li><a href="#method_summary">Method</a></li>
  383. </ul>
  384. <ul class="subNavList">
  385. <li>Detail:&nbsp;</li>
  386. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  387. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  388. <li><a href="#method_detail">Method</a></li>
  389. </ul>
  390. </div>
  391. <a name="skip-navbar_bottom">
  392. <!-- -->
  393. </a></div>
  394. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  395. </body>
  396. </html>