[android-developers] Re: Interfacing android device with external device using bluetooth.
Ok thanks, I'll look into this. On Oct 10, 12:42 am, RichardC richard.crit...@googlemail.com wrote: I think I am correct in saying that this cannot be done using the Android SDK (or NDK). However, if you are building your own device then the AOSP groups may be of some help:http://source.android.com/community/index.html On Tuesday, October 9, 2012 8:34:06 PM UTC+1, Sunil Mishra wrote: I want to interface an external touch screen device (e.g. monitor) with android device. What are the requirements to accomplish this? How should I proceed on the work? Any reference materials? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Interfacing android device with external device using bluetooth.
I want to interface an external touch screen device (e.g. monitor) with android device. What are the requirements to accomplish this? How should I proceed on the work? Any reference materials? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to update a widget from data passed from activity
Hi, I have written a sample widget with text view. I added onClickListener Event on the widget, that opens my activity. Now how to update the widget, when the activity is finished? I want to pass data from activity to widget. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to update a widget from data passed from activity
Hi, I want the following feature. When I click on the widget, an activity having a edittextview is displayed, now user type in that and clicks on save, the content which he typed needs to be displayed on the widget. I am able to see the contents, but it is not displayed instantly. It is updated after some time. On May 26, 12:29 pm, TreKing treking...@gmail.com wrote: On Sat, May 26, 2012 at 2:05 AM, Sunil Mishra suniljmis...@gmail.comwrote: I want to pass data from activity to widget. You don't pass data to a widget. It's a shell. It just shows something. You do your logic in your Activity or Service, then update the look of the widget to reflect the state of the data. The concept shown here applies:http://developer.android.com/guide/topics/appwidgets/index.html#Updat... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to update a widget from data passed from activity
I just want, that once i close the activity, the data i entered in edittext should appear on the widget. I dont know how much time it actually takes, but it does not show the message immediately On May 26, 2:11 pm, TreKing treking...@gmail.com wrote: On Sat, May 26, 2012 at 3:49 AM, Sunil Mishra suniljmis...@gmail.comwrote: I am able to see the contents, but it is not displayed instantly. It is updated after some time. What is some time? What are you doing now? What have you tried? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView Problem
Hi, I am trying to load http://www.google.com in webview in emulator. But it is unable to load the same. When i try the same with browser, it works fine! Please help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView Problem
@Sumeet and Narendra Yes i have given the permission in manifest. No error is coming, the webview is unable to load the page! The code is WebView webView = (WebView) findViewById(R.id.webView1); webView.setWebViewClient(new webviewclient()); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(http://www.google.com;); public class webviewclient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub view.loadUrl(url); return true; } } On Nov 14, 2:32 pm, sumeet gupta gupt.sum...@gmail.com wrote: Hi Sunil Have u given the permission to your app for using internet in menifest? Sumeet On Mon, Nov 14, 2011 at 2:53 PM, Sunil Mishra suniljmis...@gmail.comwrote: Hi, I am trying to loadhttp://www.google.comin webview in emulator. But it is unable to load the same. When i try the same with browser, it works fine! Please help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sumeet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView Problem
I think the problem may be in proxy settings..:( On Nov 15, 9:38 am, sumeet gupta gupt.sum...@gmail.com wrote: Hey Suneel.. I have tried ur exact code,and it is working fine. Here is the link of code .http://www.zshare.net/download/96129810662dde22/ Sumeet On Tue, Nov 15, 2011 at 9:51 AM, Sunil Mishra suniljmis...@gmail.comwrote: @Sumeet and Narendra Yes i have given the permission in manifest. No error is coming, the webview is unable to load the page! The code is WebView webView = (WebView) findViewById(R.id.webView1); webView.setWebViewClient(new webviewclient()); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(http://www.google.com;); public class webviewclient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub view.loadUrl(url); return true; } } On Nov 14, 2:32 pm, sumeet gupta gupt.sum...@gmail.com wrote: Hi Sunil Have u given the permission to your app for using internet in menifest? Sumeet On Mon, Nov 14, 2011 at 2:53 PM, Sunil Mishra suniljmis...@gmail.com wrote: Hi, I am trying to loadhttp://www.google.cominwebview in emulator. But it is unable to load the same. When i try the same with browser, it works fine! Please help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sumeet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sumeet -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to find devices which are connected to a network?
Hi, I want to know the ip address of the devices which are present in the network. Is there any way to do that? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
Because i want the contents of my phone to be shared, i am able to do that. Only thing i need is to design the html page that i am sending with css. I am unable to use any images in the html page. On Nov 11, 12:12 pm, Miguel Morales therevolti...@gmail.com wrote: Why not have the HTTP server on the PC and use the Android device as a client? You'll probably have to post code, logs, etc to get better help. At least explain, in much better detail, your issue. On Thu, Nov 10, 2011 at 10:56 PM, Sunil Mishra suniljmis...@gmail.comwrote: I want to share the contents across the network, so i developed the server. Any clue on how to fix my problem? On Nov 11, 9:38 am, Zsolt Vasvari zvasv...@gmail.com wrote: You have developed your own web server? Why? On Nov 11, 12:32 pm, Sunil Mishra suniljmis...@gmail.com wrote: @TreKing - I have developed the server in Android itself. And i am accessing that via PC's Web browser. On Nov 11, 12:39 am, TreKing treking...@gmail.com wrote: On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra suniljmis...@gmail.comwrote: I have developed a HTTP web server and sending HTML files. But now i am trying to use images for background in the html page. But it is not able to load the html file with proper background image. Any idea how to resolve this? What does this have to do with Android? ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
li { border: none; } a img { border:none; } .clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; } /style /head body !-- top wrapper -- div id=topWrapper div id=topBanner/div /div div id=topnav ul li id=current style=border:none a href= shape=rectHome/a /li li a href=/about shape=rectAbout/a /li li a href=/dir shape=rectBrowse Content/a /li /ul /div !-- end top wrapper -- div id=wrapper div id=bg div id=header/div div id=page !-- begin container -- div id=container !-- content -- div id=content div id=center div id=welcome h3Welcome/h3 pSome Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text /p /div /div /div !-- end content -- /div !-- end container -- /div div id=footerWrapper div id=footer p style=padding-top:10px /p /div /div /div /div /body /html In the above file i am using url('images/css/topBanner.jpg'); where the image is in the raw-images-css folder. I am unable to load this file. On Nov 11, 1:34 pm, Miguel Morales therevolti...@gmail.com wrote: That's not detailed at all, very bad explanation. Again, you'll have to post code, logs, etc. On Fri, Nov 11, 2011 at 12:28 AM, Sunil Mishra suniljmis...@gmail.comwrote: Because i want the contents of my phone to be shared, i am able to do that. Only thing i need is to design the html page that i am sending with css. I am unable to use any images in the html page. On Nov 11, 12:12 pm, Miguel Morales therevolti...@gmail.com wrote: Why not have the HTTP server on the PC and use the Android device as a client? You'll probably have to post code, logs, etc to get better help. At least explain, in much better detail, your issue. On Thu, Nov 10, 2011 at 10:56 PM, Sunil Mishra suniljmis...@gmail.com wrote: I want to share the contents across the network, so i developed the server. Any clue on how to fix my problem? On Nov 11, 9:38 am, Zsolt Vasvari zvasv...@gmail.com wrote: You have developed your own web server? Why? On Nov 11, 12:32 pm, Sunil Mishra suniljmis...@gmail.com wrote: @TreKing - I have developed the server in Android itself. And i am accessing that via PC's Web browser. On Nov 11, 12:39 am, TreKing treking...@gmail.com wrote: On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra suniljmis...@gmail.comwrote: I have developed a HTTP web server and sending HTML files. But now i am trying to use images for background in the html page. But it is not able to load the html file with proper background image. Any idea how to resolve this? What does this have to do with Android? ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
Can you give me example on how to do the same for the following line: background-image:url('images/css/topBanner.jpg'); //a line of home.html We cannot directly replace that with 'file://android_asset/raw/images/ css/topBanner.jpg' On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user the following path: file://android_asset/file_path.png If you are downloading these files dynamically, then simply change the file:// path. On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra suniljmis...@gmail.comwrote: home.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleODMS/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / style type = text/css html { background: #d2d2d2; margin:0 0 0 -1px; padding:0; overflow-Y: scroll; } body { padding:0; margin :0; display:table; width:100%; } body { color:#606060; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-transform: normal; } p { letter-spacing: normal; line-height: 1.7em; } h1 { color:#505050; font-size:22px; margin:25px 0 10px 0; clear:both; } h2 { color:#505050; font-size:20px; margin:20px 0 10px 0; clear:both; } h3 { color:#505050; font-size:18px; margin:20px 0 5px 0; clear:both; } a:link, a:visited { color:#9B251B; text-decoration:none; } a:hover { color:#fa720a; text-decoration:underline; } #wrapper { background: transparent url( images/css/page-vbg.jpg ) repeat-y scroll 50% 0px; margin:0 auto ; width:100%; } body { background-color:#d2d2d2; } #wrapper { border-top: 1px solid #ff; } #topWrapper { width:100%; height:240px; background-color:${topWrapper.bg.color}; background-image:url(images/css/topWrapper-bg.jpg); background-position:center top ; background-repeat:repeat-x; } #topBanner { width:960px; margin:0 auto; height:240px; background-image:url('images/css/topBanner.jpg'); background-repeat:no-repeat; } #topnav { background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav { height:40px; margin:0 auto ; text-align:center; } #topnav ul { display:table; margin:0 auto; padding:0; list-style-type:none; position:relative; height:40px; text-transform:uppercase; font-size:12px; font-family:Arial,sans-serif; } #topnav ul li { display:block; float:left; margin:0; padding:0; background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav ul li a { display:block; float:left; color:#eeb7b7; text-decoration:none; padding:0px 50px ; line-height:40px; font-weight:bold; } #topnav ul li a:hover, #topnav li#current a { color:#FF; background:transparent url('images/css/hmenu-sel.jpg') repeat-x top left; } #topnav ul { width:960px; } body { background-position : center 280px; } #bg { margin:0 auto; padding:0; background:transparent ; background-image:url(images/css/hat.jpg); background-repeat:no-repeat; background-position: center top ; } #header { margin: 0 auto; min-height:30px; height: 30px; width: 960px; } #page { background: transparent url( images/css/page-bg.jpg ) no-repeat center top; } #container { margin:0 auto; width:960px; } #content { width:940px; margin:0 auto ; text-align:left; min-height:400px; } #content p { text-align:justify; } #footerWrapper { margin:0 auto; height:180px; padding:0; background:transparent url( images/css/footerWrapper-bg.jpg ) no- repeat scroll center top; } #footer { margin:0 auto; padding:0; width:960px; height:100px; } #footer { color:#CC; text-align:center; } #footer a:link, #footer a:visited { color:#EE; } #footer a:hover{ color:#FF; text
[android-developers] Re: Urgent help required
The images are in res-raw-images-css On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user the following path: file://android_asset/file_path.png If you are downloading these files dynamically, then simply change the file:// path. On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra suniljmis...@gmail.comwrote: home.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleODMS/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / style type = text/css html { background: #d2d2d2; margin:0 0 0 -1px; padding:0; overflow-Y: scroll; } body { padding:0; margin :0; display:table; width:100%; } body { color:#606060; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-transform: normal; } p { letter-spacing: normal; line-height: 1.7em; } h1 { color:#505050; font-size:22px; margin:25px 0 10px 0; clear:both; } h2 { color:#505050; font-size:20px; margin:20px 0 10px 0; clear:both; } h3 { color:#505050; font-size:18px; margin:20px 0 5px 0; clear:both; } a:link, a:visited { color:#9B251B; text-decoration:none; } a:hover { color:#fa720a; text-decoration:underline; } #wrapper { background: transparent url( images/css/page-vbg.jpg ) repeat-y scroll 50% 0px; margin:0 auto ; width:100%; } body { background-color:#d2d2d2; } #wrapper { border-top: 1px solid #ff; } #topWrapper { width:100%; height:240px; background-color:${topWrapper.bg.color}; background-image:url(images/css/topWrapper-bg.jpg); background-position:center top ; background-repeat:repeat-x; } #topBanner { width:960px; margin:0 auto; height:240px; background-image:url('images/css/topBanner.jpg'); background-repeat:no-repeat; } #topnav { background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav { height:40px; margin:0 auto ; text-align:center; } #topnav ul { display:table; margin:0 auto; padding:0; list-style-type:none; position:relative; height:40px; text-transform:uppercase; font-size:12px; font-family:Arial,sans-serif; } #topnav ul li { display:block; float:left; margin:0; padding:0; background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav ul li a { display:block; float:left; color:#eeb7b7; text-decoration:none; padding:0px 50px ; line-height:40px; font-weight:bold; } #topnav ul li a:hover, #topnav li#current a { color:#FF; background:transparent url('images/css/hmenu-sel.jpg') repeat-x top left; } #topnav ul { width:960px; } body { background-position : center 280px; } #bg { margin:0 auto; padding:0; background:transparent ; background-image:url(images/css/hat.jpg); background-repeat:no-repeat; background-position: center top ; } #header { margin: 0 auto; min-height:30px; height: 30px; width: 960px; } #page { background: transparent url( images/css/page-bg.jpg ) no-repeat center top; } #container { margin:0 auto; width:960px; } #content { width:940px; margin:0 auto ; text-align:left; min-height:400px; } #content p { text-align:justify; } #footerWrapper { margin:0 auto; height:180px; padding:0; background:transparent url( images/css/footerWrapper-bg.jpg ) no- repeat scroll center top; } #footer { margin:0 auto; padding:0; width:960px; height:100px; } #footer { color:#CC; text-align:center; } #footer a:link, #footer a:visited { color:#EE; } #footer a:hover{ color:#FF; text-decoration:none; } #right { width:200px; padding:10px 20px 20px 20px; float:left; } #center { width:660px; padding:10px 20px 20px 20px
[android-developers] Re: Urgent help required
I tried changing background-image:url('images/css/topBanner.jpg') to background-image:url(file://android_asset/raw/images/css/ topBanner.jpg' ) but it still not working. On Nov 11, 4:20 pm, Miguel Morales therevolti...@gmail.com wrote: They sure are. On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra suniljmis...@gmail.comwrote: The images are in res-raw-images-css On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user the following path: file://android_asset/file_path.png If you are downloading these files dynamically, then simply change the file:// path. On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra suniljmis...@gmail.com wrote: home.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleODMS/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / style type = text/css html { background: #d2d2d2; margin:0 0 0 -1px; padding:0; overflow-Y: scroll; } body { padding:0; margin :0; display:table; width:100%; } body { color:#606060; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-transform: normal; } p { letter-spacing: normal; line-height: 1.7em; } h1 { color:#505050; font-size:22px; margin:25px 0 10px 0; clear:both; } h2 { color:#505050; font-size:20px; margin:20px 0 10px 0; clear:both; } h3 { color:#505050; font-size:18px; margin:20px 0 5px 0; clear:both; } a:link, a:visited { color:#9B251B; text-decoration:none; } a:hover { color:#fa720a; text-decoration:underline; } #wrapper { background: transparent url( images/css/page-vbg.jpg ) repeat-y scroll 50% 0px; margin:0 auto ; width:100%; } body { background-color:#d2d2d2; } #wrapper { border-top: 1px solid #ff; } #topWrapper { width:100%; height:240px; background-color:${topWrapper.bg.color}; background-image:url(images/css/topWrapper-bg.jpg); background-position:center top ; background-repeat:repeat-x; } #topBanner { width:960px; margin:0 auto; height:240px; background-image:url('images/css/topBanner.jpg'); background-repeat:no-repeat; } #topnav { background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav { height:40px; margin:0 auto ; text-align:center; } #topnav ul { display:table; margin:0 auto; padding:0; list-style-type:none; position:relative; height:40px; text-transform:uppercase; font-size:12px; font-family:Arial,sans-serif; } #topnav ul li { display:block; float:left; margin:0; padding:0; background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav ul li a { display:block; float:left; color:#eeb7b7; text-decoration:none; padding:0px 50px ; line-height:40px; font-weight:bold; } #topnav ul li a:hover, #topnav li#current a { color:#FF; background:transparent url('images/css/hmenu-sel.jpg') repeat-x top left; } #topnav ul { width:960px; } body { background-position : center 280px; } #bg { margin:0 auto; padding:0; background:transparent ; background-image:url(images/css/hat.jpg); background-repeat:no-repeat; background-position: center top ; } #header { margin: 0 auto; min-height:30px; height: 30px; width: 960px; } #page { background: transparent url( images/css/page-bg.jpg ) no-repeat center top; } #container { margin:0 auto; width:960px; } #content { width:940px; margin:0 auto ; text-align:left; min-height:400px; } #content p { text-align:justify; } #footerWrapper { margin:0 auto
[android-developers] Re: Urgent help required
@Kostya Thanks for pointing that out! But i am still unable to load the image. I placed the image in assets folder and trying to access that using background-image:url(file:///android_asset/topBanner.jpg); but unable to do so... On Nov 11, 4:41 pm, Kostya Vasilyev kmans...@gmail.com wrote: raw != assets 11.11.2011 15:27, Sunil Mishra пишет: I tried changing background-image:url('images/css/topBanner.jpg') to background-image:url(file://android_asset/raw/images/css/ topBanner.jpg' ) but it still not working. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
As a workaround i tried storing the image in app_images folder in sdcard and trying to provide the url of that path. But still the issues exists. Is there any other work around possible?? And do you have any clue On Nov 11, 5:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Sunil, You should not have developed your http server, but utilise some OSS project that does that. Your links to images or any other resource are relative to the context of that web page (or web application) running within your web server. wwwroot - websiteA -images -topWrapper-bg.jpg - ... -css -javascript - websiteB - websiteC -index.html To achieve this, your server has to do translation from URL 'images/topWrapper-bg.jpg' to a file path within your storage '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'. Without this, you are dead in the water. Just use ready, mature and testes OSS HTTP server written in Java. Here is one option. Just package it into your application. It is only 4kB: http://www.jibble.org/miniwebserver/ Daniel On 11 November 2011 11:27, Sunil Mishra suniljmis...@gmail.com wrote: I tried changing background-image:url('images/css/topBanner.jpg') to background-image:url(file://android_asset/raw/images/css/ topBanner.jpg' ) but it still not working. On Nov 11, 4:20 pm, Miguel Morales therevolti...@gmail.com wrote: They sure are. On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra suniljmis...@gmail.comwrote: The images are in res-raw-images-css On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user the following path: file://android_asset/file_path.png If you are downloading these files dynamically, then simply change the file:// path. On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra suniljmis...@gmail.com wrote: home.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleODMS/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / style type = text/css html { background: #d2d2d2; margin:0 0 0 -1px; padding:0; overflow-Y: scroll; } body { padding:0; margin :0; display:table; width:100%; } body { color:#606060; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-transform: normal; } p { letter-spacing: normal; line-height: 1.7em; } h1 { color:#505050; font-size:22px; margin:25px 0 10px 0; clear:both; } h2 { color:#505050; font-size:20px; margin:20px 0 10px 0; clear:both; } h3 { color:#505050; font-size:18px; margin:20px 0 5px 0; clear:both; } a:link, a:visited { color:#9B251B; text-decoration:none; } a:hover { color:#fa720a; text-decoration:underline; } #wrapper { background: transparent url( images/css/page-vbg.jpg ) repeat-y scroll 50% 0px; margin:0 auto ; width:100%; } body { background-color:#d2d2d2; } #wrapper { border-top: 1px solid #ff; } #topWrapper { width:100%; height:240px; background-color:${topWrapper.bg.color}; background-image:url(images/css/topWrapper-bg.jpg); background-position:center top ; background-repeat:repeat-x; } #topBanner { width:960px; margin:0 auto; height:240px; background-image:url('images/css/topBanner.jpg'); background-repeat:no-repeat; } #topnav { background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav { height:40px; margin:0 auto ; text-align:center; } #topnav ul { display:table; margin:0 auto; padding:0; list-style-type:none; position:relative; height:40px; text-transform:uppercase; font-size:12px; font-family:Arial,sans-serif; } #topnav ul li { display:block; float:left; margin:0; padding:0; background:transparent url('images/css/hmenu.jpg') repeat-x top
[android-developers] Re: Urgent help required
@skink and @Dainel According to me URL translation is like follows 1. Read the html file before sending 2. Grab the relative url 3. Convert it to absolute url 4. Write the html file with the converted absolute url Please correct me if i am going wrong. Or provide me a link which explains about URL translation. On Nov 11, 6:51 pm, skink psk...@gmail.com wrote: On Nov 11, 2:43 pm, Sunil Mishra suniljmis...@gmail.com wrote: As a workaround i tried storing the image in app_images folder in sdcard and trying to provide the url of that path. But still the issues exists. Is there any other work around possible?? And do you have any clue On Nov 11, 5:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Daniel already gave you an answer: To achieve this, your server has to do translation from URL 'images/ topWrapper-bg.jpg ' to a file path within your storage '/yourstorage/ yourwebserver/ wwwroot/webisteA/ images/ topWrapper-bg. jpg'. pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
@IcedNet You mean to say, i must put all the html, css and images in the assets folder. Right? On Nov 11, 6:52 pm, IcedNet d...@icednet.info wrote: treat the assets folder as / (root) for your server, put it all in there... On Nov 11, 8:43 am, Sunil Mishra suniljmis...@gmail.com wrote: As a workaround i tried storing the image in app_images folder in sdcard and trying to provide the url of that path. But still the issues exists. Is there any other work around possible?? And do you have any clue On Nov 11, 5:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Sunil, You should not have developed your http server, but utilise some OSS project that does that. Your links to images or any other resource are relative to the context of that web page (or web application) running within your web server. wwwroot - websiteA -images -topWrapper-bg.jpg - ... -css -javascript - websiteB - websiteC -index.html To achieve this, your server has to do translation from URL 'images/topWrapper-bg.jpg' to a file path within your storage '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'. Without this, you are dead in the water. Just use ready, mature and testes OSS HTTP server written in Java. Here is one option. Just package it into your application. It is only 4kB: http://www.jibble.org/miniwebserver/ Daniel On 11 November 2011 11:27, Sunil Mishra suniljmis...@gmail.com wrote: I tried changing background-image:url('images/css/topBanner.jpg') to background-image:url(file://android_asset/raw/images/css/ topBanner.jpg' ) but it still not working. On Nov 11, 4:20 pm, Miguel Morales therevolti...@gmail.com wrote: They sure are. On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra suniljmis...@gmail.comwrote: The images are in res-raw-images-css On Nov 11, 3:38 pm, Miguel Morales therevolti...@gmail.com wrote: That's better, most likely you'll want to put your html/images in the res folder and then user the following path: file://android_asset/file_path.png If you are downloading these files dynamically, then simply change the file:// path. On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra suniljmis...@gmail.com wrote: home.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en head titleODMS/title meta http-equiv=Content-Type content=text/html; charset=utf-8 / style type = text/css html { background: #d2d2d2; margin:0 0 0 -1px; padding:0; overflow-Y: scroll; } body { padding:0; margin :0; display:table; width:100%; } body { color:#606060; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; font-style: normal; font-weight: normal; text-transform: normal; } p { letter-spacing: normal; line-height: 1.7em; } h1 { color:#505050; font-size:22px; margin:25px 0 10px 0; clear:both; } h2 { color:#505050; font-size:20px; margin:20px 0 10px 0; clear:both; } h3 { color:#505050; font-size:18px; margin:20px 0 5px 0; clear:both; } a:link, a:visited { color:#9B251B; text-decoration:none; } a:hover { color:#fa720a; text-decoration:underline; } #wrapper { background: transparent url( images/css/page-vbg.jpg ) repeat-y scroll 50% 0px; margin:0 auto ; width:100%; } body { background-color:#d2d2d2; } #wrapper { border-top: 1px solid #ff; } #topWrapper { width:100%; height:240px; background-color:${topWrapper.bg.color}; background-image:url(images/css/topWrapper-bg.jpg); background-position:center top ; background-repeat:repeat-x; } #topBanner { width:960px; margin:0 auto; height:240px; background-image:url('images/css/topBanner.jpg'); background-repeat:no-repeat; } #topnav { background:transparent url('images/css/hmenu.jpg') repeat-x top left; } #topnav
[android-developers] Re: Urgent help required
@Daniel Thanks! I'l try on this and get back to you if i have any doubt. Thanks once again! On Nov 11, 7:43 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 11 November 2011 14:23, Sunil Mishra suniljmis...@gmail.com wrote: @skink and @Dainel According to me URL translation is like follows 1. Read the html file before sending 2. Grab the relative url 3. Convert it to absolute url 4. Write the html file with the converted absolute url Please correct me if i am going wrong. Or provide me a link which explains about URL translation. Not quite. Have a look here:http://en.wikipedia.org/wiki/Web_server#Path_translation URL translation happens for every HTTP request. User at the browser knows only URL. Http server knows how to translate the URL to a file on a file system, in order to serve it back to the client. Http server serves a web page as is. No URL rewriting here. It is the browser, that upon receiving of a given page, in subsequent requests demands all referenced resources (images, css, js, ...). In those subsequent requests, server has to translate every URL to the path of a file, that the user requested. That is it. Daniel On Nov 11, 6:51 pm, skink psk...@gmail.com wrote: On Nov 11, 2:43 pm, Sunil Mishra suniljmis...@gmail.com wrote: As a workaround i tried storing the image in app_images folder in sdcard and trying to provide the url of that path. But still the issues exists. Is there any other work around possible?? And do you have any clue On Nov 11, 5:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Daniel already gave you an answer: To achieve this, your server has to do translation from URL 'images/ topWrapper-bg.jpg ' to a file path within your storage '/yourstorage/ yourwebserver/ wwwroot/webisteA/ images/ topWrapper-bg. jpg'. pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Urgent help required
Hi, I have developed a HTTP web server and sending HTML files. But now i am trying to use images for background in the html page. But it is not able to load the html file with proper background image. Any idea how to resolve this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
@TreKing - I have developed the server in Android itself. And i am accessing that via PC's Web browser. On Nov 11, 12:39 am, TreKing treking...@gmail.com wrote: On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra suniljmis...@gmail.comwrote: I have developed a HTTP web server and sending HTML files. But now i am trying to use images for background in the html page. But it is not able to load the html file with proper background image. Any idea how to resolve this? What does this have to do with Android? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Urgent help required
I want to share the contents across the network, so i developed the server. Any clue on how to fix my problem? On Nov 11, 9:38 am, Zsolt Vasvari zvasv...@gmail.com wrote: You have developed your own web server? Why? On Nov 11, 12:32 pm, Sunil Mishra suniljmis...@gmail.com wrote: @TreKing - I have developed the server in Android itself. And i am accessing that via PC's Web browser. On Nov 11, 12:39 am, TreKing treking...@gmail.com wrote: On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra suniljmis...@gmail.comwrote: I have developed a HTTP web server and sending HTML files. But now i am trying to use images for background in the html page. But it is not able to load the html file with proper background image. Any idea how to resolve this? What does this have to do with Android? ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Play content of phone on PC browser
Hi Diego, I have developed a server app, so that we can access the contents of the phone from any connected device using web browser. Currently i am testing with PC's web-browser. So could you please help in that context? On Nov 3, 9:43 pm, Diego Torres Milano dtmil...@gmail.com wrote: Mount the device using USB connector and the access the files using file:// schema. On Nov 3, 12:45 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi Summers, I am trying to play the content of phone in PC's Web browser. I am able to list down the contents that are available on the phone, but the URI associated with those content is of content:// type. And PC's Web browser is unable to understand that protocol. On Nov 2, 5:47 pm, Summers Pittman ℝ second...@gmail.com wrote: Why is it urgent? When you ask about the web browser, are you referring to the phone's web browser or the web browser on a PC playing content off the phone? Why can't you play media from the application listing files? Summers Pittman Phone:912 293 2314 Java is my crack. On Wed, Nov 2, 2011 at 6:11 AM, Sunil Mishra suniljmis...@gmail.com wrote: Hi, I have developed a app that lists all the available media files on the phone. But i am unable to play that content on web browser. Any way to do this? Please help, its urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: project regarding m.tech
Can you explain in little detail what you want to achieve? On Nov 3, 2:49 pm, Hirdesh Agrawal in.hird...@gmail.com wrote: i would like to design hardware crypto module for android os for bluetooth connection... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Showing notification dialog over a incoming call
Hi, The log - 11-02 11:25:57.706: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 11-02 11:25:57.706: ERROR/AndroidRuntime(339): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@44e7d968 is not valid; is your activity running? 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.ViewRoot.setView(ViewRoot.java:505) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.Window$LocalWindowManager.addView(Window.java:424) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.Dialog.show(Dialog.java:241) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.motorola.EzeeTransferActivity $1.onCallStateChanged(EzeeTransferActivity.java:63) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.telephony.PhoneStateListener $2.handleMessage(PhoneStateListener.java:319) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:99) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:521) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method) On Oct 26, 7:36 am, gjs garyjamessi...@gmail.com wrote: Hi, Examine or post console log showing the error. Regards On Oct 25, 8:10 pm,SunilMishrasuniljmis...@gmail.com wrote: Hi, I have written a code to display a dialog box when a incoming call arrives, but it crashes. It is working fine when done by only displaying message using Toast. Please Help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Showing notification dialog over a incoming call
Thanks Francisco for the explanation. Is there any possibility of doing so? any work around? On Nov 2, 11:18 am, Francisco Dalla Rosa soares soa...@argo.bz wrote: when a call comes, your activity goes to background and the phone app's activity becomes active. You're trying to show a dialog that is tied to a activity that's not running at the moment, thus the error. Toasts don't have these strong ties to the activity showing them. that's why it works. 2011/11/2 Sunil Mishra suniljmis...@gmail.com Hi, The log - 11-02 11:25:57.706: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 11-02 11:25:57.706: ERROR/AndroidRuntime(339): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@44e7d968 is not valid; is your activity running? 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.ViewRoot.setView(ViewRoot.java:505) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.Window$LocalWindowManager.addView(Window.java:424) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.Dialog.show(Dialog.java:241) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.motorola.EzeeTransferActivity $1.onCallStateChanged(EzeeTransferActivity.java:63) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.telephony.PhoneStateListener $2.handleMessage(PhoneStateListener.java:319) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:99) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:521) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method) On Oct 26, 7:36 am, gjs garyjamessi...@gmail.com wrote: Hi, Examine or post console log showing the error. Regards On Oct 25, 8:10 pm,SunilMishrasuniljmis...@gmail.com wrote: Hi, I have written a code to display a dialog box when a incoming call arrives, but it crashes. It is working fine when done by only displaying message using Toast. Please Help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 株式会社アルゴ ARGO Inc. 〒130-0012 東京都墨田区太平3-11-10 NTKオオノビル8階 ソアレス フランシスコ ( Soares Francisco ) Mail : soa...@argo.bz HP :http://www.argo.bz/ TEL:03-5619-4511 FAX:03-5619-4512 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Play content of phone on PC browser
Hi, I have developed a app that lists all the available media files on the phone. But i am unable to play that content on web browser. Any way to do this? Please help, its urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Showing notification dialog over a incoming call
Hi Vinay, I tried the same application that is given in that link, but i am unable to produce the results. Can u please cross check whether it is working or not. On Nov 2, 3:18 pm, vinay kumar mj vinay.andr...@gmail.com wrote: Hi Sunil, I think you should use BroadcastReceiver API for this.Below link may helpfull. http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broad... Hi Sunil, I think you should use BroadcastReceiver API for this. 2011/11/2 Sunil Mishra suniljmis...@gmail.com Thanks Francisco for the explanation. Is there any possibility of doing so? any work around? On Nov 2, 11:18 am, Francisco Dalla Rosa soares soa...@argo.bz wrote: when a call comes, your activity goes to background and the phone app's activity becomes active. You're trying to show a dialog that is tied to a activity that's not running at the moment, thus the error. Toasts don't have these strong ties to the activity showing them. that's why it works. 2011/11/2 Sunil Mishra suniljmis...@gmail.com Hi, The log - 11-02 11:25:57.706: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 11-02 11:25:57.706: ERROR/AndroidRuntime(339): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@44e7d968 is not valid; is your activity running? 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.ViewRoot.setView(ViewRoot.java:505) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.view.Window$LocalWindowManager.addView(Window.java:424) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.Dialog.show(Dialog.java:241) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.motorola.EzeeTransferActivity $1.onCallStateChanged(EzeeTransferActivity.java:63) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.telephony.PhoneStateListener $2.handleMessage(PhoneStateListener.java:319) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:99) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:521) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-02 11:25:57.706: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method) On Oct 26, 7:36 am, gjs garyjamessi...@gmail.com wrote: Hi, Examine or post console log showing the error. Regards On Oct 25, 8:10 pm,SunilMishrasuniljmis...@gmail.com wrote: Hi, I have written a code to display a dialog box when a incoming call arrives, but it crashes. It is working fine when done by only displaying message using Toast. Please Help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 株式会社アルゴ ARGO Inc. 〒130-0012 東京都墨田区太平3-11-10 NTKオオノビル8階 ソアレス フランシスコ ( Soares Francisco ) Mail : soa...@argo.bz HP :http://www.argo.bz/ TEL:03-5619-4511 FAX:03-5619-4512 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Showing notification dialog over a incoming call
Hi arnouf, Is it possible to call a activity using the example given in the link.? On Nov 2, 5:10 pm, arnouf arnaud.far...@gmail.com wrote: When you say that you're unable to produce the results...what happens exactly. Did you set good permission and action to catch in your AndroidManifest xml file ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Play content of phone on PC browser
Hi Summers, I am trying to play the content of phone in PC's Web browser. I am able to list down the contents that are available on the phone, but the URI associated with those content is of content:// type. And PC's Web browser is unable to understand that protocol. On Nov 2, 5:47 pm, Summers Pittman ℝ second...@gmail.com wrote: Why is it urgent? When you ask about the web browser, are you referring to the phone's web browser or the web browser on a PC playing content off the phone? Why can't you play media from the application listing files? Summers Pittman Phone:912 293 2314 Java is my crack. On Wed, Nov 2, 2011 at 6:11 AM, Sunil Mishra suniljmis...@gmail.com wrote: Hi, I have developed a app that lists all the available media files on the phone. But i am unable to play that content on web browser. Any way to do this? Please help, its urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Check whether media player is playing media or not
Thanks Robert and Mark, the suggestion given by Robert is working fine!! On Oct 25, 10:36 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 25, 2011 at 1:27 AM, Sunil Mishra suniljmis...@gmail.com wrote: I want to check whether inbuilt media player is active and playing media or not. Any sample code for that? First, this is a list for development with the Android SDK. MediaPlayer is a class in the Android SDK. Referring to other things as media player will just confuse those trying to help you. Second, there is no single inbuilt media player, to use your terminology. There are hundreds of Android devices. There will be many inbuilt media player applications as a result. You are welcome to try isMusicActive() on AudioManager, as was suggested previously, though I have no idea if that really works. Beyond that, AFAIK, the expectation is that your applications should be using the audio-focus capabilities of AudioManager to interact smoothly with other apps that may be playing audio. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Showing notification dialog over a incoming call
Hi, I have written a code to display a dialog box when a incoming call arrives, but it crashes. It is working fine when done by only displaying message using Toast. Please Help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to view a pdf file?
Hi, If u have any application installed for viewing pdf file then you can use its intent to view the pdf in your application. For more reference : http://stackoverflow.com/questions/3831019/how-to-read-a-pdf-in-android On Oct 24, 12:02 pm, kalandar kasimk...@gmail.com wrote: dear friends, I need to view a pdf file in my application. Is any widget there for showing pdf in android. Or if any other way to do this... please let me know that... Regards Kalandar . N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Check whether media player is playing media or not
Hi, Is there any api through which we can figure out whether media player is currently playing any media or not? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onCallStateChanged(int state, String number)
Hi, can you describe about other 2 cases and what you mean by that? On Oct 24, 5:38 pm, ch andrei.comand...@gmail.com wrote: Hi, I observed an undocumented behavior of the method PhoneStateListener.onCallStateChanged(int state, String incomingNumber). When the method is called on a new ringing call the incommingNumber is provided, but in the other 2 cases the number is missing!! My question is: Is this the default behavior (and the issue is in documentation) or is a bug in my platform? Test was made on Nexus One upgrade 2.3.6. Tanks for your time! Regards Andrei. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Check whether media player is playing media or not
Can i use MediaPlayer as a static object? On Oct 24, 6:57 pm, Jeremy Dagorn jeremy.dag...@gmail.com wrote: Hi, http://developer.android.com/reference/android/media/MediaPlayer.html... MediaPlayer.isPlaying()? On Oct 24, 9:23 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi, Is there any api through which we can figure out whether media player is currently playing any media or not? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Check whether media player is playing media or not
But doing so, will it create a new media player instance or it will be able to fetch the current ongoing session? I want to check whether inbuilt media player is active and playing media or not. Any sample code for that? On Oct 24, 8:42 pm, Studio LFP studio@gmail.com wrote: You can't use MediaPlayer.isPlaying() as a static method as it is an instanced method. You can have the MediaPlayer instance you create/use be in a static variable and work with it from there. Steven Studio LFPhttp://www.studio-lfp.com On Monday, October 24, 2011 9:38:39 AM UTC-5, Sunil Mishra wrote: Can i use MediaPlayer as a static object? On Oct 24, 6:57 pm, Jeremy Dagorn jeremy...@gmail.com wrote: Hi, http://developer.android.com/reference/android/media/MediaPlayer.html... MediaPlayer.isPlaying()? On Oct 24, 9:23 am, Sunil Mishra sunilj...@gmail.com wrote: Hi, Is there any api through which we can figure out whether media player is currently playing any media or not? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onCallStateChanged(int state, String number)
Hi, i think for idle it will not give any phone number, just imagine how can u get phone no on a idle phone? For the off-hook mode you can catch the phone number into a variable when phone call state changes to phone ringing and then try working with the phone no. On Oct 24, 6:52 pm, ch andrei.comand...@gmail.com wrote: Hi Sunil, As far as i know the onCallStateChanged callback is called when a phone call state is changed (ringing,offhook and idle). On the callback is called for ringing, the phone number is provided for offhook and idle, the phone number is empty. Andrei On Oct 24, 4:24 pm, Sunil Mishra suniljmis...@gmail.com wrote: Hi, can you describe about other 2 cases and what you mean by that? On Oct 24, 5:38 pm, ch andrei.comand...@gmail.com wrote: Hi, I observed an undocumented behavior of the method PhoneStateListener.onCallStateChanged(int state, String incomingNumber). When the method is called on a new ringing call the incommingNumber is provided, but in the other 2 cases the number is missing!! My question is: Is this the default behavior (and the issue is in documentation) or is a bug in my platform? Test was made on Nexus One upgrade 2.3.6. Tanks for your time! Regards Andrei. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Two emulators communicate via Http
Hi, Your emulator's local IP will be 10.0.2.15 Now you need to do a port forwarding. For that do the following 1) Open cmd 2) telnet localhost 5554(emulator's no) 3) redir add tcp:portno u whish:port no of application 4) Then try browsing from web browser of pc using localhost:port Enjoy.!! On Sat, Oct 22, 2011 at 5:05 AM, Weikang Wan weikang@gmail.com wrote: Hi Sunil, Good suggestions! What would be the mapping IP of emulator from PC browser? Thanks. On Oct 21, 4:15 am, Sunil Mishra suniljmis...@gmail.com wrote: Try accessing your andriod server from web browser of PC. If it works fine, then it will work in the field also. On Oct 21, 4:49 am, Weikang Wan weikang@gmail.com wrote: I want to set up an XML RPC server and a method call client on android OS 2.3; my first step is to implement an HTTP server on android 2.3. I have implemented an Http server as an android service which can be started successfully. To test it, I made a simple Http handler that response to the request and direct to a home page and I created a simple Activity to test sending the request. Then I launch the application fromemulatorand go to open a browser and type:http://10.0.2.15:8080, the home page successfully showed up. But I do not know how to send http request toemulatorwhich holds the http server from anotheremulatorsince I don't know the IP address of thatemulator. For now, I do not have a real android device. Thanks. On Oct 20, 3:41 pm, lbendlin l...@bendlin.us wrote: what are you actually trying to achieve? Do you have the option to try this with at least one real device? Also be aware that many mobile operators use deep NATting so your real device may not even have a useful IP address. -- Thanks and Regards, Sunil Mishra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Two emulators communicate via Http
Try accessing your andriod server from web browser of PC. If it works fine, then it will work in the field also. On Oct 21, 4:49 am, Weikang Wan weikang@gmail.com wrote: I want to set up an XML RPC server and a method call client on android OS 2.3; my first step is to implement an HTTP server on android 2.3. I have implemented an Http server as an android service which can be started successfully. To test it, I made a simple Http handler that response to the request and direct to a home page and I created a simple Activity to test sending the request. Then I launch the application from emulator and go to open a browser and type:http://10.0.2.15:8080, the home page successfully showed up. But I do not know how to send http request to emulator which holds the http server from another emulator since I don't know the IP address of that emulator. For now, I do not have a real android device. Thanks. On Oct 20, 3:41 pm, lbendlin l...@bendlin.us wrote: what are you actually trying to achieve? Do you have the option to try this with at least one real device? Also be aware that many mobile operators use deep NATting so your real device may not even have a useful IP address. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Streaming Audio From Web
Hi, I am trying to play a audio mp3 file which is stored on web String url = http://;; // your URL here MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(url); mediaPlayer.prepare(); // might take long! (for buffering, etc) mediaPlayer.start(); i am not able to play the content, can anyone help me out -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Streaming Audio From Web
the link i am using is the link of internet radio, and it is streaming the radio On Oct 18, 6:08 pm, MComputing Lab mobilecomputing...@gmail.com wrote: Are you sure that the audio file on the server is being streamed? On 18 Oct 2011 15:09, Sunil Mishra suniljmis...@gmail.com wrote: Hi, I am trying to play a audio mp3 file which is stored on web String url = http://;; // your URL here MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(url); mediaPlayer.prepare(); // might take long! (for buffering, etc) mediaPlayer.start(); i am not able to play the content, can anyone help me out -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Open media file in web server
Hi, I am currently developing a web server, and i want to play the content on phone in the browser of PC. Is there any way to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTTP Request Handler
Thanks Anil. On Oct 11, 11:47 am, Anil Jagtap anil.so...@gmail.com wrote: Dear Sunil, I have wrote something like following http://pastebin.com/6tX9UHQS Is that what you want? On Oct 10, 2:16 pm, Sunil Mishra suniljmis...@gmail.com wrote: Can any one please provide me an example of HTTP Request Handler. Please its urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTTP Request Handler
Can any one please provide me an example of HTTP Request Handler. Please its urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Serversocket is not working
Hi, I tried to create a serversocket, but it is throwing IOException. How to solve this issue? The code is: try { ServerSocket ss = new ServerSocket(port); TextView tv = (TextView)findViewById(R.id.status); tv.setText(Server Started); ss.setReuseAddress(true); while(isRunning){ try { Socket socket = ss.accept(); tv.setText(Connection Accepted); } catch (IOException e) { tv.setText(IOException 1); e.printStackTrace(); } } }catch (IOException e) { // TODO Auto-generated catch block TextView tv = (TextView)findViewById(R.id.status); tv.setText(Could not listen on port: + port); e.printStackTrace(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can Wifi be enabled on emulator?
Hi, I am trying to develop a wifi application, but when i try to turn on the wifi via code or directly through emulator, it shows error. Any fixes available for this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] USB driver for Pendrive
Can i attach my pen drive and access data from it through a android mobile? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] webview touch problem
Hi All, I am writing ebookReader for Android using webview. I am using Iframe to separate the number of chapters. My problem is : while i am scrolling the webview and after that i touch the screen to stop scrolling, then after i click on the menu button(TOC) to open the div for Table of contents(TOC), then TOC div is not opening. if i scroll the webview again slightly then TOC Div is opened. my problem is mainly focus towards spontaneous touch of webview? and after that clicked on menu button. There is no mistakes in javascripts. Javascript code has been tested on major browser like Chrome,FF,IE and opera. So, please guide me what i did mistakes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UNCOMPRESS_DATA_MAX problem
Hi All, I am trying to load a file using resource. my file size is more than 1mb. res/raw : contains a file named abc_fb2 . but i am getting UNCOMPRESS_DATA_MAX error in catlog. as per my google, i found that there might be asset.h file , which we need to change. with some more value like 3*1024*1024 so kindly if any body suggest me that how to download the source code of android1.5 sdk. in i will be able to change. thanks in advanced. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---