Re: [android-developers] Android 4.0 Emulator crashing (emulator-arm.exe)
Same here.. still haven't managed to run the emulator :'( 2011/10/20 Emanuel Moecklin <1gravity...@gmail.com> > Hi there > > I updated to the lastest SDK (including SDK Tools r14) and tried to > start an Android 4.0 emulator. > The emulator doesn't start and the Windows event log shows the > following error: > > Faulting application name: emulator-arm.exe, version: 0.0.0.0, time > stamp: 0x4e9c7fa8 > Faulting module name: emulator-arm.exe, version: 0.0.0.0, time stamp: > 0x4e9c7fa8 > Exception code: 0x4015 > Fault offset: 0x0010f10e > Faulting process id: 0xf90 > Faulting application start time: 0x01cc8ed70a55c24b > Faulting application path: C:\Development\android-sdk-windows\tools > \emulator-arm.exe > Faulting module path: C:\Development\android-sdk-windows\tools > \emulator-arm.exe > Report Id: 49d59d0b-faca-11e0-9aa4-7071bcc13e13 > > I tried to google the exception code but the results didn't explain > the crash. > > Any ideas? > > Emanuel Moecklin > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] SDK 4, if I select WXGA resolution, emulator doesn't start.
Same here!! 2011/10/19 sblantipodi > Am I the only one experiencing this problem? > The only way to launch a simulator is using another resolution or a > manual 720x1280, why? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Re: Need 2D game engine
Errata corriege: Libgdx ANDengine :) 2011/10/19 Nico Balestra > Libgdx > Appengine > > > 2011/10/19 Oli Wright > >> Eryl, >> >> First step, have a read of this: >> http://www.catb.org/~esr/faqs/smart-questions.html#before >> >> It's worth reading the whole page, but I think that particular section >> applies heavily here. >> >> To give you some guidance for your searches, I'd suggest you look at >> either libgdx or AndEngine. If you're starting from the position of a >> complete beginner, it may be helpful to read up on the subject. For that >> I'd recommend getting a copy of Beginning Android Games. >> >> Cheers, >> Oli >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> 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] Re: Need 2D game engine
Libgdx Appengine 2011/10/19 Oli Wright > Eryl, > > First step, have a read of this: > http://www.catb.org/~esr/faqs/smart-questions.html#before > > It's worth reading the whole page, but I think that particular section > applies heavily here. > > To give you some guidance for your searches, I'd suggest you look at either > libgdx or AndEngine. If you're starting from the position of a complete > beginner, it may be helpful to read up on the subject. For that I'd > recommend getting a copy of Beginning Android Games. > > Cheers, > Oli > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] New Game Developer, need help starting
I'm currently reading Beginning Android Games Development (Mario Zechner) but only after reading the official Android developer website. 2011/9/12 Appaholics > Starting with a game to learn Android is not a very good idea. I would > recommend grabbing a few good books like the ones by Mark Murphy ( > http://commonsware.com). You should also check out the online tutorials on > various site. Going through the documentation at > http://developer.android.com should help with most of your questions. > > Thanks > > > On Sun, Sep 11, 2011 at 12:46 AM, Aneem Talukder > wrote: > >> Dear Community, >> >> I have a good amount of experience with java and was hoping to start >> writing some simple games on the android platform. I have just >> downloaded the sdk for eclipse, but I am already a little confused as >> to where to begin. >> >> Upon creating a new android project, eclipse auto-generates an >> Activity class. How should I proceed in writing my classes and how >> will they relate to this initial Activity class. So, I want to start >> out with something simple like the game, Snake. How must I alter the >> Snake class for android from a regular java program? >> >> Also, must I create a main method? Or is that provided by the Activity >> frameworks? >> >> Thanks in advance, >> Aneem >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> 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 > > > > > -- > -- > Raghav Sood > CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles > required to have complete control) > http://www.raghavsood.com/ > https://market.android.com/developer?pub=Appaholics > http://www.appaholics.in/ > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Re: SQLite: Tables not created onCreate without any error
Yuan", 1, i++, false, (new Date()).getTime(), (new Date()).getTime(), false, false); insertDefaultCurrency(database, "CHF", "Swiss Franc", 1, i++, false, (new Date()).getTime(), (new Date()).getTime(), false, true); } /** * Insert a new currency value which will be shown on the user main activity. */ private void insertDefaultCurrency(SQLiteDatabase database, String currencyCode, String currencyFullName, double value, int position, boolean isTargetCurrency, long lastModifiedDate, long lastDownloadedDate, boolean startTransaction, boolean endTransaction){ ContentValues vals = new ContentValues(); vals.put(COL_CURRENCY_CODE, currencyCode); vals.put(COL_CURRENCY_VALUE, value); vals.put(COL_LAST_DOWNLOADED, lastDownloadedDate); vals.put(COL_LAST_UPDATE, lastModifiedDate); vals.put(COL_IS_TARGET_CURRENCY, (isTargetCurrency? 1 : 0)); vals.put(COL_CURRENCY_POSITION, position); if (startTransaction){ database.beginTransaction(); } Log.d(TAG, "Adding default currency..." + currencyCode); database.insertOrThrow(TABLE_DEFAULT_CURRENCIES, null, vals); if (endTransaction){ database.endTransaction(); } } No exception gets thrown so it looks like the record have been inserted, but when I try to run this query: private Cursor queryCurrentCurrencies(enumQueryCurrentCurrencies rule){ String SQL = "SELECT v." + CurrencyStorageHelper.COL_ID + ", v." + CurrencyStorageHelper.COL_CURRENCY_CODE + ", d." + CurrencyStorageHelper.COL_DEFINITION_FULL_NAME + ", v." + CurrencyStorageHelper.COL_CURRENCY_VALUE + " FROM " + CurrencyStorageHelper.TABLE_DEFAULT_CURRENCIES + " v " + " JOIN " + CurrencyStorageHelper.TABLE_CURRENCY_DEFINITION + " d " + " ON v." + CurrencyStorageHelper.COL_CURRENCY_CODE + " = d." + CurrencyStorageHelper.COL_DEFINITION_CODE; if (rule.compareTo(enumQueryCurrentCurrencies.TARGET) == 0){ SQL += " WHERE v." + CurrencyStorageHelper.COL_IS_TARGET_CURRENCY + " = 1"; } else if (rule.compareTo(enumQueryCurrentCurrencies.CONVERTED) == 0){ SQL += " WHERE v." + CurrencyStorageHelper.COL_IS_TARGET_CURRENCY + " = 0"; } SQL += ";"; return this.db.rawQuery(SQL, new String[] {}); } obviously I get an exception and indeed, opening the DB using a DB management tool, the db is completely empty (with the exception of the default android_metadata table. I'm sure I'm doing something silly somewhere... I hope you will spot the missing stone :) Thanks a log for your precious time!! Nico 2011/8/22 Drezden > If possible post a complete class file for your database helper, it's > really hard to know what's happening when you show random parts from > all of your classes. > > On Aug 22, 4:07 pm, Nico Balestra wrote: > > Ok guys.. I've tried and tried in the hope not to be forced to bother > you. > > but I have to :) > > I'm trying to do a simple thing.. creating a DB when my activity first > > starts: > > @Override > > public void onCreate(Bundle savedInstanceState) { > > > > currenciesDB = new CurrenciesDB(this); > > currenciesDB.open(); > > > > } > > > > then in my CurrenciesDB constructor/open: > > > > public CurrenciesDB(Context mCtx) { > > this.ctx = mCtx;} > > > > public CurrenciesDB open() throws SQLException { > > this.dbHelper = new CurrencyStorageHelper(this.ctx); > > this.db = dbHelper.getWritableDatabase(); > > return this; > > > > } > > > > and, as you might reckon, my CurrencyStorageHelper class extends the > > SQLOpenHelper class and specifically: > > public CurrencyStorageHelper(Context context) { > > super(context, DATABASE_NAME, null, DATABASE_VERSION); > > > > } > > > > @Override > > public void onOpen(SQLiteDatabase db) { > > super.onOpen(db); > > Log.d(TAG, "Opening the database... " + db.getPath() + " version " + > > db.getVersion()); > > db.setLockingEnabled(true);} > > > > @Override > > public void onCreate(SQLiteDatabase database) { > > database.execSQL(DATABASE_CREATE_1); > > Log.d(TAG, "Creating table..." + DATABASE_CREATE_2); > > database.execSQL(DATABASE_CREATE_2); > > Log.d(TAG, "Creating table..." + DATABASE_CREATE_3); > > database.execSQL(DATABASE_CREATE_3); > > insertDefinitions(database); > > insertInitialCurrencies(database); > > > > } > > > > What is happening here is that despite launcing the "CREATE TABLE" > > statements, nothing gets created on the database. After those statements > I > > even insert records using SQLiteDatabase.insert. But nothing happens.. no >
[android-developers] SQLite: Tables not created onCreate without any error
Ok guys.. I've tried and tried in the hope not to be forced to bother you. but I have to :) I'm trying to do a simple thing.. creating a DB when my activity first starts: @Override public void onCreate(Bundle savedInstanceState) { currenciesDB = new CurrenciesDB(this); currenciesDB.open(); } then in my CurrenciesDB constructor/open: public CurrenciesDB(Context mCtx) { this.ctx = mCtx; } public CurrenciesDB open() throws SQLException { this.dbHelper = new CurrencyStorageHelper(this.ctx); this.db = dbHelper.getWritableDatabase(); return this; } and, as you might reckon, my CurrencyStorageHelper class extends the SQLOpenHelper class and specifically: public CurrencyStorageHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onOpen(SQLiteDatabase db) { super.onOpen(db); Log.d(TAG, "Opening the database... " + db.getPath() + " version " + db.getVersion()); db.setLockingEnabled(true); } @Override public void onCreate(SQLiteDatabase database) { database.execSQL(DATABASE_CREATE_1); Log.d(TAG, "Creating table..." + DATABASE_CREATE_2); database.execSQL(DATABASE_CREATE_2); Log.d(TAG, "Creating table..." + DATABASE_CREATE_3); database.execSQL(DATABASE_CREATE_3); insertDefinitions(database); insertInitialCurrencies(database); } What is happening here is that despite launcing the "CREATE TABLE" statements, nothing gets created on the database. After those statements I even insert records using SQLiteDatabase.insert. But nothing happens.. no expections and no records get created. Afterward, when I try to query the DB, I get an option saying that the table I'm trying to query doesn't (obviously) exists. I'm not a newbie developer and I've tried to debug my app as much as I can/know but I have only these clues: 1. During the debug process, the instance of SQLiteDatabase has a mStrackTrace private attribute set to DatabaseObjectNotClosedException, but obviously no cursor has been opened.. yet. 2. The db version gets set to zero :( 3. Same behaviour using the Emulator and my Samsunga Galaxy S2 2.3.3 (hence no wrong configuration of the emulator). If you had patient to go through the entire email I hope you have even one single clue on why this is happening (maybe you experienced the same problem?? ) !! Log.d("Nico", "THANK YOU"); Nico -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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]
Sent from your iPhone?? 2011/8/19 Ashita > > > > > > > Sent from my iPhone > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Re: How to read *.CHM File ?
Google translator says: I am a new member of this group. can I get information before? I hope I gave a useful service to this mailing list :) ... 2011/8/16 Setiaji Kurniawan > saya anggota baru group ini. >> dapatkah saya mendapatkan informasi sebelumnya? > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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: Phone Gap
iOS? Ah... blasfemy :) 2011/8/16 Mlifty > Hi, > > I am a web developer and like yourself have just started my mobile > adventure. I decided to use Phong Gap to convert my web apps to native > apps and JQuery Mobile to handle the UI. Yes you can compile your > 'Hello World' app to the various platforms, though you would need to > setup a dev enviroment for each platform. Having said that PhoneGap > Build is currently in Beta and allows you to build from the cloud ;-) > > I suggest start with android as the setup with eclipse is pretty sweet > (note: I have not tried other environments though IOS is next) > > Re > > On Aug 16, 9:11 pm, "pramod.deore" wrote: > > Hi all, Today I read about phone gap. But I didn't got it clearly. > > Docs says "Write a PhoneGap app once with HTML and Javascript and > > deploy it to any mobile device without losing features of a native > > app". > > > > Is that means PhoneGap developed certain API's and we can use them in > > all above plalforms? Or is it like suppose I developed one application > > say Hello world application in Android platform and using PhoneGap I > > can translate .apk file into other device file say BlackBerry .cod > > file? > > > > Any help/suggestion highly appreciated. > > > > 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 > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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: Google Development phones
Just to double check.. does swappa dispatch to UK or is US only? Cheers, Nico 2011/8/16 Jake Wharton > You should also look at swappa.com for inexpensive, used phones. Any of > them should suffice for development. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] logic
...or.. if you really hate Google.. :) http://www.lmsify.com/3A599 2011/8/16 Nico Balestra > http://www.lmsify.com/38E2C > > > 2011/8/16 Nick Risaro > >> >> On Tue, Aug 16, 2011 at 9:14 AM, TreKing wrote: >> >>> Put your device on a stove, then turn it on. You will have awesome smoke >>> effect. >> >> >> logically ;) >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> 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] logic
http://www.lmsify.com/38E2C 2011/8/16 Nick Risaro > > On Tue, Aug 16, 2011 at 9:14 AM, TreKing wrote: > >> Put your device on a stove, then turn it on. You will have awesome smoke >> effect. > > > logically ;) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] custom view in a row of listview
Read this.. it's a valuable resource: http://www.vogella.de/articles/AndroidListView/article.html 2011/8/16 vani reddy > Hi friends, > How to create a custom view for a particular row in listview in android. > > -- > Regards, > Vani Reddy > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] display data in database
You've lost your last chance to get any more help here mate!! :) 2011/8/15 H > Lovin' 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 > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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] display data in database
You're forgetting the Magic Word: PLEASE 2011/8/15 abhijit chakra > just tell me the codes. > > On Mon, Aug 15, 2011 at 8:52 PM, Appaholics wrote: > >> Read is from the database with an SQL statement and display it. >> >> On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra wrote: >> >>> how to display data's that are stored in database..please tell me the >>> procedure. >>> 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 >> >> >> >> >> -- >> >> Raghav Sood >> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles >> required to have complete control) >> http://www.raghavsood.com/ >> https://market.android.com/developer?pub=Appaholics >> http://www.appaholics.in/ >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> 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 > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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: Known reasons for rebooting?
As I told you.. I switched on a Samsung Galaxy S2 :) I thought about keeping the HTC just for testing my apps on a different device but eventually it was useless. As soon as I connected the device on the USB port... puff.. function reboot() { reboot(); }:))) 2011/8/12 Per > Update: > > I had my app running for hours yesterday while charging, with the > Desire kept cool by sitting on top of a small CPU-cooler-like fan. > Noisy, but cool. > When I switched off the fan, the Desire rebooted within 3 minutes. > > Also, no reboots in flight mode. > > Bugger. > > > On Aug 11, 1:55 pm, Per wrote: > > Oh dear. > > > > Though I'm sort of happy that I'm not to blame this time, this is > > horrible. > > > > I tried a few experiments not involving my app, and sure enough, > > loading the poor device a bit (music, youtube, navigation at the same > > time) works fine off the charger, but inserting the charger invariably > > reboots the thing within minutes. Sometimes it even reboots while > > recovering... > > > > Turning off WiFi/Data has no effect. > > Flight mode seems to help, but that's not really a good option :) > > > > I'll try cooling the device by a fan or something, just to confirm > > that temperature really is the cause. > > > > The thread you pointed to also discussed Froyo as a possible (partial) > > cause. > > I tend to suspect the 2.1->2.2 update to worsen the problem, I don't > > remember seeing this a year ago (when I was making a similar app). > > > > thanks, > > Per > > > > On Aug 11, 10:54 am, Nico Balestra wrote: > > > > > I think this is related to a known problem affecting the HTC Desire. > > > > > Apparently it happens when the CPU gets hot, which is very likely for > > > intensive operations. > > > See this: > http://androidforums.com/desire-support-troubleshooting/78992-htc-des... > > > > > I had an HTC Desire and it was rebooting all the time as soon as I > attached > > > the phone to my USB cable and starting an application via Eclipse. The > same > > > was happening when I was browsing the web or playing Angry Birds :) > > > > > Eventually.. I've got a Samsung Galaxy S2!! > > > > > Hope this help, > > > Nico > > > > > 2011/8/11 Per > > > > > > Does anyone know of (reproducible) reasons for device reboot? > > > > > > My app-under-development will run for hours if the device is not > > > > charging, but with USB connected it will reboot, usually within > > > > minutes. No exceptions shown, just a reboot. > > > > > > The app has one activity, which (via a WakefulIntentService [from > > > > CommonsWare]) sets up alarms that will trigger at different intervals > > > > (4mins to half a day). The alarms are cancelled when the activity is > > > > destroyed. > > > > When an alarm goes off, a BroadcastReceiver starts a > > > > WakefulIntentService, which pulls some data from a server and saves > it > > > > in a file. That service starts another service, which provides a > cache > > > > of the data in the file to the activity. The start of the cache > > > > service is afaik the simplest way of providing a simple notification. > > > > It is most likely already running, as it is bound by the activity. > > > > > > This could most likely be done smarter, but it seemed like a fair > > > > compromise when I want the app to work offline, too. > > > > > > Does anyone know of an interaction between USB/charging and > > > > wakelocks / alarms / services ? > > > > Logcat does not provide much help. Seems that the log is cleared at > > > > reboot. > > > > Any hints for debugging this apart from logcat (will adb bugreport > > > > provide more history than logcat?) > > > > > > Just for the record, I have seen the device (HTC Desire running 2.2) > > > > reboot when it gets hot (hot environment, lots of voice/data traffic > > > > while or just after charging), but it's running pretty cool in this > > > > scenario. > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-dev
Re: [android-developers] Query
Ahaahah 2011/8/11 Mark Murphy > On Thu, Aug 11, 2011 at 1:17 PM, Kostya Vasilyev > wrote: > > About those gnomes - are they data storage workers, or the media on which > > the data is stored? > > Both. They tattoo each other with very tiny QR codes. Rather ingenious, > really. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training in Oslo: http://bit.ly/fjBo24 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Query...
Probably bits 2011/8/11 Daniel Drozdzewski > On 11 August 2011 11:43, Ishan wrote: > > Hello Friends, > > > > Can any one tell me how information is stored in android phone? > > robustly > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Known reasons for rebooting?
I think this is related to a known problem affecting the HTC Desire. Apparently it happens when the CPU gets hot, which is very likely for intensive operations. See this: http://androidforums.com/desire-support-troubleshooting/78992-htc-desire-crashes-restarts-randomly.html I had an HTC Desire and it was rebooting all the time as soon as I attached the phone to my USB cable and starting an application via Eclipse. The same was happening when I was browsing the web or playing Angry Birds :) Eventually.. I've got a Samsung Galaxy S2!! Hope this help, Nico 2011/8/11 Per > Does anyone know of (reproducible) reasons for device reboot? > > My app-under-development will run for hours if the device is not > charging, but with USB connected it will reboot, usually within > minutes. No exceptions shown, just a reboot. > > The app has one activity, which (via a WakefulIntentService [from > CommonsWare]) sets up alarms that will trigger at different intervals > (4mins to half a day). The alarms are cancelled when the activity is > destroyed. > When an alarm goes off, a BroadcastReceiver starts a > WakefulIntentService, which pulls some data from a server and saves it > in a file. That service starts another service, which provides a cache > of the data in the file to the activity. The start of the cache > service is afaik the simplest way of providing a simple notification. > It is most likely already running, as it is bound by the activity. > > This could most likely be done smarter, but it seemed like a fair > compromise when I want the app to work offline, too. > > > Does anyone know of an interaction between USB/charging and > wakelocks / alarms / services ? > Logcat does not provide much help. Seems that the log is cleared at > reboot. > Any hints for debugging this apart from logcat (will adb bugreport > provide more history than logcat?) > > > Just for the record, I have seen the device (HTC Desire running 2.2) > reboot when it gets hot (hot environment, lots of voice/data traffic > while or just after charging), but it's running pretty cool in this > scenario. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] I LOVE ANDROID
Sorry.. just wanted to let you know :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. 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: Jphfgyofjfjhghkloljgjkhilgxbcbghghghy
I thought it was a rotten Apple :) 2011/8/8 Nikolay Elenkov > On Mon, Aug 8, 2011 at 10:58 PM, Nico Balestra > wrote: > > What's iPod? :) > > > > It's like an Android tablet, only cheaper :) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Re: Jphfgyofjfjhghkloljgjkhilgxbcbghghghy
What's iPod? :) 2011/8/8 Ali Chousein > @Kumar: Brilliant! :-D > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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] Audio Recorder
Hi, you should do String name = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Logger"; to get the right mount point for your sd card. Hope this helps. Nico 2011/8/4 Ab Caballero > I'm trying to provide an audio recorder within an application for the > user to dictate notes. I keep getting an error that there is no valid > output file and that the external storage is not available (I know it > is because i am using it in a separate activity). Any thoughts would > be appreciated. > > private void recordAudio(){ >MediaRecorder recorder = new MediaRecorder(); >recorder.setAudioSource(MediaRecorder.AudioSource.MIC); > > recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); >recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); >checkStorage(); >recorder.setOutputFile("/sdcard/Logger"); >try { >recorder.prepare(); >} >catch (IllegalStateException e) { >// TODO Auto-generated catch block >e.printStackTrace(); >} >catch (IOException e) { >// TODO Auto-generated catch block >e.printStackTrace(); >} >recorder.start(); // Recording is now started >} > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > 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