[android-developers] passing same frame to another activity
hi all , we are playing rtsp video in a recycler view. on double click we are starting another activity to show the same in full screen, but the requirement is that the same frame should emlarge in the new activity, how to pass the entire adapter to another activity so that the video resumes as is ? Thanks jgs -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a6c3010c-53b1-44a6-a8a0-58f2dc7485e4%40googlegroups.com.
[android-developers] rtsp app memory related issue debug help
Dear Experts, We are making an android app to display RTSP videos (multiple at a time). We are using recycler view to display 2 x 2 and 2 x 3 videos scrollable horizentally. this works just fine. but when we display 2 videos and keep switching between different controls the application crashes. this is the single biggest blocker for releasing the application. is there a way we can run the video player (VXG) in a non blocking UI thread so that the application does not hang or crash ? how to attach this problem ? any suggestions are welcome please. If internet bandwidth is more, performance is slightly better. we have also observed in the instruments that there is enough RAM. thanks jgs -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/2f835d35-58ff-4f1c-a73c-c5219b01be19%40googlegroups.com.
[android-developers] Re: Accuracy of location API
we are trying to collect a set of lat long pairs using locationmanager and compute area sorrounded by it. we are just collecting the lat long as is and passing them to compute area using SphericalUtil.computeArea(list) how accurate the result should be ? we find that the result has upto 60 % variance against actual area of the field we are walking. please suggest remedies. On Monday, February 19, 2018 at 8:24:33 AM UTC+5:30, Jags wrote: > > Dear Android experts, > > We are trying to use location apis to walk around a field and measure it's > area. The results are hardly accurate. How accurate the normal location > APIs of the android sdk are ? Our calculation varies from 20% to 80% on > some occasions. > > What is the surest way of accurately finding area of a field ? apps like > ola and uber so accurately and consistently find locations, I wonder if > they use more sophisticated apis. > > regards > jags > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/ee0f1eb8-5cb6-4baa-9982-ebda92399e08%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android aar
hi all, we are trying to develop a set of common functionalities into .aar in android project. We have a concern that, can we access data from database attached in the main application bundle ? Does android limit and persistent storage functions for .aar type of projects ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7bf9c1d9-9aa2-4b48-af8f-8da6f0b37a7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] dot matrix code
Dear Android experts, We use mobile vision sdk for scanning qr codes. all works fine, all qr codes scan. But there are some older dot matrix code which does not scan. the absurdity is some of them scan with a time delay, and some dont scan at all. we tried zxing sdk, but that though scanned with a delay, it gave wrong results (1 was the result !) . What is the best way to cover all types of code to scan ? regards jags -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a96346cb-3c8f-4ec6-beef-93fdaf5efbfe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Accuracy of location API
Dear Android experts, We are trying to use location apis to walk around a field and measure it's area. The results are hardly accurate. How accurate the normal location APIs of the android sdk are ? Our calculation varies from 20% to 80% on some occasions. What is the surest way of accurately finding area of a field ? apps like ola and uber so accurately and consistently find locations, I wonder if they use more sophisticated apis. regards jags -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9762726b-ca25-4e86-8ad7-c4d518ec2ff0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] ADFS and native mobile application
Hi All, I am trying to do effective ADFS 2.0 authentication using SAML in my android app ? (I need android and iOs both, in fact) To provide a perspective, our app authenticates with ADFS 2.0 using a link https://sts.mycompany.com/adfs/ls/Idpinitiatedsignon.aspx?logintoRP=https://mydemo.azurewebsites.net/. This actually presents an html page provided by adfs server asing for credentials and after submit we decipher the server response to collect SAML token to send to our webservice. Our webservice has a way to authenticate saml token with ADFS and then gives ios app with proper response. If our service gives ios app 401 unauthorized status, we prompt user to re-login using webview. Mostly this happens when user changes his password. This works, but is it the right way ? We tried to do it using a custom native login, but adfs server did not give SAML token, when we asked experts, we got an opinion that ADFS login presentation mechanism should not be tampered with. The problem is, the html page is not a great user experience. iOS / Android mail application connects to office 365 mail (MS Exchange probably) and asks for login using a native UI, and asks for re-login in certain intervals, which gives a smooth and seamless experience. Is it possible to achieve same in our scenario ? My assumption is Mail app connects to exchange server through using exchange protocol. If Exchange is bound to ADFS, that binding / authentication happens between exchange server and ADFS. Is my assumption correct ? Our limitation is we want to achieve this using ADFS 2.0 & SAML only. To Summeraize, the problem statement is: *Rather than improving the current HTML login form the objective was to try to provide an integrated login with mobile app prepopulated with the user email to be used only on password reset every 40 days, this is how it works for iPhone / Android email on O365 and we are looking for a similar approach for a coherent and seamless user experience* *t* *N* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/0aacc47c-a782-4627-abee-fefb0ef52350%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] scalability testing
Hi all, I need to do a scalability testing and code review on a project developed by another organization. Please guide me with tools and ways to do it -TYIA jags -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/b6237804-2e22-4a46-b2c8-c22ddeed063d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: reminders when timezone change
Again, the flollowing post says a broadcastreceiver if defined in manifest, can wake up the application , does this apply to android.intent. action.TIMEZONE_CHANGED also ? http://stackoverflow.com/questions/18237517/android-broadcast-receiver-not-waking-up-application-when-registered-dynamically On Monday, May 16, 2016 at 4:56:50 PM UTC+5:30, Jags wrote: > > Hi All, > > In my android app, I set different set of reminders. > > When timezone of the device changes, I need to get some notification in my > application so that I can make necessary changes, is it possible ? which > api / broadcast caters to this ? > > regards > jags > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/6ca29d3c-8055-4d39-901e-ddbecf46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: reminders when timezone change
Ok, here is a bit more information on what I want. I understand broadcast receiver android.intent.action.TIMEZONE_CHANGED is fired when timezone change occurs on device. But that does not wake my application, if my application is in killed state (entirely stopped, not even in background). Is there a way I can find when last timezone was changed when I run my application again ? On Monday, May 16, 2016 at 4:56:50 PM UTC+5:30, Jags wrote: > > Hi All, > > In my android app, I set different set of reminders. > > When timezone of the device changes, I need to get some notification in my > application so that I can make necessary changes, is it possible ? which > api / broadcast caters to this ? > > regards > jags > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/b28cd76b-008f-49be-bfaa-36adfc3ab0d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] reminders when timezone change
Hi All, In my android app, I set different set of reminders. When timezone of the device changes, I need to get some notification in my application so that I can make necessary changes, is it possible ? which api / broadcast caters to this ? regards jags -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9f4c4ac8-6292-4bbc-b27b-f1bc2b478ba3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] https pinning example code
Hi All, I am getting data from https server as described below http://developer.android.com/training/articles/security-ssl.html#HttpsExample But I am asked to so certificate pinning in addition to that. Request any gentle sould to help me with some code snippets on how to do https pinning. Thanks and regards Jags -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] handling data migration in android application upgradation
Hi All, I need to implement data migration in my app. I have an sqlitedb which is synchronized to cloud. my problem is to find best way to handle data migration on app update. my questions are below. - does my existing data and database get deleted on app upgrade ? - is it possible to invoke a method on successful installation / upgrade ? - is it possible to bundle an empty db with app in playstore ? - is it possible to change the database schema of existing db or i need to create new db with new schema and migrate and delete old db ? - what is the best and google recommended way to handle this ? regards j -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] webview load page in background
thanks, is it the only way ? i can not put it as content, because, there is already a visible content (another list) i am replacing that content with webview when required. i am surprised why content is not rendered when the webview instance is not set as a content ! On Tuesday, September 22, 2015 at 12:15:33 AM UTC+5:30, TreKing wrote: > > > On Mon, Sep 21, 2015 at 2:07 AM, Jags <jag...@gmail.com > > wrote: > >> i see blank page, the page is not rendered. but when the setcontentview >> is called before loadurl, (i.e it is visible), the page loads and renders >> with a white flash. >> >> to avoid this white flas, i want to load it while it is not set as layout >> content. >> > > Leave it as the content but set it to INVISIBLE, then show it once the > content loads. > > > - > 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] webview load page in background
> > Thanks for showing interest. My question is, how to achieve this ? > when i try below approach webview objwv = new WebView(this); objwv.loadUrl("index.html"); and on button click, say setContentLayout(objwv); i see blank page, the page is not rendered. but when the setcontentview is called before loadurl, (i.e it is visible), the page loads and renders with a white flash. to avoid this white flas, i want to load it while it is not set as layout content. hope i am clear now. thanks and regards jagat -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] webview load page in background
Hi, i need a functionality, that webview (programmatically created) loads an html file from assets and renders (when not visible, i.e is not the current layout.) , i want the page rendered already, and only make it visible / setCurrentLayout on some event. thanks jags -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] sqlcipher help
hi all, I have inherited a legacy code which works well, but i need to implement sqlcipher into in. my app is for both android and ios, hence sqlite part is written in c++ which is also used by nadroid using JNI. hence i am unable to use ready to use library for ios and android as i use functions like sqlite3_open, sqlite3_exec. do i need to add all c++ files for sqlcipher and compile and use it ? is there a tutorial how to use it in c++ code ? regrds -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] webview loadurl oncreate
hi all, i use webview in my android app to be used later (on click of menu) the problem is, when i do loadurl, there is a flicker and delay. i wanted to load the url in the beginning, and only show the ebview when required (on click) when i do objWebView.loadUrl(help.html); inside oncreate of mainactivity, it does not load the page. if i do it on button click it loads properly, doing runOnUiThread also does not help. what is the correct way to load a page in the beginning and display later ? webview is not my initial contentview. thanks in advance -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] vh vw issue
hi all, in my android app i have a webview with some html ui. i use vh vw for controls, so that my ui scales proportionately for tabs. but problem is in text box when keyboard shows up, the entire page shrinks and when keyboard is hidden, controls are jumbled up. what is the way to stop this behaviour ? withot resizing page scrolling up is ok. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] webview affected by accessibility
hi all, i have a native application which contains some ui wrapped in webview. in galaxy s6, when i go to accessibility settings and change font size to small / large, text size in webview becomes small or large respectively. what are the ways to stop 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] same font different device
hi all, I need some font equivalence in ios and android (at least that's what is customer's requirement) I use following code to decide a font size for ios. UIFontDescriptor *bigDescriptor = [UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleHeadline]; UIFont *aFont = [UIFont fontWithDescriptor:bigDescriptor size:0]; CGFloat pointSize = fminf(fmaxf((aFont.pointSize * 1.1), 11), 56); // 12 returnFont = [UIFont fontWithName:@Avenir-roman size:pointSize]; I also use same font in android the list item label font is Avenir-roman 20dp now how is iphones pointwidth and androids dpi compared, is there any comparision available ? To give an example, in the above code I dont nderstand what the calculation line is intended for, as i inherited the code from somebody who is not traceable. But i figured out that pointSize comes as 17 in iphone or ipad and it is multiplied by 1.1 and a value of 18.7 is passed. the problem is, this looks bolder and wider than 20dp in android. pfa screen hsot for those who have an eye for detail. what can i do to match the fonts to make them near-exact Another related issue is quite strange. I use same font in html part of my ui in the application. in Android, native font does not change in size when size is changed from accessibility settings, but html view changes font size. In ios, it is reverse, native code font changes size with accessibility settings change, but html does not . I am perplexed how accesibility is defined ! thanks in advance -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] font size normalization
in my app i use title fonr size 18.7 in ios, my customer says in android same size font looks smaller than iphone in s6. which font type and size in android s6 will be closest matching in iphone ? iphone one is accepted by my customer as a standard to use. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] accessibility settings change my app
Hi All, There is a settings in accessibility section of android that reverse / invert colors. my app has some controls which have standard colors, which can't change , as they have semantic meaning, for example, signal stop red, signal careful - orange, signal ok-green my question is, how to make my app accessibility settings - independent ? do i get a notification in my app when accessibility settings are changed ? i understand this is android-only forum, but i also need same solution for ios too. regds jags -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] font resizing help
Hi All, I am using Avenir-Light.ttf font in my project which runs both in ios and android. The problem is font for same size looks smaller in android device. Also, in iPad font looks smaller than that of iphone. Do i need to viewport / pixel density based font size calculation implemented ? need a solution badly. thanks in advance -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] wakeup my app from bluetooth
; } } } } catch (IOException ex) { stopWorker = true; } } } }); workerThread.start();} void sendData() throws IOException{ String msg = myTextbox.getText().toString(); msg += \n; mmOutputStream.write(msg.getBytes()); myLabel.setText(Data Sent);} void closeBT() throws IOException{ stopWorker = true; mmOutputStream.close(); mmInputStream.close(); mmSocket.close(); myLabel.setText(Bluetooth Closed);}} activity end layout start - ?xml version=1.0 encoding=utf-8?RelativeLayout xmlns:android=http://schemas.android.com/apk/res/androidxmlns:tools=http://schemas.android.com/toolsandroid:layout_width=fill_parentandroid:layout_height=fill_parenttools:ignore=TextFields,HardcodedText; TextView android:id=@+id/label android:layout_width=fill_parent android:layout_height=wrap_content android:text=Type here: / EditText android:id=@+id/entry android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@id/label android:background=@android:drawable/editbox_background / Button android:id=@+id/open android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_below=@id/entry android:layout_marginLeft=10dip android:text=Open / Button android:id=@+id/send android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignTop=@id/open android:layout_toLeftOf=@id/open android:text=Send / Button android:id=@+id/close android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignTop=@id/send android:layout_toLeftOf=@id/send android:text=Close / layout end -- manifest start - /applicationuses-permission android:name=android.permission.BLUETOOTH / manifest end -- On Friday, June 26, 2015 at 7:23:15 PM UTC+5:30, mike digioia wrote: submit me On Wed, Jun 24, 2015 at 6:14 AM, Jags jag...@gmail.com javascript: wrote: Thanks a lot treking, I am using the code as is in the link below http://stackoverflow.com/questions/13450406/how-to-receive-serial-data-using-android-bluetooth now, data is getting transferred properly. But i need a entrypoint in my application when bluetooth is paired or sends some data, my application needs to wake up from closing state, so that i can do other transfers according to session. hope i am clear now regards jags On Monday, June 22, 2015 at 7:57:30 AM UTC+5:30, TreKing wrote: You should explain how you're going about to getting bluetooth data now (like with code snippets). You minimal description is too vague for anyone to really address. On Thu, Jun 18, 2015 at 4:19 AM, Jags jag...@gmail.com wrote: my current application is about reading data from a bluetooth device. when my application is in background, my application wakes up and receives data properly. But when the application is stopped by me from list of background apps, or the app has not run at all, the application does not wake up. Request experts to guide me to a solution approach. I want my application to wake up from stopped state when bluetooth pair happens or data is pushed from bluetooth. thanks and regards jags -- You received this message because you are subscribed to the Google Groups Android Developers group. -- - 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-d...@googlegroups.com javascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- 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
Re: [android-developers] wakeup my app from bluetooth
Thanks a lot treking, I am using the code as is in the link below http://stackoverflow.com/questions/13450406/how-to-receive-serial-data-using-android-bluetooth now, data is getting transferred properly. But i need a entrypoint in my application when bluetooth is paired or sends some data, my application needs to wake up from closing state, so that i can do other transfers according to session. hope i am clear now regards jags On Monday, June 22, 2015 at 7:57:30 AM UTC+5:30, TreKing wrote: You should explain how you're going about to getting bluetooth data now (like with code snippets). You minimal description is too vague for anyone to really address. On Thu, Jun 18, 2015 at 4:19 AM, Jags jag...@gmail.com javascript: wrote: my current application is about reading data from a bluetooth device. when my application is in background, my application wakes up and receives data properly. But when the application is stopped by me from list of background apps, or the app has not run at all, the application does not wake up. Request experts to guide me to a solution approach. I want my application to wake up from stopped state when bluetooth pair happens or data is pushed from bluetooth. thanks and regards jags -- You received this message because you are subscribed to the Google Groups Android Developers group. -- - 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] wakeup my app from bluetooth
my current application is about reading data from a bluetooth device. when my application is in background, my application wakes up and receives data properly. But when the application is stopped by me from list of background apps, or the app has not run at all, the application does not wake up. Request experts to guide me to a solution approach. I want my application to wake up from stopped state when bluetooth pair happens or data is pushed from bluetooth. thanks and regards jags -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] indoor maps
hi all, i am exploring to do indoor maps in my android app. i am ok if it does not sense any magnetic or electric devices. what i am interested in is, create an indoor map (such as a an office space with cubicles and conference rooms ) where all sections are identifiable through some unique coordinate and show navigation way programmatically i see that qgis does it , but how can that be programmed in android ? any other apps or tools which does not cost me should be good. ialso saw indoor atlas, but that saves data in cloud and hence am not comf Thanks and regards jagat -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Image captured from my app is rotated by default
Hi All, I tried to capture an image and send it to server in my app. I did that using camera intent. the problem is in my samsung galaxy s4 device the image is rotated -90 degree by default. I read around web that it is a problem with the samsung devices. But what is the best solution to it ? if i rotate the image after capture, it becomes heavy image processing in my app. What is the best approach to resolve this ? in phonegap there is something like correctOrientation = true / false what's its counterpart in native code ? thanks and regards jags -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] android app icon does not appear in airwatch
I am trying to publich my android app in airwatch. When uploading the apk in airwatch app icon is not displayed, but when I try for a app store apk, it appears in the panel. But my apk displays icon when installed through adb install in simulator or device. what might am i be doing wrong ? thanks in advance jagat -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] email attachment is not working !
i am trying to follow this link, http://stephendnicholas.com/archives/974#comment-295 i am trying to implement this, but i get a crash saying activity com.google.android.gm not found are you sure declared in manifest ? i am testing it in simulator, what should i do ? in my case i am able to send attachment from my simulator using action_send, but in device it does not work, hence i am looking for a solution if my package name is different, where should i change ? regards -- 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
Re: [android-developers] email attachment
thanks, i know it works, but this defeats the purpose What if the user does not have a external storage ? If i am able to save / preview a file, i should be able to send it to somebody, without requiring a sdcard On Friday, June 15, 2012 9:50:28 AM UTC+5:30, asheesh arya wrote: try to save your file into sd card and gave location of your file stored into sd card in the source code i provided its work fine for sd card. -- 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
Re: [android-developers] email attachment
thanks ashish, but i need something else, file in /data/data/mypackage/files/ to be sent as an attachment, it is mode_world_readable, but not attaching to the email ! On Thursday, June 14, 2012 2:36:14 PM UTC+5:30, asheesh arya wrote: this is the code sending e-mail with attachment import java.io.File; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class sendemail extends Activity { Button send; EditText address, subject, emailtext; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main11); send = (Button) findViewById(R.id.emailsendbutton); address = (EditText) findViewById(R.id.emailaddress); subject = (EditText) findViewById(R.id.emailsubject); emailtext = (EditText) findViewById(R.id.emailtext); final TextView tv = (TextView)findViewById(R.id.fileContent); send.setOnClickListener(new OnClickListener() { // TextView tv = (TextView)findViewById(R.id.fileContent); public void onClick(View v) { // TODO Auto-generated method stub if(!address.getText().toString().trim().equalsIgnoreCase()){ //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); File dir = Environment.getExternalStorageDirectory(); File file = new File(dir,download/phonedata.txt); if (file.exists()) try { Log.i(getClass().getSimpleName(), send task - start); final Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); emailIntent.setType(plain/text); //emailIntent.setType(application/octet-stream); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { address.getText().toString() }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject.getText()); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// + file)); Toast.makeText(sendemail.this, File successfully attached in your Mail!!!, Toast.LENGTH_LONG).show(); tv.setText(File Successfully attached in your mail!!!); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailtext.getText()); sendemail.this.startActivity(Intent .createChooser(emailIntent, Send mail...)); } catch (Throwable t) { Toast.makeText(sendemail.this, Request failed: + t.toString(), Toast.LENGTH_LONG).show(); } else { tv.setText(Sorry file doesn't exist!!!); Toast.makeText(sendemail.this, File not found in sd-cardPlease upload it from Server!!!, Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); } } else { Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show();} } }); } } -- 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] android build from command line
hi all, after struggling to install adt in eclipse and spending considerable time, i am trying to create a project from command line and build it. i could create a project but while building ant debug get following error BUILD FAILED D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :598: The following error occurred while executing this line: D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :627: null returned: 2 -- 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: android build from command line
i could dig further and see this error ERROR: Unknown option '--generate-dependencies' why would this come ? On Jun 14, 4:11 pm, Jags jag...@gmail.com wrote: hi all, after struggling to install adt in eclipse and spending considerable time, i am trying to create a project from command line and build it. i could create a project but while building ant debug get following error BUILD FAILED D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :598: The following error occurred while executing this line: D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :627: null returned: 2 -- 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] email attachment
i am creating some files in my /data/data/com.mypackage.org/files/ using openFileForOutput method. I am able to read that file using 3rd party activity from my app, now when i send this file as attachment i see the attachment being attached in the mail and sent, but when the email reaches, there is no attachment ! interestingly, it does not happen in simulator, it only hapens in the device, in simulator i get the file pretty perfectly. what could be the problem ? regds -- 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: email attachment
ok read about this http://stackoverflow.com/questions/6058245/email-attachment-not-successful-in-android is it still an issue ? if i dont have an sdcard what should i do ? even my file is also world_readable is there a temp folder which can be used to send attachment ? or may be read the file and send mail in the background not using native mail app ! On Wednesday, June 13, 2012 11:11:17 PM UTC+5:30, Jags wrote: i am creating some files in my /data/data/com.mypackage.org/files/ using openFileForOutput method. I am able to read that file using 3rd party activity from my app, now when i send this file as attachment i see the attachment being attached in the mail and sent, but when the email reaches, there is no attachment ! interestingly, it does not happen in simulator, it only hapens in the device, in simulator i get the file pretty perfectly. what could be the problem ? regds -- 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
Re: [android-developers] email attachment
Thanks mark, i do have my file created with mode_world_readable. Hence I am able to read it using pdf reader ! but email attachment is a problem ! On Wednesday, June 13, 2012 11:14:13 PM UTC+5:30, Mark Murphy (a Commons Guy) wrote: Third party apps cannot read the contents of your internal storage, by default. Either: - put the file on external storage, or - create the file with MODE_WORLD_READABLE, or - create a ContentProvider to serve up the file(s) and use content:// for your attachments On Wed, Jun 13, 2012 at 1:41 PM, Jags jag...@gmail.com wrote: i am creating some files in my /data/data/com.mypackage.org/files/using openFileForOutput method. I am able to read that file using 3rd party activity from my app, now when i send this file as attachment i see the attachment being attached in the mail and sent, but when the email reaches, there is no attachment ! interestingly, it does not happen in simulator, it only hapens in the device, in simulator i get the file pretty perfectly. what could be the problem ? regds -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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
Re: [android-developers] email attachment
and do you hv an example how to send private file content through contentprovider ? On Wednesday, June 13, 2012 11:46:23 PM UTC+5:30, Jags wrote: Thanks mark, i do have my file created with mode_world_readable. Hence I am able to read it using pdf reader ! but email attachment is a problem ! On Wednesday, June 13, 2012 11:14:13 PM UTC+5:30, Mark Murphy (a Commons Guy) wrote: Third party apps cannot read the contents of your internal storage, by default. Either: - put the file on external storage, or - create the file with MODE_WORLD_READABLE, or - create a ContentProvider to serve up the file(s) and use content:// for your attachments On Wed, Jun 13, 2012 at 1:41 PM, Jags jag...@gmail.com wrote: i am creating some files in my /data/data/com.mypackage.org/files/using openFileForOutput method. I am able to read that file using 3rd party activity from my app, now when i send this file as attachment i see the attachment being attached in the mail and sent, but when the email reaches, there is no attachment ! interestingly, it does not happen in simulator, it only hapens in the device, in simulator i get the file pretty perfectly. what could be the problem ? regds -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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: sdk offline installation problem
Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) Missing requirement: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found why would this error come time and again when trying to install adt offline ? On Jun 4, 4:11 pm, Jags jag...@gmail.com wrote: i posted one topic for offline sdk and could not further locate it, hence posting a new one. as sdk dload is forbidden , i tried getting parts of sdk and eclipse through mails and successfully built the android tools like eclpse 3.7.2 java 1.6 android-2.2_r03-linux (in fact all platfom, and eclipse recoginises with ono probs) now it seems ADT is a problem here. i installed ADT18 but it seems to be a mismatch. can i download older version ADT here ? if yes wheres download location ? ehats the ADT version ? jags -- 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] sdk offline installation problem
i posted one topic for offline sdk and could not further locate it, hence posting a new one. as sdk dload is forbidden , i tried getting parts of sdk and eclipse through mails and successfully built the android tools like eclpse 3.7.2 java 1.6 android-2.2_r03-linux (in fact all platfom, and eclipse recoginises with ono probs) now it seems ADT is a problem here. i installed ADT18 but it seems to be a mismatch. can i download older version ADT here ? if yes wheres download location ? ehats the ADT version ? jags -- 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] actiities cascaded
i ve 4 activities 1-2-3-4 after 4 submit i need 1 to be shown, but dont wanna come 4-3-2-1 need to come back to 1 straightaway. whats d best way ? -- 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] android sdk in another link
in my organization dl.google.com is blocked. and i cannot officially ask for a download, because that is not required in my current assignment. i was wondering if there is other way (somebody has put it in a zip format in their site which is not blocked here) of downloading sdk and learning android regds, -- 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
Re: [android-developers] android sdk in another link
that i do at home, i wanted to utilize some free time at office to research and learn On Wednesday, May 30, 2012 2:24:54 PM UTC+5:30, TreKing wrote: On Wed, May 30, 2012 at 3:08 AM, Jags jag...@gmail.com wrote: in my organization dl.google.com is blocked. ... is other way of downloading sdk ... Access the internets somewhere outside your organization ... ? - 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] email pdf attachment 0kb !
i have a pdf file in /data/data/mypkg/pdfs/myfile.pdf i am using this url debugged and saw it. it is world_readable (how to verify in adb shell, BTW) i use following code to send attachment but mail reaches with a pdf file attached with 0kb size what could be the issue ? i can adb pull and see it in my pc though private void emailPDF(String fullpath) { File pdfFile = new File(fullpath); if (pdfFile.exists()) { try { final Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); // String address = ; String subject = Please find attached the docs; String emailtext = Please find attached the docs; // emailIntent.setType(application/pdf); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { address }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); //emailIntent.putExtra(Intent.EXTRA_STREAM, //Uri.parse(file:// + fullpath)); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(pdfFile)); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailtext); this.startActivity(Intent.createChooser(emailIntent, Send mail...)); } catch (Throwable t) { Toast.makeText(this, Request failed: + t.toString(), Toast.LENGTH_LONG).show(); } } } -- 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: viewport size A4 ?
basically, i want to render html in A4 size, no matter what is the webview size. please help On Tuesday, May 8, 2012 7:27:36 PM UTC+5:30, Jags wrote: Hi All, I am trying to render a html page in WebView in my app, everything works fine, but the content is wraped arounf width of browser. But my requirement is that the content be rendered in A4 size even if i have to deal with horizontal and vertical screen. I tried meta tag with view port with width = 595 but it still it wraps around device width Can I get some suggestions please ? thanks and regards jags -- 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] viewport size A4 ?
Hi All, I am trying to render a html page in WebView in my app, everything works fine, but the content is wraped arounf width of browser. But my requirement is that the content be rendered in A4 size even if i have to deal with horizontal and vertical screen. I tried meta tag with view port with width = 595 but it still it wraps around device width Can I get some suggestions please ? thanks and regards jags -- 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] iText pdf
hi all, i am trying to use an existing pdf and modify some portions of it (texts only) like replace some text with my desired text programmatically in android. I could do it using iTextPdf but in a twisted manner, and the results are not as desired. What i did is saved the file as an html file and used the below mentined way to generate pdf. But here a lot of attributes like center aligned and bold and underlining etc went off, hence format gets distorted. http://www.dotnetexpertsforum.com/generating-a-pdf-file-with-the-html-content-in-android-t2407.html what i want is, copy the pdf page by page and draw text ABC at position 100, 200 page 1 with XYZ that would retain the original formats and give me desired result. At least that's how i did it in iPhone and it worked ! please point me to a few lines of code, so that it can be usefull regards jags -- 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] ArrayAdapter and AdapterView
I am using ArrayAdapter and AdapterView in one activity. Meaning, my base view is a gridview which uses BaseAdapter. i implement AdapterView.OnClickListener onClick method for knowing grid item selection. on grid item selection i show a dialog with listarrayadapter. now i need to have a function which item in the dialog was selected, which function i need to override ? regards jags -- 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] opening pdf in my projects' raw folder in droidreader or any pdf reader
hi all, i need to open a few pdf files in my app's res/raw folder in droidreader. i am able to launch droidreader now, but it says currently only file:// urls are supported. now, 1. can i represent my raw folder pdf file in file:// url ? how ? 2. can i send entire binary data into droidreader ? 3. can i copy my file in raw folder to a temp location and make a uri outa it and delete it after reading ? thanks in advance jags -- 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] reading pdf
after struggling through in-app pdf reading effort which did not give much result, i am inclined towards using http://stackoverflow.com/questions/2784847/how-do-i-determine-if-android-can-handle-pdf this solution. my 2 questions are 1. how can i read project-embedded files ? 2. what is the maximum size apk ? if a large file is there, it gives me error cannot install apk, not engsough space 3. can i join 2 apks and distribute as a single apk ? regards jags -- 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: reading pdf
thanks IV, but itextpdf does not extract image On Mar 3, 9:13 am, Indicator Veritatis mej1...@yahoo.com wrote: Please do not post essentially the same question under slightly different titles. It tends to attract trolls. As for how to read a PDF file, please see the answer I gave in the other thread on that. Use the same tutorial, but look further down: you are looking at the part where he is teaching how to write files, look where he teaches how to read them. On Wednesday, February 29, 2012 5:14:24 AM UTC-8, Jags wrote: hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorial http://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- 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: reading pdf
ok, somehow i could compile and make it run and it is giving me correct number of pages. Now, if you look at Vogella blog code, it gets an Image instance for 2nd page. but when i try to make it BitmapFactory.GetBitmap(instance.getRawBytes()) i get byte[] as null. getOriginalBytes also return Null ! what could be the reason ? On Feb 29, 6:14 pm, Jags jag...@gmail.com wrote: hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorialhttp://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- 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] reading pdf
hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorial http://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- 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] reading pdf in my android app
hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorial http://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- 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] reading pdf file in my android app
hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorial http://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- 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] uninstall apk in 3.0 simulator
i started with 3.0 simulator recently and big emulator for tablet opens up. here how can i go to settings ? where is menu icon ? the way we used to go in android simulator 2.2.1 is menu settings applications manage applications . what is the counterpart here ? secondly if i want to develop same code base for both phone and tablet how to approach ? regards jags -- 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] tabwidget not present in 3.2 ?
hi all, i am trying to do a tabbed view in android 3.2 i get following runtime error 02-22 11:31:26.487: W/dalvikvm(561): threadid=1: thread exiting with uncaught exception (group=0x40014760) 02-22 11:31:26.647: E/AndroidRuntime(561): FATAL EXCEPTION: main 02-22 11:31:26.647: E/AndroidRuntime(561): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.codrezheaven/ com.codrezheaven.tabbar}: android.view.InflateException: Binary XML file line #2: Error inflating class TABHOST 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1815) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1831) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread.access$500(ActivityThread.java:122) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.os.Handler.dispatchMessage(Handler.java:99) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.os.Looper.loop(Looper.java:132) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread.main(ActivityThread.java:4123) 02-22 11:31:26.647: E/AndroidRuntime(561): at java.lang.reflect.Method.invokeNative(Native Method) 02-22 11:31:26.647: E/AndroidRuntime(561): at java.lang.reflect.Method.invoke(Method.java:491) 02-22 11:31:26.647: E/AndroidRuntime(561): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:841) 02-22 11:31:26.647: E/AndroidRuntime(561): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 02-22 11:31:26.647: E/AndroidRuntime(561): at dalvik.system.NativeStart.main(Native Method) 02-22 11:31:26.647: E/AndroidRuntime(561): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class TABHOST 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:682) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.inflate(LayoutInflater.java:457) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.inflate(LayoutInflater.java:391) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.inflate(LayoutInflater.java:347) 02-22 11:31:26.647: E/AndroidRuntime(561): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 223) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.Activity.setContentView(Activity.java:1786) 02-22 11:31:26.647: E/AndroidRuntime(561): at com.codrezheaven.tabbar.onCreate(tabbar.java:14) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.Activity.performCreate(Activity.java:4397) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1048) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1779) 02-22 11:31:26.647: E/AndroidRuntime(561): ... 11 more 02-22 11:31:26.647: E/AndroidRuntime(561): Caused by: java.lang.ClassNotFoundException: android.view.TABHOST in loader dalvik.system.PathClassLoader[/data/app/com.codrezheaven-1.apk] 02-22 11:31:26.647: E/AndroidRuntime(561): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251) 02-22 11:31:26.647: E/AndroidRuntime(561): at java.lang.ClassLoader.loadClass(ClassLoader.java:540) 02-22 11:31:26.647: E/AndroidRuntime(561): at java.lang.ClassLoader.loadClass(ClassLoader.java:500) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.createView(LayoutInflater.java:542) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:627) 02-22 11:31:26.647: E/AndroidRuntime(561): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java: 66) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:644) 02-22 11:31:26.647: E/AndroidRuntime(561): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669) possible causes ? -- 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] add account error
i was folowing the c2dm tutorial and there to test in emulator i need to have a account in settings. i went to menu - settings - acount Sync - add account - filled my details and then next after some times it says checking incoming server settings with some progress and after some time setup could not finish. unable to open connection to server. in a message box and the button is edit details which brings me to account details screen. I have network in my simulator and i am able to browse sites in browser. what could be the problem ? secondly, if i test c2dm in device, then also i need to add this account ?ideally i would prefer it to be tested in simulator. thanks in advance jags -- 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] c2dm registration understanding
hi all, i am burning my hands with c2dm i am following vogella tutorial i see registration function has a function call startservice where is it defined ? how can i debug and see the failure reason for register ? my server side code is giving a proper auth token public void register(View view) { Log.w(C2DM, start registration process); Intent intent = new Intent(com.google.android.c2dm.intent.REGISTER); intent.putExtra(app, PendingIntent.getBroadcast(this, 0, new Intent(), 0)); // Sender currently not used intent.putExtra(sender, j...@gmail.com); startService(intent); } -- 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: c2dn on simulator ?
02-15 23:34:04.119: W/C2DM(599): start registration process 02-15 23:34:04.129: W/ActivityManager(74): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found 02-15 23:34:18.431: D/SntpClient(74): request time failed: java.net.SocketException: Address family not supported by protocol i see this as log when run on simulator i see no logs when run on device ! jags On Feb 1, 9:34 am, TreKing treking...@gmail.com wrote: On Tue, Jan 31, 2012 at 4:48 AM, Jags jag...@gmail.com wrote: is there any beginner tutorial for c2dm ? http://tinyurl.com/7egymyf --- -- 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: c2dn on simulator ?
ok, i replaced authentication code in authentication string in simpleclientactivity. did i do it right ? but still i get registration id as n/a ! regds jags On Feb 1, 9:34 am, TreKing treking...@gmail.com wrote: On Tue, Jan 31, 2012 at 4:48 AM, Jags jag...@gmail.com wrote: is there any beginner tutorial for c2dm ? http://tinyurl.com/7egymyf --- -- 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] c2dn on simulator ?
hi all, I am asked to do a c2dm feasibility, can I do it in simulator ? is there any beginner tutorial for c2dm ? regards -- 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] where are the applications in 2.2 simulator
I last worked on 1.6 in 2.2 when the big simulator opens, i could only scroll horizentally diferent screens, where to look 4 application ? my aplication builds but dont know how to run, pressing ctrl f5 it springs up simulator but never runs the app ! -- 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] javascript graphing
hi all, i need to render a thin client application in android browser. there, i need to draw a line graph. Is there any java script library sorts which will work for android browsers ? any examples ? jags -- 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: javascript graphing
thanks vinay, did you do java script graphing ? I need graphs drawn by javascript into the page in the browser On Feb 10, 7:58 pm, Vinay Julme vinayju...@gmail.com wrote: I don't know about Android Javscript lib. But I have made php sites and used javascript on it... And it worked fine on android phone web browser. On Thu, Feb 10, 2011 at 7:49 PM, Jags jag...@gmail.com wrote: hi all, i need to render a thin client application in android browser. there, i need to draw a line graph. Is there any java script library sorts which will work for android browsers ? any examples ? jags -- 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] data upload java script
I need a javascript snippet to upload some data to a server, any sample code ? basically what i need is a page loads and the java script loads as part of thet page. that page also puts some data in hidden value. (or suggest better alternative). now, as soon as the page loads completely, the javascript uploads the data in hidden variable to another web server. please give me some pointers and code snippets. i need it to run in android browser -- 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] galaxy usb driver
i lost my galaxy GT-I5700 cd. where can i download necessary usb drivers for windows xp ? jags -- 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: android bluetooth
Thanks a ton IV, I am happy as long as I get some relevant solution :) . 1. Beep, means I did not mean default handset beep. I meant in my custom application i play a sound. if my hedset is paired when i am playing the sound in my custom application using Mediaplayer class, will it be heard in my headset ? 2. will i be able to capture volume up/down key press in the headset in my application ? if yes how ? regards On Dec 24, 5:53 am, Indicator Veritatis mej1...@yahoo.com wrote: Yes, that is right. You did not get your point across properly. You are doing better in this post, though, despite the disappointing typo of '[oint' for 'point'. But if you do know that the beep is at headsets[sic] control, why you even asking where it is? That makes no sense. The truth of the matter is that the Bluetooth spec does not mandate the beep. The implementer may chose to do it in the headset software, as it is the only choice that makes sense: otherwise the user gets no audio feedback to know that pairing just happened. The only feedback that the Android application gets is that now the headset is listed in the list of bound devices returned by getBondedDevices(). That is, you can sense when the headset was paired by polling getBondedDevices(), but you cannot cause the beep, nor can you sense when the headset does its own beep. You can only rely on what the headset manufacturer chose to implement in their own Bluetooth code. On Dec 22, 9:52 pm,Jagsjag...@gmail.com wrote: thanks IV, I guess i could not put my [oint across properly. Beep is at headsets control, i know. Now when the headset is paired, and my custom application plays a beep, does it automatically beep in the headset or in the handset ? if it automatically beeps in the headset, good, if not what can i do in my custom app to make the beep heard in the headset ? more to that i also need to capture some keypress volume up and down from the headset in my application will I be able to do that in my application ? how ? documentation is not clear on this ! thanks and regards Jagat On Dec 17, 10:57 am, Indicator Veritatis mej1...@yahoo.com wrote: I don't know why this thread is getting spam, but I can offer a guess why you are not getting answers. Your questions seems to strongly imply you have not studied the basics of how to do Bluetooth (whether on Android or not). Specifically, the beep you are interested in controlling is under the headset's control: it is NOT controllable from Android. Nor should it be, so don't wait for it to be added in a future version. On Dec 16, 1:21 am,Jagsjag...@gmail.com wrote: is this message a spam ? Nobody is able to see my message or what ? dont get answers, only get spams posted in the forum ! On Dec 16, 11:03 am, hanika han...@securitywall.in wrote: hi Thanks Regards, cid:image002@01CA2AEF.10F60770 Vijay Patel Test Engineer Elitecore Technologies Ltd. 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA), Tel: +91-79-66065606 | HYPERLINK mailto:vijay.pa...@elitecore.comvijay.pa...@elitecore.com HYPERLINK http://www.cyberoam.comwww.cyberoam.com P Please do not print this email unless it is absolutely necessary. Spread environmental awareness. image001.jpg 2KViewDownload -- 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: android bluetooth
thanks IV, I guess i could not put my [oint across properly. Beep is at headsets control, i know. Now when the headset is paired, and my custom application plays a beep, does it automatically beep in the headset or in the handset ? if it automatically beeps in the headset, good, if not what can i do in my custom app to make the beep heard in the headset ? more to that i also need to capture some keypress volume up and down from the headset in my application will I be able to do that in my application ? how ? documentation is not clear on this ! thanks and regards Jagat On Dec 17, 10:57 am, Indicator Veritatis mej1...@yahoo.com wrote: I don't know why this thread is getting spam, but I can offer a guess why you are not getting answers. Your questions seems to strongly imply you have not studied the basics of how to do Bluetooth (whether on Android or not). Specifically, the beep you are interested in controlling is under the headset's control: it is NOT controllable from Android. Nor should it be, so don't wait for it to be added in a future version. On Dec 16, 1:21 am,Jagsjag...@gmail.com wrote: is this message a spam ? Nobody is able to see my message or what ? dont get answers, only get spams posted in the forum ! On Dec 16, 11:03 am, hanika han...@securitywall.in wrote: hi Thanks Regards, cid:image002@01CA2AEF.10F60770 Vijay Patel Test Engineer Elitecore Technologies Ltd. 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA), Tel: +91-79-66065606 | HYPERLINK mailto:vijay.pa...@elitecore.comvijay.pa...@elitecore.com HYPERLINK http://www.cyberoam.comwww.cyberoam.com P Please do not print this email unless it is absolutely necessary. Spread environmental awareness. image001.jpg 2KViewDownload -- 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: android bluetooth
is this message a spam ? Nobody is able to see my message or what ? dont get answers, only get spams posted in the forum ! On Dec 16, 11:03 am, hanika han...@securitywall.in wrote: hi Thanks Regards, cid:image002@01CA2AEF.10F60770 Vijay Patel Test Engineer Elitecore Technologies Ltd. 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA), Tel: +91-79-66065606 | HYPERLINK mailto:vijay.pa...@elitecore.comvijay.pa...@elitecore.com HYPERLINK http://www.cyberoam.comwww.cyberoam.com P Please do not print this email unless it is absolutely necessary. Spread environmental awareness. image001.jpg 2KViewDownload -- 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] galaxy sd card
hi all, i have a samsung galaxy gt-15700. i lost my micro sd card that came with d phone and when i try another pre existing card with my phone, it does not recognise. what could be the problem ? how to know if a micro sd card will work in my phone or not ? jags -- 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: android bluetooth
Can anybody please put some insight into how can I intercept bluetooth handsfree button press in my application ? regards Jags On Nov 29, 3:36 pm, Jags jag...@gmail.com wrote: I am using an handsfree bluetooth handset in ndroid device. i need to program the handsfree in my application. Firstly, when i create a beep sound it should be heard in handsfree. When i press some button (in fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the appropriate answer is received by my application is this possible ? how to do this ? regards -- 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] bluetooth handsfgree programming
I have a requirement. I want to be able to program handsfree for the android device. my application needs to display a periodic dialog, i want to be able to select yes/no from handsfree thanks Jags -- 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] android bluetooth
I am using an handsfree bluetooth handset in ndroid device. i need to program the handsfree in my application. Firstly, when i create a beep sound it should be heard in handsfree. When i press some button (in fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the appropriate answer is received by my application is this possible ? how to do this ? regards -- 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] android bluetooth
I am using an handsfree bluetooth handset in ndroid device. i need to program the handsfree in my application. Firstly, when i create a beep sound it should be heard in handsfree. When i press some button (in fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the appropriate answer is received by my application is this possible ? how to do this ? regards -- 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] dateformatter
i am trying to do Format formatter = new SimpleDateFormat(MM/dd E); like i wanna display 08/05 T {month/day dayofweek} but only 08/05 is displayed. Day is not displayed. how to do that ? -- 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] a list of a different kind
I want a listview, first of all i dont want selectable, just as a table display i wanna use it. second, i want custom drawing in it, like some cell yellow background, some cell red i also want variable height row. means row 1 might have 3 items row 2 might have 7 items. please point me to some examples where i can do this kind of work regards -- 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] view and subview
is there a way i can create a view and add some textviews into it ? programmatically ? any sample code ? regards -- 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] bitmap from a linear layout
Hi all, i have a layout like ll vertical ll horizental textview/textview textview/textview /ll ll horizental textview/textview textview/textview /ll /ll The problem is i need to display this as part of my whole screen. i am doing mCustomDrawableView = new CustomDrawableView((Context)this, R.drawable.mychart); setContentView(mCustomDrawableView); and on ondraw of my custom view i am drawing the bitmaps etc. The problem is how can I make above layout into a ibitmap, so that I can draw it in this custom drawing ? i need to do this because in the layout, one textview will have right aligned text which is difficult to do in custom drawing. jags -- 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: drawing lines on top of a image view
my custom view looks as below ___ package com.mypackage; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.widget.ImageView; public class CustomDrawableView extends ImageView { // private ShapeDrawable mDrawable; public int imageid = 0; ShapeDrawable bgDrawable = null; ListShapeDrawable ls = new ArrayListShapeDrawable(); final int COUNT_SUMMERY = 3; final int VERTICAL_OFFSET = 200; final int HORIZENTAL_OFFSET = 20; final int HORIZENTAL_GAP = 85; final int VERTICAL_Y_POINT = 15; final int VERTICAL_MAX_HEIGHT = 195; final int HORIZENTAL_WIDTH = 60; final int percentage[] = {25, 40, 35}; public CustomDrawableView(Context context, int id) { super(context); imageid = id; switch(id) { case R.drawable.summarychart: for(int i = 0; i COUNT_SUMMERY; i++) { int x = HORIZENTAL_OFFSET + (HORIZENTAL_GAP * i); int width = HORIZENTAL_WIDTH; int height = VERTICAL_MAX_HEIGHT * percentage[i] / 100; int y = VERTICAL_OFFSET + VERTICAL_Y_POINT + VERTICAL_MAX_HEIGHT - height; ShapeDrawable objDrawable = new ShapeDrawable(new RectShape()); int color = 0; switch(i) { case 0: color = Color.RED; break; case 1: color = Color.GREEN; break; case 2: color = Color.YELLOW; break; } objDrawable.getPaint().setColor(color); objDrawable.setBounds(x, y, x + width, y + height); ls.add(objDrawable); } break; default: break; } int x = 0; int y = 0; int width = 320; int height = 480; bgDrawable = new ShapeDrawable(new RectShape()); bgDrawable.getPaint().setColor(0x); bgDrawable.setBounds(x, y, x + width, y + height); } protected void onDraw(Canvas canvas) { /* // Draw the white background // bgDrawable.draw(canvas); // Draw the bitmaps Bitmap bmp = BitmapFactory.decodeResource(getResources(), imageid); canvas.drawBitmap(bmp, 0, VERTICAL_OFFSET, null); */// Draw bars super.onDraw(canvas); for(int i = 0; i COUNT_SUMMERY; i++) { ShapeDrawable objDrawable = ls.get(i); objDrawable.draw(canvas); } } } now i do in layout com.mypackage.CustomDrawableView android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/mychart / but in layout i see a message NoSuchMethodException:com.mypackage.CustomDrawableView.init(Android.context.Context, Android.util.AttributeSet) and while i run it crashes. if i uncomment the drawable way, then it works, but other layouts are not displayed. any help is appreciated thanksin advance jags ___ On Jul 13, 9:45 pm, Matty busbus...@gmail.com wrote: If you want to draw on top of an ImageView, I would extend it and override it's onDraw method. This provides you a [relative] canvas to draw on. Just be sure to call super.onDraw() if you want the image to show up also. On Jul 13, 11:23 am,Jagsjag...@gmail.com wrote: I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ?- 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
[android-developers] drawing lines on top of a image view
I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ? -- 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: device not recognised
where do i get a motorola driver from ? the usb_driver in sdk does not work, and my packet did not come with a cd ! On Jul 8, 7:00 pm, Kostya Vasilyev kmans...@gmail.com wrote: Jags, I am also using a Moto Milestone. Getting it to work requires two things: 1 - Set connection mode to Portal Tools in the phone, besides enabling usb debugging 2 - Install a Motorola driver -- Kostya 08.07.2010 17:33,Jagsпишет: Hi all I am trying to add my motorola milestone device into PC and debug in the device. When i put the usb cable, the device opens in data storage mode and opens the folder. But when i do a adb devices i dont see any device. i did the usb_driver fresh installation guide, but it returned windows could not find a better driver than currently installed I havd pointed to sdpath/usb_driver what's wrong and how to resolve this ? Thanks in advance Jags -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: device not recognised
where do i get a motorola driver from ? the usb_driver in sdk does not work, and my packet did not come with a cd ! On Jul 8, 7:00 pm, Kostya Vasilyev kmans...@gmail.com wrote: Jags, I am also using a Moto Milestone. Getting it to work requires two things: 1 - Set connection mode to Portal Tools in the phone, besides enabling usb debugging 2 - Install a Motorola driver -- Kostya 08.07.2010 17:33,Jagsпишет: Hi all I am trying to add my motorola milestone device into PC and debug in the device. When i put the usb cable, the device opens in data storage mode and opens the folder. But when i do a adb devices i dont see any device. i did the usb_driver fresh installation guide, but it returned windows could not find a better driver than currently installed I havd pointed to sdpath/usb_driver what's wrong and how to resolve this ? Thanks in advance Jags -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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] device not recognised
Hi all I am trying to add my motorola milestone device into PC and debug in the device. When i put the usb cable, the device opens in data storage mode and opens the folder. But when i do a adb devices i dont see any device. i did the usb_driver fresh installation guide, but it returned windows could not find a better driver than currently installed I havd pointed to sdpath/usb_driver what's wrong and how to resolve this ? Thanks in advance Jags -- 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] View Flipper doubt
I have a few doubts about view flipper I am using viewflipper to go to another view using scroll_left animation. i have kept 2 linearlayouts inside the ViewFlipper now i want 4 views like 1st view contains 3 btns. 1st btn click - 2nd view scrolls in - back pressed 1st view scrolls back 2nd btn click - 3rd view scrolls in - back pressed 1st view scrolls back 3rd btn click - 4th view scrolls in - back pressed 1st view scrolls back so, how am i going to arrange 4 linearlayouts to work in flipNext now ideally 2, 3, 4 views are in only second level of navigation. I want to draw a line, point or rectangle when 2, 3, 4 views come up, but they all are different shapes. So what would be the method to draw that ? Jags -- 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] my own app store ?
I have a requirement where either a browser based application will have hrefs to already existing google market apps, so that on click of that link my application opens up android market with particular application can it be done from a native app ? can i myself download a signed apk from other web site and independently install it to be shown up in launcher and run ? regards -- 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: data transfer from pc through usb
I was wondering if m post is visible in the forum :) On May 25, 1:48 pm, Jags jag...@gmail.com wrote: my android application needs to transfer some data from PC using usb and bluetooth, what are the feasibility and sample codes, if any ? --jgs -- 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 athttp://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] data transfer from pc through usb
my android application needs to transfer some data from PC using usb and bluetooth, what are the feasibility and sample codes, if any ? --jgs -- 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] internet connection in emulator
Hi all, I am trying to access internet through android emulator. I followed instructions from http://developer.android.com/guide/developing/tools/emulator.html#proxy and supplied same ip and port that i am using in my IE browser. Still public websites dont come up, like google.com.. my organisations' internal web pages come up properly though. What could be the problem ? Jags -- 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 develop in any phone ?
i am from afric. android phones have started selling here. if i buy a tattoo device [around 300$] i can use it for developing apps ? or devices which can be used for dev/debug apps are different from devices being sold in market ? -- 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: can develop in any phone ?
and debug ? is tattoo a g1 ? how come so cheap ? On Apr 19, 1:20 pm, Kumar Bibek coomar@gmail.com wrote: You can test out your apps on any phone. Tattoo has a different screen size than the normal sizes available. That might be a little problem for you if you are starting off. But from development point of view, there is no reason why you shouldn't be able to test your apps on a Tattoo. Thanks and Regards, Kumar Bibek On Apr 19, 12:34 pm, Jags jag...@gmail.com wrote: i am from afric. android phones have started selling here. if i buy a tattoo device [around 300$] i can use it for developing apps ? or devices which can be used for dev/debug apps are different from devices being sold in market ? -- 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 athttp://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 athttp://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] incoming sms filter
I hv a problem, I need some hints. I need to have my app receive certain kind of sms (say meant for my app). is it possible ? is it possible to receive all the sms in my app rather than default sms app ? how to config my app to receive sms ? please help with some links and stuff regards -- 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: incoming sms filter
Cant I receive sms directed to my android device in my application ? On Jan 28, 4:04 pm, Jags jag...@gmail.com wrote: I hv a problem, I need some hints. I need to have my app receive certain kind of sms (say meant for my app). is it possible ? is it possible to receive all the sms in my app rather than default sms app ? how to config my app to receive sms ? please help with some links and stuff regards -- 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: HttpServerConnection
Then whats for the class HttpServerConnection is there in the sdk ? regards On Jan 24, 3:52 pm, Jags jag...@gmail.com wrote: i see, it is apache, can we use it freely for commerical apps ? if i want to deploy an app of my choice, i will have to write a servelet and publish in jetty server, right ? regards On Jan 24, 10:36 am, lucky4me bakhtiyo...@gmail.com wrote: Seehttp://code.google.com/p/i-jetty/ On Jan 24, 10:27 am, Jags jag...@gmail.com wrote: ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi and gets a ip 192.169.2.3 i can hithttp://192.168.2.3inpcbrowser connected to same network and get a welcome page :) i know running a web server in a mobile device is weird, but it is just for curiosity purposes, also my minimal server should be able to receive get post requests from the browsrs, i hope i am more clearer now regards On Jan 24, 4:11 am, Brion Emde brione2...@gmail.com wrote: I don't know exactly what you are talking about. The full Apache HttpClient library is present, as well as the Java equivalent. Take a look at the Apache DefaultHttpClient here:http://developer.android.com/reference/org/apache/http/impl/client/pa... Also there is HttpGet and HttpPost and so on are all defined here: http://developer.android.com/reference/org/apache/http/client/methods... There are many examples of using these objects on the internet and in this group. On Jan 23, 8:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- 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: HttpServerConnection
i see, it is apache, can we use it freely for commerical apps ? if i want to deploy an app of my choice, i will have to write a servelet and publish in jetty server, right ? regards On Jan 24, 10:36 am, lucky4me bakhtiyo...@gmail.com wrote: Seehttp://code.google.com/p/i-jetty/ On Jan 24, 10:27 am, Jags jag...@gmail.com wrote: ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi and gets a ip 192.169.2.3 i can hithttp://192.168.2.3inpc browser connected to same network and get a welcome page :) i know running a web server in a mobile device is weird, but it is just for curiosity purposes, also my minimal server should be able to receive get post requests from the browsrs, i hope i am more clearer now regards On Jan 24, 4:11 am, Brion Emde brione2...@gmail.com wrote: I don't know exactly what you are talking about. The full Apache HttpClient library is present, as well as the Java equivalent. Take a look at the Apache DefaultHttpClient here:http://developer.android.com/reference/org/apache/http/impl/client/pa... Also there is HttpGet and HttpPost and so on are all defined here: http://developer.android.com/reference/org/apache/http/client/methods... There are many examples of using these objects on the internet and in this group. On Jan 23, 8:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- 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] HttpServerConnection
is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- 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: HttpServerConnection
ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi and gets a ip 192.169.2.3 i can hit http://192.168.2.3 in pc browser connected to same network and get a welcome page :) i know running a web server in a mobile device is weird, but it is just for curiosity purposes, also my minimal server should be able to receive get post requests from the browsrs, i hope i am more clearer now regards On Jan 24, 4:11 am, Brion Emde brione2...@gmail.com wrote: I don't know exactly what you are talking about. The full Apache HttpClient library is present, as well as the Java equivalent. Take a look at the Apache DefaultHttpClient here:http://developer.android.com/reference/org/apache/http/impl/client/pa... Also there is HttpGet and HttpPost and so on are all defined here: http://developer.android.com/reference/org/apache/http/client/methods... There are many examples of using these objects on the internet and in this group. On Jan 23, 8:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- 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: HttpServerConnection
ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi and gets a ip 192.169.2.3 i can hit http://192.168.2.3 in pc browser connected to same network and get a welcome page :) i know running a web server in a mobile device is weird, but it is just for curiosity purposes, also my minimal server should be able to receive get post requests from the browsrs, i hope i am more clearer now regards On Jan 24, 4:11 am, Brion Emde brione2...@gmail.com wrote: I don't know exactly what you are talking about. The full Apache HttpClient library is present, as well as the Java equivalent. Take a look at the Apache DefaultHttpClient here:http://developer.android.com/reference/org/apache/http/impl/client/pa... Also there is HttpGet and HttpPost and so on are all defined here: http://developer.android.com/reference/org/apache/http/client/methods... There are many examples of using these objects on the internet and in this group. On Jan 23, 8:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- 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] horizentally center aligned
i have this layout LinearLayout android:id=@+id/llcmd android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent android:layout_gravity=center_horizontal Button android:layout_height=wrap_content android:id=@+id/ viewEvtsDone android:layout_width=wrap_content android:text=Delete/Button Button android:layout_height=wrap_content android:id=@+id/ viewEvtsCancel android:layout_width=wrap_content android:text=Cancel/Button /LinearLayout I want these 2 buttons always appear centr aligned in the linearlayout. I dont want to use hard coded values (as it is upsetting the positions when orientation changes) How can i make it possible ? or is it not possible ? regards -- 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