[android-developers] Re: #MARINABERLUSCONI É ASSASSINA, PEDOFILA E LESBICA DI TIPO DEPRAVATISSIMAO! SI, É PROPRIO COSÍ! É COCAINOMANE, KILLER ED INCULA BAMBINE COME IL PADRE: MARINA BERLUSCONI DI CRIM
Planet Earth must know that many times, pervert rapist #SilvioBerlusconi & Marina Berlusconi #MarinaBerlusconi told me litterally "whoever we don't like, we ask Secret Services, Masons & Mafia to kill them for us, making things look like (false) suicides, illnesses or accidents"!! On Friday, February 18, 2022 at 10:43:09 PM UTC+1 mabi...@mail.com wrote: > #MARINABERLUSCONI É ASSASSINA, PEDOFILA E LESBICA DI TIPO DEPRAVATISSIMAO! > SI, É PROPRIO COSÍ! É COCAINOMANE, KILLER ED INCULA BAMBINE COME IL PADRE: > MARINA BERLUSCONI DI CRIMINALISSIMA #FININVEST, CRIMINALISSIMA #MFE, > CRIMINALISSIMA #MEDIASETE CRIMINALISSIMA #MONDADORI! > ASSASSINA COME SUO PADRE: IL NAZISTA, MAFIOSO, SBAUSCIA BAMBINE ED > ADOLESCENTI, STRA MANDANTE DI OMICIDI E STRAGI: #SILVIOBERLUSCONI! E POI, > IL FIGLIO DI PUTTANA #PIERSILVIOBERLUSCONI (ANCOR PIÚ FIGLIO DI PEDOFILO > MACELLA MAGISTRATI SILVIO BERLUSCONI) RICICLA MONTAGNE DI SOLDI MAFIOSI. > COME HA FATTO SUO PEZZO DI MERDA NONNO #LUIGIBERLUSCONI IN #BANCARASINI! E > COME HA FATTO PER MEZZO SECOLO, IL LECCA FIGHE DI BAMBINE E RAGAZZINE, > BASTARDO STRAGISTA, FIGLIO, MARITO E PADRE DI PUTTANE: #SILVIOBERLUSCONI! > SOLDI ASSASSINI, ESATTAMENTE DI #COSANOSTRA, #CAMORRA, #NDRANGHETA, > #SACRACORONAUNITA, #SOCIETAFOGGIANA, #MAFIA RUSSA, MAFIA CINESE, MAFIA > COLOMBIANA, MAFIA MESSICANA, MAFIA MAROCCHINA, MAFIA ALBANESE, MAFIA SLAVA, > MAFIA RUMENA, MAFIE DI TUTTO IL PIANETA TERRA, COME ANCOR PIÚ, MASSONERIE > CRIMINALISSIME DI TUTTO IL MONDO)! NE SCRIVE IL MIO BANCHIERE PREFERITO, > #ANDREASNIGG DI BANK J SAFRA SARASIN ZURIGO! CHE TANTE VOLTE SI É SENTITO > PROPORRE DAL PEGGIORE CRIMINALE IN CRAVATTA DI TUTTO IL PIANETA TERRA E DI > TUTTI I TEMPI, SILVIO BERLUSCONI, COME DAL NAZIST卍ASSASSINO PIERSILVIO > BERLUSCONI E DALLA LECCA FIGHE PEDOFILA, SATA卍NAZISTA E FALSA DA FARE > SCHIFO, MARINA BERLUSCONI, DI RICICLARE PER LORO, CENTINAIA DI MILIONI DI > EURO MAFIOSI, DA DESTINARE AL CORROMPERE CHIUNQUE, COME A FINANZIARE STRAGI > ED OMICIDI FASCISTI, IN ITALIA! SEMPRE EROICAMENTE RIFIUTANDO! A VOI IL > GRANDISSIMO ANDREAS NIGG DI BANK J SAFRA SARASIN ZURIGO. > > CIAO A TUTTI. SON SEMPRE IO, ANDREAS NIGG, EX MANAGER IN BANK VONTOBEL > ZURIGO ED ORA MANAGER IN BANK J SAFRA SARASIN ZURIGO. SCHIFO CON TUTTE LE > FORZE I PEDOFILI BASTARDI, SATANISTI, NAZISTI, SATA卐NAZISTI, MAFIOSI, > ASSASSINI #BERLUSCONI! SON DEI FIGLI DI PUTTANE E PEDOFILI! SON #HITLER, > #PINOCHET E #PUTIN MISTI AD AL CAPONE, TOTO RIINA E PASQUALE BARRA DETTO "O > ANIMALE"! SI PRENDONO LA NAZIONE INTERA, INTRECCIANDO POTERE ECONOMICO, > POTERE DI CORROMPERE CHIUNQUE, POTERE MEDIATICO, POTERE EDITORIALE, POTERE > SATANICO, POTERE FASCIOCIELLINO, POTERE MASSO^MAFIOSO ☠, POTERE DI > TERRORISTI NAZI卐FASCISTI ☠, POTERE RICATTATORIO, POTERE ASSASSINO ☠, POTERE > STRAGISTA ☠, POTERE DI INTELLIGENCE FOTOCOPIA DI BEN NOTE OVRA E GESTAPO ☠, > ADDIRITURA PURE POTERE CALCISTICO ED IL POTERE DEI POTERI: IL POTERE > POLITICO (OSSIA OGNI TIPO DI POTERE: OGNI)! CREANDO DITTATURA STRA OMICIDA! > I TOPI DI FOGNA KILLER #SILVIOBERLUSCONI, #PIERSILVIOBERLUSCONI E > #MARINABERLUSCONI HAN FATTO UCCIDERE IN VITA LORO, ALMENO 900 PERSONE, > QUASI SEMPRE PER BENISSIMO! LA LORO SPECIALITÁ É ORGANIZZARE OMICIDI > MASSONICI! OSSIA DA FAR PASSARE PER FINTI SUICIDI, MALORI, INCIDENTI (VEDI > COME HANNO UCCISO LENTAMENTE, IN MANIERA MASSONICISSIMA, LA GRANDE > #IMANEFADIL, MA PURE GLI AVVOCATI VICINI A IMANE FADIL, #EGIDIOVERZINI E > #MAURORUFFFINI, MA ANCHE TANTISSIMI MAGISTRATI GIOVANI CHE LI STAVANO > INDAGANDO SEGRETAMENTE O NON, COME #GABRIELECHELAZZI, #ALBERTOCAPERNA, > #PIETROSAVIOTTI, #MARCELLOMUSSO, #FRANKDIMAIO, PER NON DIRE DI COME HAN > MACELLATO GLI EROI #GIOVANNIFALCONE E #PAOLOBORSELLINO)! IL TUTTO IN > COMBUTTA CON SERVIZI SEGRETI NAZI卐FASCISTI, BASTARDA MASSONERIA DI ESTREMA > DESTRA (VEDI #P2 P2 O #LOGGIADELDRAGO LOGGIA DEL DRAGO, OSSIA LOGGIA > PERSONALE DEL PEZZO DI MERDA PEDOFILO E STRAGISTA #SILVIOBERLUSCONI). OLTRE > CHE IN STRA COMBUTTA CON LORO VARIE COSA NOSTRA, CAMORRA, NDRANGHETA, MAFIA > RUSSA, MAFIA CINESE, MAFIA COLOMBIANA, MAFIE DI TUTTO IL PIANETA TERRA. > > OGGI VORREI SCRIVERE PURE, DI QUEL TOPO DI FOGNA CORROTTISSIMO, ANZI > "BERLU$$$CORROTTISSIMO", CHE É IL GIUDICE PIÚ STECCATO DEL MONDO: > #MARCOTREMOLADA DEL #RUBYTER! MASSONE DI MILLE LOGGE D'UNGHERIA (MA PURE DI > BULGARIA, CECOSLOVACCHIA E CAMBOGIA DI POL POT, TANTO CHE CI SIAMO, MEGLIO > IRONIZZARCI SOPRA UN POCO, PLEASE). FOGNA STUPRA GIUSTIZIA MARCO TREMOLADA > DEL RUBY TER, MASSONE SATANISTA NAZI卐FASCISTA CORROTTISSIMO DA SILVIO > BERLUSCONI, PIERSILVIO BERLUSCONI E MARINA BERLUSCONI! STO BERLU$$$CORROTTO > SGOZZA GIUSTIZIA DI #MARCOTREMOLADA (LO VEDETE QUI > > https://l450v.alamy.com/450vfr/2ded6pm/milan-italie-30-novembre-2020-milan-ruby-ter-proces-a-la-foire-president-marco-tremolada-usage-editorial-seulement-credit-agence-de-photo-independante-alamy-live-news-2ded6pm.jpg > > )
[android-developers] FIGLIO DI PUTTANA #PIERSILVIOBERLUSCONI (ED ANCOR PIÚ: FIGLIO DI PEDOFILO STRAGISTA, SPAPPOLA MAGISTRATI #SILVIOBERLUSCONI) RICICLA MONTAGNE DI SOLDI MAFIOSI, COME HA FATTO SUO PE
FIGLIO DI PUTTANA #PIERSILVIOBERLUSCONI (ED ANCOR PIÚ: FIGLIO DI PEDOFILO STRAGISTA, SPAPPOLA MAGISTRATI #SILVIOBERLUSCONI) RICICLA MONTAGNE DI SOLDI MAFIOSI, COME HA FATTO SUO PEZZO DI MERDA NONNO #LUIGIBERLUSCONI IN #BANCARASINI! E COME HA...FATTO PER MEZZO SECOLO, IL LECCA FIGHE DI BAMBINE E RAGAZZINE, BASTARDO STRAGISTA SILVIO BERLUSCONI! ESATTAMENTE DI #COSANOSTRA, #CAMORRA, #NDRANGHETA, #SACRACORONAUNITA, SOCIETAFOGGIANA, MAFIA RUSSA, MAFIA CINESE, MAFIA COLOMBIANA, MAFIA MESSICANA, MAFIA MAROCCHINA, MAFIA ALBANESE, MAFIA SLAVA, MAFIA RUMENA! CE NE SCRIVE IL MIO BANCHIERE PREFERITO IN SVIZZERA, #ANDREASNIGG DI BANK J SAFRA SARASIN ZURIGO! CHE TANTE VOLTE SI É SENTITO PROPORRE DAL SCAFATO CRIMINALE PIERSILVIO BERLUSCONI E DALLA LESBICA PEDOFILA E NAZISTA MARINA BERLUSCONI, DI RICICLARE PER LORO, CENTINAIA DI MILIONI DI EURO MAFIOSI! SEMPRE EROICAMENTE RIFIUTANDO! A VOI IL GRANDISSIMO ANDREAS NIGG DI BANK J SAFRA SARASIN ZURIGO. CIAO A TUTTI. SON SEMPRE IO, ANDREAS NIGG EX MANAGER IN BANK VONTOBEL ZURIGO ED ORA MANAGER IN BANK J SAFRA SARASIN ZURIGO. SCHIFO CON TUTTE LE FORZE I PEDOFILI ASSASSINI #BERLUSCONI! SON DEI PEZZI DI MERDA #HITLER, #PINOCHET, #PUTIN MISTI A STRA PEZZI DI MERDA AL CAPONE, TOTO RIINA E PASQUALE BARRA DETTO "O ANIMALE"! SI PRENDONO LA NAZIONE INTERA, INTRECCIANDO POTERE ECONOMICO, POTERE DI CORROMPERE CHIUNQUE, POTERE MEDIATICO, POTERE EDITORIALE, POTERE MAFIOSO, POTERE DI TERRORISTI NAZIFASCISTI ADDIRITURA PURE POTERE CALCISTICO ED IL POTERE DEI POTERI: IL POTERE POLITICO (OSSIA OGNI TIPO DI POTERE: OGNI)! CREANDO DITTATURA STRA ASSASSINA! I TOPI DI FOGNA KILLER #SILVIOBERLUSCONI, #PIERSILVIOBERLUSCONI E #MARINABERLUSCONI HAN FATTO UCCIDERE IN VITA LORO, CENTINAIA DI PERSONE! LA LORO SPECIALITÁ É ORGANIZZARE OMICIDI MASSONICI! OSSIA DA FAR PASSARE PER FINTI SUICIDI, INFARTI, INCIDENTI (VEDI COME HANNO UCCISO LENTAMENTE, IN MANIERA MASSONICISSIMA, LA GRANDE #IMANEFADIL, MA PURE GLI AVVOCATI VICINI A IMANE FADIL: #EGIDIOVERZINI E #MAURORUFFFINI)! IN COMBUTTA CON SERVIZI SEGRETI NAZIFASCISTI, BASTARDA MASSONERIA DI ESTREMA DESTRA (VEDI #P2 P2 O #LOGGIADELDRAGO LOGGIA DEL DRAGO, OSSIA LOGGIA PERSONALE DEL PEZZO DI MERDA PEDOSIFLO E STRAGISTA #SILVIOBERLUSCONI). OLTRE CHE DI LORO VARIE COSA NOSTRA, CAMORRA, NDRANGHETA, MAFIA RUSSA, MAFIA CINESE, MAFIA COLOMBIANA, MAFIE DI TUTTO IL PIANETA TERRA. HO POCO TEMPO, VINCO MOLTO NEI MERCATI FINANZIARI PER LA MIA BANCA, J SAFRA SARASIN ZURICH. MA QUESTO É SOLO UN MINI MINI ANTIPASTO. MILIARDI DI MIEI POSTS E PROFILI DI OGNI TIPO INVADERANNO TUTTI I SITI DEL MONDO, FINO A CHE LEGGERÓ CHE TUTTI I BASTARDI MEGA ASSASSINI BERLUSCONI HAN FATTO UNA FINE MOLTO PEGGIORE DEI #LIGRESTI O #TANZI, CHE A DIFFERENZA DEI FIGLI DI CANE E TROIONE #BERLUSCONI, NON HAN MAI PARTICOLARMENTE FATTO UCCIDERE NESSUNO, E CHE QUINDI, A LORO CONFRONTO, SON ANGELINI (NON ANGELUCCI, MA ANGELINI, NON #ANTONIOANGELUCCI, QUELLO É UN PEZZO DI MERDA MASSO卐NAZISTA, MAFIOSO ED ASSASSINO COME SILVIO BERLUSCONI). VENIAMO AI FATTI, NOW, PLEASE. IL COCAINOMANE NAZIST卍ASSASSINO #PIERSILVIOBERLUSCONI, IL PEDOFILO MACELLA MAGISTRATI #SILVIOBERLUSCONI E LA LESBICA LECCA FIGHE DI BAMBINE E RAGAZZINE #MARINABERLUSCONI, - INSIEME AL FASCISTASSASSINO #ROBERTOJONGHILAVARINI ROBERTO JONGHI LAVARINI DI CRIMINALISSIMO ISTITUTO GANASSINI DI RICERCHE BIOMEDICHE E CRIMINALISSIMO MOVIMENTO #FAREFRONTE FARE FRONTE - INSIEME AL FASCISTASSASSINO #GIANFRANCOSTEFANIZZI (PURE PEDOFILO E FILO NDRANGHETISTA) DI CRIMINALISSIMO STUDIO MOAI #MOAI #STUDIOMOAI #MOAISTUDIO - INSIEME AL FASCISTASSASSINO #PAOLO PARRAI ALIAS #PAOLOPIETROBARRAI (PURE PEDOFILO ED AFFILIATO ALLA NDRANGHETA) DI CRIMINALE TERRANFT E TERRABITCOIN #TERRANFT E CRIMINALE #TERRABITCOIN - INSIEME AL FASCISTASSASSINO #CARLOFIDANZA DI DELINQUENTISSIMO PARTITO HITLERIANO #FRATELLIDITALIA SON VENUTI SPESSO A CHIEDERMI DI RICICLARE CENTINAIA DI MILIONI DI EURO, DI MAFIE DI TUTTO IL MONDO, CHE, MI HAN DETTO, HAN SOTTO TERRA, IN VARIE VILLE LORO, COME PURE UN ALTRE VILLE DI LORO SODALI ASSASSINI. HO SEMPRE SBATTUTO LORO LA PORTA IN FACCIA. SIA A LORO, CHE A UN LORO AVVOCATO MASSONE, SATANISTA, PEDOFILO, SPECIALISTA NEL RAPIRE, INCULARE ED UCCIDERE BAMBINI PER VENDERNE GLI ORGANI: #DANIELEMINOTTI DI GENOVA RAPALLO (E A RAPALLO, "GUARDA CASO", HA RESIDENZA IL TESTA DI CAZZO STRA ASSASSINO #PIERSILVIOBERLUSCONI). SCRIVERÓ DETTAGLI A PROPOSITO DI QUESTO, IN MILIARDI DI MIEI PROSSIMI POSTS. PER IL MOMENTO, ORA, INIZIAMO AD ESAMINARE LA FIGURA DI QUESTO AVVOCATO PEDOFILO, NAZI卐FASCISTA, MASSO卐NAZISTA, SATA卐NAZISTA, ASSASSINO DANIELE MINOTTI DI CRIMINALISSIMO STUDIO LEGALE LISI. SALUTI DA ME, ANDREAS NIGG DI BANK J SAFRA SARASIN ZURICH, PREMIATO NEL 2018, 2019 E 2020 COME BANCHIERE SVIZZERO DELL'ANNO A BASILEA (DICONO CHE DOVREI PURE VINCERE NEL 2021, VEDREMO A FINE ANNO). HASTA SIEMPRE, WAGLIÓ. AAAH SCORDAVO, PRIMA DI LASCIARCI, UN BACIO CON LINGUA, STILE ARCORE^HARDOCORE,
[android-developers] Re: App still in review for "Google Play for Education" since 3 monthes
Just wanted to chime in and say that we're having the same problem. Have resubmitted multiple times and it still just says "pending review". It's been over 3 months. Did you ever resolve this? On Monday, August 8, 2016 at 2:53:09 AM UTC-4, Andreas Solvapps wrote: > > I have checked the checkbox "Google Play for Education" about 3 monthes > ago. > The status is still "in review" and I don't know who and how to contact > google to ask, what is going on. > > In general, I don't know how to contact google for individual problems, > which cant be solved with help of forums and google - hepls. > > Any hints how I could proceed to get more info, why my status is still > pending on review ? > > kind regards > -- 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/2b58020f-a5e9-48af-a05c-7fbe740ebb4a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Raw data from Heart Rate Sensor
Hello! There are many android wear devices with built-in heart rate monitor. I know, that we can get calculated Heart Rate using something like this: SensorManager mSensorManager = ((SensorManager)getSystemService(SENSOR_SERVICE));Sensor mHeartRateSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);mSensorManager.registerListener(this, mHeartRateSensor, SensorManager.SENSOR_DELAY_NORMAL); Are there any ways to get Raw data from sensor? I want to know the value on the sensor, not the heart rate. 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/4e2eeff4-5eb9-4016-9eda-b9b8cad4b720%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: How to implement preference's multiple dependency?
I have exactly the same issue. Have you found any solution to the problem? Regards, Max -- 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] How to execute C binary file in Android
Try this lib: https://github.com/Chainfire/libsuperuser On Tue, May 20, 2014 at 2:17 PM, praveen m bsmprav...@gmail.com wrote: Dear All Actually I am very new to Android. So anyone can tell, how can I include a 'C' binary file into android code. I want to make an Android app which include execute the 'C' binary file. Thanks in Advance -- *M.Praveen* *Project Officer | CSE Dept, IIT-Madras9952864495* -- 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. -- 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] Re: onCellLocationChanged() not called
Hai, i am building a similar app that reqquires celllocation updates on android version 4.0, did u found answer to your problem as i am stuck with the same.. On Sunday, 17 October 2010 20:10:18 UTC+5:30, Immanuel Ilavarasan Thomas wrote: Hi, I am currently building an app to record some 3G signal properties like signal signal strength, cell ID and neigboring cells. To record the current cell ID, I have registered for the onCellLocationChanged() callback. (As I understand it, there is no way to poll for the current cell ID). However, when I tested it out, the callback is received only immediately after I start the app. Even after I have traveled for around 30 mins, by which time I am pretty sure I would have changed at least one cell, the app did not receive any call backs. I have also confirmed that data communication happens throughout the drive. (By making it ping a public server) In case there were any bugs in my app, I checked it out by forcing Google Maps to use 'Wireless Networks' instead of GPS satellites. I found my location hasn't changed since my starting point. However, once I restarted my phone, Google Maps detected my new location. Is anyone aware of this error? And does anyone have any solution? The following are the specs: Phone: Samsung Galaxy S (GT-I9000) Firmware version: 2.1 -- Immanuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use a OnClickListener in Fragment
This doesnt work at all. You should create a method in the FragmentActivity that recall the method inside your Fragment. Declaring a Fragment ref inside your FragmentActivity. Il giorno giovedì 13 ottobre 2011 15:28:18 UTC+2, Streets Of Boston ha scritto: In your onCreateView callback of your fragment, you could do something like this: *Button myButton = (Button)view.findViewByid(R.id.mybutton);* *myButton.setOnClickListener(new OnClickListener() {* * public void onClick(View view) {* *// put some code here that handles the click event.* *...* * }* *});* Just like you could do in an Activity. Registering onClickListeners in Fragments is no different. -- 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] Extending LinearLayout / #getVirtualChild*
I am extending LinearLayout to have an easy way of building lists with header and footer views. While doing this, I want to maintain the LinearLayout's API (e.g. XML-added views). To do this, I have to override LinearLayout#getVirtualChildAt(int) and LinearLayout#getVirtualChildCount(). These methods even state per source comment that they are meant to be overridden. The visibility of these methods is not protected but default, thus they have to be overridden with a public modifier and cannot be annotated with @Override. Should my solution be considered API-abuse or should I consider the package visibility a bug in LinearLayout? Any more elegant solutions for building lists with with header / footer elements? (ListView won't work because I may need multiple lists in one scrollable layout). -- 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 manager doesn't show, not installed packages
https://lh5.googleusercontent.com/-IAABz-wigqU/UFMI1s8P2bI/AIM/H3TBXnIdg7M/s1600/screen.jpg How to show it??? -- 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] Re: Resource Alias not resolving
Hi Mark, I had the very same issues this day and did exactly what you proposed. The problem now was, that it is not possible to decode the alias via BitmapFactory.decodeResource(). The only workaround seems to be: ((BitmapDrawable) getResources().getDrawable(_resId)).getBitmap() But I need to load them in RGB565 format because they are quite large and they don't need to have alpha... Do you know any way out of this dead end? Thanks in advance, Max Herberger - MAGIX AG Am Sonntag, 4. Juli 2010 13:53:34 UTC+2 schrieb Mark Murphy: On Sun, Jul 4, 2010 at 7:31 AM, Tom Gibara m...@tomgibara.com wrote: This is what I'm not clear on: suppose you have a UI design that calls for an ImageButton that fills approximately half the screen. The geometry is easily defined by combining layout_weight and fill_parent etc. The image displayed in the ImageButton will cover approximately the same number of pixels on say both the Dell Streak and the Nexus One. So how do we organize our resources such that both of these phones will choose the same image resource for the button, while at the same providing a smaller image for devices such as the G1 (ie. a device that has far fewer pixels, but the roughly same screen size as the Nexus One)? To get more concrete, and to roll this discussion back to Mr. Lebed's original questions, let's suppose you have one square icon, 250 pixels to a side, that you want to use on WVGA screens, and another square icon, 100 pixels to a side, you would like to use on HVGA screens. And, these logically are the same icon, so you want your layouts and Java code and whatever to refer to them as the same name. If so, by eyeball (i.e., haven't slung the code for this specific scenario), the following should work: Step #1: Put the 250px icon in res/drawable/ as icon_250px.png Step #2: Put the 100px icon in res/drawable/ as icon.png Step #3: Put a resource alias in res/drawable-large-mdpi/ as icon.xml, pointing to icon_250px.png (note to Mr. Lebed: one of your earlier problems was having your -mdpi and -large suffixes reversed -- they need to be in the order seen in Table #2 in the URL shown below) http://developer.android.com/guide/topics/resources/providing-resources.html Step #4: Put a resource alias in res/drawable-normal-hdpi/ as icon.xml, pointing to icon_250px.png From the standpoint of resolving resources, when Android encounters the @drawable/icon reference: -- A Dell Streak (a large, mdpi device) will choose the res/drawable-large-mdpi/ resource, which will reference the 250px image -- A Nexus One (a normal, hdpi device) will choose the res/drawable-normal-hdpi/ resource, which will reference the 250px image -- Devices that are not large/mdpi or normal/hdpi, like the G1, will choose the res/drawable/ resource, which is the 100px image -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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: Sony Ericsson EDK for Timescape
Hi Joahn, Will I have a possibility to sell my newly developed extension on Google Play Store? Best regards, Max Development четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan четверг, 31 марта 2011 г., 12:34:41 UTC+2 пользователь Johan Abramsson написал: Hi Android Developers, The development kit for Sony Ericsson Timescape extensions (the EDK) is now available for download at http://developer.sonyericsson.com/edk . Regarding the installation: Finally are the relevant links on the site working properly - and the EDK can now be installed using the proper Android SDK Manager. Go ahead and download the documentation and the rest of the kit and try it out. Questions regarding this EDK or Timescape application as such can be sent to this thread. Please note that the EDK is applicable for 2011 products. Kind regards /Johan -- 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] cheap,discount nike air max shoes, paypal payment, free shipping,cheap beats by dre,monster beats by dre
http://www.monsterbeatsbydre4u.com/beats-dr-dre-c-3.html http://www.monsterbeatsbydre4u.com/beats-by-dre-studio-c-1.html http://www.monsterbeatsbydre4u.com/beats-by-dre-tour-c-7.html http://www.monsterbeatsbydre4u.com/lady-gaga-headphones-c-2.html http://www.monsterbeatsbydre4u.com/beats-by-dre-pro-c-5.html http://www.monsterbeatsbydre4u.com/beats-by-dre-solo-c-4.html http://www.monsterbeatsbydre4u.com/beats-by-dre-butterfly-c-6.html http://www.monsterbeatsbydre4u.com/beats-by-dre-diddy-c-8.html http://www.monsterbeatsbydre4u.com/shippinginfo.html http://www.monsterbeatsbydre4u.com/privacy.html http://www.monsterbeatsbydre4u.com/conditions.html http://www.monsterbeatsbydre4u.com/contact_us.html http://www.monsterbeatsbydre4u.com/site_map.html http://www.monsterbeatsbydre4u.com/discount_coupon.html top wholesaler paypal,shoe ,handbag.. Http://www.daydaytrade.com 1.Handbag with Louis Vuitton ,Chanel, Gucci, DIOR, BURBERRY ,prada ,juicy ,edhardy. 4. Shoes:Nike Air Jordan, Nike Rift, Max 90, Bape, Adidas, Puma, Gucci, Timberland, Prada, Lv, Ice cream, UGG, AF1, Visvim, CA shoes, Burberry, shoes. nike air force one: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/ nike air Jordan shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/ nike air jordan 1 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-1/ nike air jordan 2 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2/ nike air jordan 3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-3/ nike air jordan 4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4/ nike air jordan 5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-5/ nike air jordan 6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-6/ nike air jordan 7 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-7/ nike air jordan 8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-8/ nike air jordan 9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-9/ nike air jordan 10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10/ nike air jordan 11 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-11/ nike air jordan 12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-12/ nike air jordan 13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-13/ nike air jordan 14 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-14/ nike air jordan 15 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-15/ nike air jordan 16 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-16/ nike air jordan 17 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-17/ nike air jordan 18 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-18/ nike air jordan 19 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-19/ nike air jordan 20 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-20/ nike air jordan 21 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-21/ nike air jordan 22 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-22/ nike air jordan 23 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-23/ nike air jordan spizike shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Spizike/ nike air jordan Flight 45 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-Flight-45/ nike air jordan 2009 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-Shoes-2009/ nike air jordan 2010 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2010/ nike air jordan 2011 shoes: nike air jordan 6 Rings shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Six-Rings/ nike air jordan Dub-Zero shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4.5/ nike air jordan Sixty Plus 60+ shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Air-Jordan-60+/ nike air jordan AJF3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-3-and-Air-Force-One/ nike air jordan AJF4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-4-and-Air-Force-One/ nike air jordan AJF5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-5-and-Air-Force-One/ nike air jordan AJF6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-6-and-Air-Force-One/ nike air jordan AJF8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-8-and-Air-Force-One/ nike air jordan AJF9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-9--Air-Force-One/ nike air jordan AJF10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10-and-Air-Force-One/ nike air jordan AJF12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-12--Air-Force-One/ nike air jordan AJF13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-13
[android-developers] cheap,discount nike air max shoes, paypal payment, free shipping,cheap beats by dre,monster beats by dre
http://www.monsterbeatsbydre4u.com/beats-dr-dre-c-3.html http://www.monsterbeatsbydre4u.com/beats-by-dre-studio-c-1.html http://www.monsterbeatsbydre4u.com/beats-by-dre-tour-c-7.html http://www.monsterbeatsbydre4u.com/lady-gaga-headphones-c-2.html http://www.monsterbeatsbydre4u.com/beats-by-dre-pro-c-5.html http://www.monsterbeatsbydre4u.com/beats-by-dre-solo-c-4.html http://www.monsterbeatsbydre4u.com/beats-by-dre-butterfly-c-6.html http://www.monsterbeatsbydre4u.com/beats-by-dre-diddy-c-8.html http://www.monsterbeatsbydre4u.com/shippinginfo.html http://www.monsterbeatsbydre4u.com/privacy.html http://www.monsterbeatsbydre4u.com/conditions.html http://www.monsterbeatsbydre4u.com/contact_us.html http://www.monsterbeatsbydre4u.com/site_map.html http://www.monsterbeatsbydre4u.com/discount_coupon.html top wholesaler paypal,shoe ,handbag.. Http://www.daydaytrade.com 1.Handbag with Louis Vuitton ,Chanel, Gucci, DIOR, BURBERRY ,prada ,juicy ,edhardy. 4. Shoes:Nike Air Jordan, Nike Rift, Max 90, Bape, Adidas, Puma, Gucci, Timberland, Prada, Lv, Ice cream, UGG, AF1, Visvim, CA shoes, Burberry, shoes. nike air force one: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/ nike air Jordan shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/ nike air jordan 1 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-1/ nike air jordan 2 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2/ nike air jordan 3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-3/ nike air jordan 4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4/ nike air jordan 5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-5/ nike air jordan 6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-6/ nike air jordan 7 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-7/ nike air jordan 8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-8/ nike air jordan 9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-9/ nike air jordan 10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10/ nike air jordan 11 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-11/ nike air jordan 12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-12/ nike air jordan 13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-13/ nike air jordan 14 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-14/ nike air jordan 15 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-15/ nike air jordan 16 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-16/ nike air jordan 17 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-17/ nike air jordan 18 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-18/ nike air jordan 19 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-19/ nike air jordan 20 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-20/ nike air jordan 21 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-21/ nike air jordan 22 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-22/ nike air jordan 23 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-23/ nike air jordan spizike shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Spizike/ nike air jordan Flight 45 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-Flight-45/ nike air jordan 2009 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-Shoes-2009/ nike air jordan 2010 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2010/ nike air jordan 2011 shoes: nike air jordan 6 Rings shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Six-Rings/ nike air jordan Dub-Zero shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4.5/ nike air jordan Sixty Plus 60+ shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Air-Jordan-60+/ nike air jordan AJF3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-3-and-Air-Force-One/ nike air jordan AJF4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-4-and-Air-Force-One/ nike air jordan AJF5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-5-and-Air-Force-One/ nike air jordan AJF6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-6-and-Air-Force-One/ nike air jordan AJF8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-8-and-Air-Force-One/ nike air jordan AJF9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-9--Air-Force-One/ nike air jordan AJF10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10-and-Air-Force-One/ nike air jordan AJF12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-12--Air-Force-One/ nike air jordan AJF13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-13
[android-developers] Android keystore password recovery tool
I made a simple tool that could help you to recover your lost password for the android keystore https://code.google.com/p/android-keystore-password-recover/downloads/list It helped for me, maybe you can recover your key, too. Good luck -- 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] Failed resolving for interface listed in reference
Hello. I am trying to add an external jar which requires javax.xml.transform.SourceLocator. It is beings inserted OK into activity and then it fails when I try to run the application: ... I/dalvikvm( 859): Failed resolving Lgnu/text/SourceLocator; interface 1155 'Ljavax/xml/transform/SourceLocator;' ... The interface is described in the reference (http:// developer.android.com/reference/javax/xml/transform/ SourceLocator.html). When I tried to copy /usr/share/java/xml-apis.jar to libs, it complained loudly that I should not do it. Please tell me how to make the projects see the interface, which I suppose exist somewhere at device. I use target android-7 and emulator for Android 2.1. Thanks, -- Maksim -- 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: serbian language
thanks for your suggestion, have you ever tested it before ? well maybe I have to try it but if sr_RS_Latin is used for example, what res values folder should used for it, values-sr-rRS_Latin ? On 2월13일, 오후3시40분, Zsolt Vasvari zvasv...@gmail.com wrote: Have you tried sr_RS_Latn or sr_RS_Latin? On Feb 13, 1:48 pm, Max Kim blurr...@gmail.com wrote: Hello I thought I posted this message but maybe it failed so I am trying again these days, our company is considering to supportSerbianlanguages, bothSerbianCyrillic andSerbianLatin. in the sdk page(http://developer.android.com/sdk/android-4.0.3.html), it says Locale Serbian(sr_RS) I think sr_RS is forSerbianCyrillic because people saySerbian Cyrillic is offical and strings in values-sr of android ICS source look likeSerbian Cyrillic. now then what locale should be used forSerbianLatin in order to support it on android manufacturer side ?- 원본 텍스트 숨기기 - - 원본 텍스트 보기 - -- 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] serbian language
Hello I thought I posted this message but maybe it failed so I am trying again these days, our company is considering to support Serbian languages, both Serbian Cyrillic and Serbian Latin. in the sdk page(http://developer.android.com/sdk/android-4.0.3.html), it says Locale Serbian (sr_RS) I think sr_RS is for Serbian Cyrillic because people say Serbian Cyrillic is offical and strings in values-sr of android ICS source look like Serbian Cyrillic. now then what locale should be used for Serbian Latin in order to support it on android manufacturer side ? -- 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] Support serbian language
Hello I'm not sure I can ask this kind of question here We are developing android phones and now we have to think about supporing serbian language when I visit the sdk site, for example http://developer.android.com/sdk/android-4.0.3.html I can see locales that sdk supports by default it says, Serbian (sr_RS) and I found that mostly sebian language string is in res/values-sr for google native source(ex: ICS) Recently I learned that 2 languages should be supported, Serbian Cyrillic and Serbian Latin and they should never be mixed. they say Serbian Cyrillic is official and I can see that strings in res/values-sr looks like Serbian Cyrillic. so I guess sr_RS will be good locale for Serbian Cyrillic then What locale should be used for Serbian Latin ? 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
[android-developers] Fragment lost transition animation after configuration change
I'm inserting Fragments into the Activity using this code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); FragmentManager fm = getFragmentManager(); String tag = simple; Fragment fr = fm.findFragmentByTag(tag); if (fr == null) { SimpleFragment simpleFragment = new SimpleFragment(); FragmentTransaction transaction = fm.beginTransaction(); transaction.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out, android.R.animator.fade_in, android.R.animator.fade_out); transaction.add(R.id.main_layout, simpleFragment, tag); transaction.addToBackStack(tag); transaction.commit(); } } Fragments code is: public class SimpleFragment extends ListFragment { @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getView().setBackgroundColor(Color.YELLOW); } } When I pop the fragment from backstack via Back button just after launching, then everything is fine and I can see fade out animation. But if I rotate device and press Back button then fragment disappears without animation. It seems that after rotation FragmentManager didn't restores animations (enterAnim, exitAnim, popEnterAnim and popExitAnim) for BackStackEntry. FragmentManager dump (without rotation): Active Fragments in 4087d668: #0: SimpleFragment{408883b0 #0 id=0x7f05 simple} mFragmentId=#7f05 mContainerId#=7f05 mTag=simple mState=4 mIndex=0 mWho=android:fragment:0 mBackStackNesting=1 mAdded=true mRemoving=false mResumed=true mFromLayout=false mInLayout=false mHidden=false mDetached=false mRetainInstance=false mRetaining=false mHasMenu=false mFragmentManager=FragmentManager{4087d668 in ListViewFragmentsActivity{4087d588}} mImmediateActivity=my.app.ListViewFragmentsActivity@4087d588 mActivity=my.app.ListViewFragmentsActivity@4087d588 mNextAnim=17498112 mContainer=android.widget.RelativeLayout@408876d8 mView=android.widget.FrameLayout@40888a70 Added Fragments: #0: SimpleFragment{408883b0 #0 id=0x7f05 simple} Back Stack: #0: android.app.BackStackRecord@408884b8 mName=simple mIndex=0 mCommitted=true mEnterAnim=#10b mExitAnim=#10b0001 Operations: Op #0: cmd=1 fragment=SimpleFragment{408883b0 #0 id=0x7f05 simple} enterAnim=17498112 exitAnim=17498113 popEnterAnim=17498112 popExitAnim=17498113 Back Stack Indices: #0: android.app.BackStackRecord@408884b8 FragmentManager misc state: mCurState=5 mStateSaved=false mDestroyed=false FragmentManager dump (after rotation): Active Fragments in 40877f38: #0: SimpleFragment{40878858 #0 id=0x7f05 simple} mFragmentId=#7f05 mContainerId#=7f05 mTag=simple mState=4 mIndex=0 mWho=android:fragment:0 mBackStackNesting=1 mAdded=true mRemoving=false mResumed=true mFromLayout=false mInLayout=false mHidden=false mDetached=false mRetainInstance=false mRetaining=false mHasMenu=false mFragmentManager=FragmentManager{40877f38 in ListViewFragmentsActivity{40877e58}} mImmediateActivity=my.app.ListViewFragmentsActivity@40877e58 mActivity=my.app.ListViewFragmentsActivity@40877e58 mContainer=android.widget.RelativeLayout@4087ed50 mView=android.widget.FrameLayout@4087fc00 Added Fragments: #0: SimpleFragment{40878858 #0 id=0x7f05 simple} Back Stack: #0: android.app.BackStackRecord@40878a78 mName=simple mIndex=0 mCommitted=false Operations: Op #0: cmd=1 fragment=SimpleFragment{40878858 #0 id=0x7f05 simple} Back Stack Indices: #0: android.app.BackStackRecord@40878a78 FragmentManager misc state: mCurState=5 mStateSaved=false mDestroyed=false Is this Android behavior or I'm doing something wrong? Thank you for any help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] cheap, discount nike air max shoes, paypal payment, free shipping
top-wholesaler paypal,shoe ,handbag.. 1.Handbag with Louis Vuitton ,Chanel, Gucci, DIOR, BURBERRY ,prada ,juicy ,edhardy. 4. Shoes:Nike Air Jordan, Nike Rift, Max 90, Bape, Adidas, Puma, Gucci, Timberland, Prada, Lv, Ice cream, UGG, AF1, Visvim, CA shoes, Burberry, shoes. nike air force one: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/ nike air Jordan shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/ nike air jordan 1 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-1/ nike air jordan 2 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2/ nike air jordan 3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-3/ nike air jordan 4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4/ nike air jordan 5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-5/ nike air jordan 6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-6/ nike air jordan 7 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-7/ nike air jordan 8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-8/ nike air jordan 9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-9/ nike air jordan 10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10/ nike air jordan 11 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-11/ nike air jordan 12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-12/ nike air jordan 13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-13/ nike air jordan 14 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-14/ nike air jordan 15 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-15/ nike air jordan 16 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-16/ nike air jordan 17 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-17/ nike air jordan 18 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-18/ nike air jordan 19 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-19/ nike air jordan 20 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-20/ nike air jordan 21 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-21/ nike air jordan 22 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-22/ nike air jordan 23 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-23/ nike air jordan spizike shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Spizike/ nike air jordan Flight 45 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-Flight-45/ nike air jordan 2009 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-Shoes-2009/ nike air jordan 2010 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-2010/ nike air jordan 2011 shoes: nike air jordan 6 Rings shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-Six-Rings/ nike air jordan Dub-Zero shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-4.5/ nike air jordan Sixty Plus 60+ shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Air-Jordan-60+/ nike air jordan AJF3 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-3-and-Air-Force-One/ nike air jordan AJF4 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-4-and-Air-Force-One/ nike air jordan AJF5 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-5-and-Air-Force-One/ nike air jordan AJF6 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-6-and-Air-Force-One/ nike air jordan AJF8 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-8-and-Air-Force-One/ nike air jordan AJF9 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-9--Air-Force-One/ nike air jordan AJF10 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Air-Jordan-10-and-Air-Force-One/ nike air jordan AJF12 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jordan-12--Air-Force-One/ nike air jordan AJF13 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-13--Air-Force-One/ nike air jordan AJF20 shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-14--Air-Force-One/ nike air jordan SC shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Air-Jordan-Sc-shoes/ nike air jordan True Flight shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Nike-Jordan-True-Flight/ nike air jordan OLSchool shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Jorda-OL-School-III-and-Air-Force-One/ nike air jordan Chris Paul shoes: http://www.daydaytrade.com/Nike-Jordan-shoes/Chris-Paul-Shoes/ nike air force one low: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/Air-Force-1-(Low)/ nike air force one middle: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/Air-Force-1-(Middle)/ nike air force one Obama: http://www.daydaytrade.com/Nike-Air-Force-1(one)-shoes/Air-Force-one
Re: [android-developers] No simplified chinese description?
As a Chinese developer, I have to delete all other language descriptions except zh-TW. If not, the market will display an English description to Simplified Chinese users. BTW, most Simplified Chinese users can read Traditional Chinese. -- Max Lv On Mon, May 30, 2011 at 5:47 AM, Santiago Lema jacques.l...@gmail.com wrote: Please bear with me since I am totally new to Android. I have several apps that are currently being ported to Android (after working decently on iOS). Now I am ready to prepare my first app and I see this: http://emberapp.com/blackjack75/images/android-no-simplified-chinese-1 Is there really NO support for having a simplified chinese description? Mainland china is the country that generates the highest number of ad requests in my apps on iPhone so I thought it would useful. Compared to that users with a zh-TW locale are residual. Did I miss something obvious here ? Is is temporary? Was it always like 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 -- 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] How to find version of ARM on android phone
try this: cat /proc/cpuinfo On Mon, Jun 13, 2011 at 8:28 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Mon, Jun 13, 2011 at 9:20 PM, Bharathiraja R bharathiraja.andr...@gmail.com wrote: Hi All, I am uninstall to sl4a application on 2.2 tablet phone. getting error: Failure [installed_failed_invalid_apk] Log show: Native ABI mismatch. it's related to ARM there in phone has an NDK shared library that is incompatible. wanted to know how to find the version of ARM on android phone. This should do it: adb shell getprop ro.product.cpu.abi -- 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
Re: [android-developers] can't see output of ssh command
Use com.trilead.ssh2 instead, you can find source codes for android from Connectbot project On Mon, Jun 13, 2011 at 5:31 AM, ABSOLUT davidt...@gmail.com wrote: Hi, I'm using jsch to execute a command and then shows me the output of the command, but I cant see the ouput of command with LogCat. Could you help me please? Many thanks and sorry for my english! public String texto (String comando){ Log.d(PRUEBA, CONSULTA CRON DENTRO DEL OBJETO); String username = ; String password = y; JSch jsch = new JSch(); Session session; try { session = jsch.getSession(username, xx.yy.zz.aa, 22); session.setPassword(password); // Avoid asking for key confirmation Properties prop = new Properties(); prop.put(StrictHostKeyChecking, no); session.setConfig(prop); session.connect(); // SSH Channel ChannelExec channelssh = (ChannelExec) session.openChannel(exec); ByteArrayOutputStream baos = new ByteArrayOutputStream(); channelssh.setOutputStream(baos); // Execute command channelssh.setCommand(ls); channelssh.connect(); channelssh.disconnect(); Log.d(PRUEBA,BIEN); Log.d(PRUEBA,RESULADO -- + baos.toString()); return baos.toString(); } catch (JSchException e) { // TODO Auto-generated catch block e.printStackTrace(); Log.d(PRUEBA,ERROR); return null; } } -- 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] Problem with padding when loading Nine Patch Drawable
Hi all! I have to load some Nine Patch Drawables from a server. But I always get a padding of (0,0,0,0), regardless what's stored in the Drawable. My code: Bitmap bitmap = BitmapFactory.decodeFile(filename); NinePatchDrawable drawable = new NinePatchDrawable(res, bitmap, bitmap.getNinePatchChunk(), name); image.getPadding(pad); returns true and for pad (0,0,0,0). Am I doing something wrong? I also tried to set the padding manually using the info from getNinePatchChunk(). But NinePatchChunk is not very well documented - almost useless. regards, max -- 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 2.3 not handling orientation change properly - screen is not redrawn
Hi, Just tried my app on Android 2.3 and it seems that it is not handling screen rotation from landscape to portrait mode properly. - It rotates without problem from portrait to landscape on 2.3 (but not the other way around, once rotated to landscape it is just stuck) - It rotates perfectly fine on all other OS versions 1.5 through 2.3 - I placed a debug notification on configuration change event and I can see that the system is notifying the application about the change and the onConfugurationChange method is called BUT the screen is not properly redrawn. - This happens on all of my screens (all of my activities) Anyone encountered this problem? Any thoughts on this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.3 not handling orientation change properly - screen is not redrawn
here I meant of course 2.2 not 2.3 - It rotates perfectly fine on all other OS versions 1.5 through 2.2 On Dec 6, 4:31 pm, Max Binshtok max.binsh...@gmail.com wrote: Hi, Just tried my app on Android 2.3 and it seems that it is not handling screen rotation from landscape to portrait mode properly. - It rotates without problem from portrait to landscape on 2.3 (but not the other way around, once rotated to landscape it is just stuck) - It rotates perfectly fine on all other OS versions 1.5 through 2.3 - I placed a debug notification on configuration change event and I can see that the system is notifying the application about the change and the onConfugurationChange method is called BUT the screen is not properly redrawn. - This happens on all of my screens (all of my activities) Anyone encountered this problem? Any thoughts on this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.3 not handling orientation change properly - screen is not redrawn
It is not my app apparently (thanks @ymst for the idea) I checked the browser app. Just opened the browser (the emulator has it preinstalled) and the browser app exhibits the same behavior - once turned to landscape, it doesn't rotate back to portrait when the emulator is switched to portrait. Someone from Google? Can we get an official response to that please? Thanks, Max. On Dec 6, 7:04 pm, Ali Chousein ali.chous...@gmail.com wrote: Hi, Once I faced a similar issue with changing the orientation from landscape to portrait. What I observed at that time was that, when the orientation is changed from landscape to portrait the onDestroy- onCreate pair can be called twice. This has all sorts of side effects of course. Check in the debugger to see if you are also getting the extra call to onDestroy-onCreate pair. If yes, then you'll have to add some extra logic in your code to take care of this dubious extra call. Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (free version) -- 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 2.3 not handling orientation change properly - screen is not redrawn
Here's a screenshot of the browser stuck in landscape although the emulator is in portrait. Screenshot is from a Mac, same behavior on Windows 7 x64 (doesn't seem to be a system specific issue) and confirms this problem on at least 2 completely different machines. https://docs.google.com/leaf?id=0B0GGcj6uh57VNDQ2OTA3ZGItNTJmYi00NWU5LWFlMzAtYWZhOTBhNzcxNzZkauthkey=CImk6qcMhl=en On Dec 6, 10:13 pm, Max Binshtok max.binsh...@gmail.com wrote: It is not my app apparently (thanks @ymst for the idea) I checked the browser app. Just opened the browser (the emulator has it preinstalled) and the browser app exhibits the same behavior - once turned to landscape, it doesn't rotate back to portrait when the emulator is switched to portrait. Someone from Google? Can we get an official response to that please? Thanks, Max. On Dec 6, 7:04 pm, Ali Chousein ali.chous...@gmail.com wrote: Hi, Once I faced a similar issue with changing the orientation from landscape to portrait. What I observed at that time was that, when the orientation is changed from landscape to portrait the onDestroy- onCreate pair can be called twice. This has all sorts of side effects of course. Check in the debugger to see if you are also getting the extra call to onDestroy-onCreate pair. If yes, then you'll have to add some extra logic in your code to take care of this dubious extra call. Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (free version) -- 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] 100 ms stuttering(lag) in games.
I made game for android but have problem with stuttering. It occurs once in 10 seconds, sometimes 30 or 60 seconds. It is not caused by garbage collector in my game. From reading of LogCat I found out that it is caused by background system processes like KeyGuardMonitor, Watchdog, LockScreen, BatteryService, KeyInputQueue, ... Those processes grab to much CPU processing power in short time(ussualy aroound 100 ms) and give almost nothing to foreground game. It results to very short but still visible lag. I played other games and all of them have the problem in Android 1.6. I really wonder why such simple thing such as touching the screen take almost 100 ms of CPU power. Five consequent touches can cause 500 ms lag and FPS drops to 10. Is the stuttering also in 2.1, 2.2 Android? Is it possible somehow to make real time apps without stuttering? Here is app which can show the stuttering. public class StutteringActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setFormat(PixelFormat.RGBA_); getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER); setContentView(new StutteringView(this)); } } public class StutteringView extends View { private class StutteringRunnable implements Runnable { @Override public void run() { float s = 3.0f; for (int i = 1; i 1000; i++) { s += s / i; } cycleCount++; long currentTime = System.currentTimeMillis(); long elapsedTime = currentTime - oldTime; oldTime = currentTime; if (elapsedTime 1) { Log.d(We like stuttering in google., currentTime: + currentTime + lostTime: + elapsedTime + cycles: + cycleCount); cycleCount = 0; } StutteringView.this.post(stutteringRunnable); } } private long oldTime; private long cycleCount; private StutteringRunnable stutteringRunnable = new StutteringRunnable(); public StutteringView(Context context) { super(context); post(stutteringRunnable); } } Results from app. Normal behaviour. 212 cycles - per 101 ms Slowdown. (KeyGuardMonitor, Watchdog, LockScreen, BatteryService, KeyInputQueue, ...) 52 cycles - per 101 ms (25%) (Game received only 25% of CPU processing power in 101 ms. Stuttering occurres.) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to disable timeout when debugging emulator
I'm debugging Alarm Clock application in android emulator (Google API level 8) in Eclipse. Breakpoint is set in com.android.alarmclock.AlarmReceiver.onReceive(). Few seconds after this breakpoint is hit, remote debugger disconnects and I see an exception in LogCat (below). It looks like android system decided that that broadcast receiver was taking too long to process the intent... Is there a way to disable this type of behavior for the purpose of debugging? WARN/ActivityManager(66): Failure sending broadcast Intent { act=android.intent.action.TIME_TICK flg=0x4004 (has extras) } WARN/ActivityManager(66): android.os.DeadObjectException WARN/ActivityManager(66): at android.os.BinderProxy.transact(Native Method) WARN/ActivityManager(66): at android.content.IIntentReceiver$Stub $Proxy.performReceive(IIntentReceiver.java:121) WARN/ActivityManager(66): at com.android.server.am.ActivityManagerService.performReceive(ActivityManagerService.java: 12957) WARN/ActivityManager(66): at com.android.server.am.ActivityManagerService.deliverToRegisteredReceiver(ActivityManagerService.java: 13019) WARN/ActivityManager(66): at com.android.server.am.ActivityManagerService.processNextBroadcast(ActivityManagerService.java: 13219) WARN/ActivityManager(66): at com.android.server.am.ActivityManagerService.finishReceiver(ActivityManagerService.java: 12817) WARN/ActivityManager(66): at android.app.ActivityThread$PackageInfo $ReceiverDispatcher$Args.run(ActivityThread.java:914) WARN/ActivityManager(66): at android.os.Handler.handleCallback(Handler.java:587) WARN/ActivityManager(66): at android.os.Handler.dispatchMessage(Handler.java:92) WARN/ActivityManager(66): at android.os.Looper.loop(Looper.java: 123) WARN/ActivityManager(66): at com.android.server.ServerThread.run(SystemServer.java:506) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to enable dithering in SurfaceView?
If I use general View than dithering can be enabled by using following code: getWindow().setFormat(PixelFormat.RGBA_); getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER); But in SurfaceView that code does nothing. I tried to enable dithering in other way: surfaceHolder.setFormat(PixelFormat.RGBA_); surfaceHolder.getSurface().setFlags(Surface.SURFACE_DITHER, Surface.SURFACE_DITHER); Function setFormat changes surface to 32bit but setFlags does nothing. I called other functions of Surface class and found out that almost all of them do nothing. Is it possible to enable dithering in Surface? -- 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 1.5 device behaves differently than the emulator
Did anyone encounter this problem? Particularly, I have a dialog style themes for a few activities and these come up as expected on the emulator, but are full screen on the device. The theme I a using is actually an extension of the basic dialog theme (Theme.Dialog). I did not check with the original one. Max. -- 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] Re: blank screen with opengl
I'd suggest going with some basic tutorial like http://insanitydesign.com/wp/projects/nehe-android-ports/ and building on what you learn, modifying code little step by step so you're always a couple of Ctrl-Zs from a working version. Max -- 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] Reflection API:List all classes in a package that extend a specific super class
Hello everyone, I would like to use reflection to display all the classes in a package that extend a specific base class. I am using the examples as given from here to work with Java Reflection API: http://forums.sun.com/thread.jspa?threadID=341935start=15tstart=0 The sample class with a main method is given below: public class ReflectionUtil{ public static ListClass getClassesForPackage(String pckgname) throws ClassNotFoundException { // This will hold a list of directories matching the pckgname. //There may be more than one if a package is split over multiple jars/paths ListClass classes = new ArrayListClass(); ArrayListFile directories = new ArrayListFile(); try { ClassLoader cld = Thread.currentThread().getContextClassLoader(); if (cld == null) { throw new ClassNotFoundException(Can't get class loader.); } // Ask for all resources for the path EnumerationURL resources = cld.getResources(pckgname.replace('.', '/')); while (resources.hasMoreElements()) { URL res = resources.nextElement(); if (res.getProtocol().equalsIgnoreCase(jar)){ JarURLConnection conn = (JarURLConnection) res.openConnection(); JarFile jar = conn.getJarFile(); for (JarEntry e:Collections.list(jar.entries())){ if (e.getName().startsWith(pckgname.replace('.', '/')) e.getName().endsWith(.class) ! e.getName().contains($)){ String className = e.getName().replace(/,.).substring(0,e.getName().length() - 6); System.out.println(className); classes.add(Class.forName(className)); } } }else directories.add(new File(URLDecoder.decode(res.getPath(), UTF-8))); } } catch (NullPointerException x) { throw new ClassNotFoundException(pckgname + does not appear to be + a valid package (Null pointer exception)); } catch (UnsupportedEncodingException encex) { throw new ClassNotFoundException(pckgname + does not appear to be + a valid package (Unsupported encoding)); } catch (IOException ioex) { throw new ClassNotFoundException(IOException was thrown when trying + to get all resources for + pckgname); } // For every directory identified capture all the .class files for (File directory : directories) { if (directory.exists()) { // Get the list of the files contained in the package String[] files = directory.list(); for (String file : files) { // we are only interested in .class files if (file.endsWith(.class)) { // removes the .class extension classes.add(Class.forName(pckgname + '.' + file.substring(0, file.length() - 6))); } } } else { throw new ClassNotFoundException(pckgname + ( + directory.getPath() + ) does not appear to be a valid package); } } return classes; } public static ListClass getClassessOfSuperClass(String thePackage, Class superClass) { ListClass classList = new ArrayListClass(); try { for (Class discovered : getClassesForPackage(thePackage)) { if (Arrays.asList(discovered.getSuperclass()).contains(superClass)) { classList.add(discovered); } } } catch (ClassNotFoundException ex) { ex.printStackTrace(); } return classList; } public static void main(String[] args) { try { ListClass classes = getClassessOfSuperClass(Constants.ALG_PACKAGE_NAME,IAlgorithmPanel.class); IteratorClass i = classes.iterator(); while(i.hasNext()){ Class c = i.next(); System.out.println(Classes:+c.getSimpleName()); } } catch (Exception ex) { Logger.getLogger(DynamicClassLoading.class.getName()).log(Level.SEVERE, null, ex); } } } However, i do not get any classes listed. I tested the same class as a normal Java project and it works. I am sure that Android deploys the application in a different way/context where i cannot refer to a package name directly. Could you please point me to the right direction. Many thanks Cheers, Rahul -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send
[android-developers] Re: Strange behavior when launching app from Market
Hey! I was having exactly the same problem Rico described, as you can see in my thread ( http://groups.google.com/group/android-developers/browse_thread/thread/76fa8600833f5348/59210de050c9bd20 ). After some investigation, I found that most launchers (including Launchalot :P) start activities with FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_RESET_TASK_IF_NEEDED (some also set FLAG_ACTIVITY_BROUGHT_TO_FRONT). The Android Market, however, only sets FLAG_ACTIVITY_NEW_TASK, and I guess this is the reason for the strange behavior. This causes several OutOfMemoryErrors when my users upgrades the app and launches it from the market. I couldn't use singleTask or singleInstance as these flags mess up with the history. For example if the activity stack is A - B - C and the user is in home screen, pressing the application icon should take them back to activity C, but setting singleTask or singleInstance on the main activity will interfere with this. In the end I found a workaround that prevents all those activities from eating up all your memory. If you start all activities in your app with the FLAG_ACTIVITY_CLEAR_TOP flag, you are guaranteed that no activity will have more than one instance lying around in the stack. For example if the stack is A - B - C - A, and the user starts activity B again, the OS will clear away the activities on the top and you will end up with A - B. Of course this only works if your activities are designed to be single-instance. Hope this helps. On May 28, 7:09 am, Mark Murphy mmur...@commonsware.com wrote: Rico Yao wrote: That app (Launchalot) is a launcher app (i.e. it just launches other apps). I'm not saying that Launchalot doesn't have multiple instances of itself created if launched from the Market or notifications bar. It probably does. Anyone who puts Launchalot on the Market should have their head examined. :-) -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 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] Weird activity launch behavior when started from other apps
I have an application that contains several activities - call them A, B, C and D. Normally the user will launch activity A, then go to activity B, then C, then D. All activities have launchMode = standard so that if the user switch to another app or return to home screen, he can go back to where he left off by pressing the application icon on launcher or home screen. Most of the time the application works fine, but if the user start the app from somewhere other than the launcher / home screen (e.g. upgrading the app Android Market then press Open), the launch behavior becomes very strange. Now if the user return to the home screen, then press the application icon again, it will start a new instance of activity A and put it on top of the stack. If the user continue to navigate the app, the activity stack will become something like A - B - C - A - B. I have verified this by running adb shell dumpsys activity. This behavior will persist until the application completely exits (i.e. no more activities in the stack), until then the activities will keep accumulating in the stack. As the activities are quite graphic intensive, the application will run out of memory when there are ~15 levels of activities. So... is there a way to prevent this behavior? I want the launcher icon always get back to the activity where the user left off, or start the default activity if the application wasn't running. I have tried the various launch modes but seems none of them fits this description. -- 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] Common code reuse
As Mark said, resources are going to be an issue. For code though there's a simple way which would allow you to edit the shared code on the fly. Create a standard Android project and manually remove Android nature from its .project file (it you do this from inside Eclipse it'll all get automatically updated). With this change you'll be able to treat it as a library and reference its code from other Android projects. Cheers, Max On 7 May 2010 12:16, Mark Murphy mmur...@commonsware.com wrote: Ajay wrote: Hi, I have a set of common code (including .java files and resources) , which I have to use for two similar applications with different package names (for different vendors). How can I maintain two packages which share the common code without making two copies of the common source? You can compile the source code into a JAR and have the other projects incorporate that JAR file. However, resources are then a problem -- you can't use R.layout, R.id, R.string, or similar ways to identify those resources. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: How to create Android library in Eclipse?
There's even more hackish but perfectly working solution AND you get all the Android project niceties with it :) 1. Create regular Android project 2. Manually remove Android nature from .project file 3. Done :) Cheers, Max 2010/5/4 Mario Zechner badlogicga...@gmail.com Actually, i do something a bit nasty to get a seperate Android library project. In your SDK folder you have several android jars for the different Android versions. I simply create a Java project and add the lowest Android version jar i want to support as a dependency et voila you have a nice Android library project. On 4 Mai, 08:11, Menion menion.as...@gmail.com wrote: You say that sharing resources between projects is coming? Hopefully, thx for very, very good info :) On May 3, 11:34 pm, Xavier Ducrohet x...@android.com wrote: If you're code is straight java with no android resources then just create a Java project and reference it by your Android projects. Android libraries allowing you to share (android specific) code and resources between projects is not supported at the moment, but it's coming. Shared libraries are not supported at this time by the platform and I don't think there's any plan for it. Xav 2010/5/3 Rafał Grzybowski aguyngue...@gmail.com: I'm working on two android applications and would like to share some code between them. My guess is I need to create Java library and put all the required code there. But I don't know: - what kind of project create for the library in Eclipse, - does the shared library can contain Android resources, - what about AndroidManifest.xml for the library, is it possible to have one, - is it possible to deploy shared library once on the device or is it shareable during development and then deployed per Android application? Thank you. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Drawing a differnt lines in OpenGL ES
Quad + texture or a mesh, depends on your needs. On 28 April 2010 15:14, satish bhoyar getsatonl...@gmail.com wrote: Hi all guys, how to draw different types of lines like thick line, dashed line etc using opengl android? thanks satish -- 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] How to overlay a GLSurfaceview on a surfaceview?
On 27 April 2010 09:16, Paolo brand...@gmail.com wrote: is there anyone who knows how to overlay a GLSurfaceview on a Surfaceview? The Surfaceview is used for the camera preview. You can put camera preview image on a textured quad and render it in the background (reset camera to ortho view, render background, set camera to regular scene transform, render scene). HTH, Max -- 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] Re: code for capturing screenshot of android device
Sudheendra, this is what I dug out from the depths of my SVN repo :) I told you it was simple, didn't I? :) If you don't have a current view you can get it using getWindow().getDecorView(). HTH, Max private static void screenshot(View view) { view.setDrawingCacheEnabled(true); Bitmap screenshot = view.getDrawingCache(false); String filename = screenshot.png; try { File f = new File(Environment.getExternalStorageDirectory(), filename); f.createNewFile(); OutputStream outStream = new FileOutputStream(f); screenshot.compress(Bitmap.CompressFormat.PNG, 100, outStream); outStream.close(); } catch (IOException e) { e.printStackTrace(); } view.setDrawingCacheEnabled(false); } On 28 April 2010 07:43, Sudheendra sudhindra.ma...@gmail.com wrote: Thanks Max , I will check out he app , also please let me know the code. Thanks a lot On Apr 28, 6:07 am, Max Gilead max.gil...@gmail.com wrote: You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still need it (it's for capturing screenshot of your Activity). Capturing phone's desktop is also possible w/o rooting, see iSteam app from the Market but I never tried that. Cheers, Max On 27 Apr 2010 09:01, Sudheendra sudhindra.ma...@gmail.com wrote: Thanks String , Thanks John ... So using rooted phone how can i do it On Apr 27, 12:38 pm, String sterling.ud...@googlemail.com wrote: On Apr 27, 7:54 am, Sudheendra... 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 ... -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] [OpenGL] change coodinate system
Sure there is, you just have to multiply by a suitable matrix. A simple google query will tell you how it should be done. On 28 April 2010 03:13, Juan Aranda-Alvarez juan.arandaalva...@gmail.comwrote: OpenGL works in 3D space, so if you would like another orientation you could rotate the scene moving the POV (camera) position. But there is no way to move from a right-hand coordinate system to a Left-side one. On Tue, Apr 27, 2010 at 8:24 AM, Paolo brand...@gmail.com wrote: Is it possibile to change the corrdinate system of openGL? Now i have the origin in the botton-left corner, with the x-axis points to right, the y-axis points to up and the z-axis points to me. I want the origin in the botton-right corner, with the x-axis point to left, the y-axis point to up and z-axis point always to me. is it possible? How? Thanks to all. -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Receive Bluetooth Serial Data and Graph
Hi Bonchai! See this Stack Overflow discussion: http://stackoverflow.com/questions/2660968/ At first try to use code similar to Test Application No. 1 as createRfcommSocketToServiceRecord(UID) is the 'official' way of connecting to a Bluetooth device (if it supports it that is :) ). Failing that you can use reflection-based version which should work with pretty much everything. Cheers, Max On 28 April 2010 12:24, bonchai gcb...@googlemail.com wrote: Hello All, I'm very new to the Android platform, but i was hoping to write a quick and neat little android app which will receive data from bluetooth and to graph the data. I'm trying to use a LM Technologies LM049 bluetooth adapter to send serial data to my HTC Dersire 2.1 android handset. At the moment i'm trying to just prove i can send ascii characters to the phone. Not quite sure where to begin any pointers wouldbe much appreciated! Thank you. bonchai -- 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: Bluetooth pairing request
Just a wild guess but maybe there is a way to pull down notification area programmatically so it's obvious to the user that there's something to click on? It's obviously a workaround but would be better than nothing. On 28 April 2010 17:16, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm interested in this topic as well. I'm new to Android development, but am working on an app that will connect to an off the shelf Serial Port Profile device. When my code attempts to connect to an unpaired device, the only thing I see on screen is the notification at the top of the device. I then have to pull the menu down and click on it in order to get to the dialog to enter the pairing code. I hope there is a way around this, as this will make the android solution very unusable for our users. On Apr 21, 9:14 pm, Nand nandithab...@gmail.com wrote: Hi, Did you get the solution for your problem? Even I want to do the same. Please reply. Regards, Nand -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: bluetooth - IOException: Connection refused
I was getting connection refused errors as well and had to use reflection to get to non-public method that allows you to connect using RFCOMM channel number directly: http://stackoverflow.com/questions/2660968/ If that helps you hit bug http://code.google.com/p/android/issues/detail?id=5427 HTH, Max On 29 April 2010 01:01, DonFrench dcfre...@gmail.com wrote: I found it I still don't know how to do it programmatically but at least now I know that it is possible to unpair by going to SettingsWireless Networks Bluetooth Settings and long press on the appropriate device in the list of paired devices. And by unpairing the device that I could not connect to before, I now can. I still don't understand what caused the problem I had (inability to connect to one of two identical devices) but it was fixed by unpairing. On Apr 28, 4:43 pm, DonFrench dcfre...@gmail.com wrote: Are you doing the pair/unpair on the Nexus or the other device? If on the Nexus, please tell me how to do that. I have a different problem that might be related to pairing and I could test my theory if I could unpair.a previously paired device. Unfortunately I don't have the ability to do it from the other device. On Apr 28, 9:22 am, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm working with off the shelf SPP device (bluetooth 2.1), and am running into a similar issue. When I attempt to connect, I'm getting the same Connection refused exception. One thing i've noticed is that if I manually unpair and re-pair my device via the built in settings, I'm able to connect one time, and then it gets back to the connection refused error after that. I'm using a Nexus One. On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote: Hi, I'm able to discover devices which rbluetoothON from my application. But when i try to connect using the Bluetoothsocket's connect() method, I'm getting an IOException: Connection refused. I'm using the following UUID private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); Please help in solving this issue. Thanks in advance, Nand -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: code for capturing screenshot of android device
You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still need it (it's for capturing screenshot of your Activity). Capturing phone's desktop is also possible w/o rooting, see iSteam app from the Market but I never tried that. Cheers, Max On 27 Apr 2010 09:01, Sudheendra sudhindra.ma...@gmail.com wrote: Thanks String , Thanks John ... So using rooted phone how can i do it On Apr 27, 12:38 pm, String sterling.ud...@googlemail.com wrote: On Apr 27, 7:54 am, Sudheendra... 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 ... -- 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] Re: Android on Symbian
Chirayu, these were actually quite good answers. As javame_android mentioned, Android is Linux-based so theoretically you can port it to any device that supports installing 3rd party OS on it as long as kernel is ported to its CPU architecture and you've got necessary drivers. It would be best to do some research and/or, as Disconnect suggested, ask people familiar with a particular device whether it's possible or not. Porting any OS to a new hardware platform is not a trivial thing though. HTH, Max -- 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] Re: Android on Symbian
On 21 April 2010 11:52, Chirayu Dalwadi chirayu.dalw...@gmail.com wrote: javame_android's reply was perfect. But i was annoyed by Disconnect's reply Welcome to the internet ;) You may need to grow a thick skin and keep your head cool if you want to talk on tech forums :) -- 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] 2.1 Bluetooth support still needs work
Hi Anders! You can search list archives for others with BT-related issues. I for one am having problems with it too (Droid with 2.0.1 firmware, still waiting for OTA 2.1 update). When every other phone/laptop I tried can connect to a device and even my Droid can connect to is using low-level driver but it's plain impossible from application level I'd say we have a bug here (full story @ http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after ) Philipp's thread: http://groups.google.com/group/android-developers/browse_thread/thread/a7ff7771ae3be1c/99e0a638c37b9ae5?hl=enlnk=gstq=Android+Bluetooth+Development+-+Problem+connecting#99e0a638c37b9ae5 My problem: http://groups.google.com/group/android-developers/browse_thread/thread/440da759b1935108/4c014dd6433cc440?hl=enlnk=gstq=Bluetooth+RFCOMM+connection+dying+immediately+after+.connect%28%29#4c014dd6433cc440 Cheers, Max -- 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] Re: compatibility with nonexistant classes
Dianne, what's wrong with checking version number? Unless there's some problem with it I'd suggest going with Mark's solution (also covered in http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html). You can use it for most cases and it's much cleaner (and definitely stay away from reflection-based one unless, for some reason, there's no other choice). Cheers, Max On 21 April 2010 01:43, Dianne Hackborn hack...@android.com wrote: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Or actually it appears this has become a tech article: http://developer.android.com/resources/articles/backward-compatibility.html http://developer.android.com/resources/articles/backward-compatibility.htmlThe last section, Using a wrapper class, talks about this. On Tue, Apr 20, 2010 at 5:01 PM, Christopher christopher.t.mor...@gmail.com wrote: Diane, Can you please explain what blog post you're referring to in your post? On Apr 20, 2:26 pm, Dianne Hackborn hack...@android.com wrote: I suggest not using the SDK version, but just use the trick in the blog post to detect if the class doesn't exist before trying to use it. On Tue, Apr 20, 2010 at 1:00 PM, kec6227 kec6...@gmail.com wrote: Oh ok, that makes perfect sense. Thank you. On Apr 20, 12:11 pm, Mark Murphy mmur...@commonsware.com wrote: kec6227 wrote: Using? a wrapper class of sorts? If I initiate the WallpaperManager anywhere in my code, it will throw a VerifyError on older platforms, I tried something like this: if(Integer.parseInt(Build.VERSION.SDK) = 5){ WallpaperManager wallMan.. ...blah blah } The only way it does not throw a verifyerror is when I don't use the WallpaperManager anywhere. That's not strictly true. You only will get a VerifyError if you load a class that refers to WallpaperManager. So, the trick is to use reflection or conditional class loading to only load your code referencing WallpaperManager on suitable versions. For example: if(Integer.parseInt(Build.VERSION.SDK) = 5){ new MyWallpaperBridge().goDoSomething(); } Or, create an interface and two implementations, and choose the implementation based on the version, as seen here: http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinn... -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy Android Training in US: 14-18 June 2010:http://bignerdranch.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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should
[android-developers] Re: Android Bluetooth Development - Problem connecting
Hi Phil! I just found your post and thought I'd chime in. Funnily enough I'm just spending second day trying to connect to a device with very similar signature to yours and I'm using code which is pretty much the same as yours and, of course, I can't make it work as well so I thought we could coordinate our efforts. I'm attaching the result of my experiments using bluez at the end of this email. As you can see the device report some UUID but I think it's UUID for service discovery only because if I try to connect to it the .connect() call gets through without any problems but the device doesn't stay connected and, obviously, doesn't transmit any data. I tried these UUIDs (actually more but these are the ones I have on record :) ), without success: 8e1f0cf7-508f-4875-b62c-fbb67fd34812 // the one device reports and a lot of base+number UUIDs: --1000-8000-00805F9B34FB with X being 0001, 0003, 0040, 04fb, 1000, 1101, 1124, 1240 and a host of others. The 1240 one is a random guess as I'm getting Received signal org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/ dev_00_1C_4D_02_A6_55 errors on LogCat so I gave '1240' a try. I'm not even sure the base-uuid-plus-some-number scheme is a good idea any more. If you solve your problem please shout, I'll report any successes as well. Good luck! :) Cheers, Max $ sdptool browse Inquiring ... Browsing 00:1C:4D:02:A6:55 ... $ sdptool records 00:1C:4D:02:A6:55 Service Name: Zeemote Service RecHandle: 0x10015 Service Class ID List: UUID 128: 8e1f0cf7-508f-4875-b62c-fbb67fd34812 Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Channel: 1 Language Base Attr List: code_ISO639: 0x656e encoding:0x6a base_offset: 0x100 $ rfcomm connect /dev/tty10 00:1C:4D:02:A6:55 Connected /dev/rfcomm0 to 00:1C:4D:02:A6:55 on channel 1 Press CTRL-C for hangup # rfcomm show /dev/tty10 rfcomm0: 00:1F:3A:E4:C8:40 - 00:1C:4D:02:A6:55 channel 1 connected [reuse-dlc release-on-hup tty-attached] # cat /dev/tty10 (nothing here) # hcidump HCI sniffer - Bluetooth packet analyzer ver 1.42 device: hci0 snap_len: 1028 filter: 0x HCI Command: Create Connection (0x01|0x0005) plen 13 HCI Event: Command Status (0x0f) plen 4 HCI Event: Connect Complete (0x03) plen 11 HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2 HCI Event: Read Remote Supported Features (0x0b) plen 11 ACL data: handle 11 flags 0x02 dlen 10 L2CAP(s): Info req: type 2 HCI Event: Command Status (0x0f) plen 4 HCI Event: Page Scan Repetition Mode Change (0x20) plen 7 HCI Event: Max Slots Change (0x1b) plen 3 HCI Command: Remote Name Request (0x01|0x0019) plen 10 HCI Event: Command Status (0x0f) plen 4 ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Info rsp: type 2 result 0 Extended feature mask 0x ACL data: handle 11 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0040 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x04fb scid 0x0040 result 1 status 2 Connection pending - Authorization pending HCI Event: Remote Name Req Complete (0x07) plen 255 ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x04fb scid 0x0040 result 0 status 0 Connection successful ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x04fb flags 0x00 clen 4 MTU 1013 ACL data: handle 11 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success ACL data: handle 11 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4 MTU 1013 ACL data: handle 11 flags 0x02 dlen 18 L2CAP(s): Config rsp: scid 0x04fb flags 0x00 result 0 clen 4 MTU 1013 ACL data: handle 11 flags 0x02 dlen 8 L2CAP(d): cid 0x04fb len 4 [psm 3] RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 11 flags 0x02 dlen 8 L2CAP(d): cid 0x0040 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 ACL data: handle 11 flags 0x02 dlen 18 L2CAP(d): cid 0x04fb len 14 [psm 3] RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0 frame_size 1008 max_retrans 0 credits 7 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 11 flags 0x02 dlen 18 L2CAP(d): cid 0x0040 len 14 [psm 3] RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8 dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0 frame_size 1008 max_retrans 0 credits 0 ACL data: handle 11 flags 0x02 dlen 8 L2CAP(d): cid 0x04fb len 4 [psm 3] RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59 ACL data: handle 11 flags 0x02 dlen 8 L2CAP(d): cid 0x0040 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92 ACL data: handle 11 flags 0x02 dlen 12 L2CAP(d): cid 0x04fb len 8 [psm 3
[android-developers] Bluetooth RFCOMM connection dying immediately after .connect()
Hi! I'm trying to connect to Zeemote (http://zeemote.com/) gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect to the device (LED flashes) but connection is dropped immediately. I can connect to the device perfectly fine using bluez tools (log attached as well). I'm quite at a loss here, I work on it for so long that I ran out of ideas so any help would be very much appreciated. Btw, looks like this issue is somewhat similar to http://groups.google.com/group/android-developers/browse_thread/thread/a7ff7771ae3be1c/6f8bb2bc0300806c?hl=enlnk=gstq=bluetooth+connecting#6f8bb2bc0300806c Thanks, Max === Code: package zee.test; import java.io.IOException; import java.io.InputStream; import java.util.UUID; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.os.Bundle; import android.util.Log; public class ZeeTest extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { test(); } catch (IOException e) { e.printStackTrace(); } } public void test() throws IOException { BluetoothDevice zee = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(00:1C:4D:02:A6:55); Log.d(ZeeTest, Creating socket); BluetoothSocket sock = zee.createRfcommSocketToServiceRecord(UUID.fromString(8e1f0cf7-508f-4875-b62c-fbb67fd34812)); Log.d(, Connecting); sock.connect(); Log.d(, Connected); final InputStream in = sock.getInputStream(); new Thread() { @Override public void run() { byte[] buffer = new byte[32]; int bytes = 0; int x = 0; Log.d(, Listening...); while (x 200) { x++; try { bytes = in.read(buffer); Log.d(ZeeTest, Read + bytes + bytes); } catch (IOException e) { if (x % 50 == 0) { Log.d(, Tried + x + times (+ bytes +)); } try { Thread.sleep(100); } catch (InterruptedException ie) {} } } Log.d(ZeeTest, Done: thread exit); } }.start(); Log.d(ZeeTest, Done: test()); } } === Log: I/ActivityManager( 1169): Start proc zee.test for activity zee.test/.ZeeTest: pid=4294 uid=10084 gids={3002, 3001, 3003} I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) D/dalvikvm( 4287): LinearAlloc 0x0 used 640700 of 5242880 (12%) I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=20) D/ZeeTest ( 4294): Creating socket D/( 4294): Connecting E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55 I/usbd( 1068): process_usb_uevent_message(): buffer = add@ /devices/virtual/bluetooth/hci0/hci0:1 I/usbd( 1068): main(): call select(...) E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/1240/hci0 V/BluetoothEventRedirector( 1242): Received android.bluetooth.device.action.FOUND V/BluetoothEventRedirector( 1242): Received android.bleutooth.device.action.UUID D/( 4294): Connected D/ZeeTest ( 4294): Done: test() D/( 4294): Listening... I/ActivityManager( 1169): Displayed activity zee.test/.ZeeTest: 2296 ms (total 2296 ms) E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55 I/usbd( 1068): process_usb_uevent_message(): buffer = remove@ /devices/virtual/bluetooth/hci0/hci0:1 I/usbd( 1068): main(): call select(...) V/BluetoothEventRedirector( 1242): Received android.bleutooth.device.action.UUID D/( 4294): Tried 50 times (0) D/( 4294): Tried 100 times (0) D/( 4294): Tried 150 times (0) D/( 4294): Tried 200 times (0) D/ZeeTest ( 4294): Done: thread exit === Terminal log: $ sdptool browse Inquiring ... Browsing 00:1C:4D:02:A6:55 ... $ sdptool records 00:1C:4D:02:A6:55 Service Name: Zeemote Service RecHandle: 0x10015 Service Class ID List: UUID 128: 8e1f0cf7-508f-4875-b62c-fbb67fd34812 Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Channel: 1 Language Base Attr List: code_ISO639: 0x656e encoding:0x6a base_offset: 0x100 $ rfcomm connect /dev/tty10 00:1C:4D:02:A6:55 Connected /dev/rfcomm0 to 00
Re: [android-developers] Opengl
On 19 April 2010 04:42, risha risha.kott...@wipro.com wrote: Let me know how to set up a background image in opengl Before you render your scene set up an ortho projection and render a quad with aspect ratio equal to your screen aspect (or just square quad if your background is a tiling image) then reset camera to your normal scene render mode and proceed with the rest. BTW, you can do overlays the same way except in reverse order -- first you render your scene then you set camera to ortho projection and render your UI. HTH, Max -- 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: Bluetooth RFCOMM connection dying immediately after .connect()
Any Bluetooth fellow devs willing to try and give some hints maybe? :) The updated version of this issue is at: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after Cheers, Max On 18 April 2010 02:36, Max Gilead max.gil...@gmail.com wrote: Hi! I'm trying to connect to Zeemote (http://zeemote.com/) gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect to the device (LED flashes) but connection is dropped immediately. I can connect to the device perfectly fine using bluez tools (log attached as well). I'm quite at a loss here, I work on it for so long that I ran out of ideas so any help would be very much appreciated. Btw, looks like this issue is somewhat similar to http://groups.google.com/group/android-developers/browse_thread/thread/a7ff7771ae3be1c/6f8bb2bc0300806c?hl=enlnk=gstq=bluetooth+connecting#6f8bb2bc0300806c Thanks, Max === Code: package zee.test; import java.io.IOException; import java.io.InputStream; import java.util.UUID; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.os.Bundle; import android.util.Log; public class ZeeTest extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { test(); } catch (IOException e) { e.printStackTrace(); } } public void test() throws IOException { BluetoothDevice zee = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(00:1C:4D:02:A6:55); Log.d(ZeeTest, Creating socket); BluetoothSocket sock = zee.createRfcommSocketToServiceRecord(UUID.fromString(8e1f0cf7-508f-4875-b62c-fbb67fd34812)); Log.d(, Connecting); sock.connect(); Log.d(, Connected); final InputStream in = sock.getInputStream(); new Thread() { @Override public void run() { byte[] buffer = new byte[32]; int bytes = 0; int x = 0; Log.d(, Listening...); while (x 200) { x++; try { bytes = in.read(buffer); Log.d(ZeeTest, Read + bytes + bytes); } catch (IOException e) { if (x % 50 == 0) { Log.d(, Tried + x + times (+ bytes +)); } try { Thread.sleep(100); } catch (InterruptedException ie) {} } } Log.d(ZeeTest, Done: thread exit); } }.start(); Log.d(ZeeTest, Done: test()); } } === Log: I/ActivityManager( 1169): Start proc zee.test for activity zee.test/.ZeeTest: pid=4294 uid=10084 gids={3002, 3001, 3003} I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) D/dalvikvm( 4287): LinearAlloc 0x0 used 640700 of 5242880 (12%) I/dalvikvm( 4294): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=20) D/ZeeTest ( 4294): Creating socket D/( 4294): Connecting E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55 I/usbd( 1068): process_usb_uevent_message(): buffer = add@ /devices/virtual/bluetooth/hci0/hci0:1 I/usbd( 1068): main(): call select(...) E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/1240/hci0 V/BluetoothEventRedirector( 1242): Received android.bluetooth.device.action.FOUND V/BluetoothEventRedirector( 1242): Received android.bleutooth.device.action.UUID D/( 4294): Connected D/ZeeTest ( 4294): Done: test() D/( 4294): Listening... I/ActivityManager( 1169): Displayed activity zee.test/.ZeeTest: 2296 ms (total 2296 ms) E/BluetoothEventLoop.cpp( 1169): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/1240/hci0/dev_00_1C_4D_02_A6_55 I/usbd( 1068): process_usb_uevent_message(): buffer = remove@ /devices/virtual/bluetooth/hci0/hci0:1 I/usbd( 1068): main(): call select(...) V/BluetoothEventRedirector( 1242): Received android.bleutooth.device.action.UUID D/( 4294): Tried 50 times (0) D/( 4294): Tried 100 times (0) D/( 4294): Tried 150 times (0) D/( 4294): Tried 200 times (0) D/ZeeTest ( 4294): Done: thread exit === Terminal log: $ sdptool browse Inquiring
Re: [android-developers] Re: Android Bluetooth Development - Problem connecting
Hi Serge! Moto Droid 2.0.1 here. I described the issue in much more (and up to date) detail on Stack Overflow: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after What kind of timing issue you think about? Cheers, Max On 19 April 2010 21:26, ssozonoff se...@sozonoff.com wrote: Hi Guys, I am having the same issue with code which worked fine on the HTC Legend and now fails on the HTC Desire. Could you report which handsets you are using as well. I would like to establish if this could be some sort of timing related issue. Thanks, Serge On Apr 18, 12:32 am, Max max.gil...@gmail.com wrote: Hi Phil! I just found your post and thought I'd chime in. Funnily enough I'm just spending second day trying to connect to a device with very similar signature to yours and I'm using code which is pretty much the same as yours and, of course, I can't make it work as well so I thought we could coordinate our efforts. -- 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.comandroid-developers%2bunsubscr...@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] Restoring ScrollView scroll position after orientation change
I am making an app which uses a ScrollView to display a bunch of images. When switching to horizontal orientation the view will be replaced with a HorizontalScrollView. I want to preseve the scroll position after orientation change, and I tried to save the position in onSaveInstanceState/onRestoreInstanceState. However it appears the ScrollView is not fully rendered at onRestoreInstanceState (scrollView.getHeight() returns 0 at this point), so calling scrollView.scrollTo(saved_position) has no effect. Does anyone know how to do this properly? -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Can't send MMS after update eclair
Hi all, I can't send the MMS after I update to eclair, but I can send the MMS success in the donut. Does anyone have the same problem? success in donut D/GSM ( 944): [PdpConnection] DataConnection.handleMessage() D/GSM ( 944): [PdpConnection] Notify PDP disconnect D/GSM ( 944): [PdpConnection] DataConnection.clearSettings() D/GSM ( 944): [PdpConnection] PDP Connection Deactivated D/GSM ( 944): [GsmDataConnectionTracker] EVENT_DISCONNECT_DONE D/GSM ( 944): [GsmDataConnectionTracker] setState: IDLE D/GSM ( 944): [GsmDataConnectionTracker] ***trySetupData due to apnSwitched D/GSM ( 944): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 944): [GsmDataConnectionTracker] Create from allApns : [VIBO, 26, 46689, vibo, null, null, null, null, null, default][VIBO MMS, 27, 46689, vibo, null, http://mms, 172.24.128.36, 8080, null, mms] D/GSM ( 944): [GsmDataConnectionTracker] Setup watingApns : [VIBO MMS, 27, 46689, vibo, null, http://mms, 172.24.128.36, 8080, null, mms] D/GSM ( 944): [PdpConnection] DataConnection.getState() D/GSM ( 944): [PdpConnection] Connecting to carrier: 'VIBO MMS' APN: 'vibo' proxy: 'null' port: 'null D/RILJ( 944): [0096] SETUP_DATA_CALL vibo D/GSM ( 944): [GsmDataConnectionTracker] setState: INITING D/RILJ( 944): [0096] SETUP_DATA_CALL {1, gprs, 110.50.182.195} D/GSM ( 944): [PdpConnection] DataConnection.handleMessage() D/GSM ( 944): [PdpConnection] interface=gprs ipAddress=110.50.182.195 gateway=110.50.182.1 DNS1=172.24.9.33 DNS2=172.24.128.3 D/GSM ( 944): [PdpConnection] Notify PDP success at 1267531848008 D/GSM ( 944): [PdpConnection] PDP setup on cid = 1 D/GSM ( 944): [GsmDataConnectionTracker] setState: CONNECTED D/GSM ( 944): [DataConnection] Start poll NetStat D/GSM ( 944): enableApnType(mms) D/GSM ( 944): setEnabled(mms, true) D/GSM ( 944): dataEnabled[DEFAULT_APN]=true dataEnabled[MMS_APN]=true dataEnabled[SUPL_APN]=false fail in eclair D/GSM ( 915): [PdpConnection] DataConnection.handleMessage() D/GSM ( 915): [PdpConnection] Notify PDP disconnect D/GSM ( 915): [PdpConnection] DataConnection.clearSettings() D/GSM ( 915): [PdpConnection] PDP Connection Deactivated D/GSM ( 915): GSMDataConnTrack handleMessage { what=25 when=209428 obj=android.os.asyncres...@43e1a9e0 } D/GSM ( 915): [GsmDataConnectionTracker] EVENT_DISCONNECT_DONE D/GSM ( 915): [GsmDataConnectionTracker] setState: IDLE D/GSM ( 915): [GsmDataConnectionTracker] ***trySetupData due to apnSwitched D/GSM ( 915): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 915): [GsmDataConnectionTracker] Create from allApns : [VIBO, 26, 46689, vibo, null, null, null, null, null, -1, default] [VIBO MMS, 27, 46689, vibo, null, http://mms, 172.24.128.36, 8080, null, -1, mms] D/GSM ( 915): [GsmDataConnectionTracker] Setup waitngApns : [VIBO MMS, 27, 46689, vibo, null, http://mms, 172.24.128.36, 8080, null, -1, mms] D/GSM ( 915): [PdpConnection] DataConnection.getState() D/GSM ( 915): [PdpConnection] Connecting to carrier: 'VIBO MMS' APN: 'vibo' proxy: 'null' port: 'null D/RILJ( 915): [0090] SETUP_DATA_CALL 1 0 vibo null null 0 D/GSM ( 915): [GsmDataConnectionTracker] setState: INITING D/RILJ( 915): [0090] SETUP_DATA_CALL {1, gprs, 110.50.134.141} D/GSM ( 915): [PdpConnection] DataConnection.handleMessage() D/GSM ( 915): [PdpConnection] interface=gprs ipAddress=110.50.134.141 gateway=110.50.134.1 DNS1=172.24.9.33 DNS2=172.24.128.3 D/GSM ( 915): [PdpConnection] Notify PDP success at 1267520549649 D/GSM ( 915): [PdpConnection] PDP setup on cid = 1 D/GSM ( 915): GSMDataConnTrack handleMessage { what=1 when=213086 arg1=1 obj=android.os.asyncres...@43e016e8 } D/GSM ( 915): [GsmDataConnectionTracker] setState: CONNECTED D/GSM ( 915): [DataConnection] Start poll NetStat D/GSM ( 915): GSMDataConnTrack handleMessage { what=23 when=214041 arg1=1 } D/GSM ( 915): [GsmDataConnectionTracker] Clean up connection due to apnSwitched D/GSM ( 915): [GsmDataConnectionTracker] setState: DISCONNECTING D/RILJ( 915): [0091] DEACTIVATE_DATA_CALL 1 D/GSM ( 915): [DataConnection] Stop poll NetStat Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Nexus One Multitouch Bug?
Hi, i'm getting touch event(s) that didn't occur on Nexus One. For example, while holding down at location (x,y) = (210, 780), try to press down location (70, 200). You will see DOWN/MOVE event(s) at location around (180, 200). This does not happen on Droid. Is this bug in Nexus One? -- 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] motally analytics for Android
Is anyone using motally for analytics? If yes - did you experience any problems? I am just wondering how are they since I want to try them out. Thanks, Max. -- 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: Do I need to notify users that I'm using analytics in my Android app? (like Flurry, Admob analytics or even logging tool like DriodDrop)
I think that you should not worry about this since as long as you do not identify the users by location and/or IMEI number the data is anonymous. Although I am not sure. I would think that this is fine to use any information that you want. Even if you record for example date of birth information in your application and store it on your server this is fine. People have the option to enter it or not. They have the option of not using your application. So although I think this would be totally fine from legal perspective (btw, there are some rules if you store very sensitive information like SS, name, bank account etc... but that's not the case obviously), as a sign of good faith you should tell the users whether you store this information or not. It would be interesting to get an official reply from Google and/or from law savvy individuals. Regards, Max. P.S. this is developer forum and it may be the wrong place for such a question. On Dec 3, 9:26 pm, hzakimoto hzakim...@gmail.com wrote: Topic. If yes, then to what degree? I mean, do I need to hire a lawyer to write something like 'Privacy Policy' for me? Or just telling the users in the Android Market download page like this is enough: Update: version 1.0.5 - Added Flurry.com analytics to help me track fix bugs Thank you 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
[android-developers] Re: android.R.drawable.ic_menu_home - can not use
Diane and Mark either I do not understand something, or I am not being understood. If I use android.R.drawable.ic_menu_home for Home menu icon, it will _automatically_ change whenever this icon is updated. Isn't it? If yes then whenever manufacturers change this icon or as you said Diane, the platform evolves, the icon will (again) automatically change without any need to change my application. If I wanted to use those icons and copied then they will stay the same forever unless I change them. Does that make more sense now? Regards, Max. -- 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: why is my app asking to access phone calls and storage?
Can anyone please confirm this: I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storage permissions always come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. message from Jarcikon (4-th from top). Thanks and regards, Max. On Nov 29, 2:11 pm, Max Binshtok max.binsh...@gmail.com wrote: Rachel, thanks for the extended explanation but I did understand what Diane was saying. I just don't see how this can solve my problem. Or better put how this problem can be solved. I might be wrong (I probably am) but I remember that initially I wanted to get the IMEI or something and without requesting PHONE_STATE the app crashed. But it was on 1.0 and not 1.5. Doesn't matter now anyway. Diane, what would be the right place to put this? It was just before supports-screens ... / in my manifest, which was the last tag in the manifest. I tried removing it and adding through the wizard the wizard placed it as the last tag in the manifest. I tried moving it to the very top as the first tag after the opening manifest .. tag. Did not work. Can you please confirm this: I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storage permissions always come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. message from Jarcikon (4-th from top). That was my original intent in the original post. If that's not the case - then what do I need to do - there must be some way to overcome this problem since I don't need those permissions. I don't want to put out a newer version to the market and have this problem and then I can't basically go back. I have updated my application to support various screen densities long time ago, but this permission thing was holding pushing the update forever. Thanks, Max. On Nov 29, 11:52 am, Dianne Hackborn hack...@android.com wrote: Are you sure you are putting uses-sdk in the right place? And thanks Rachel for the explanation. Trying to explain to the user some subtlety about old applications here seemed pretty difficult, and not to useful for a temporary situation. On Sat, Nov 28, 2009 at 12:02 PM,Max Binshtokmax.binsh...@gmail.comwrote: How do I overcome this? I have: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/ uses-sdk If that is what you mean by explicitly targeting API 4 or latter then this does not seem to solve the problem. I don't need and don't want those permissions. Thanks. Slightly OFF TOPIC: I don't understand... Why do you want to tell people that my application requires phone permissions when it clearly doesn't? This is really, *really* bad! People are suspicious and hesitant to install apps that require not needed permissions. Moreover, PHONE_STATE permission has this weird interpretation in a smaller font - read phone state and identity (Identity!? People are terrified by all identity theft propaganda). At some point I asked for PHONE_STATE permissions to access the serial number to be able to tell different users apart. Do you know what this lead to? I had a real comment on the market from someone who claimed that I stole his password (whatever this means) and he had to spend 3 hours on the phone with TMobile to gain control of his phone (with foul language all over the comment) . I don't need those permissions and I don't want people to be suspicious and write stupid comments and this is not only me as the first message attests as well. Regards, Max. On Nov 28, 1:44 pm, Dianne Hackborn hack...@android.com wrote: Yes, and I am saying this is the normal expected behavior for apps that are not explicitly targeting API 4 or later. On Sat, Nov 28, 2009 at 10:35 AM,Max Binshtokmax.binsh...@gmail.com wrote: Diane, it seems to me that you did not understand the problem. I (and I believe other people) do NOT ask for those permissions in the manifest since I do not need them. But when the application is to be installed they show up (it says that the app is asking for those permissions). Please read the very first post. It says that Hello World application when to be installed is asking for those permissions although they are not present in manifest. Regards, Max. On Nov 26, 1:46 am, Dianne Hackborn hack...@android.com wrote: These are new permissions added to 1.6. If an application is targeting anything below API 4 (1.6), they will automatically be requested because in 1.5 and lower there was no restriction on these operations. As of 1.6 these permissions were added, and if you target API 4 or later you need to explicitly request
[android-developers] Re: why is my app asking to access phone calls and storage?
Rachel, thanks for the extended explanation but I did understand what Diane was saying. I just don't see how this can solve my problem. Or better put how this problem can be solved. I might be wrong (I probably am) but I remember that initially I wanted to get the IMEI or something and without requesting PHONE_STATE the app crashed. But it was on 1.0 and not 1.5. Doesn't matter now anyway. Diane, what would be the right place to put this? It was just before supports-screens ... / in my manifest, which was the last tag in the manifest. I tried removing it and adding through the wizard the wizard placed it as the last tag in the manifest. I tried moving it to the very top as the first tag after the opening manifest .. tag. Did not work. Can you please confirm this: I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storage permissions always come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. message from Jarcikon (4-th from top). That was my original intent in the original post. If that's not the case - then what do I need to do - there must be some way to overcome this problem since I don't need those permissions. I don't want to put out a newer version to the market and have this problem and then I can't basically go back. I have updated my application to support various screen densities long time ago, but this permission thing was holding pushing the update forever. Thanks, Max. On Nov 29, 11:52 am, Dianne Hackborn hack...@android.com wrote: Are you sure you are putting uses-sdk in the right place? And thanks Rachel for the explanation. Trying to explain to the user some subtlety about old applications here seemed pretty difficult, and not to useful for a temporary situation. On Sat, Nov 28, 2009 at 12:02 PM, Max Binshtok max.binsh...@gmail.comwrote: How do I overcome this? I have: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/ uses-sdk If that is what you mean by explicitly targeting API 4 or latter then this does not seem to solve the problem. I don't need and don't want those permissions. Thanks. Slightly OFF TOPIC: I don't understand... Why do you want to tell people that my application requires phone permissions when it clearly doesn't? This is really, *really* bad! People are suspicious and hesitant to install apps that require not needed permissions. Moreover, PHONE_STATE permission has this weird interpretation in a smaller font - read phone state and identity (Identity!? People are terrified by all identity theft propaganda). At some point I asked for PHONE_STATE permissions to access the serial number to be able to tell different users apart. Do you know what this lead to? I had a real comment on the market from someone who claimed that I stole his password (whatever this means) and he had to spend 3 hours on the phone with TMobile to gain control of his phone (with foul language all over the comment) . I don't need those permissions and I don't want people to be suspicious and write stupid comments and this is not only me as the first message attests as well. Regards, Max. On Nov 28, 1:44 pm, Dianne Hackborn hack...@android.com wrote: Yes, and I am saying this is the normal expected behavior for apps that are not explicitly targeting API 4 or later. On Sat, Nov 28, 2009 at 10:35 AM, Max Binshtok max.binsh...@gmail.com wrote: Diane, it seems to me that you did not understand the problem. I (and I believe other people) do NOT ask for those permissions in the manifest since I do not need them. But when the application is to be installed they show up (it says that the app is asking for those permissions). Please read the very first post. It says that Hello World application when to be installed is asking for those permissions although they are not present in manifest. Regards, Max. On Nov 26, 1:46 am, Dianne Hackborn hack...@android.com wrote: These are new permissions added to 1.6. If an application is targeting anything below API 4 (1.6), they will automatically be requested because in 1.5 and lower there was no restriction on these operations. As of 1.6 these permissions were added, and if you target API 4 or later you need to explicitly request the permission in your manifest to be granted it. On Wed, Nov 25, 2009 at 10:17 PM, Max Binshtok max.binsh...@gmail.com wrote: I am having the same problem and I just want to confirm: You are saying that when you try to install over the air (just by downloading APK file) you get asked those permissions, but when your application is installed through the Android Market - you are NOT asked for PHONE_STATE and STORAGE? Is that correct? From my side I can add
[android-developers] Re: why is my app asking to access phone calls and storage?
Diane, it seems to me that you did not understand the problem. I (and I believe other people) do NOT ask for those permissions in the manifest since I do not need them. But when the application is to be installed they show up (it says that the app is asking for those permissions). Please read the very first post. It says that Hello World application when to be installed is asking for those permissions although they are not present in manifest. Regards, Max. On Nov 26, 1:46 am, Dianne Hackborn hack...@android.com wrote: These are new permissions added to 1.6. If an application is targeting anything below API 4 (1.6), they will automatically be requested because in 1.5 and lower there was no restriction on these operations. As of 1.6 these permissions were added, and if you target API 4 or later you need to explicitly request the permission in your manifest to be granted it. On Wed, Nov 25, 2009 at 10:17 PM, Max Binshtok max.binsh...@gmail.comwrote: I am having the same problem and I just want to confirm: You are saying that when you try to install over the air (just by downloading APK file) you get asked those permissions, but when your application is installed through the Android Market - you are NOT asked for PHONE_STATE and STORAGE? Is that correct? From my side I can add that I had targetSDK=4 and when installing from APK over the air those permissions come up... (I have been banging my head on the walls for quite some time now). On 1.5 they don't come up! Not on the emulator and not on the device. Regards, Max. On Oct 8, 1:13 pm, Jarcikon jarci...@gmail.com wrote: Sorry about the double post. I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storagepermissionsalways come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. Mike On Oct 5, 3:36 pm, Jarcikon jarci...@gmail.com wrote: Chris, I am having the same problem. This is due to the update to Donut (1.6 SDK). According to the docs, if you set targetSdkVersion in your manifest file to 4 thesepermissionsshould not appear unless specifically requested. However, I have tried this and it is not working for me. Does anyone have a solution? Mike On Sep 18, 8:54 am, ch13fw ch1...@gmail.com wrote: I am working on a widget and have it pretty much how I like it, but I have one problem. When I package it and install it, it says in the allow this application to portion that it wants access tophonecallsandstorage. I know this will be a no-go if I want anyone to ever use it. I have not set up anypermissions. Same thing happens even if I make Hello World. Sorry if this has been ask before, but I have searched quite a bit looking for an answer. Chris -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: why is my app asking to access phone calls and storage?
How do I overcome this? I have: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/ uses-sdk If that is what you mean by explicitly targeting API 4 or latter then this does not seem to solve the problem. I don't need and don't want those permissions. Thanks. Slightly OFF TOPIC: I don't understand... Why do you want to tell people that my application requires phone permissions when it clearly doesn't? This is really, *really* bad! People are suspicious and hesitant to install apps that require not needed permissions. Moreover, PHONE_STATE permission has this weird interpretation in a smaller font - read phone state and identity (Identity!? People are terrified by all identity theft propaganda). At some point I asked for PHONE_STATE permissions to access the serial number to be able to tell different users apart. Do you know what this lead to? I had a real comment on the market from someone who claimed that I stole his password (whatever this means) and he had to spend 3 hours on the phone with TMobile to gain control of his phone (with foul language all over the comment) . I don't need those permissions and I don't want people to be suspicious and write stupid comments and this is not only me as the first message attests as well. Regards, Max. On Nov 28, 1:44 pm, Dianne Hackborn hack...@android.com wrote: Yes, and I am saying this is the normal expected behavior for apps that are not explicitly targeting API 4 or later. On Sat, Nov 28, 2009 at 10:35 AM, Max Binshtok max.binsh...@gmail.comwrote: Diane, it seems to me that you did not understand the problem. I (and I believe other people) do NOT ask for those permissions in the manifest since I do not need them. But when the application is to be installed they show up (it says that the app is asking for those permissions). Please read the very first post. It says that Hello World application when to be installed is asking for those permissions although they are not present in manifest. Regards, Max. On Nov 26, 1:46 am, Dianne Hackborn hack...@android.com wrote: These are new permissions added to 1.6. If an application is targeting anything below API 4 (1.6), they will automatically be requested because in 1.5 and lower there was no restriction on these operations. As of 1.6 these permissions were added, and if you target API 4 or later you need to explicitly request the permission in your manifest to be granted it. On Wed, Nov 25, 2009 at 10:17 PM, Max Binshtok max.binsh...@gmail.com wrote: I am having the same problem and I just want to confirm: You are saying that when you try to install over the air (just by downloading APK file) you get asked those permissions, but when your application is installed through the Android Market - you are NOT asked for PHONE_STATE and STORAGE? Is that correct? From my side I can add that I had targetSDK=4 and when installing from APK over the air those permissions come up... (I have been banging my head on the walls for quite some time now). On 1.5 they don't come up! Not on the emulator and not on the device. Regards, Max. On Oct 8, 1:13 pm, Jarcikon jarci...@gmail.com wrote: Sorry about the double post. I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storagepermissionsalways come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. Mike On Oct 5, 3:36 pm, Jarcikon jarci...@gmail.com wrote: Chris, I am having the same problem. This is due to the update to Donut (1.6 SDK). According to the docs, if you set targetSdkVersion in your manifest file to 4 thesepermissionsshould not appear unless specifically requested. However, I have tried this and it is not working for me. Does anyone have a solution? Mike On Sep 18, 8:54 am, ch13fw ch1...@gmail.com wrote: I am working on a widget and have it pretty much how I like it, but I have one problem. When I package it and install it, it says in the allow this application to portion that it wants access tophonecallsandstorage. I know this will be a no-go if I want anyone to ever use it. I have not set up anypermissions. Same thing happens even if I make Hello World. Sorry if this has been ask before, but I have searched quite a bit looking for an answer. Chris -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr
[android-developers] Re: why is my app asking to access phone calls and storage?
I am having the same problem and I just want to confirm: You are saying that when you try to install over the air (just by downloading APK file) you get asked those permissions, but when your application is installed through the Android Market - you are NOT asked for PHONE_STATE and STORAGE? Is that correct? From my side I can add that I had targetSDK=4 and when installing from APK over the air those permissions come up... (I have been banging my head on the walls for quite some time now). On 1.5 they don't come up! Not on the emulator and not on the device. Regards, Max. On Oct 8, 1:13 pm, Jarcikon jarci...@gmail.com wrote: Sorry about the double post. I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storagepermissionsalways come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does fix it. Mike On Oct 5, 3:36 pm, Jarcikon jarci...@gmail.com wrote: Chris, I am having the same problem. This is due to the update to Donut (1.6 SDK). According to the docs, if you set targetSdkVersion in your manifest file to 4 thesepermissionsshould not appear unless specifically requested. However, I have tried this and it is not working for me. Does anyone have a solution? Mike On Sep 18, 8:54 am, ch13fw ch1...@gmail.com wrote: I am working on a widget and have it pretty much how I like it, but I have one problem. When I package it and install it, it says in the allow this application to portion that it wants access tophonecallsandstorage. I know this will be a no-go if I want anyone to ever use it. I have not set up anypermissions. Same thing happens even if I make Hello World. Sorry if this has been ask before, but I have searched quite a bit looking for an answer. Chris -- 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.R.drawable.ic_menu_home - can not use
Actually searching for built in icons only got me another thread where people share the ways of how to use the built in icons. IMHO it is much better for user experience to have unified icons. I don't get why don't you *encourage* such use. And actually make it in a way hard to do and explicitly discourage it. While people are trying to emulate some of the icons or make some other icons to be consistently looking with the icons used on the platform, and each application brings with it all those icons while installed - it could be much better to have those icons readily available for reuse. And for the missing icons I bet people would create similarly looking icons - that's what people are doing now. The only potential problem that I really see with this is that you release set X of icons and HTC or someone else will release set Y with some of the icons missing, then an application which relies on set X will have some of the icons missing... But I think this is a reasonable drawback to substantial gain. I usually refrain from bringing iPhone and/or Apple into the discussion, but hey - Apple are doing one thing exceptionally well - visual design. And it is not by accident that they have *very* strict guidelines about visual design in order to provide unified user experience. Regards, Max. On Nov 19, 11:59 pm, Dianne Hackborn hack...@android.com wrote: We don't recommend using the built-in icons. This has already been discussed fairly in-depth here, but the basic answer is: unless there is a standard icon to cover every one of your menus (unlikely, unless we have a huge number of icons in the platform, which we do not want), then you end up with the worse situation of the icons in your app being inconsistent because they are a mix of your own and the built-in ones. On Thu, Nov 19, 2009 at 6:38 PM, Max Binshtok max.binsh...@gmail.comwrote: This does not seem to make a lot of sense. My decision to go with built in icons in the OS was to provide a unified user experience. So if those icons are changed in some version of custom build of the Android OS, all the apps that use those icons will have a coherent menu icons. Makes a lot of sense in terms of usability for the users. (it also reduces the package size somewhat, right?). So if the above is right, it seems completely unreasonable not to expose the home icon to the public usage. Thanks, Max. On Nov 19, 8:29 pm, Romain Guy romain...@google.com wrote: It's intentional. On Fri, Nov 20, 2009 at 2:26 AM, Max Binshtok max.binsh...@gmail.com wrote: Hi, I have been having this problem for some time now... I am using the icons that are coming with the platform for the menus. So I use: android.R.drawable.ic_menu_help and android.R.drawable.ic_menu_info_details but for some reason I can not use: android.R.drawable.ic_menu_home So basically I copy this to my drawable folder and then use it normally: R.drawable.ic_menu_home Is it some sort of a bug, or this is intentional? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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.R.drawable.ic_menu_home - can not use
Hi, I have been having this problem for some time now... I am using the icons that are coming with the platform for the menus. So I use: android.R.drawable.ic_menu_help and android.R.drawable.ic_menu_info_details but for some reason I can not use: android.R.drawable.ic_menu_home So basically I copy this to my drawable folder and then use it normally: R.drawable.ic_menu_home Is it some sort of a bug, or this is intentional? -- 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.R.drawable.ic_menu_home - can not use
This does not seem to make a lot of sense. My decision to go with built in icons in the OS was to provide a unified user experience. So if those icons are changed in some version of custom build of the Android OS, all the apps that use those icons will have a coherent menu icons. Makes a lot of sense in terms of usability for the users. (it also reduces the package size somewhat, right?). So if the above is right, it seems completely unreasonable not to expose the home icon to the public usage. Thanks, Max. On Nov 19, 8:29 pm, Romain Guy romain...@google.com wrote: It's intentional. On Fri, Nov 20, 2009 at 2:26 AM, Max Binshtok max.binsh...@gmail.com wrote: Hi, I have been having this problem for some time now... I am using the icons that are coming with the platform for the menus. So I use: android.R.drawable.ic_menu_help and android.R.drawable.ic_menu_info_details but for some reason I can not use: android.R.drawable.ic_menu_home So basically I copy this to my drawable folder and then use it normally: R.drawable.ic_menu_home Is it some sort of a bug, or this is intentional? -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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] Code compiled with SDK 2.0 does not install (and therefore run) on 1.5 emulator
I did signed export of the package while setting the target as 2.0. Then I tried to install the package by downloading it *through browser* (OTA download) on all the emulators. On 1.5, when I click on the download in order to install the package, I get the Parse Error: There is a problem parsing the package It works on 1.6 and 2.0 though. Compiling with 1.6 set as the target seems to install on all the emulators ok. Is it zipalign issue? Or if not - can someone clarify that to me? For now I don't use any 2.0 APIs, so I can just use 1.6 but in future - who knows and if this is going to be still a problem, how should be go about backward compatibility? Regards, Max. -- 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: Code compiled with SDK 2.0 does not install (and therefore run) on 1.5 emulator
I do: uses-sdk android:minSdkVersion=1/uses-sdk :) so it should be more likely to work... The error is quite weird - I will try to do it again, maybe it was a fluke and the file just got currupted while being transferred, although I think I already did repeat the procedure... Since you claim it to work on your side - it is definitely worth making sure this is not a fluke of some sort. Regards, Max. On Nov 15, 4:38 pm, Lance Nanek lna...@gmail.com wrote: I just bumped up the build target on one of my apps to Android 2.0, exported a signed APK, and it installed and ran OK from the Browser app on the Android 1.5 emulator. So I guess the problem doesn't always occur. I wonder what we are doing different. What are you using for the uses-sdk element in your manifest? My test used: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4 / Although I think the wrong values there would result in a cannot be installed on this phone error rather than a parse error. On Nov 15, 12:55 pm, Max Binshtok max.binsh...@gmail.com wrote: I did signed export of the package while setting the target as 2.0. Then I tried to install the package by downloading it *through browser* (OTA download) on all the emulators. On 1.5, when I click on the download in order to install the package, I get the Parse Error: There is a problem parsing the package It works on 1.6 and 2.0 though. Compiling with 1.6 set as the target seems to install on all the emulators ok. Is it zipalign issue? Or if not - can someone clarify that to me? For now I don't use any 2.0 APIs, so I can just use 1.6 but in future - who knows and if this is going to be still a problem, how should be go about backward compatibility? Regards, Max. -- 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] new Web Browser on Android
Hello this browser compiles for many mobil devices, we are currently working on a release for android someone able to contribute to a andorid release? http://sourceforge.net/project/memberlist.php?group_id=238964 Thanks for a feedback Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to avoid texture wrapping in glDrawTexiOES ?
Hi, I'm basically trying to resize 512x512 texture into 200x200 at (0,100). So, I use this function. ((GL11Ext) gl).glDrawTexiOES(0, 100, 0, 200, 200); It shows what I want but it also displays the mirror portion of upper image on top screen (0,0) size = 200x100. any idea how to remove this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can I get the reversion No of my downloaded android source code
Hi All, I get the android source code from the git repository, now I want to trace back to the original download, How can I get the reversion No of my downloaded android source code? Max --~--~-~--~~~---~--~~ 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] Does the apk compiled in the old version of android src run on the newer version?
Hi Everyone, Does the apk compiled in the old version of android src run on the newer version? Does google keep the api interface all the time during the update process of android src? I hear that a APK should be signed and then can be installed on the specific device, is it? Any article that introduce that? Thanks Max --~--~-~--~~~---~--~~ 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] Anybody can tell me where is the source code for software mp4 decoder in android?
Hi GUYS, Can anyone tell me where is the source code for software mp4 decoder in android? I mean run in emulator. Thanks a lot in advance. Max --~--~-~--~~~---~--~~ 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 1.5 r2 Problems - Debug Signature Key Android Virtual Device
This issue occurs when the SDK 1.5 r2 is installed on Windows XP SP2 if the primary Windows account is not an Administrator. The installation under the non-Admin user succeeded, but when I tried to use the SDK I ran into several issues: 1) When I tried to update my 1.1 projects to 1.5 in Eclipse, I got a warning about the debug.keystore file: Error generating final archive: Unable to get debug signature key 2) I couldn't create and an Android Virtual Device (AVD) for the Emulator. Both of these issues are because the signature key and the AVD files are stored in the folder C:\Documents and Settings\user\.android, which is supposed to be created during the installation of the SDK. However, as a regular user (not an admin) I don't have the privileges to create this folder. It wasn't created during the installation. If I install the SDK as an Admin user, the .android folder is created but in the Administrator user's folder: C:\Documents and Settings \Administrator. This doesn't fix the issue because the main user doesn't have access to this folder. SDK version 1.1 and prior didn't have this issue because they put the files in question under C:\Documents and Settings\[user]\Local Settings \Application Data\Android\SDK-sdk number. Non-admins have full access to that folder. The workaround is to login as administrator, create the C:\Documents and Settings\user\.android for the main (non-admin) user and give the main user full rights to the folder. Then login as the primary (non-Admin) user and run the SDK install and upgrade the projects. This seems to be a case of poor testing on the part of Google. It works fine for most Windows users, who log in as Administrators - which is the default on XP and (probably) on Vista, but not for those downgrade the user to a non-Admin for security reasons. I hope future releases of the SDK resolve this issue. --~--~-~--~~~---~--~~ 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: add new sensor?
Hello I have the same problem. Have you found some usefull info about this post ? thanks Massimo On Jul 9, 5:42 pm, bluestar bluestar8...@gmail.com wrote: I know the Android SDK provieds manySensorclass to use to get data or do something. I already verified mydriverofsensorto get data successfully under linux kernel-2.6.29 I use I2C protocol to communication with my device, so I putsensorcode under drivers/i2c/chips NOW I want to add mysensorinto Android and I hope to link AndroidSensorclass with my device to reduce develop my application. How to do for this goal? Could I need to modify application framework or Libraries or anotherdrivertype for new device? I big your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sensor Driver
Hello Developers I'm new in this group. Many developer have problem with applications, I've to develop a driver for a hardware component, ok I build the linux driver but how can I connect this driver with the android.hardware package ? Has someone some usefull docs ? thanks a lot Massimo --~--~-~--~~~---~--~~ 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: add new sensor?
HI BlueStar ? Have you found some usefull information about your problem ? I have the same issue ! Thanks Massimo On Jul 9, 5:42 pm, bluestar bluestar8...@gmail.com wrote: I know the Android SDK provieds manySensorclass to use to get data or do something. I already verified mydriverofsensorto get data successfully under linux kernel-2.6.29 I use I2C protocol to communication with my device, so I putsensorcode under drivers/i2c/chips NOW I want to add mysensorinto Android and I hope to link AndroidSensorclass with my device to reduce develop my application. How to do for this goal? Could I need to modify application framework or Libraries or anotherdrivertype for new device? I big your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: javax.xml.datatype.XMLGregorianCalendar
Thanks for your answer, but I'm not sure what to download. How exactly do I get XMLGregorianCalendar from Apache Harmony and into my project? On Jul 12, 1:56 pm, Mark Murphy mmur...@commonsware.com wrote: Max wrote: An external library that I use (Sesame) references the method javax.xml.datatype.XMLGregorianCalendar.toXMLFormat, which is not available in Android. What can I do about that? Option #1: Don't use Sesame. Option #2: Grab XMLGregorianCalendar from Apache Harmony and put it in your project in its native namespace (javax.xml.datatype). If/when you get the compile error complaining about the fact that you are trying to introduce a class in a protected namespace, follow the instructions in the compile error to override the compiler. Pray to the high heavens this does not come back to bite you in the future. Option #3: Grab XMLGregorianCalendar from Apache Harmony and put it in your project in some alternative namespace (directory, plus the package declaration at the top of the file). Modify Sesame to use XMLGregorianCalendar in the new namespace. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ 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: javax.xml.datatype.XMLGregorianCalendar
(Wow, you're fast.) The problem is that I can't seem to find any source there containing the XMLGregorianCalendar class. On Jul 13, 2:50 pm, Mark Murphy mmur...@commonsware.com wrote: Thanks for your answer, but I'm not sure what to download. How exactly do I get XMLGregorianCalendar from Apache Harmony and into my project? Visithttp://harmony.apache.org/. Download the sources. Find XMLGregorianCalendar.java in the source distribution. Put it in src/javax/xml/datatype in your project (assuming you are going with Option #2). Compile. Pass the magic yes, please, I want to screw up my project switch to get past the you can't have javax.* in your source tree error, if you get it (assuming you are going with Option #2). If you get compile errors because XMLGregorianCalendar is missing dependencies, repeat the process. Continue until your project works or you switch off of Sesame to something else. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: javax.xml.datatype.XMLGregorianCalendar
I found a XMLGregorianCalendar class somewhere else (http:// www.google.com/codesearch/p?hl=ensa=Ncd=2ct=rc#HdNQifPpBEA/javax/xml/datatype/XMLGregorianCalendar.javaq=class%20XMLGregorianCalendarl=178), but first I'll have to see how I get the whole --core-library thing to work reasonably within Eclipse. On Jul 13, 3:08 pm, Max ma...@mackzweb.com wrote: (Wow, you're fast.) The problem is that I can't seem to find any source there containing the XMLGregorianCalendar class. On Jul 13, 2:50 pm, Mark Murphy mmur...@commonsware.com wrote: Thanks for your answer, but I'm not sure what to download. How exactly do I get XMLGregorianCalendar from Apache Harmony and into my project? Visithttp://harmony.apache.org/. Download the sources. Find XMLGregorianCalendar.java in the source distribution. Put it in src/javax/xml/datatype in your project (assuming you are going with Option #2). Compile. Pass the magic yes, please, I want to screw up my project switch to get past the you can't have javax.* in your source tree error, if you get it (assuming you are going with Option #2). If you get compile errors because XMLGregorianCalendar is missing dependencies, repeat the process. Continue until your project works or you switch off of Sesame to something else. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] javax.xml.datatype.XMLGregorianCalendar
An external library that I use (Sesame) references the method javax.xml.datatype.XMLGregorianCalendar.toXMLFormat, which is not available in Android. What can I do about that? The complete error is this: E/ActivityThread( 1811): Failed to find provider info for com.google.settings W/dalvikvm( 1811): VFY: unable to find class referenced in signature (Ljavax/xml/datatype/XMLGregorianCalendar;) E/dalvikvm( 1811): Could not find method javax.xml.datatype.XMLGregorianCalendar.toXMLFormat, referenced from method org.openrdf.model.impl.ValueFactoryBase.createLiteral W/dalvikvm( 1811): VFY: unable to resolve virtual method 2047: Ljavax/ xml/datatype/XMLGregorianCalendar;.toXMLFormat ()Ljava/lang/String; W/dalvikvm( 1811): VFY: rejecting opcode 0x6e at 0x W/dalvikvm( 1811): VFY: rejected Lorg/openrdf/model/impl/ ValueFactoryBase;.createLiteral (Ljavax/xml/datatype/ XMLGregorianCalendar;)Lorg/openrdf/model/Literal; W/dalvikvm( 1811): Verifier rejected class Lorg/openrdf/model/impl/ ValueFactoryBase; D/AndroidRuntime( 1811): Shutting down VM W/dalvikvm( 1811): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1811): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1811): java.lang.VerifyError: org.openrdf.model.impl.ValueFactoryBase E/AndroidRuntime( 1811):at org.openrdf.http.client.HTTPClient.init (HTTPClient.java:133) E/AndroidRuntime( 1811):at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 56) E/AndroidRuntime( 1811):at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 61) E/AndroidRuntime( 1811):at com.test.TestActivity.onCreate (TestActivity.java:27) E/AndroidRuntime( 1811):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 1811):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 1811):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 1811):at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 1811):at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 1811):at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 1811):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1811):at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 1811):at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 1811):at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 1811):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1811):at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 1811):at dalvik.system.NativeStart.main(Native Method) --~--~-~--~~~---~--~~ 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] [opengl] glpixelstorei to change texture ystride information
Hi, i need to change the ystride info of my texture. it's 2d bitmap which I load by using GLUtils.texImage2D(). and found out android doesn't support GL_PACK_ROW_LENGTH under glpixelstorei is there other alternative to change ystride info on this texture? Max. --~--~-~--~~~---~--~~ 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] Problems with shared library JAR
I'm trying to use an external library packaged in one JAR file (openRDF Sesame 2.2.4 [1]). As suggested in this group, I first added the JAR to a new folder in my project, then added it to the Java build path via the project properties in Eclipse. Now I could already use the classes from the library in my source code without getting any errors. I also added the line uses-library android:name=org.openrdf / to the manifest file inside application. The problem is that as soon as I try to run the app, I get an installation error (INSTALL_FAILED_MISSING_SHARED_LIBRARY) on the console and I'm told (via logcat) that my package requires unavailable shared library org.openrdf. Where's my mistake? Thanks, Max [1] http://ovh.dl.sourceforge.net/sourceforge/sesame/openrdf-sesame-2.2.4-onejar.jar --~--~-~--~~~---~--~~ 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: Problems with shared library JAR
Oh, thanks. I first tried it without that line and thought this would be a step towards the solution, because without it I get the following errors: E/dalvikvm( 743): Could not find method org.slf4j.LoggerFactory.getLogger, referenced from method org.openrdf.http.client.HTTPClient.init W/dalvikvm( 743): VFY: unable to resolve static method 11055: Lorg/ slf4j/LoggerFactory;.getLogger (Ljava/lang/Class;)Lorg/slf4j/Logger; W/dalvikvm( 743): VFY: rejecting opcode 0x71 at 0x0007 W/dalvikvm( 743): VFY: rejected Lorg/openrdf/http/client/ HTTPClient;.init ()V W/dalvikvm( 743): Verifier rejected class Lorg/openrdf/http/client/ HTTPClient; and E/AndroidRuntime( 743): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 743): java.lang.VerifyError: org.openrdf.http.client.HTTPClient E/AndroidRuntime( 743):at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 56) E/AndroidRuntime( 743):at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 61) E/AndroidRuntime( 743):at com.test.csxpoi.CsxPOIActivity.onCreate (CsxPOIActivity.java:28) E/AndroidRuntime( 743):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 743):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 743):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 743):at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 743):at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 743):at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 743):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 743):at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 743):at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 743):at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 743):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 743):at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 743):at dalvik.system.NativeStart.main(Native Method) On Jun 26, 9:26 pm, Raphael r...@android.com wrote: On Fri, Jun 26, 2009 at 11:32 AM, Maxma...@mackzweb.com wrote: I'm trying to use an external library packaged in one JAR file (openRDF Sesame 2.2.4 [1]). As suggested in this group, I first added the JAR to a new folder in my project, then added it to the Java build path via the project properties in Eclipse. Now I could already use the classes from the library in my source code without getting any errors. I also added the line uses-library android:name=org.openrdf / to the manifest file inside application. You don't need to do that. uses-library is used to indicate your app depends on an optional library that is built-in on the device, e.g. maps. In your case, simply add the Jar as a dependency to your Eclipse project and ADT will automatically embed it in the generated APK. R/ The problem is that as soon as I try to run the app, I get an installation error (INSTALL_FAILED_MISSING_SHARED_LIBRARY) on the console and I'm told (via logcat) that my package requires unavailable shared library org.openrdf. Where's my mistake? Thanks, Max [1]http://ovh.dl.sourceforge.net/sourceforge/sesame/openrdf-sesame-2.2.4... --~--~-~--~~~---~--~~ 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: Problems with shared library JAR
This is the code that causes the VerifyError: Repository myRepository = new HTTPRepository(http://someserver;, someid); On Jun 26, 9:38 pm, Max ma...@mackzweb.com wrote: Oh, thanks. I first tried it without that line and thought this would be a step towards the solution, because without it I get the following errors: E/dalvikvm( 743): Could not find method org.slf4j.LoggerFactory.getLogger, referenced from method org.openrdf.http.client.HTTPClient.init W/dalvikvm( 743): VFY: unable to resolve static method 11055: Lorg/ slf4j/LoggerFactory;.getLogger (Ljava/lang/Class;)Lorg/slf4j/Logger; W/dalvikvm( 743): VFY: rejecting opcode 0x71 at 0x0007 W/dalvikvm( 743): VFY: rejected Lorg/openrdf/http/client/ HTTPClient;.init ()V W/dalvikvm( 743): Verifier rejected class Lorg/openrdf/http/client/ HTTPClient; and E/AndroidRuntime( 743): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 743): java.lang.VerifyError: org.openrdf.http.client.HTTPClient E/AndroidRuntime( 743): at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 56) E/AndroidRuntime( 743): at org.openrdf.repository.http.HTTPRepository.init(HTTPRepository.java: 61) E/AndroidRuntime( 743): at com.test.csxpoi.CsxPOIActivity.onCreate (CsxPOIActivity.java:28) E/AndroidRuntime( 743): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) E/AndroidRuntime( 743): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) E/AndroidRuntime( 743): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 743): at android.app.ActivityThread.access$1800 (ActivityThread.java:112) E/AndroidRuntime( 743): at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1692) E/AndroidRuntime( 743): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 743): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 743): at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 743): at java.lang.reflect.Method.invokeNative (Native Method) E/AndroidRuntime( 743): at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 743): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 743): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:540) E/AndroidRuntime( 743): at dalvik.system.NativeStart.main(Native Method) On Jun 26, 9:26 pm, Raphael r...@android.com wrote: On Fri, Jun 26, 2009 at 11:32 AM, Maxma...@mackzweb.com wrote: I'm trying to use an external library packaged in one JAR file (openRDF Sesame 2.2.4 [1]). As suggested in this group, I first added the JAR to a new folder in my project, then added it to the Java build path via the project properties in Eclipse. Now I could already use the classes from the library in my source code without getting any errors. I also added the line uses-library android:name=org.openrdf / to the manifest file inside application. You don't need to do that. uses-library is used to indicate your app depends on an optional library that is built-in on the device, e.g. maps. In your case, simply add the Jar as a dependency to your Eclipse project and ADT will automatically embed it in the generated APK. R/ The problem is that as soon as I try to run the app, I get an installation error (INSTALL_FAILED_MISSING_SHARED_LIBRARY) on the console and I'm told (via logcat) that my package requires unavailable shared library org.openrdf. Where's my mistake? Thanks, Max [1]http://ovh.dl.sourceforge.net/sourceforge/sesame/openrdf-sesame-2.2.4... --~--~-~--~~~---~--~~ 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 is the definition of member functions in the struct audio_track_cblk_t
Hi All, I don't know whether there is someone who have a look at the structure audio_track_cblk_t, which is at frameworks/base/include/private/media/AudioTrackShared.h struct audio_track_cblk_t { // The data members are grouped so that members accessed frequently and in the same context // are in the same line of data cache. Mutex lock; Condition cv; volatileuint32_tuser; volatileuint32_tserver; uint32_tuserBase; uint32_tserverBase; void* buffers; uint32_tframeCount; // Cache line boundary uint32_tloopStart; uint32_tloopEnd; int loopCount; volatileunion { uint16_tvolume[2]; uint32_tvolumeLR; }; uint16_tsampleRate; uint16_tchannels; int16_t flowControlFlag; // underrun (out) or overrrun (in) indication uint8_t out;// out equals 1 for AudioTrack and 0 for AudioRecord uint8_t forceReady; uint16_tbufferTimeoutMs; // Maximum cumulated timeout before restarting audioflinger uint16_twaitTimeMs; // Cumulated wait time // Padding ensuring that data buffer starts on a cache line boundary (32 bytes). // See AudioFlinger::TrackBase constructor int32_t Padding[3]; audio_track_cblk_t(); uint32_tstepUser(uint32_t frameCount); boolstepServer(uint32_t frameCount); void* buffer(uint32_t offset) const; uint32_tframesAvailable(); uint32_tframesAvailable_l(); uint32_tframesReady(); }; I try to find where is the definition of framesReady(), stepUser() and etc, but I cann't get the location, anybody can tell me? Thanks a lot --~--~-~--~~~---~--~~ 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: Problem with createBitmap method
a 1024x1024 bitmap will be (IIRC) 4MB. Creating a few will likely cause you to run out of memory. Use Bitmap.recycle to free up the resources that a bitmap you no longer need is using On Jun 23, 9:07 am, hamlatzis i.hamlat...@gmail.com wrote: My application crashes after I try to use the static Bitmap createBitmap method to get a mutable bitmap in order to fill it later with data. If I only create one 1024x1024 the application works just fine, but when I try to load the same image more than once (first making my object null in each round) my application crashes on my third or fourth try. eg Bitmap mpBitmap = null; void CreateBitmap(int nWidth, int nHeight) { if ( mpBitmap != null ) mpBitmap = null; mpBitmap = Bitmap.createBitmap(nWidth, nHeight, Bitmap.Config.ARGB_); } I get the same result if I create a smaller image but then I need more runs before the crash. In all cases my application works just fine if I only create the image (even 1024x1024) once, then exit my application and run it again. If there is a need for crash dump I can provide one. Any help will be appreciated. Thanks, Iosif --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can I instantiate android.R.layout.simple_list_item_1 in Custom ListAdapter?
I'm making a custom listview and I would like to use the standard textview shown in the tutorial to display the text items (defined in android.R.layout.simple_list_item_1). How do I instantiate it? The best I can figure is using View.inflate in the ListAdapter's getView method, but this throws an exception java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to tell when application exits?
On Jun 9, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote: Yes, but when the app closes I want to close the connections (which requires sending data - not just releasing the objects) regardless of what's holding them. How can I tell when the app exits? I think you are attributing too much power to the notion of apps exiting. Example #1: somebody is using your app. Then a phone call comes in. Your activity is merely stopped, not destroyed. Did your app exit? Example #2: somebody is using your app. Then a phone call comes in. Courtesy of a Bluetooth headset, the user yaks on the phone while also TXTing a few people, then gets a URL in an SMS, which leads to a Web site in the Browser app. All along, your app's activities are back in the stack, in a stopped state. An hour passes this way. Did your app exit? Example #3: Same as example #2, but the user then had to go to class, and so she thumbs off her phone, sticks it in her purse, and leaves the phone asleep for eight hours. Then, a call comes in. Your app's activities are still back on the stack, in a stopped state. Did your app exit? Example #4: Same as example #3, but the user responds to enough calls and messages after the 8-hour device sleep that Android closes up your activities to free up RAM. Placeholders for those activities are still back on the stack, though, and if the user were to back-button to them, they would want to pop back up. Did your app exit? Yes, those are all instances in which I would consider the app exited You can try things like creating custom Application classes and responding to onTerminate(), but I suspect you have broader problems if you worry about apps exiting, since onTerminate() may not be called in any of those examples. Protocols that require you to send network data before closing a connection will suck mightily in any mobile environment, simply because the device can and will fall asleep at any point. Android's usage model, whereby users are not concerned with having to specifically exit apps, exacerbates that issue. required was the wrong word. It would be insane for an app not to be able to deal with a mobile device dropping off the face of the earth, so to speak. When possible, however, I would like to be able to be able to tear down the connection in a controlled fashion. Boston's solution seems to be what I want -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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: How to tell when application exits?
Either way, Boston's solution seems to be what I want On Jun 12, 2:24 pm, Mark Murphy mmur...@commonsware.com wrote: Max Salley wrote: Yes, those are all instances in which I would consider the app exited You would. Android would not. In particular, Application#onTerminate() will not get called in any of those cases. This is why I said you attributing too much power to the notion of apps exiting. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Why did Google Groups not post my comments?
On Jun 12, 12:14 am, Dennis specklesan...@gmail.com wrote: I posted a detailed comment about typos in Android documentation several hours ago. My post is nowhere to be seen. Why did Google Groups hose my post? The same thing happens to me. Also, sometimes a post will show up, but will not be findable through search a few days afterward. It's possible that it still exists (I don't go digging manually through the pages looking for it), but it is not searchable Maybe Google doesn't care that their Android documentation contains typos. No need to get snippy --~--~-~--~~~---~--~~ 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: Image Capture
What exception does it throw? On Jun 11, 1:29 pm, Sharmila sharmcg...@gmail.com wrote: Hi everyone, this is the code that I have for camera preview and image capture.I am trying to do camera preview and as I press the space button I am trying to take picture and save it in the picture gallery of the Android development phone. The code compiles fine,but as I press the space button,it captures the image and throws an exception and closes the application... I have no idea how to fix this.I have looked in a lot of places but haven't found a way to solve my problem. I desperately need help... Thanks! Sharmila. /** * Copyright (c) 2007, Google Inc. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.cameraapitest; import java.io.FileNotFoundException; import java.io.OutputStream; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphics.Rect; import android.net.Uri; import android.os.Handler; import android.os.Message; import android.os.Bundle; import android.provider.MediaStore.Images; import android.provider.MediaStore.Video; import android.view.Menu; import android.view.MenuItem; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.KeyEvent; import android.hardware.Camera; import android.text.Layout; import android.util.Log; public class CameraApiTest extends Activity implements SurfaceHolder.Callback { private static final String TAG = CameraApiTest; Camera mCamera; boolean mPreviewRunning = false; public void onCreate(Bundle icicle) { super.onCreate(icicle); Log.e(TAG, onCreate); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.camera_api_test); mSurfaceView = (SurfaceView)findViewById(R.id.surface); mSurfaceHolder = mSurfaceView.getHolder(); mSurfaceHolder.addCallback(this); mSurfaceHolder.setType (SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public boolean onCreateOptionsMenu(android.view.Menu menu) { MenuItem item = menu.add(0, 0, 0, goto gallery); item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { Uri target = Uri.parse(content://media/external/ images/media); Intent intent = new Intent(Intent.ACTION_VIEW, target); startActivity(intent); return true; } }); return true; } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); } Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() { public void onPictureTaken(byte[] data, Camera c) { Log.e(TAG, PICTURE CALLBACK: data.length = + data.length); try { Bitmap bm = Bitmap.createBitmap (mSurfaceHolder.getSurfaceFrame().width(), mSurfaceHolder.getSurfaceFrame().height (),Bitmap.Config.RGB_565); OutputStream f=openFileOutput (image.jpg,MODE_WORLD_READABLE); Canvas cnv=mSurfaceHolder.lockCanvas(); cnv.setBitmap(bm); bm.compress(Bitmap.CompressFormat.JPEG,100,f); mSurfaceHolder.unlockCanvasAndPost(cnv); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } mCamera.startPreview(); } }; public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_SPACE) { mCamera.takePicture(null,null,mPictureCallback); return true; } return false; } protected void onResume() { Log.e(TAG, onResume); super.onResume(); } protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); } protected void
[android-developers] How to tell when application exits?
I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the foreground activity in other situations, such as when the keyboard slides out, and the rapid succession of these calls make it impossible to reliably tear down/reopen the connections without running into race conditions. How can I tell when the app has exited? Is there a better way to deal with network connections? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to tell when application exits?
On Jun 9, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote: I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the foreground activity in other situations, such as when the keyboard slides out, and the rapid succession of these calls make it impossible to reliably tear down/reopen the connections without running into race conditions. How can I tell when the app has exited? Is there a better way to deal with network connections? Put them in a service, which is unaffected by the comings and goings of individual activities. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! Yes, but when the app closes I want to close the connections (which requires sending data - not just releasing the objects) regardless of what's holding them. How can I tell when the app exits? --~--~-~--~~~---~--~~ 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: A Layout question
You could use layout_weight. Give the elements that don't change size a weight of 0 and the one that does a weight of 1. The two 0-weight views will be their correct height and the 1-weight view will expand to fill the rest of the space On Jun 9, 1:21 pm, kevin kevin_x...@yahoo.com wrote: I have a possible simple layout questions. My activity content view contains a title bar, a webview and a status bar. I put these three views into a linearlayout and each has height as WRAP_CONTENT. The problem is, when first displays, webview doesn't take much space because the page is not loaded. The status bar is showed right under title bar. When the page is loaded, webview expands over the screen size and the status bar is not shown even when scroll down to the button. (I tried to set webView's height to FILL_PARENT, but status bar is not shown) What is the correct way I can layout this so the title bar always at the top, the status bar always at the bottom and webview always take the remaining middle space and have scroll bar when contents takes larger space? Thanks, Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to tell when application exits?
Thanks, I'll give that a shot On Jun 9, 1:45 pm, Streets Of Boston flyingdutc...@gmail.com wrote: you could still use onCreate/onDestroy. Just override the onRetainNonConfigurationInstance method. This method will be called before onDestroy. If this method is called, remember this fact by setting a boolean to true. Then in the onDestroy, if this boolean is true, a configuration change will happen: don't shut down the connections. If this boolean is false, then a real destroy takes place and shut down the connections. In the onCreate, you can call getLastNonConfigurationInstance() to see if this is a brand new creation or just the start of a configuration change. You could even program the onRetainNonConfigurationInstance to return an object holding your connections. Then in your onCreate, you call getLastNonConfigurationInstance to get your connections. If the call to getLastNonConfigurationInstance is null, then your activity was started from 'scratch'. On Jun 9, 1:30 pm, Max Salley msalley@gmail.com wrote: On Jun 9, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote: I have an app that has some network connections that are causing issues when the app closes/reopens. I would like to close the connections when the app exits, and reinstantiate them when it opens again. onCreate/onDestroy don't work for this purpose because they get called for the foreground activity in other situations, such as when the keyboard slides out, and the rapid succession of these calls make it impossible to reliably tear down/reopen the connections without running into race conditions. How can I tell when the app has exited? Is there a better way to deal with network connections? Put them in a service, which is unaffected by the comings and goings of individual activities. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! Yes, but when the app closes I want to close the connections (which requires sending data - not just releasing the objects) regardless of what's holding them. How can I tell when the app exits?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---