[android-developers] Re: Android Layouts Are Horrible

2011-04-04 Thread Mike dg
Maybe you should try a ListView instead.

On Apr 4, 1:01 am, grndvl1 grnd...@gmail.com wrote:
 Why is it I spend more time dealing with the layout of items than the
 actual coding of the program?  The Eclipse Graphical Layout tool
 really blows as it has a ton of errors and can't handle simple things
 like italic text in textview, scrollviews...  The layout parameters
 seem to be a hodge-podge of stuff thrown in there as an after thought,
 seems it wasn't really planned out.  They should have taken a lesson
 from Java's crappy Gridbag layout  and used or at least analyzed how
 Miglayout fixed many issues with Java GUI's.  I won't use any other
 layout manager other than Miglayout.  Anyway just venting here as I
 spent the last 1hr fixing something that should be so simple in a
 Scrollview/TableLayout/TableRow with ImageView and TextView in each
 row.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: setimageresource showing wrong image

2011-03-15 Thread Mike dg
Assuming you are using Eclipse, do a Project - Clean All in your
workspace. The latest versions of the Android plugins seem to be
screwing up resources a lot lately. Also if you et mysterious crashes,
try a clean all too.

-Mike dg

On Mar 14, 3:33 pm, rankan sri.ke...@gmail.com wrote:
 Hi,

 I'm trying to build a simple UI based on the tutorial on using tabs. I
 added a couple of .png files to the /res/drawable folder. When I'm
 creating an image button, I call
 button.setImageResrouce(R.drawable.arrowup). The imagebutton is
 created, however the image that it displays is the wrong image. It is
 one of the images that existed in the folder previously. I simply
 added a arrowup.png file to the res/drawable folder. Is there some
 step I am missing?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Complaint about Droidfanz.com

2011-03-12 Thread Mike dg
Please submit a DMCA take down notice.

On Mar 10, 11:40 am, appborg linx...@gmail.com wrote:
 here is the hosting company details of droidfanz.com
 We have found few of our pro version apps distributed,  and wrote to
 the UK2 GROUP LTD (probably the hosting company)
 please send them a complaint  email , if you believe your apps are
 being distributed illegally

 Domain Name: DROIDFANZ.COM
    Registrar: UK2 GROUP LTD.
    Whois Server: whois.hostingservicesinc.net
    Referral URL:http://www.resell.biz
    Name Server: NS1.DATA-CENTR.LV
    Name Server: NS2.DATA-CENTR.LV
    Status: ok
    Updated Date: 12-oct-2010
    Creation Date: 08-sep-2009
    Expiration Date: 08-sep-2011

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Progress Bar without a dialog box

2011-01-17 Thread Mike dg
What about making an activity exclusively for displaying the progress
dialog? It sounds like you have no desire to allow the user to do
anything during the fetch process, which I'm against but this would
work. You can do XML for the new activity layout.


On Jan 16, 11:53 pm, TreKing treking...@gmail.com wrote:
 On Sun, Jan 16, 2011 at 10:49 PM, cool.manish mannishga...@gmail.comwrote:

   I had also tried Progress Bar but I have to include it in the XML.

 No you don't. Did you even try creating it programmatically?

 --- 
 --
 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


[android-developers] Re: Android Cloud to Device Messaging (C2DM) Limitations

2010-12-17 Thread Mike dg
Three to 20 seconds to a single device? I don't think theres too much
benefit of having push at those rates. What about sending one message
and just maintaining a connection for those 20 seconds.

Mike dg

On Dec 17, 3:42 pm, Mark Murphy mmur...@commonsware.com wrote:
 You will probably want to ask that question here:

 http://groups.google.com/group/android-c2dm





 On Fri, Dec 17, 2010 at 3:38 PM, Dan king...@gmail.com wrote:
  Hello,

  I am considering using the C2DM service for an application but I need
  more details on the limitations. I need to send a fair amount of
  updates quickly, between 3 and 20 seconds while the application is
  active. Would this level of usage be considered permissible?

  -Dan

  --
  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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can't disable keyguard anymore

2010-12-04 Thread Mike dg
I think some Googlers have said this was going away for a long time
now. I suppose it finally happened. :(

If you want to give a try of my paid app, Keyguard Disabler go for it.
If it still works on your device I'll try to help get you working.
Then feel free to do an automated refund or mail me for a refund.

-Mike dg

On Dec 4, 4:51 am, Teo [GD API Guru] teomina...@gmail.com wrote:
 Hi,

 has something changed in the latest OS update (Android 2.2.1, Nexus
 One) about disabling keyguards? I have an app that has an alarm
 feature and wakes up the phone + disables the keyguard; the keyguard
 disabling doesn't happen anymore. Here's what i'm doing:

 private final void unlockScreen() {
     final KeyguardManager km = ((KeyguardManager)
 getSystemService(Activity.KEYGUARD_SERVICE));
     if (km.inKeyguardRestrictedInputMode()) {
       final KeyguardLock kl = km.newKeyguardLock(KEYGUARD_SERVICE);
       kl.disableKeyguard();
     }
   }

   private final void wakeScreen() {
     final boolean dim = sPref.getBoolean(Config.ALARM_DIM, false);
     final PowerManager.WakeLock wl = ((PowerManager)
 getSystemService(Context.POWER_SERVICE))
         .newWakeLock((dim ? PowerManager.SCREEN_DIM_WAKE_LOCK
             : PowerManager.SCREEN_BRIGHT_WAKE_LOCK)
             | PowerManager.ACQUIRE_CAUSES_WAKEUP, TagToDoWake);
     wl.acquire();
     new Handler().postDelayed(new Runnable() {
       public void run() {
         wl.release();
       }
     }, 2);

 And i'm calling them in this order:
     wakeScreen();
     unlockScreen();

 Thanks,
 Teo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: interactive notification?

2010-12-04 Thread Mike dg
I believe this works on certain Sense devices, but unless something
has changed recently, it's not doable on stock.

On Dec 4, 4:24 am, Dianne Hackborn hack...@android.com wrote:
 I would suggest trying on the stock platform (in the emulator), and taking
 that as the expected behavior.  From your post you say it doesn't work on
 the Droid 1, which is stock Android, so this is likely just not something
 that is supported in the base platform and what you are see is various
 extensions different vendors have made to add features to their devices, but
 not behavior you can rely on.









 On Fri, Dec 3, 2010 at 11:48 PM, CrazyH huang...@gmail.com wrote:
  Yes and no.  From my experience, it works on some phones and not
  others.  See my post here

 http://groups.google.com/group/android-developers/browse_thread/threa...

  On Nov 1, 1:33 pm, TreKing treking...@gmail.com wrote:
   On Sun, Oct 31, 2010 at 5:59 PM, jakob jakobsboer...@gmail.com wrote:
Is it possible to insert buttons into a notification?

   Yes, it's possible.

  ---
  --
   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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: automotive related project ideas

2010-10-08 Thread Mike dg
An app that will drive my car to destination using GPS.

On Oct 8, 9:55 am, kalyan kumar kalyankumar2...@gmail.com wrote:
 Hi Guys,
 Can any one help me by providing some innovative automobile(car ) related
 projects.
 --
 k.kalyankumar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Getting the right highlighting behavior in a ListView

2010-09-20 Thread Mike dg
I dont think cacheColorHint is what you are looking for. What you are
asking for seems to go against established UI principles on Android.
Are you trying to do multi-selection? What is the use case for this
functionality?

On Sep 20, 1:14 pm, Stephen Lau st...@grommit.com wrote:
 Bret Foreman wrote:
  I have a ListView set up in single-choice mode like this:

        ListView android:id=@id/android:list
                  android:layout_width=fill_parent
                  android:layout_height=fill_parent
                  android:background=#ff44
                  android:layout_weight=1
                  android:drawSelectorOnTop=false
                  android:choiceMode=singleChoice
                  android:scrollbars=vertical
                  android:headerDividersEnabled=true/

  When I press my finger on a choice, the selection changes from white
  text on light gray to black text on orange. But as soon as I lift my
  finger, the selection reverts to the original state. I'd like that
  chosen row to remain in the black-text-on-orange mode when I lift my
  finger so that the user knows what was selected in the list (my
  onClickListener has captured the selected row, of course). Is there a
  way I can tell the ListView that I want this behavior or something
  similar so the user knows what item has been selected?

 cacheColorHint

 http://developer.android.com/resources/articles/listview-backgrounds

 --
 stephen lau | st...@grommit.com |http://whacked.net| @stevel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Matching TextView heights

2010-09-20 Thread Mike dg
Have you looked into table layout? How do you want the R-L text to
flow if it's not the same height as R-R. Maybe an image would better
explain what you need.

On Sep 20, 12:48 pm, Bret Foreman bret.fore...@gmail.com wrote:
 I have two vertical TableLayouts containing rows of TextViews
 separated by some graphics. Something like this:

 R-L     Graphics    R-R
 R-L                      R-R
 R-L                      R-R
 R-L                      R-R
 R-L                      R-R

 The R-R TextViews have a fixed width, which means they grow vertically
 when the text is longer than will fit in the width. The text is set at
 runtime so this height is not known in advance. I want the height of
 the R-L rows to exactly match the height of the R-R rows with the R-R
 rows being the reference source for the height.

 Once I do a TextView.setText and a TextView.setWidth on the R-R
 TextViews, the height of those TextViews should be determined. Then I
 can do a TextView.setMinHeight on the R-L TextViews. But I'm having
 trouble getting the height value from the R-R TextViews. The
 TextView.getHeight method returns zero.

 Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Scrolling broken in 2.2 ?

2010-09-15 Thread Mike dg
It sounds like Peter is working on so,e framework for cross platform
applications, si it's probably less than ideal to make Android just
act different.

You are probably out of luck for 2.2 if the browser exhibits the same
behavior.

On Sep 15, 3:18 am, Kumar Bibek coomar@gmail.com wrote:
 Umm, Well, Getting back to 2.1 will not fix your problems. I would
 reckon the best approach would be to re-design your UI.

 -Kumar Bibekhttp://techdroid.kbeanie.com

 On Sep 15, 12:05 pm, Peter Carpenter



 peter.carpen...@skytechnologies.com wrote:
  Hey Romain,

  Thanks for the reply,

  I can understand why this is not an ideal ui design - I entirely agree.  
  But this doesn't change the fact that there seems to be some regression 
  with the Android UI code.  On researching further I've found that there are 
  a number of registered bugs for 2.2 to do with browsers exhibiting similar 
  problems whilst showing pages containing frames.  Looks like something 
  fundamental has changed here.

  As far as our use case goes - I need to be able to display whatever a user 
  requires in their screen.  Currently we can show these screens on Windows, 
  iPhone  Blackberry and Android  2.1 without any issues.  But Android 2.2 
  suddenly has this issue with the nesting.  Whilst we *could* design the app 
  to work around this bug by using a popup editor - this does not help us 
  keep things consistent, and your architecture bug free.

  As a workaround - do you know of any way to reset Nexus ones back to 2.1?

  Cheers, :)

  Peter.

  -Original Message-
  From: android-developers@googlegroups.com 
  [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy
  Sent: Wednesday, 15 September 2010 4:42 PM
  To: android-developers@googlegroups.com
  Subject: Re: [android-developers] Scrolling broken in 2.2 ?

  Hi,

  You should never have a scrolling widget inside a scrolling widget;
  for instance a ListView inside a ScrollView. The behavior for such a
  setup is pretty much guaranteed to not work (and definitely not
  guaranteed to work.)

  On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter
  peter.carpen...@skytechnologies.com wrote:
   My app builds up a custom screen as dictated to me via the users
   'application'.  This means that I can end up in the situation where I 
   have a
   parent scrollview and somewhere down the heirachy I can have a listView 
   or a
   multiline TextView.

   Both of these scenarios continue to work fine under 2.1, however are 
   broken
   in 2.2 (both device and emulator).  The symptoms are that the child (list 
   or
   textview) is unable to scroll using touch gestures although they can be
   scrolled using the keypad.

   Has anyone else experienced this behaviour and/or have a work around??  It
   appears that the onTouchEvent function in View has been changed
   substantially but I am currently delving into the code...

   Cheers,

   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

  --
  Romain Guy
  Android framework engineer
  romain...@android.com

  Note: please don't send private questions to me, as I don't have time
  to provide private support.  All such questions should be posted on
  public forums, where I and others can see and answer them

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google TV applications

2010-09-04 Thread Mike dg
Special treatment. The SDK is scheduled to launch until sometime next
year if I recall correctly and devices are supposed to be shipping
this year.

-Mike dg

On Sep 4, 8:55 am, ben benbros...@gmail.com wrote:
 I've seen a few preview videos of Google TV pop up on the internet. I
 noticed they contained several apps such as GameTime and the Weather
 Channel. I was wondering how this is possible since there's no API yet
 and no announcement of one from Google.

 It's going to make awfully difficult for people to compete with
 companies such as the Weather Channel if they're being given special
 treatment from Google by getting the ability to launch on the device.
 I really hope this isn't the case.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is there (or should there be), a generateId() method for dynamically generated Views?

2010-08-30 Thread Mike dg
Yes,

Look into the ListView with setChoiceMode(CHOICE_MODE_SINGLE)

-Mike DG

On Aug 30, 11:47 am, Bret Foreman bret.fore...@gmail.com wrote:
 Is there a way to make a ListView mutually exclusive like a RadioGroup
 so that selecting one item deselects the others?









  IMHO, if you are concerned about the number of radio buttons, you
  should be using a ListView.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Market Abusive developers...

2010-08-06 Thread Mike dg

 I used to have ad supported app on market, and from what I can tell,
 there is not even a slight possibility to generate such revenue from
 this crap (50k active user base generated 10$/day revenue on 4.5*
 rated app). Also note that you have to have this money upfront which
 is also a big no-go for spammers.

Let's not forget that most developers are not the best ad revenue
optimizers. There is a science to ad placement

Mike dg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Delete Call Log entry issue

2010-08-04 Thread Mike dg
Try just repeatedly deleting everything in the log regardless of the
state. A service that does this every 5 seconds should be very fast
and good.


On Aug 4, 1:25 pm, Donald hasitharand...@gmail.com wrote:
 hi guys,

 i have a application which will listen to incoming calls. so in the
 TelephonyManager.CALL_STATE_IDLE state which means the call is hung up
 i'm deleting the current number from the Call Log.

 To delete the Call log i used  ContentObserver which will notify me
 when a new entry is added to the Call Log.

 10 out of 8 times this works fine. but sometimes onChange(boolean b)
 is not notified

 my guess is this can happen due to last entry is not added to the
 CallLog in CALL_STATE_IDLE state. so that means i'm doing this in a
 wrong place.

 so guys could you please let me know when should i delete this call
 log??

 this is how i delete call log

 case TelephonyManager.CALL_STATE_IDLE:

                                 listeneNativeInbox();

 protected void listeneNativeInbox() {

                 context.getContentResolver().registerContentObserver(
                                 CallLog.Calls.CONTENT_URI, true, new 
 MyInboxListener(handler));

         }

         class MyInboxListener extends ContentObserver {

                 public MyInboxListener(Handler handler) {
                         super(handler);
                         // TODO Auto-generated constructor stub
                 }

                 @Override
                 public boolean deliverSelfNotifications() {
                         // TODO Auto-generated method stub
                         return false;
                 }

                 @Override
                 public void onChange(boolean selfChange) {
                         // TODO Auto-generated method stub
                         boolean b = false;
                         Uri books = 
 Uri.parse(content://com.sabretch.colorEyeD/SABRE);
                         Log.d(Authority, books.getAuthority());
                         Cursor cursor = 
 context.getContentResolver().query(books, null,
                                         Mobile + =' + phonenbr + ', 
 null,
                                         category  + DESC);
                         if (cursor != null) {
                                 if (cursor.moveToNext()) {
                                         b = true;
                                 }
                         }
                         Message msg = new Message();
                         msg.obj = xx;
                         handler.sendMessage(msg);
                         Cursor cur = context.getContentResolver().query(
                                         CallLog.Calls.CONTENT_URI, null, 
 null, null,
                                         CallLog.Calls._ID +  DESC);

                         cur.moveToNext();
                         long threadIdIn = cur
                                         
 .getLong(cur.getColumnIndex(CallLog.Calls._ID));

                         /*
                          * Uri uri = 
 ContentUris.withAppendedId(CallLog.Calls.CONTENT_URI,
                          * threadIdIn);
                          */
                         if (b) {
                                 ContentValues values = new ContentValues();
                                 values.put(CallLog.Calls.NUMBER, 
 44);
                                 values.put(CallLog.Calls.CACHED_NAME, 
 Unknown);
                                 // values.put(CallLog.Calls.TYPE, 
 CallLog.Calls.INCOMING_TYPE);
                                 // long time = System.currentTimeMillis() - 
 500;
                                 // values.put(CallLog.Calls.DATE, time);

                                 // int x = 
 context.getContentResolver().delete(uri, null, null);
                                 try {
                                         int x = 
 context.getContentResolver().update(
                                                         
 CallLog.Calls.CONTENT_URI, values,
                                                         CallLog.Calls._ID + 
 =' + threadIdIn + ', null);
                                         Log.d(FASSDSSDESD, 
 Integer.toString(x));
                                         // = true;
                                 } catch (Exception e) {
                                         // TODO: handle exception
                                         int x = 
 context.getContentResolver().update(
                                                         
 CallLog.Calls.CONTENT_URI, values,
                                                         CallLog.Calls._ID + 
 =' + 0 + ', null);
                                         // = true;
                                 }
                         }
                         System.exit(0);
                         // }
                 }
         }

 regards,
 Donald

-- 
You received this message because you are 

[android-developers] Re: Correct way to kill the application

2010-07-30 Thread Mike dg
Object o = null;
o.toString();

-Mike dg

On Jul 30, 9:37 am, Carlos Silva r3...@r3pek.org wrote:
 On Fri, Jul 30, 2010 at 14:13, RamaMohan rama.mohan...@gmail.com wrote:
  HI all,
  I s there any way to kill the entire application at once.Not using
  with finish() or system.exit() ..all these two will kill the
  activity ,but not the appication.
  Is there any way to kill the entire application from any
  activity .Please help me .

 Why would you do that?
 You shouldn't terminate the application yourself, the system will do that
 for you. I really think you should read 
 this:http://android-developers.blogspot.com/2010/04/multitasking-android-w...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Unpublished app still can be purchased?

2010-07-19 Thread Mike dg
Apps can still be gotten to through links. I think it was a side
effect of fixing the exploit where someone could unpublish an app and
there would be no way to get a refund.

On Jul 19, 12:36 pm, Ken ken0624...@gmail.com wrote:
 I took down one of my apps a few days ago, however I am still seeing
 purchases trickling in even though I can no longer see my app on the
 market. Where did they purchase the app from?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Why not raise Toast from BroadcastReceiver

2010-07-19 Thread Mike dg
It's very  jarring to the user. There is no indication of what app the
toast is from. Why not just use a notification?

On Jul 19, 12:17 pm, droidsan droid...@googlemail.com wrote:
 Hi,

 What's the reason why a Toast should not be created from a
 BroadcastReceiver?

 Creating a Toast from a BroadcastReceiver (generated via XML) works
 well even if the Creating Toast Notifications documentation only
 mentions that Toasts can be created by Activities or Services 
 (seehttp://developer.android.com/guide/topics/ui/notifiers/toasts.html). I
 am interested in the reason why a Toast should not be created from a
 BroadcastReceiver and what could happen (in the worst case) if it is
 created from a BroadcastReceiver.

 Thanks for your replies.

 Droid-san

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Signup for C2DM ?

2010-07-19 Thread Mike dg
Makes me sad.

On Jul 16, 6:03 am, Danny Shmueli bittlebot...@gmail.com wrote:
 Will someone at Google wake up!
 Seems that some developers can already take advantage of thec2dm
 network while others are just hung out to dry in the sun.
 I've been waiting for 2 month now (and filled the sign up form couple
 times).
 My application is nearly ready for publishing but it is worthless with
 out thec2dmfeatures.

 The application is nearly ready because i can't test thec2dm
 features with no account.

 I was sure theC2DMnetwork will be available to all developers once
 Android 2.2 is out of beta

 On Jul 8, 1:41 pm, yone098 yone...@gmail.com wrote:



  Hi, all.

  Me too. no reply yet.
  anybody received a response?

  On Tue, May 25, 2010 at 6:38 PM, qvark

  joseluishuertasfernan...@gmail.com wrote:
   Eagerly waiting here to start testing... has anybody received a
   response?

   On 22 mayo, 01:12, brian br...@bwalsh.com wrote:
   Filled out the form requesting access.
   I was wondering if anyone has started to work withC2DM?
   Has Google responded to your signup request?

   --
   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 
   athttp://groups.google.com/group/android-developers?hl=en

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Masaaki YONEBAYASHIhttp://d.hatena.ne.jp/yone098http://twitter.com/yone098

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android lock screen

2010-07-19 Thread Mike dg
I'd hesitate to call say that they are using malware techniques.

Creating a replacement lock screen requires a lot of hair pulling and
playing around. There's no API for switching lock screens you have to
put stuff together that in ways that were probably never intended. All
of the ones in the market have their own quirks on different devices
and Android versions.

On Jul 19, 10:05 am, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Jul 19, 2010 at 9:56 AM, arnouf arnaud.far...@gmail.com wrote:
  I don't agree with you mark, because there are some differents apps on
  market replacing lock screen without change the installed firmware or
  change root access.

 Those are not replacement lock screens. Those use malware techniques.

 Google has said on this list, repeatedly, that there are no APIs for
 replacing the lock screen nor any near-term plans to add any.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Saving SMS to SENT messages

2010-07-14 Thread Mike dg
There is no public API for this.

Not all SMS apps use the same datastore so even if you managed to save
it for the default it might still not leave a trace.

On Jul 14, 1:45 am, Suzann suzim...@gmail.com wrote:
 Hello,
 I have developed a simple application that on certain events sends an
 SMS to ppl from my address book.
 All works perfectly EXCEPT there is no trace of the SMS sent.
 I know that the SMS gets delivered - I have tested it but eventually I
 would like to have a trace of what was sent.
 I have tried giving write permission but it didn't help.
 Is there something special I have to do?
 Thanks,
 Suzann

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: resolution visibilty on Android Market

2010-07-14 Thread Mike dg
What did not work

On Jul 13, 10:44 am, Cristi Samoila cristi.samo...@gmail.com wrote:
 Hi guys,

   I have tried a while ago to use these values to be able to have 2
 different builds to cover all resolutions on Android Market:
 supports-screens
  android:smallScreens=false
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true
 /
   Unfortunately it did not worked.
   Although it is recommended to have one big application for all
 resolutions sometime it is not possible due to some time and resources
 constraints. The goal is to have 2 different applications Game and
 Game HD on the market and Game to be visible only for 240x320/320x480
 devices and Game HD to be visible for 480x800 devices.
   Is there a way to solve this?

 Thanks in advance,
   Cristi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to play a 8192*8192 image ?

2010-06-25 Thread Mike dg
I doubt you have an 8192x8192 screen. So figure out what you re
actually doing with the image and then only use as much as you need or
all of it scaled to screen size.

On Jun 25, 6:52 am, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jun 25, 2010 at 6:42 AM, xhy xhyg...@gmail.com wrote:
  I want to play a   8192*8192 image,but the system exists a overflow of
  memory exception,what should i do ? Thank you!

 That is a ~200MB image uncompressed (8192 x 8192 x 3 bytes), and you
 have 16MB to work with.

 The simplest option is to use a smaller image to start with.

 The next-simplest option is to scale the image, as youken suggests,
 though this will take some time.

 The option that keeps your size is to split the image into tiles, like
 Google Maps does, and show only a few tiles at a time.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android libraries

2010-06-22 Thread Mike dg
Android libraries can include resources. Java libraries can not.

On Jun 22, 8:47 am, deg d...@degel.com wrote:
 Managing an Android project in Eclipse, which I need to divide into
 several libraries...

 What, exactly, are the differences between Android Libraries (made
 with Properties | Android | Library | Add) and Referenced
 libraries (made with Properties | Java Build Path | Libraries | Add
 JARs).

 I've already experimented and found out that:
 - Android Libraries cannot use other Android Libraries
 - Referenced libraries integrate less smoothly, requiring extra effort
 to build the .jar etc.
 - Both seem to be slightly unstable, sometimes not building everything
 and creating an ,apk that compiles correctly but is missing the
 library classes. (I'm not yet sure exactly when this happens, but I've
 seen it a few times -- usually fixed by closing and reopening the
 projects).

 But, I don't yet have a good picture of when I should be using which,
 nor any overall documentation. Anyone know the full story on these two
 kinds of library usages?

 Thanks,
 David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListView Out Of Memory Problem

2010-06-22 Thread Mike dg
A 4000 row array seems to be a bit much. Are you using bit maps, thee
can be memory issues related to them?

On Jun 22, 7:05 am, Rahul nakate.ra...@gmail.com wrote:
 I have one listView and i am trying to add minimum 4000 row in list
 view but when i scrolling the list up to 800 row it showing out of
 memory error and the application is crashing i dont understand what is
 the problem for listView . i am using following code for that and
 Using Array adapter

                                 shuffleView = 
 (LayoutInflater)context.getSystemService(inflater);
                                 convertView =
 shuffleView.inflate(R.layout.shuffle_row_layout,null);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: saving sharedPreferences collapse my app... for advanced dev I think

2010-06-22 Thread Mike dg
I don't think using Shared Preferences for a loot of data is
recommended. Try saving a file with your relevant information
somewhere.

On Jun 21, 12:52 pm, Kofa elk...@gmail.com wrote:
 I've done an game and it works right, the task it's compossed by a
 main activity (main menu) where you can load, start a new game,
 options, etc...
 when you are playing let's say you're in the activity B, you save the
 game and quit, so I save every data with sharedPreferences (a lot
 of data) and finish() the activity, then it goes back to the activity
 A (the main menu)... then if you try to open a new activity (open
 another activity to select mode, team, etc) it gives you a FC, the
 strange thing is. even if you push on a button that should pop up
 a common alert dialog gives you a FC too!!!.
 If I don't use sharedPreferences, I mean, if I don't save anything of
 this data then everything works fine, I can go from one activity to
 another without problem all times i want.
 In LOGCAT gives an error OutOfMemoryError: bitmap size exceeds VM
 budget but even when this happens with the alertDialog so the
 problem it's not about memory I think.
 someone can show me the path??? =P

 thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is it possible to link to iTunes Store from Android application?

2010-06-10 Thread Mike dg
I don't think you can buy from iTunes from a browser. You need the
client.

On Jun 10, 7:57 am, Samuh samuh.va...@gmail.com wrote:
 I don't have an iTunes account to actually try this(hope this is not
 illegal). What will happen if I browse to iTunes Store from a browser
 on my phone and buy a song?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS database access

2010-06-03 Thread Mike dg
There are undocumented content providers that allow access to SMS
databases. However they are subject to change, and can, and do differ
between devices.

On Jun 3, 10:41 am, Nando Android nando.andr...@gmail.com wrote:
 Hello all,

 I believe the Java API does not give full access to the SMS database and
 other databases.

 Is there any way to have root access to some of those databases such as SMS
 and phone settings so that I can fetch some information out of it?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Emulator and LTE technology :)

2010-06-02 Thread Mike dg
Please pass your cat to my mom and we can talk bizness :) Long term
expectency of Android is ++ this year for less than 4 Gs!

On Jun 2, 11:56 am, Károly Holczhauser holczhau...@gmail.com wrote:
 Hi Guys!

  Can anyone tell me how can I develop an application witch is using the
 newest 4G technology ( LTE ) ? I living in Hungary were still not available,
 maybe some year :) but I really would like to write an program witch using
 LTE to send and receive dates.
  If anybody has some idea please tell me.

                 Thank you so much: Károly

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Mike dg
Are you using a wakelock?

On Jun 2, 4:10 pm, Daniel Lew danle...@gmail.com wrote:
 I've run into a bizarre situation and I'm not sure how to solve it.

 The app I'm working on has a regular pull update that occurs every so
 often in the background.  When the phone is on, it works.  When the
 phone is using wifi, it works.  However, if the phone is sleeping and
 connected only to 3G, it only *sometimes* works.  Other times,
 HttpUrlConnection.getInputStream() returns null (after a lengthy
 timeout, though it's not based on any timeout setting...  it just
 seems to randomly time out at some point).  There are no exceptions
 thrown and no logs indicate any trouble, except that my connection
 goes completely ignored.

 Does anyone know why this might be happening?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using Android Calendar ContentProvider.

2010-05-26 Thread Mike dg
It is suck... sigh
-miked g

On May 26, 5:07 pm, String sterling.ud...@googlemail.com wrote:
 On May 26, 6:12 pm, arnoldl arn...@fortuin.nl wrote:

  Is there a valid way to read write to the calendar OFFLINE ??

 Cache your updates. Sync the next time there's a network connection.

 IOW, operate under the assumption that the Calendar API isn't
 available on-device, and design your app accordingly. I know, it's not
 how the unpublished API has been working, but it is how many other
 APIs do work, and devs create useful apps for them nonetheless.

 String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send Data to a running app

2010-05-15 Thread Mike dg
You can set single instance for an activity to ensure more than one
won't exist. And in the activity's onNewIntent handle the new intent.

On May 15, 11:50 am, Ne0 liamjamesalf...@googlemail.com wrote:
 I have a broadcast reciever the looks at SMS's, when it recieves an
 SMS that is destined for my application it needs to send some data to
 an activity or start the avitivty if it isnot running.

 How do i find out if the activity is running and send data to it if it
 is? I know i can use StartActivity and stuff the intent with the data
 i want to send to it but if i start the activty that is already
 running, another instance of it will be created (wont it?) .

 Thanks for any info.

 Ne0

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: content://sms/

2010-05-15 Thread Mike dg
It may also not work with third part SMS apps.

On May 14, 6:18 am, Mark Murphy mmur...@commonsware.com wrote:
 Ralph Bergmann wrote:
  Hi,

  I have a question about the content://sms/ provider.

  I use it in my app but can't find any official documentation about it :-(

  Is it to old? Or to new? Can I use it or is it deprecated and will
  removed in future?

 It is not supported. It may not work on some devices. It may not work in
 future versions of Android.

 http://android-developers.blogspot.com/2010/05/be-careful-with-conten...

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training...At Your Office:http://commonsware.com/training

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ProgressDialog Problem with Rotation

2010-05-10 Thread Mike dg
Evan Charlton wrote a great article that might help you.

http://evancharlton.com/thoughts/rotating-async-tasks/

-Mike dg

On May 10, 12:37 am, Aaron aobrien...@gmail.com wrote:
 I have a managed ProgressDialog that show the status as tasks are
 moving along.  The Activity.show is kicked off by an AsyncTask
 progressUpdates and the final Activity.closeDialog is called through
 the AsyncTask as well.  Everything works beautifully as long as the
 screen is not rotated...

 What am I doing wrong? I thought having the Activity manage my dialog
 would solve this for me... Here is the code I'm playing with:

 public class Enter extends Activity {
         ProgressDialog progressDialog;
         private final static int PROGRESS_DIALOG_ID = 1;

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         Button button = (Button)findViewById(R.id.progressbar_button);

         button.setOnClickListener(new View.OnClickListener(){

                         @SuppressWarnings(unchecked)
                         public void onClick(View v) {

                                 Enter.this.showDialog(PROGRESS_DIALOG_ID);
                                 new AsyncTask(){

                                         @Override
                                         protected Object 
 doInBackground(Object... params) {
                                                 progressDialog.setMax(30);
                                                 for (int a = 0; a  30; a++){
                                                         publishProgress(new 
 Integer((a+1)));
                                                         try {
                                                                 
 Thread.sleep(1000);
                                                                 
 Log.d(Enter, Click:  + a);
                                                         } catch 
 (InterruptedException e) {
                                                                 
 e.printStackTrace();
                                                         }
                                                 }
                                                 return null;
                                         }

                                         @Override
                                         protected void 
 onProgressUpdate(Object... values) {
                                                 
 super.onProgressUpdate(values);
                                                 Integer progress = 
 (Integer)values[0];
                                                 
 progressDialog.setProgress(progress.intValue());
                                         }

                                         @Override
                                         protected void onPostExecute(Object 
 result) {
                                                 super.onPostExecute(result);
                                                 
 Enter.this.dismissDialog(PROGRESS_DIALOG_ID);
                                         }
                                 }.execute((Object[]) null);
                         }
         });
     }

     @Override
     protected Dialog onCreateDialog(int id) {
         Dialog dialog = null;
         if (id == PROGRESS_DIALOG_ID){
             progressDialog = new ProgressDialog(this);

 progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
             progressDialog.setTitle(Pleae Wait);
             progressDialog.setMessage(Running a long process...);
             progressDialog.setCancelable(true);
             dialog = progressDialog;
         }
         return dialog;
     }

 Thanks!

 -Aaron

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-06 Thread Mike dg
What are you trying to do? You could see that tons of things could go
wrong with an app that runs on boot and doesn't allow you to get away.

-Mike dg

On May 6, 3:07 am, Ashok Jeevan ashokjee...@gmail.com wrote:
 Hi guys,

 I am building an app which uses a WebView. This app runs at startup.

 Is there a way to maintain the app running(persists) even if the user
 presses the 'Home' or 'Back' button?

 In other words,pressing the 'Home', 'Back' or the other buttons shouldn't
 close the activity.

 Ashok Jeevan
 +91 9895401278

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Getting one form data on anather forn

2010-04-22 Thread Mike dg
Is this a web app or an Android app?

-Mike dg

On Apr 22, 8:29 am, Mohammad Siddiqui siddiqui.m...@gmail.com wrote:
 Hi everyone,

 i have therre consecutive form ,after filling the form one i press the
 next button on the first form to go
 to the second form then prees the next button to go to the third
 form.from third form i have a button to
 post the data on a specific url.the problem is that how can get the
 first and second form data on the
 last form

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android App Presentation

2010-04-13 Thread Mike dg
You could use the emulator.

On Apr 13, 1:31 am, Prathamesh Shetye prathamesh.she...@gmail.com
wrote:
 I wanted to make a video presentation of my android application. i
 know i can make the presentation by holding a camcorder in front of
 the screen and give walkthrough the application. But is there any
 other way this can be done, something on the lines of JingProject for
 windows wherein you can record your activities on your screen in a
 video.

 is there a tool that can help me achieve the same on my android device
 (Motorola Milestone)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Grrrrr.... 100 SMS per hour

2010-03-17 Thread Mike dg
I've noticed the same issue, the pending intents don't get reliably
sent.
Probably a bug in Android?

-Mike dg

On Mar 16, 9:04 pm, Isaac Wagner isaacewag...@gmail.com wrote:
 On Tue, Mar 16, 2010 at 3:56 PM, Mark Murphy mmur...@commonsware.com wrote:
  Isaac Wagner wrote:
  After the 100 messages limit Android pops up a dialog saying something
  about sending a large number of messages and asking the user if they
  want to continue.  When they click OK or Cancel are there events
  generated that I can get?

  I do not know for certain, as I don't send SMSes. Are you saying the
  sent event you are presently watching for does not occur, even if the
  user presses OK? BTW, I'm assuming this is from your PendingIntent that
  you use with sendTextMessage().

 Yes, my PendingIntent is not fired reliably even after the user pushes
 OK.  After some more experiments I have more info: On my 1.5 and 1.6
 AVD's the PendingIntent is sent maybe 2 or 3 times after the user
 pushes OK.  On my Android 2.1 AVD the PendingIntent is fired every
 time.  So, my app works well on Android 2.1.  However, I don't want to
 require them to have 2.1.  I've not yet tried it on 2.0.1.  I'll do
 that later tonight.  So, it would seem to me to be a Android bug that
 was fixed later.

  I've been watching the SMS sent event and
  then keying the next message off that event.  That works fine until
  Android starts popping up the dialog, then the SMS events stop coming
  and my application loses its state.

  Why does your application lose its state? Won't you have the same
  problem if there are telephony issues (e.g., out of signal area) that
  cause an SMS to be delayed in its delivery?

 In this case I still get my PendingIntent back, it just comes back
 delayed or with a failure code.  Still, it comes back.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassCastException using View element

2010-03-16 Thread Mike dg
Nellz,

It is somewhat logical. It works as long as you have the width the
same across all items. If you use WRAP_CONTENT, then it fails since
everything is different sizes and then they all evenly distribute the
extra space.

Thanks
Mike

On Mar 16, 10:25 am, Neilz neilhorn...@googlemail.com wrote:
 layout_width=0px

 That's all it needed. G.

 I guess it's just one of the tricks of the trade that you either know
 or you don't. I mean, that's not logical, is 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


[android-developers] Re: Grrrrr.... 100 SMS per hour

2010-03-16 Thread Mike dg

 D) Recognize that sending 100 text messages per hour is going to be
 expensive for many Android device users, and so having this confirmation
 is good for Android as a whole, even if it means you cannot do whatever
 it is you are trying to do.

But then that leads towards a slippery slope. Why isn't 50 the limit?
Why not 10? Why not only allow the messaging app to send text messages
and other apps can only populate a textbox there. And then we wind up
with limitations like the 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


[android-developers] Re: EditText layout for all devices

2010-03-12 Thread Mike dg
50% of the total area of the screen? or just 50% of the width?
Can you include a picture of exactly what you want it to look like?
-Mike dg

On Mar 12, 12:52 pm, temp tempche...@gmail.com wrote:
 Hi,

 In my layout i need to have to 2 EditText widgets which would occupy
 50% of area individually.

 I'm planning to have the solution generic for all devices, let me know
 if this can be controlled through XML in any way

 or

 I'll have to create the layout through 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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: call one activity from Dialog Class

2010-03-12 Thread Mike dg
Yes you can do that. The same way you would launch an activity from
any other method.

-Mike dg

On Mar 12, 1:19 am, TreKing treking...@gmail.com wrote:
 On Fri, Mar 12, 2010 at 12:05 AM, David Toledo dtole...@gmail.com wrote:
  How to can call one activity from Dialog.

 Pass a reference to the Activity you need to your Dialog in the constructor
 . ?

 --- 
 --
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Overlay in Bounded Lat Long Possible?

2010-03-10 Thread Mike dg
You can extend Overlay and implement your own drawing algorithms for
the blueprints. MapView.getProjection will be a huge help for
converting coordinates to pixels for drawing.
http://code.google.com/android/add-ons/google-apis/reference/index.html

Mike dg

On Mar 10, 10:04 am, JFrog jeremiah.paul.sna...@gmail.com wrote:
   Currently, I have been dealing with placement of items in the
 ItemizedOverlay class with the google maps android library, which
 seems to work just fine.  It handles the icon placments and associated
 properties of the icons that I place on the viewer.
   As of lately though, I noticed that I loose the satellite view
 altogether in the final zoom features of the map when I want to get in
 real close.  I thought this would be a real good opportunity to use a
 blueprint of an area as an overly on the gridded map so that there
 were still areas of reference when analyzing an area up close.
   Unfortunately I have not been able to place a bounded region for the
 blueprint on the map.  If I have latitude and longitude values for
 each corner of where the blueprint should be places, I can't seem to
 find a method to put this where I want it on the map.  The only
 constructor/method that I have found only asks for a center point and
 then sizes the object appropriately.  It seems odd that this feature
 wouldn't exist but I can't find anything to hint that it does exist.
   Thoughts?

 ~ JFrog
 Debugging is twice as hard as coding something the first time.
 Therefore, if you make your code as clever as possible, you are by
 definition, not smart enough to debug 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


[android-developers] Re: How do i check app close gracefully during shutdown scenario

2010-03-10 Thread Mike dg
I don't think that waiting until shutdown to do anything is a great
idea. You have no control over the speed of the shutdown or anyway to
disable it.

-Mike dg

On Mar 10, 7:25 am, Kabita san.k...@gmail.com wrote:
 Hi,
 Is there any procedure how to check all the apps getting closed
 gracefully during the shutdown scenario? Anybody has any idea please
 share.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Does eclair run on ADP2

2010-03-10 Thread Mike dg
There is not an official developer rom available. And I don't think
you can build it yourself without massive modifications yet. (Could be
wrong on that account)
You should be able to find a handful of unofficial roms based on
2.0/2.1 that will run on an ADP2.
http://forum.xda-developers.com/forumdisplay.php?f=493
Thgey are in various states of usability though.

Mike dg

On Mar 10, 4:03 am, Natanael Arndt natana...@gmx.de wrote:
 Hello,
 I want to buy the ADP2 (HTC Magic) but I wonder if also Android 2.1 is
 available for it. Because I've heard that eclair doesn't run on HTC
 Magic as you can get it in the stores.

 Natanael

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disable keyboard in DatePicker ?

2010-03-10 Thread Mike dg
So you don't want the textfields to be editable by typing, only by
pressing the arrows?

Should be possible. The below code almost works. For some reason
whenever you click an arrow, it makes the corresponding text box
editable again. But if you hit an arrow on another textbox, then it
reverts back.
Please post the solution back so everyone can benefit if you use this.

-Mike dg
DatePicker dp = (DatePicker)findViewById(R.id.DatePicker01);
setDisabledTextViews(dp);

private void setDisabledTextViews(ViewGroup dp) {
for (int x = 0, n = dp.getChildCount(); x  n; x++) {
View v = dp.getChildAt(x);

if (v instanceof TextView) {
v.setEnabled(false);
} else if (v instanceof ViewGroup) {
setDisabledTextViews((ViewGroup)v);
}
}


On Mar 10, 5:39 am, djdamage06 djdamag...@gmail.com wrote:
 Hello everybody,

 Is it possible to disable the edition of fields in DatePicker ? Indeed
 when I touch on the editable box in the DatePicker, the keyboard
 appears... And I don't want this !

 Someone have an idea ?

 Thanks a lot for your response :)

 

 Bonjour à tous,

 Existe-t-il un moyen de désactiver l'édition (et donc l'apparition du
 clavier) dans les champs d'un DatePicker ? En effet le fait que le
 clavier apparaisse lorsqu'on décide de n'appuyer ni sur + ni sur -
 mais directement dans le champ fait que ma layout est toute
 bordélisée...

 Certes je pourrais anticiper ce mouvement par une Scrollbar mais c'est
 vraiment pas mon but...

 Quelqu'un a une idée ?

 Merci d'avance pour vos réponses smile

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADC3?

2010-03-10 Thread Mike dg
I have not even heard any rumors yet.

On Mar 9, 7:13 pm, Mario Zechner badlogicga...@gmail.com wrote:
 I'd be interested in such knowledge too :)

 On 9 Mrz., 19:15, Robert Green rbgrn@gmail.com wrote:

  I just gotta ask...

  Does anyone have any knowledge of an upcoming ADC3?  :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Animations between Intents

2010-03-10 Thread Mike dg
The SDK sample app, APIDemos, has an example. Run it and select, App-
Activity-Animation to see it. It should be easy to find the code
portion for this.

Beware that this won't work on all devices and the users can disable
these animations.

-Mike dg

On Mar 9, 4:30 am, djdamage06 djdamag...@gmail.com wrote:
 Hello everybody,

 I've a succession of 2 Intent :

 Intent intent = new Intent();
 intent.setClass(EntryPoint.this, MainClass.class);
 startActivity(intent);

 And I'd like an animation (which is present in res/anim) occurs during
 the transition between these 2 Intents...

 Thanks a lot for your response

 ---

 Bonjour,

 J'ai une succession de 2 Intents, par le biais de

 Intent intent = new Intent();
 intent.setClass(EntryPoint.this, MainClass.class);
 startActivity(intent);

 Et j'aimerais qu'une animation (présente dans res/anim) se produise
 lors de la transition entre ces 2 Intents...

 Quelqu'un a une idée ?

 Merci d'avance pour vos réponses

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is this the way to prefent ScrollView to overlap/go under the button bar?

2010-03-10 Thread Mike dg
You could try a linear layout as the top level layout and set the
ScrollView layout_weight = 1 and the buttonbar layout to weight = 0;
That worked for me in one of my apps.

-Mike dg

On Mar 8, 3:20 pm, Eelco eelcoaart...@gmail.com wrote:
 I want a scrollable table on my screen, and beneath that table some
 buttons, always visible. But default, the table is overlapping/going
 underneath the buttonbar. I tried several things: played with
 layout_height which worked, but only when the application refreshed
 the screen, not when the application started and showed its startup
 screen with data.

 The only way I got it working is using a marginBottom with the same
 height as the button bar. Is there any other way, because this
 solution seems a bit clumsy i.m.o.

 thanks,
 Eelco

 ?xml version=1.0 encoding=utf-8?

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         

 ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
     android:id=@+id/widget54
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:layout_marginBottom=60px
     

     TableLayout
         android:layout_width=fill_parent
     android:layout_height=fill_parent
     
         TableRow
                 TextView android:text=blabla android:padding=5px/
 TextView
                 TextView android:text=blabla android:padding=5px/
 TextView
                 TextView android:text=blabla android:padding=5px/
 TextView
         /TableRow

         - repeat to fill the screen
     /TableLayout

 /ScrollView

         RelativeLayout
                                 android:id=@+id/ButtonBar
                                 android:layout_width=wrap_content
                                 android:layout_height=60px
                                 android:layout_alignParentBottom=true
                                 

                 Button      
 android:drawableTop=@android:drawable/ic_menu_rotate
                                         android:id=@+id/RefreshButton
                                         android:text=Refresh
                                         android:layout_width=wrap_content
                                         android:layout_height=fill_parent
                                         android:layout_alignParentLeft=true
                                         /Button
         /RelativeLayout

 /RelativeLayout

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Restart LogCat without restarting eclipse?

2010-03-10 Thread Mike dg
Click the DDMS tab and ini the device tab there should be a down
arrow button next to the screenshot button. Press that and all the
way at the bottom should be reset ADB.
Hope this helps.

Mike dg

On Mar 10, 1:09 pm, DCheeseman nuvi...@gmail.com wrote:
 I was wondering if anyone knew how to restart LogCat without rebooting
 eclipse?  Every once in a while LogCat will just die while I'm working
 and it seems like there should be a to get it working again.  I've
 tried restarting the adb task, but that was just a haphazard guess at
 a solution.  Any help?  Any sentiment towards this annoying issue?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to Upgrade Application without losing data.

2010-03-10 Thread Mike dg
It sounds like you may have installed the app with different signing
keys. If you were launching the app on your device through Eclipse and
then tried to install from the market then that is most likely the
case. Another possibility is that you are using multiple PC's for
development and the debug keys are different on each machine. Eclipse
by default signs everything with the debug key.

As long as you sign each version of the app with the same key you
should have no problem installing new releases. You might need to take
care of SQLite database upgrades yourself though if you change the
schema.

Mike dg

On Mar 10, 12:28 pm, Caeser ketan.sakar...@gmail.com wrote:
 hi,

 How to upgrade Android app without losing data ? e.g. I have a game
 which is using some preferences or sqlite data. which is associated
 with the android app. If app is already installed on device, it is not
 allowing the same app to install again. and one need to uninstall then
 reinstall app again.

 so, if one wants to upgrade app with the older data then how will he
 be able to do 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


[android-developers] Re: How do I simulate the Home key programmatically?

2010-03-10 Thread Mike dg
The below code should work for triggering the home screen.
Having said that, unless you have a custom device lacking home and
back buttons, this is probably a bad idea. As is an exit button. And
an exit button that doesn't really exit and just dumps you to the home
screen is baffling. Those things just go against how almost every
Android app works.

Thanks
Mike dg

 Intent i = new Intent();
i.setAction(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_HOME);
this.startActivity(i);

On Mar 10, 1:14 pm, Mark Murphy mmur...@commonsware.com wrote:
 Wides wrote:
  Hi, I have a requirement to implement an Exit button in my Android
  application.

 Tell whoever gave you that requirement to eliminate the requirement.

 http://www.androidguys.com/2010/01/13/android-development-its-just-di...

  I don't really care about killing the activity stack, I
  just want to have the same effect as pressing the Home button.

 Then let the user press the HOME button. All Android devices should have
 one.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: reply soon

2010-03-10 Thread Mike dg
You'll need to be more specific. Are you developing for Android?

-Mike dg

On Mar 10, 5:21 am, student alsharewit...@gmail.com wrote:
 how to create if user click the link it should be updated to my webpage

-- 
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] Market Refund Policy

2010-03-10 Thread Mike dg
In December, there were new terms for the Market.
A big note was
You authorize Google to give the buyer a full refund of the Product
price if the buyer requests the refund within 48 hours after
purchase.

It still seems that all references to the refund policy sitll state 24
hours.
http://market.android.com/support/bin/answer.py?hl=enanswer=134336

So is it 48 or 24 hours officially? Is the 48 hours in the agreement
just because the 24 hours never seemed to be a hard deadline. I
noticed users refunding around 30 hours in the past.

Thanks
Mike dg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Client Twitter and Android

2010-03-10 Thread Mike dg
Seesmic and Twidroid are popular Twitter clients that exist in the
market.

-Mike dg

On Mar 10, 2:39 pm, David Toledo dtole...@gmail.com wrote:
 Hi All

 Exist some twitter clients that can integrate with android

 Thanks
 David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Market Refund Policy

2010-03-10 Thread Mike dg
Thanks Thomas,

I remembered a few news sites reporting this as a new change to the
policy. And I couldn't find for sure if it actually was a change, or
just that people assumed it was.

On Mar 10, 2:58 pm, Thomas Riley tomrile...@googlemail.com wrote:
 Hello,

 From what I remember the Android market distro agreement has always
 said 48 hours.

  You authorize Google to give the buyer a full refund of the Product
 price if the buyer requests the refund within 48 hours after
 purchase.

 The market allows the user to automatically get a refund within the 24
 hour period. After this any customer is within their rights to request
 a refund via non market app methods.

 On Mar 10, 7:07 pm, Mike dg vinb...@gmail.com wrote:



  In December, there were new terms for the Market.
  A big note was
  You authorize Google to give the buyer a full refund of the Product
  price if the buyer requests the refund within 48 hours after
  purchase.

  It still seems that all references to the refund policy sitll state 24
  hours.http://market.android.com/support/bin/answer.py?hl=enanswer=134336

  So is it 48 or 24 hours officially? Is the 48 hours in the agreement
  just because the 24 hours never seemed to be a hard deadline. I
  noticed users refunding around 30 hours in the past.

  Thanks
  Mike dg

-- 
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