[android-developers] Re: Relative TIme Diff for Mysql Timestamp

2011-10-05 Thread ArcDroid
I would like to compare the strings in Android if possible. thanks arcdroid http://www.arcdroid.com On Oct 3, 10:42 pm, Studio LFP studio@gmail.com wrote: Are you wanting to compare the time in Android or have the database query in MySQL do it? Steven Studio LFPhttp://www.studio-lfp.com

[android-developers] Re: Relative TIme Diff for Mysql Timestamp

2011-10-05 Thread ArcDroid
I use php that returns a json object that is from a mysql db :-) On Oct 5, 12:04 am, Zsolt Vasvari zvasv...@gmail.com wrote: You useMySQLon Android? On Oct 4, 1:42 pm, Studio LFP studio@gmail.com wrote: Are you wanting to compare the time in Android or have the database query in

[android-developers] Relative TIme Diff for Mysql Timestamp

2011-10-03 Thread ArcDroid
Hello, What is the best way to get the relative difference of a mysql timestamp such as: 2011-07-14 19:27:40 vs. 2011-07-14 19:25:30 Thanks in advance! http://www.arcdroid.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Relative TIme Diff for Mysql Timestamp

2011-10-03 Thread ArcDroid
I actually converted the timestamps to milis, and everything works fine except for when I am comparing dates that are more than 7 days different. On Oct 3, 9:25 pm, ArcDroid jacobrjohn...@gmail.com wrote: Hello, What is the best way to get the relative difference of a mysql timestamp

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-16 Thread ArcDroid
fixing it ? 15.09.2011 18:04, ArcDroid пишет: 160dpi graphics crashes my app so I had to use a lower dpi to avoid the animation from crashing. http://www.arcdroid.com On Sep 15, 12:19 am, Dianne Hackbornhack...@android.com  wrote: 160dpi is mdpi.  Android does not use 90dpi, so I

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-15 Thread ArcDroid
. Anyway, how about fixing whatever in your app is crashing? :} On Wed, Sep 14, 2011 at 8:47 PM, ArcDroid jacobrjohn...@gmail.com wrote: Correct it is a mdpi.  The problem I have is that my app crashes if i use 160dpi graphics so using 90dpi looks ok on a phone, but poor on a tablet.  Hence

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-14 Thread ArcDroid
Murphy mmur...@commonsware.com wrote: On Tue, Sep 13, 2011 at 11:06 PM, ArcDroid jacobrjohn...@gmail.com wrote: From the link I assumed from the below example that you should have similar drawable buckets if the layout is actually the same. res/layout/main_activity.xml

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-14 Thread ArcDroid
wrote: On Wed, Sep 14, 2011 at 9:12 AM, ArcDroid jacobrjohn...@gmail.com wrote: That is what I thought initially, simply put the higher res graphics in the drawables-hdpi folder.  The problem is on my Acer 10 tablet the only way I can get the good graphics to show is using drawables- xlarge

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread ArcDroid
://android-developers.blogspot.com/2011/07/new-tools-for-managing... On Sat, Sep 10, 2011 at 7:44 AM, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-13 Thread ArcDroid
13, 2011 at 6:02 AM, ArcDroid jacobrjohn...@gmail.com wrote: So it appears I need to have the same higher res images in drawable- hdpi and drawable-large buckets.  This is going to make the install big if an app has many pictures. On Sep 10, 10:44 am, Dianne Hackborn hack...@android.com

[android-developers] Why is the default to use dpi instead of screen size for drawables

2011-09-10 Thread ArcDroid
Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some old phones fall into the mdpi bucket. why is the default to use dpi instead of screen size? Thanks, ArcDroid http://www.arcdroid.com -- You

[android-developers] Re: Why is the default to use dpi instead of screen size for drawables

2011-09-10 Thread ArcDroid
One example is the htc hero and the acer iconica a500 10 tablet both use mdpi On Sep 10, 7:44 am, ArcDroid jacobrjohn...@gmail.com wrote: Directories are already created for ldpi, mdpi and hdpi, but it appears that normal, large, xlarge work much better for tablets and phone sizes since some

[android-developers] how to add images to an alertdialog list

2011-06-23 Thread ArcDroid
Hello, Is there an easy way to add pictures to an alertdialog list? final CharSequence[] items = {Foo, Bar, Baz}; AlertDialog.Builder builder = new AlertDialog.Builder(MyChats.this);

[android-developers] Re: how to add images to an alertdialog list

2011-06-23 Thread ArcDroid
, ArcDroid jacobrjohn...@gmail.com wrote: Hello, Is there an easy way to add pictures to an alertdialog list? final CharSequence[] items = {Foo, Bar, Baz};                                                AlertDialog.Builder builder = new AlertDialog.Builder(MyChats.this

[android-developers] Re: how to add images to an alertdialog list

2011-06-23 Thread ArcDroid
Thought there might be an easier way, but I got it to work just fine. Thanks all for your help! Jake http://www.arcdroid.com On Jun 23, 11:06 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jun 23, 2011 at 10:48 AM, ArcDroid jacobrjohn...@gmail.com wrote: Thanks, but do you happen

[android-developers] Re: ontap and tabhost

2011-06-07 Thread ArcDroid
Here is the error messageNo enclosing instance of the type MainMap is accessible in scope. I read that one solution is to make MyItemizedOverlay an inner class of mymap class. On Jun 6, 6:54 am, ArcDroid jacobrjohn...@gmail.com wrote: hello, I am trying to click on a geo point

[android-developers] ontap and tabhost

2011-06-06 Thread ArcDroid
hello, I am trying to click on a geo point and then open another tab. here is my code public class MapItemizedOverlay extends ItemizedOverlay { public MapItemizedOverlay(Drawable drawable, Context context) { super(boundCenterBottom(drawable)); mContext =

[android-developers] Re: ontap and tabhost

2011-06-06 Thread ArcDroid
W/ActivityManager( 103): Activity pause timeout for HistoryRecord{406c0a58 com.arcdroid.chat/.Tabs} V/RenderScript_jni( 193): surfaceCreated thanks http://www.arcdroid.com On Jun 6, 6:54 am, ArcDroid jacobrjohn...@gmail.com wrote: hello, I am trying to click on a geo point and then open another

[android-developers] Re: How to get the user's nickname not username

2011-05-23 Thread ArcDroid
Is there anyway to get the phones nickname (used in the google marketplace)? Thanks http://www.arcdroid.com On Mar 24, 6:44 am, ArcDroid jacobrjohn...@gmail.com wrote: Is it possible to use the AccountManager? On Mar 22, 8:48 pm, ArcDroid jacobrjohn...@gmail.com wrote: I see lots

[android-developers] Textview background with text inside background image

2011-05-07 Thread ArcDroid
Hello, I have a background image in my textview (like a chat bubble) and want to make the text inside the background image. How Do i add padding to the text, but not the image? TextView android:id=@+id/text android:layout_height=wrap_content

[android-developers] Re: Textview background with text inside background image

2011-05-07 Thread ArcDroid
Never mind, didn't realize that android:padding=10dp does this by applying this only to the text and not the background. On May 7, 2:35 pm, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I have a background image in my textview (like a chat bubble) and want to make the text inside

[android-developers] addon_google_apis_google_inc_11': File not found

2011-04-17 Thread ArcDroid
Hello, I just upgraded my eclipse and everything. The issue is that my googlemaps api doesn't work anymore since it can't find the addon. Not sure what do do. I did register my api and used the sample code for the xml. Thanks uses-library android:name=com.google.android.maps / [2011-04-17

[android-developers] Re: addon_google_apis_google_inc_11': File not found

2011-04-17 Thread ArcDroid
just upgraded the packages in eclipse and having major issues. going to start from scratch On Apr 17, 4:45 am, lbendlin l...@bendlin.us wrote: Are you actually building your project against the Google Maps API 11 ? -- You received this message because you are subscribed to the Google

[android-developers] Re: addon_google_apis_google_inc_11': File not found

2011-04-17 Thread ArcDroid
(DataRequestDispatcher.java:1702) W/System.err(20815):at java.lang.Thread.run(Thread.java:1019) On Apr 17, 7:26 am, ArcDroid jacobrjohn...@gmail.com wrote: just upgraded the packages in eclipse and having major issues.  going to start from scratch On Apr 17, 4:45 am, lbendlin l...@bendlin.us

[android-developers] Global Variable extended Application Class causing ClassCastException

2011-04-16 Thread ArcDroid
Hello all, I have tried everything and can't get past this issue. Here is a my error and the simple code example Using Android 2.2.. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.arcdroid.Vars/com.arcdroid.Vars.HelloApplication}: java.lang.ClassCastException:

[android-developers] Re: Global Variable extended Application Class causing ClassCastException

2011-04-16 Thread ArcDroid
it is not. On Sat, Apr 16, 2011 at 10:16 AM, ArcDroid jacobrjohn...@gmail.com wrote: Hello all, I have tried everything and can't get past this issue.  Here is a my error and the simple code example Using Android 2.2..  java.lang.RuntimeException: Unable to start activity

[android-developers] Re: Global Variable extended Application Class causing ClassCastException

2011-04-16 Thread ArcDroid
=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Best, http://www.arcdroid.com On Apr 16, 8:06 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Apr 16, 2011 at 10:46 AM, ArcDroid jacobrjohn...@gmail.com wrote: Thanks for pointing that out

[android-developers] Re: How to get the user's nickname not username

2011-03-24 Thread ArcDroid
Is it possible to use the AccountManager? On Mar 22, 8:48 pm, ArcDroid jacobrjohn...@gmail.com wrote: I see lots of code which can get the username, but I don't see any code how to get the nickname.  I would like to use the nickname for posting scores similar to the comments posted for apps

[android-developers] How to get the user's nickname not username

2011-03-22 Thread ArcDroid
I see lots of code which can get the username, but I don't see any code how to get the nickname. I would like to use the nickname for posting scores similar to the comments posted for apps. Any help is appreciated. Regards, ArcDroid http://www.arcdroid.com -- You received this message because

[android-developers] AccountManager - how to get the nick name of the user instead of the email address

2011-02-18 Thread ArcDroid
Hello, I am trying to get the nick name used when posting comments and reviews in the market. All I konw how to do is get the emails. AccountManager manager = AccountManager.get(this); Account[] accounts = manager.getAccountsByType(com.google); ListString possibleEmails = new

[android-developers] is it possible to play flash in videoview?

2010-12-30 Thread ArcDroid
Hello, It would be great to point videoview to a url to play flash, is this possible? If so an example would be great. Thanks http://www.arcdroid.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] Re: Is there an easier way than using x y for multitouch

2010-11-05 Thread ArcDroid
bump... On Nov 4, 10:01 pm, ArcDroid jacobrjohn...@gmail.com wrote: any ideas???  Thanks in advance... On Nov 4, 7:29 am,ArcDroidjacobrjohn...@gmail.com wrote: Hello, I would like to have a an app where I can play a bunch of buttons all at the same time using multitouch.  The only

[android-developers] Is there an easier way than using x y for multitouch

2010-11-04 Thread ArcDroid
Hello, I would like to have a an app where I can play a bunch of buttons all at the same time using multitouch. The only way I have gotten it to work is using the touch method and testing for a bunch of x,y coordinates. Please let me know if there is an easier/nicer way! Thanks ArcDroid http

[android-developers] Re: Is there an easier way than using x y for multitouch

2010-11-04 Thread ArcDroid
any ideas??? Thanks in advance... On Nov 4, 7:29 am, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I would like to have a an app where I can play a bunch of buttons all at the same time using multitouch.  The only way I have gotten it to work is using the touch method and testing for a bunch

[android-developers] Re: best way to play 10 sounds quickly

2010-10-29 Thread ArcDroid
That is what I thought, but wanted to confirm. Thanks Jake http://www.arcdroid.com On Oct 25, 10:32 pm, sylar mr sylar...@gmail.com wrote: use a soundpoo is the fastest if your sound resouces samll than 1mb 2010/10/21 ArcDroid jacobrjohn...@gmail.com Hello, I am trying to play

[android-developers] add child views to main view

2010-10-23 Thread ArcDroid
Hello, I am trying to figure out how to add a child view to a parent view so I can use the MotionEvent.ACTION_MOVE feature to move from one child view to the next. Is this possible? Thanks ArcDroid http://www.arcdroid.com -- You received this message because you are subscribed to the Google

[android-developers] Re: add child views to main view

2010-10-23 Thread ArcDroid
Hello, I am trying to do multi-touch and everything has to be in one view so I am told. That is why I was going to try to do the View.addView, but will this allow me to use multi-touch (ex. MotionEvent.ACTION_MOVE)? Thanks, ArcDroid http://www.arcdroid.com On Oct 23, 9:48 am, Bret Foreman

[android-developers] best way to play 10 sounds quickly

2010-10-21 Thread ArcDroid
Hello, I am trying to play the same 10 sounds very quickly and wondering what is the best way? 1. make 10 mediaplayers 2. make 1 mediaplayer and set the sound each time 3. use a soundpool? 4. Other ideas Thanks, ArcDroid http://www.arcdroid.com -- You received this message because you

[android-developers] Re: ImageView slow when using SetImageResource and MediaPlayer

2010-10-08 Thread ArcDroid
, its single synchronous process. Regards, Simon On Tue, Oct 5, 2010 at 3:50 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I am trying to play a sound and also show a new picture.  The pictures are only ~1Kb in size, but it slows down the audio when I add in the setImageResource

[android-developers] ImageView slow when using SetImageResource and MediaPlayer

2010-10-05 Thread ArcDroid
Hello, I am trying to play a sound and also show a new picture. The pictures are only ~1Kb in size, but it slows down the audio when I add in the setImageResource. Is it faster to use an array? I have tried running the audio in a new thread, but that doesn't seem to help. Thanks private

[android-developers] Re: Multi-touch for a Piano

2010-09-29 Thread ArcDroid
,ArcDroidjacobrjohn...@gmail.com wrote: Thanks Robert, Sure which I could simply use the multitouch with multiple views. Looks like I am going to have one heck of a time mapping all the locations of the keys. Jake On Sep 6, 10:01 pm, Robert Green rbgrn@gmail.com wrote: ArcDroid, I would

[android-developers] What is the best gui editor?

2010-09-28 Thread ArcDroid
I am creating the gui in xml using eclipse, is there a better way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] While Loop Stall the rest of the program

2010-09-26 Thread ArcDroid
Hello, I am trying to load a picture, then run a while loop. The problem is that the program runs the while loop and doesn't load the pictures until the loop has finished. Any help is appreciated. Thanks Jake -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Multi-touch for a Piano

2010-09-26 Thread ArcDroid
Thanks Robert, Sure which I could simply use the multitouch with multiple views. Looks like I am going to have one heck of a time mapping all the locations of the keys. Jake On Sep 6, 10:01 pm, Robert Green rbgrn@gmail.com wrote: ArcDroid, I would do the following: Mock up the screen

[android-developers] Re: While Loop Stall the rest of the program

2010-09-26 Thread ArcDroid
@gmail.com wrote: Ummm, you should mention more details, as to what and how you are doing things. Else, no one can answer your query. -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 26, 12:45 pm, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I am trying to load a picture, then run

[android-developers] Re: While Loop Stall the rest of the program

2010-09-26 Thread ArcDroid
I originally tried a separate thread, but couldn't update the ImageView from my new thread. On Sep 26, 1:23 am, ArcDroid jacobrjohn...@gmail.com wrote: the first picture never loads with the while loop.  Once the loop is removed the first picture loads just fine.  right now it doesn't load

[android-developers] Multi-touch for a Piano

2010-09-06 Thread ArcDroid
Hello, I would like to add multi-touch to my piano app and would like feedback on the best way to do it. I hate the idea that multi-touch is only for one view and not multiple views (ie buttons). Thanks, Jake -- You received this message because you are subscribed to the Google Groups Android

[android-developers] How do you force a reset just like rotation does?

2010-08-27 Thread ArcDroid
Hello, I am trying to reset my program just like when you rotate the phone. Any way to do that in code? 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

[android-developers] Re: How do you force a reset just like rotation does?

2010-08-27 Thread ArcDroid
PM, ArcDroid jacobrjohn...@gmail.com wrote: Any way to do that in code? private void reset() {  startActivity(/*args for this activity*/);  finish(); } --- -- TreKing http://sites.google.com

[android-developers] Re: How do you force a reset just like rotation does?

2010-08-27 Thread ArcDroid
I have already searched all those links, but was expecting some basic call that is generic to every program. On Aug 27, 12:13 pm, TreKing treking...@gmail.com wrote: On Fri, Aug 27, 2010 at 1:53 PM, ArcDroid jacobrjohn...@gmail.com wrote: thanks for the quick reply, but what args are you

[android-developers] Clearing the Canvas in a Framelayout

2010-08-27 Thread ArcDroid
Hello, I have a framelayout which works great except I want to have a clear button. So far the best option I can think of is to use the drawcolor but this whipes everything including the buttons I have in the framelayout. Any ideas are appreciated. Thanks -- You received this message because

[android-developers] Re: How do you force a reset just like rotation does?

2010-08-27 Thread ArcDroid
i was reading the links you sent and you would think that super.ondestroy(); should also do the trick, but doesn't. Any idea why? On Aug 27, 12:31 pm, ArcDroid jacobrjohn...@gmail.com wrote: I have already searched all those links, but was expecting some basic call that is generic to every

[android-developers] How to email the screen

2010-08-25 Thread ArcDroid
Hello, I am trying to email whats it on the screen. I am able to email text, but don't know what to call for the screen to be sent as an attachment. Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); String[] recipients = new String[]{};

[android-developers] NullPointerException with OnTouch

2010-08-06 Thread ArcDroid
Hello, I have been getting some NullPointerExceptions ( $7.onTouch() ) and I am not sure how to fix it. I am using the same logic in other programs without an issue. Any help is appreciated. Thanks, Jake -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: NullPointerException with OnTouch

2010-08-06 Thread ArcDroid
, ArcDroid jacobrjohn...@gmail.com wrote: I have been getting some NullPointerExceptions ( $7.onTouch() ) and I am not sure how to fix it. OK. I am using the same logic in other programs without an issue. Which is what? Or should we start guessing? Any help is appreciated. http://catb.org

[android-developers] Re: program crashes once sdk version added to manifest

2010-07-10 Thread ArcDroid
well, I had to many pictures which gave a memory dump, only after adding the sdk in the manifest...doesn't make much sense to me On Jul 9, 10:13 pm, ArcDroid jacobrjohn...@gmail.com wrote: crazy, it says I ran out of memory when I had the sdk line in. On Jul 9, 5:44 pm, Mark Murphy mmur

[android-developers] how do I restart my program?

2010-07-09 Thread ArcDroid
i would like to restart my app, just like when you change from horizontal to vertical. Something like finish, but I don't want to exit the program. 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] how to set setImageResource to null

2010-07-09 Thread ArcDroid
hello, I have a picture in the setImageResource, but I want to make it null; so far I am using i.setImageResource(1), but would like to know a better way. Thanks jake -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] program crashes once sdk version added to manifest

2010-07-09 Thread ArcDroid
running v1.6 and having a problem with crashing...works if I take out the sdk line. tried... uses-sdk android:targetSdkVersion=4 / uses-sdk android:minSdkVersion=4 / ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: program crashes once sdk version added to manifest

2010-07-09 Thread ArcDroid
crazy, it says I ran out of memory when I had the sdk line in. On Jul 9, 5:44 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 9, 2010 at 8:23 PM, ArcDroid jacobrjohn...@gmail.com wrote: running v1.6 and having a problem with crashing...works if I take out the sdk line. Use

[android-developers] Re: multitouch for a piano

2010-07-04 Thread ArcDroid
...@gmail.com wrote: You can't android only tracks two touch points a time On Jul 3, 2010 1:10 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hi does anyone have good way to impliment multi touch for a piano, thanks Jake -- You received this message because you are subscribed to the Google

[android-developers] multitouch for a piano

2010-07-03 Thread ArcDroid
Hi does anyone have good way to impliment multi touch for a piano, thanks Jake -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] color button backgrounds

2010-07-01 Thread ArcDroid
Is there a way to color buttons without loosing the rounding of the edges? 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

[android-developers] surfaceview - how to make two independent boxes

2010-06-30 Thread ArcDroid
Hello, I have been working through samples and I have been able to make one icon move when drag it over the screen, but how do I make two icons move around independently. Ex. drag one icon left ontouch, then drag another icon down on touch. Thanks in advance! Jake -- You received this message