Re: [android-developers] Re: Building user interfaces at runtime with layouts from server
Sorry, that was a bad link. It didn't talk about pull parsers, but rather DOM parsers. Here's a better one: http://stackoverflow.com/questions/5409940/android-xml-pull-parser-from-url On Sat, Jan 2, 2016 at 4:03 PM, Kristopher Micinski wrote: > What? No it doesn't: > > http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/ > > Kris > > > On Sat, Jan 2, 2016 at 12:30 PM, Luis Carlos Ramírez Rodríguez > wrote: >> The problem is that XmlPullParser requires for the XML definition to be >> present at the APK build-time. What we are striving to find is a solution so >> a remote server can feed data into the app, which the app in turn translates >> into views that were not defined anywhere in the app itself. >> >> >>> >>> I'm not sure what the problem is: the method to do this has been in >>> the API since level 1. >>> >>> > Viewinflate(XmlPullParser parser, ViewGroup root) >>> > Inflate a new view hierarchy from the specified xml node. >>> >>> Create an XmlPullParser, set the reader to one you've pointed at the >>> URI containing the content you want to read, and then use the view >>> inflater to build the view hierarchy. >>> >>> Kris >>> >>> >>> On Thu, Dec 31, 2015 at 1:58 PM, Luis Carlos Ramírez Rodríguez >>> wrote: >>> > >>> > It's been six years and I'm also looking for a solution to bind User >>> > Interface with layouts stored on a remote server and i was wondering if >>> > you >>> > ever managed to solve this issue >>> > >>> > Thanks. >>> > >>> > -Carlos >>> > >>> > El lunes, 23 de marzo de 2009, 1:10:22 (UTC-6), Daniel escribió: >>> >> >>> >> Hi all, >>> >> >>> >> Q: What is the recommended way to build user interfaces on the device >>> >> based on layouts provided by a server at runtime? >>> >> >>> >> I am aware of this: >>> >> http://developer.android.com/reference/android/view/ >>> >> LayoutInflater.html"> >>> >> For performance reasons, view inflation relies heavily on pre- >>> >> processing of XML files that is done at build time. Therefore, it is >>> >> not currently possible to use LayoutInflater with an XmlPullParser >>> >> over a plain XML file at runtime; it only works with an XmlPullParser >>> >> returned from a compiled resource (R.something file.) >>> >> >>> >> >>> >> I could imagine these possibilities: >>> >> - Parse XML by myself and build the ui tree. (Seems inappropriate to >>> >> me since there is already maintained code which is able to do this.) >>> >> >>> >> - Transform XML on server to a simpler format which is cheaper to >>> >> parse on the device. (Inappropriate as above.) >>> >> >>> >> - Preprocess the XML layout on the server the same way the build does. >>> >> Transmit it to the client, and then try to load it. But how? >>> >> android.content.res.XMLBlock is hidden (@hide) and I don't know how >>> >> to >>> >> classify the stuff in package com.android.layoutlib.bridge. >>> >> >>> >> Any help would be appreciated. >>> >> Daniel >>> >> >>> >> >>> >> >>> > -- >>> > 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-d...@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/c09b3558-e006-436c-a1dd-2b0266a2ba7f%40googlegroups.com. >>> > 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 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/9b4b2903-326b-4e36-bc42-f14833611189%40googlegroups.com. >> >> 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 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/CAF1Sy-HhKFbcf97wezf2VnsjnZ4Bkh3GLiUHEcpZ_by4jmwkag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Difference between swiping in all apps menu and pressing back to exit
Dismissing an app in the task switcher is the same as killing it. If your service comes back after that, then something started the process again. Maybe your service is "sticky" and got restarted. There is no guarantee your app's process can survive anything, so you should persist any changes that you do not want to be potentially lost. Doug On Wednesday, December 30, 2015 at 7:29:43 PM UTC-8, Nick Teo wrote: > > Hi all, > > I'm working on a messaging app that starts a service in the background > that will receive messages from a Pebble smartwatch and then send out an > sms message. Right at this moment, I'm trying to make it so that the > service is always running in the background so that the user can always > send texts even if the app isn't actually open. There is a private local > variable in the service that contains the contacts that the user can send > texts to. When I press the back button to exit the app after setting the > contacts, the list persists and when I open the app again, I see the > contacts. If I open up the all apps menu thing and swipe the app to exit > it, the list is destroyed, however, I know the service is still running (I > get Toasts from the service). I was under the impression that swiping the > app closed and pressing the back button are the same. Are they not? Is > there a way to make it so that the local variable is never destroyed as > long as the service is running? > -- 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/018f21c0-cdd0-4b30-a131-c3069c81e3b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android for Pi device tree configuration
I have an Adafruit Kippah that I have hooked up a to a 7" touchscreen display and my Raspberry Pi 2. When I first used the Kippah I had to make some device tree changes on the Raspbian OS in order for the display to function. Now that I have put the Android Lollipop build on my Pi I am trying to make the necessary device tree updates in order to get the display functioning again. Unfortunately, i have not been able to get this right. Attached is the changes that were made in the Raspbian device tree and the Android device tree .dtd file. Any help would be much appreciated. Thanks! -Tim -- 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/39e843f6-767e-4fc2-b03a-6a8a72b4c6a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. meson8_tm.dtd Description: Binary data overscan_left=-32 overscan_right=-32 overscan_top=-32 overscan_bottom=-32 # Disable spi and i2c, we need these pins. dtparam=spi=off dtparam=i2c_arm=off # enable the DPI display enable_dpi_lcd=1 display_default_lcd=1 # set up the hsync/vsync/clock polarity and format dpi_output_format=454661 # set up the size to 800x480 dpi_group=2 dpi_mode=87 hdmi_cvt=800 480 60 6
[android-developers] Ping out an interface Android 5.1
I have a installed a new interface 'eth0' on android. I know the hardware works, but I can never get ping requests to go out the interface. I run ping from an adb root shell, but the packets are not transmitted out the interface. I have turned off SELinux and iptables: setenforce 0 iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT 24: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 00:80:0f:11:70:00 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 7248 151 0 0 0 0 TX: bytes packets errors dropped carrier collsns 1968 10 0 0 0 0 shell@shamu:/ # I run ping and the packet count doesn't go up. Is there a restriction on running ping from adb over a 'new' interface? Thanks, Y- -- 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/a9bf6f30-146e-450e-9532-14c436fdf563%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] how to use whatsapp in android
How I can save in a database messages that are sent and received by whatsapp in an android application? -- 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/377676cf-0483-46bf-b6bf-7cb898a516fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: Building user interfaces at runtime with layouts from server
What? No it doesn't: http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/ Kris On Sat, Jan 2, 2016 at 12:30 PM, Luis Carlos Ramírez Rodríguez wrote: > The problem is that XmlPullParser requires for the XML definition to be > present at the APK build-time. What we are striving to find is a solution so > a remote server can feed data into the app, which the app in turn translates > into views that were not defined anywhere in the app itself. > > >> >> I'm not sure what the problem is: the method to do this has been in >> the API since level 1. >> >> > Viewinflate(XmlPullParser parser, ViewGroup root) >> > Inflate a new view hierarchy from the specified xml node. >> >> Create an XmlPullParser, set the reader to one you've pointed at the >> URI containing the content you want to read, and then use the view >> inflater to build the view hierarchy. >> >> Kris >> >> >> On Thu, Dec 31, 2015 at 1:58 PM, Luis Carlos Ramírez Rodríguez >> wrote: >> > >> > It's been six years and I'm also looking for a solution to bind User >> > Interface with layouts stored on a remote server and i was wondering if >> > you >> > ever managed to solve this issue >> > >> > Thanks. >> > >> > -Carlos >> > >> > El lunes, 23 de marzo de 2009, 1:10:22 (UTC-6), Daniel escribió: >> >> >> >> Hi all, >> >> >> >> Q: What is the recommended way to build user interfaces on the device >> >> based on layouts provided by a server at runtime? >> >> >> >> I am aware of this: >> >> http://developer.android.com/reference/android/view/ >> >> LayoutInflater.html"> >> >> For performance reasons, view inflation relies heavily on pre- >> >> processing of XML files that is done at build time. Therefore, it is >> >> not currently possible to use LayoutInflater with an XmlPullParser >> >> over a plain XML file at runtime; it only works with an XmlPullParser >> >> returned from a compiled resource (R.something file.) >> >> >> >> >> >> I could imagine these possibilities: >> >> - Parse XML by myself and build the ui tree. (Seems inappropriate to >> >> me since there is already maintained code which is able to do this.) >> >> >> >> - Transform XML on server to a simpler format which is cheaper to >> >> parse on the device. (Inappropriate as above.) >> >> >> >> - Preprocess the XML layout on the server the same way the build does. >> >> Transmit it to the client, and then try to load it. But how? >> >> android.content.res.XMLBlock is hidden (@hide) and I don't know how >> >> to >> >> classify the stuff in package com.android.layoutlib.bridge. >> >> >> >> Any help would be appreciated. >> >> Daniel >> >> >> >> >> >> >> > -- >> > 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-d...@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/c09b3558-e006-436c-a1dd-2b0266a2ba7f%40googlegroups.com. >> > 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 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/9b4b2903-326b-4e36-bc42-f14833611189%40googlegroups.com. > > 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 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/CAF1Sy-EsDL4K1Vjnh2DHjGvmFpfwDHMhbq9otZXj5pNuBV2-yg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] thanks to all
Hello everyone I'm new to here and an android developing too. please suggest me tips for a beginner, so that i can also be like as you people. thank you. -- 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/6c8b93dc-a25b-47b0-94d1-918bd1e80ec3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: Building user interfaces at runtime with layouts from server
The problem is that XmlPullParser requires for the XML definition to be present at the APK build-time. What we are striving to find is a solution so a remote server can feed data into the app, which the app in turn translates into views that were not defined anywhere in the app itself. > I'm not sure what the problem is: the method to do this has been in > the API since level 1. > > > Viewinflate(XmlPullParser parser, ViewGroup root) > > Inflate a new view hierarchy from the specified xml node. > > Create an XmlPullParser, set the reader to one you've pointed at the > URI containing the content you want to read, and then use the view > inflater to build the view hierarchy. > > Kris > > > On Thu, Dec 31, 2015 at 1:58 PM, Luis Carlos Ramírez Rodríguez > > wrote: > > > > It's been six years and I'm also looking for a solution to bind User > > Interface with layouts stored on a remote server and i was wondering if > you > > ever managed to solve this issue > > > > Thanks. > > > > -Carlos > > > > El lunes, 23 de marzo de 2009, 1:10:22 (UTC-6), Daniel escribió: > >> > >> Hi all, > >> > >> Q: What is the recommended way to build user interfaces on the device > >> based on layouts provided by a server at runtime? > >> > >> I am aware of this: > >> http://developer.android.com/reference/android/view/ > >> LayoutInflater.html"> > >> For performance reasons, view inflation relies heavily on pre- > >> processing of XML files that is done at build time. Therefore, it is > >> not currently possible to use LayoutInflater with an XmlPullParser > >> over a plain XML file at runtime; it only works with an XmlPullParser > >> returned from a compiled resource (R.something file.) > >> > >> > >> I could imagine these possibilities: > >> - Parse XML by myself and build the ui tree. (Seems inappropriate to > >> me since there is already maintained code which is able to do this.) > >> > >> - Transform XML on server to a simpler format which is cheaper to > >> parse on the device. (Inappropriate as above.) > >> > >> - Preprocess the XML layout on the server the same way the build does. > >> Transmit it to the client, and then try to load it. But how? > >> android.content.res.XMLBlock is hidden (@hide) and I don't know how > >> to > >> classify the stuff in package com.android.layoutlib.bridge. > >> > >> Any help would be appreciated. > >> Daniel > >> > >> > >> > > -- > > 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-d...@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/c09b3558-e006-436c-a1dd-2b0266a2ba7f%40googlegroups.com. > > > > 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 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/9b4b2903-326b-4e36-bc42-f14833611189%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: Building user interfaces at runtime with layouts from server
I'm not sure what the problem is: the method to do this has been in the API since level 1. > Viewinflate(XmlPullParser parser, ViewGroup root) > Inflate a new view hierarchy from the specified xml node. Create an XmlPullParser, set the reader to one you've pointed at the URI containing the content you want to read, and then use the view inflater to build the view hierarchy. Kris On Thu, Dec 31, 2015 at 1:58 PM, Luis Carlos Ramírez Rodríguez wrote: > > It's been six years and I'm also looking for a solution to bind User > Interface with layouts stored on a remote server and i was wondering if you > ever managed to solve this issue > > Thanks. > > -Carlos > > El lunes, 23 de marzo de 2009, 1:10:22 (UTC-6), Daniel escribió: >> >> Hi all, >> >> Q: What is the recommended way to build user interfaces on the device >> based on layouts provided by a server at runtime? >> >> I am aware of this: >> http://developer.android.com/reference/android/view/ >> LayoutInflater.html"> >> For performance reasons, view inflation relies heavily on pre- >> processing of XML files that is done at build time. Therefore, it is >> not currently possible to use LayoutInflater with an XmlPullParser >> over a plain XML file at runtime; it only works with an XmlPullParser >> returned from a compiled resource (R.something file.) >> >> >> I could imagine these possibilities: >> - Parse XML by myself and build the ui tree. (Seems inappropriate to >> me since there is already maintained code which is able to do this.) >> >> - Transform XML on server to a simpler format which is cheaper to >> parse on the device. (Inappropriate as above.) >> >> - Preprocess the XML layout on the server the same way the build does. >> Transmit it to the client, and then try to load it. But how? >> android.content.res.XMLBlock is hidden (@hide) and I don't know how >> to >> classify the stuff in package com.android.layoutlib.bridge. >> >> Any help would be appreciated. >> Daniel >> >> >> > -- > 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/c09b3558-e006-436c-a1dd-2b0266a2ba7f%40googlegroups.com. > 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 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/CAF1Sy-FC2fhdeSaJo0u3qaSE3xZfGmNfqGWr4kGVtQ441Ax3VQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Raising app store Google
Preparing an application through Google's system, we paid in the payment system (payment number 1451684586) but we do not see it Bhnot.mdoa? -- 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/010883d8-41a0-463c-ba74-7cc98df1754c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.