Re: [android-developers] Transfering image file between two 2 emulators
Rolplkttl L sent from my mobile thoughts. On Jul 7, 2012 12:30 AM, Akki akshay.iitr@gmail.com wrote: I was trying to send an image file between 2 emulators using a TCP socket connection.The socket connection has been successfully made and the image file is stored on the SD-card of one of the emulators. I want to ask how can I convert the image file into byte stream and how on the other side can I convert back the bytestream to image format?? I tried to search a lot but couldn't find the right function in the API. Any other ideas for the same are welcomed -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: branding existing app
You're looking to have two apps with the same code base, different package / app name. Releasing two apks. The only way I see this likely is to use two different projects with a core library containing the code that you'd like to reuse. sent from my mobile thoughts. On Apr 4, 2012 7:16 AM, Mark mlybar...@gmail.com wrote: themes don't quite seem to handle what's needed. i have one application or project that i want to deploy as 2 applications. build as app a, then build as app b. i can easily copy in / out a different resource folder, but that doesn't handle the application package. each app in the store needs a different package. my app code uses the namespace, org.bnb for the classes, but i want to deploy for Bob's Bed n Breakfast and for Sue's Bed and Breakfast, com.bbnb and com.sbnb. Android seems to use the package name as the application name (from the manifest). i've been able to override thus far the package name that the R class uses, but when i try to run, the other classes seem to want to come from the manifest package naming. ar. any help on this is most appreciated. android could use an app name and keep that separate from the code naming. On Apr 4, 12:28 am, TreKing treking...@gmail.com wrote: On Tue, Apr 3, 2012 at 6:49 AM, Mark mlybar...@gmail.com wrote: How would i go about switching the resources and the R class? Are there other ideas on how to properly brand an application? I'd would investigate using Themes. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] resintalling application due to data corruption
Just curious where is the file you are opening stored? Is it within your APK and within the Raw folder? On Wed, Apr 4, 2012 at 10:07 AM, guich guiha...@gmail.com wrote: Hi, Some users are having a very serious problem with some android devices (motorola, samsung): after running the application for several hours, some data files are being corrupted by the OS. The most strangest thing is that these files are opened using fopen(.., rb), thus, in read-only mode. They are never written from our code. I can easily detect that the corruption occured when the program starts. I was thinking, in this case, to call the installer again. I know that the installer are stored at /data/app/*.apk. Is it possible to call the installer from the application in a non-rooted android device or is this blocked? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Albert Rosa (Phone) 646-389-ROSA rosalb...@gmail.com | http://www.albert-rosa.com | http://blog.albert-rosa.com Twitter: http://twitter.com/albertrosa | LinkedIn: http://linkedin.com/in/albertrosa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] runtime error: com.android.internal.os.LoggingPrintStream.println
It could be due to println not exististing in the packages included with android. I would suggest using Log.w(), Log.e() or Log.n() for logging and viewing points. Not entirely sure why the println doesn't work. Sent via Mobile device... mind the spelling errors I might have rushed! On Dec 26, 2011 8:25 AM, John Goche johngoch...@googlemail.com wrote: Hello, I have run across the following strange error message. From within an button's on click listener I call System.out.println(Foo.bar) so as to debug my program and get the following error message: D/AndroidRuntime( 2313): Shutting down VM W/dalvikvm( 2313): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/AndroidRuntime( 2313): FATAL EXCEPTION: main E/AndroidRuntime( 2313): java.lang.NullPointerException E/AndroidRuntime( 2313): at com.android.internal.os.LoggingPrintStream.println(LoggingPrintStream.java:298) Anyone know what this is all about? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADMOB HELP!
Hey there, I wouldn't be too worries at first for the first 6 months I didn't earn over 25 cents but after a year and more popularity i've gone to just about $4 a day for one app. It takes a while. Though you can also check your analytics if any to make a judgment on it. -Al Sent via Mobile device... mind the spelling errors I might have rushed! On Nov 28, 2011 6:03 PM, keken mportnoy...@yahoo.com wrote: Hello, can somebody help?, how much you guys usually earned per day using admob? I just want to know cause I'm a bit worried with my earnings. My app is still about 2-3 weeks since published. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I can't link tweeter to my blog
Peter, I believe you have sent this question to the incorrect group. On May 16, 2011 2:53 AM, Peter Crocker pbcroc...@gmail.com wrote: I can install the Twitter icon on my blog but when I click it, not found. I adjusted the html code to state my Twitter domain name but it says that it doesn't exist. I tried to do a search but it still says that it doesn't exist even though I see it in my profile. Once in my Twitter page, I look at the URL box but it only says,http:// twitter.com. What gives? Thanks. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help needed. Class not found expectation.
It might be that you are missing the activity in the android manifest xml. At times i end up forgetting to add each activity there. On May 16, 2011 9:24 PM, TreKing treking...@gmail.com wrote: On Mon, May 16, 2011 at 6:17 AM, SproutinGeek arun.avp...@gmail.com wrote: I was trying a demo database application. But Every time I try different different mentodes the same class not found exception is coming... the error on the Logcat is given bellow . You should consult wherever you found this demo for clear instructions on running it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Logcat empty
Also on the top there should be a few lines stating emulator and the port its using depending if you just ran it a few times or debug. You may have to select one of those in order to view the respected log cat output. On May 16, 2011 8:56 PM, Nicholas Johnson metthejohn...@gmail.com wrote: Are you seeing any logs in your Logcat? You should see lots of stuff which Android pumps out into a log, even if you don't have any Log's in your code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Database updates
Yes I changed the VERSION number on both the dbHelper file as well as the manifest below is the code for the db helper: public class RecipeDbHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME = test; private static final String DATABASE_TABLE = recipe; private static final int DATABASE_VERSION = 10; private static final String DATABASE_CREATE = CREATE TABLE recipe ( _id INTEGER PRIMARY KEY, title text not null, ingredients text not null, instructions text not null, mealtime INTEGER not null, calories INTEGER not null);; private static final String INITIAL_SETUP = INSERT INTO recipe (_id, title, instructions,ingredients, mealtime, calories) + VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and pepper and cook until eggs are firm. \n4. Serve on toasted english muffin with sliced pear on the side.', +'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to taste', 1, 124); ; public RecipeDbHelper(Context context){ super(context, DATABASE_NAME, null, DATABASE_VERSION); } public void clearReset(SQLiteDatabase db) { Log.w(Upgrading, Upgrading database from version); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } @Override public void onCreate(SQLiteDatabase db){ db.execSQL(DATABASE_CREATE); db.execSQL(INITIAL_SETUP); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ Log.w(Upgrading, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } thanks again I truly appreciate it. Albert Rosa rosalb...@gmail.com alb...@albert-rosa.com (m) 718-825-7838 (aim) albertrosa2000 (gchat) rosalbert (gvoice) (646) 389-7672 On May 3, 2011, at 4:18 AM, harsh chandel wrote: can you put the code On May 3, 5:58 am, Albert Rosa rosalb...@gmail.com wrote: So this is my first time working with android and the sqlite db. I followed the instructions and was able to have a db connection where i was able to create and edit records. However i changed the schema of the db just to make it easier on me. Here is when i get slapped, i updated the version number, and modified the create statement to reflect the change. The onUpdate function is not being hit when i run the app again. Im not sure what I may be doing wrong. Any help suggestions are greatly welcomed and appreciated. Thanks for the 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Database updates
Ok so I've been able to place crazy amounts of logs every where and it does see to call onUpgrade to the next version and it is able to drop the table. I want validate the sql that its generating in order to get all the items. is there a way to get the raw sql that it's generating. I feel like i may be doing something wrong, rather I know I'm doing something wrong I just don't know... clearReset was a function I created in order to drop the table and reset it with preset data. it can be ignored. I will try to find the db in the emulator by adb maybe I might surprise myself. Albert Rosa rosalb...@gmail.com alb...@albert-rosa.com (m) 718-825-7838 (aim) albertrosa2000 (gchat) rosalbert (gvoice) (646) 389-7672 On May 3, 2011, at 11:55 AM, Kostya Vasilyev wrote: No idea what clearReset is, but Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's version is not already 10 (which would mean that there is nothing to upgrade). -- Kostya PS - Can I use butter instead of cooking spray? :) 03.05.2011 18:09, Albert Rosa пишет: Yes I changed the VERSION number on both the dbHelper file as well as the manifest below is the code for the db helper: public class RecipeDbHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME = test; private static final String DATABASE_TABLE = recipe; private static final int DATABASE_VERSION = 10; private static final String DATABASE_CREATE = CREATE TABLE recipe ( _id INTEGER PRIMARY KEY, title text not null, ingredients text not null, instructions text not null, mealtime INTEGER not null, calories INTEGER not null);; private static final String INITIAL_SETUP = INSERT INTO recipe (_id, title, instructions,ingredients, mealtime, calories) + VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and pepper and cook until eggs are firm. \n4. Serve on toasted english muffin with sliced pear on the side.', +'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to taste', 1, 124); ; public RecipeDbHelper(Context context){ super(context, DATABASE_NAME, null, DATABASE_VERSION); } public void clearReset(SQLiteDatabase db) { Log.w(Upgrading, Upgrading database from version); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } @Override public void onCreate(SQLiteDatabase db){ db.execSQL(DATABASE_CREATE); db.execSQL(INITIAL_SETUP); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ Log.w(Upgrading, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } thanks again I truly appreciate it. Albert Rosa rosalb...@gmail.com alb...@albert-rosa.com (m) 718-825-7838 (aim) albertrosa2000 (gchat) rosalbert (gvoice) (646) 389-7672 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Database updates
OK so here's what I gathered, after doing some investigation in the adb (AWESOME by the way) I noticed that there was nothing wrong with my inserts. But for some reason the second insert that is attached to INITIAL_SETUP is not run. wierd I know. but that clears up my confusion a bit. I am thinking that each db.execSQL can only use one statement at a time. I may be wrong but for now I think that's how it is. Luckily I found an article on copying db's over so I can pre-populate the db and then copy it over. Thanks everyone for the advice and If i'm wrong in my assumptions please feel free to let me know. Albert Rosa rosalb...@gmail.com alb...@albert-rosa.com (m) 718-825-7838 (aim) albertrosa2000 (gchat) rosalbert (gvoice) (646) 389-7672 On May 3, 2011, at 11:55 AM, Kostya Vasilyev wrote: No idea what clearReset is, but Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's version is not already 10 (which would mean that there is nothing to upgrade). -- Kostya PS - Can I use butter instead of cooking spray? :) 03.05.2011 18:09, Albert Rosa пишет: Yes I changed the VERSION number on both the dbHelper file as well as the manifest below is the code for the db helper: public class RecipeDbHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME = test; private static final String DATABASE_TABLE = recipe; private static final int DATABASE_VERSION = 10; private static final String DATABASE_CREATE = CREATE TABLE recipe ( _id INTEGER PRIMARY KEY, title text not null, ingredients text not null, instructions text not null, mealtime INTEGER not null, calories INTEGER not null);; private static final String INITIAL_SETUP = INSERT INTO recipe (_id, title, instructions,ingredients, mealtime, calories) + VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and pepper and cook until eggs are firm. \n4. Serve on toasted english muffin with sliced pear on the side.', +'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to taste', 1, 124); ; public RecipeDbHelper(Context context){ super(context, DATABASE_NAME, null, DATABASE_VERSION); } public void clearReset(SQLiteDatabase db) { Log.w(Upgrading, Upgrading database from version); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } @Override public void onCreate(SQLiteDatabase db){ db.execSQL(DATABASE_CREATE); db.execSQL(INITIAL_SETUP); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){ Log.w(Upgrading, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE); onCreate(db); } thanks again I truly appreciate it. Albert Rosa rosalb...@gmail.com alb...@albert-rosa.com (m) 718-825-7838 (aim) albertrosa2000 (gchat) rosalbert (gvoice) (646) 389-7672 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Database updates
So this is my first time working with android and the sqlite db. I followed the instructions and was able to have a db connection where i was able to create and edit records. However i changed the schema of the db just to make it easier on me. Here is when i get slapped, i updated the version number, and modified the create statement to reflect the change. The onUpdate function is not being hit when i run the app again. Im not sure what I may be doing wrong. Any help suggestions are greatly welcomed and appreciated. Thanks for the 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
Re: [android-developers] Google Nexus S - Please provide as DEV phone, asap :-)
I concur i would totally love it as a dev phone! On Dec 7, 2010 9:29 PM, gjs garyjamessi...@gmail.com wrote: Hi, Google Nexus S - Please provide as DEV phone, asap :-) Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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] Custom View
Afternoon All, I am working on trying to streamline my app a bit and i want to get the most out of my custom view and the xml layout. So I have a custom object with 4 images and a textview in the whole view, I have created functions to inject the images I want to use in code, but I am looking to do something like the following: customView image1Property.src ='img;/ I may not be too clear and for that I apologize for now. All I want to do is populate a child view form a parent view more or less ...but in the xml and not by the setup code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 we create app to use phone camera as magnifier
I feel its very plausable the deal is that it would be a digital zoom and not an actual zoom. And quality of the view is scewed by the way the camera focuses and its hardware. But all in all yep. -albert On Nov 24, 2010 7:40 AM, Atik atik0...@gmail.com wrote: hi guys i need to know that can we use android phone camera as magnifier glass. i want to create such application, which will open the camera and zoom it to read some small text etc, it wont capture any picture neither it will record any video. pls suggest if any one have any ideas Thanks 'Atik -- You received this message because you are subscribed to the Google Groups Android Developers group. 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