Re: [android-developers] Re: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps

2012-10-16 Thread YuviDroid
Thanks for the 'adb install -l' hint...very useful :)

I think that what I do is actually ok, but it doesn't work when installing
with the 'app encryption' (-l option).
This is what I do:

Resources appResources =
packageManager.getResourcesForApplication(appPackageName);
InputStream is = appResources.getAssets().open(drawable.xml);
...

In this example 'appPackageName' is the package name of the app installed
using app encryption. (while this code runs from another app)
By using the app encryption the
line appResources.getAssets().open(drawable.xml) fails with a
java.io.FileNotFoundException: drawable.xml, while if I install it
without using app encryption it works fine.

Is there maybe another way to access the assets of another package?


Thanks,
Yuvi

On Tue, Oct 16, 2012 at 3:05 AM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Tue, Oct 16, 2012 at 6:07 AM, YuviDroid yuvidr...@gmail.com wrote:
 
  I'm experiencing the same issues...did you manage to find any solution?
 

 Fix your apps to support Jelly Bean properly. Even on JB, APK resources are
 public and you can read them if you use the proper path or APIs. You can
 simulate 'app encryption' (forward locking) by installing using

 adb instal -l myapp.apk

 for testing.

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps

2012-10-16 Thread YuviDroid
Ok... so the way GO Launcher themes are designed should change (since all
the xml they require are in the assets folder)...mmm well...ok. There's not
much I can do..

On Tue, Oct 16, 2012 at 5:12 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Wed, Oct 17, 2012 at 12:02 AM, YuviDroid yuvidr...@gmail.com wrote:
  Thanks for the 'adb install -l' hint...very useful :)
 
  I think that what I do is actually ok, but it doesn't work when
 installing
  with the 'app encryption' (-l option).
  This is what I do:
 
  Resources appResources =
  packageManager.getResourcesForApplication(appPackageName);
  InputStream is = appResources.getAssets().open(drawable.xml);

 Assets (/res/asset) are put in the private part of the APK, so this is
 not going to work. You can get drawables, layouts and more from
 the public part though using getDrawable(), etc.




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Apps downloaded from Play Store on Jelly Bean devices not working - even now - even free apps

2012-10-15 Thread YuviDroid
I'm experiencing the same issues...did you manage to find any solution?


Thanks!

On Wed, Aug 15, 2012 at 9:17 PM, Bikram Agarwal
vicky.codemas...@gmail.comwrote:


 FYI, these are my installed ADK packages -


 https://lh3.googleusercontent.com/-j1BMiwFXarg/UCv1rc26mkI/ONo/UWH8XBZccUU/s1600/package.jpg

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Listview show funny stuff

2012-04-23 Thread YuviDroid
Add a toString() method in the Client class that returns the Name.

On Fri, Apr 20, 2012 at 4:13 AM, Ricardo Rivera dist...@gmail.com wrote:

 I a listview connecto to a datbase and is showing in the list the value of
 the record for the app. Something like

 com.software.myapp.client.client@44abc0
 com.software.myapp.client.client@44abc1
 etc in the list

 I want to show only to show the Client Name

 Here is my Table scheme
 Client Id,Name,Addrs,Phone

 setContentView(R.layout.clientlist);
 clientds = new ClientDataSource(this);
 clientds.open();

 ListClient values = clientds.getAllClients();
 ArrayAdapterClient adapter = new ArrayAdapterClient(this,
 android.R.layout.simple_list_item_1, values);

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Adb shell from app

2012-03-31 Thread YuviDroid
Ciao Giuseppe,

I recently found this library with various root utilities:
http://code.google.com/p/roottools/
I've never tried it but it looks promising.

In their wiki you can find examples on how to run shell commands (
http://code.google.com/p/roottools/wiki/Usage#Running_root_commands).


Hope it helps!
Cheers,
Yuvi

DroidAhead
http://www.droidahead.com

On Sat, Mar 31, 2012 at 3:45 PM, Giuseppe porcelli.giuse...@gmail.comwrote:

 Hi Softy,
 I need to change the stock audio.primary.exynos4.so from /system/lib/hw
 folder with a modified version, obviously on rooted device and after the
 user authorize it.
 I don't know really how to get the root permission and proceed with the
 copy (probably using adb shell).
 Thank you in advance,

 Il giorno sabato 31 marzo 2012 15:39:16 UTC+2, softy ha scritto:

 What are those commands?usual copy move or something else?
 ..pain is temporary.quitting lasts forever..

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


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

Re: [android-developers] What is the best development strategy?

2012-03-30 Thread YuviDroid
You can use java Reflection to use methods available only on certain
Android versions. Or you can create some helper classes that you load
(again through Reflection) only on certain Android versions.

This doc can sure help:
http://developer.android.com/resources/articles/backward-compatibility.html


Cheers,
Yuvi

DroidAhead
http://www.droidahead.com

On Fri, Mar 30, 2012 at 9:27 AM, Terry terb...@gmail.com wrote:

 How to keep developing an app - to take advantage of new features in
 new Android versions - and still support old customers?

 What is the best approach?

 Example: Let us say that I want to use the front facing camera, which
 seems to be supported from Android version 2.3, and I originally made
 the app to support Android version 1.6 and newer?  If a make a new
 version of my app - setting minSkdVersion to the value corresponding
 to Android 2.3, then my old customers cannot use it. Is that OK? Am I
 not letting my old customers down then?

 On the other side, if I always want to support Android version 1.6,
 then I cannot take advantage of all the new features of Android. Or
 can I? Is there another way?

 What is the best strategy?

 Regards, Terry

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

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

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid
By reading this:  android.widget.LinearLayout$LayoutParams cannot be cast
to android.widget.FrameLayout$LayoutParams

I'd say you need to change this:
 msettingsLayout.setLayoutParams(new LinearLayout.LayoutParams(settingsw,
settingsh));
into:
 msettingsLayout.setLayoutParams(new *FrameLayout*.LayoutParams(settingsw,
settingsh));

This is most probably because your LinearLayout  msettingsLayout  is inside
a FrameLayout, and so its layout params must be of its parent class.


Cheers,
Yuvi

DroidAhead
http://www.droidahead.com

On Sun, Mar 25, 2012 at 10:09 PM, Jim Graham spooky1...@gmail.com wrote:

 I'm trying to build the layout for my camera app.  The camera preview
 goes on the left, and is set to the largest supported size that fits
 within 65% of the display width and 100% of the display height.

 The remaining 35% of the width is for two things:  first, a TableLayout
 (set inside of a ScrollView) with textviews and spinners (side by side)
 for spinner labels and the spinners themselves.  Below that is a
 LinearLayout (horizontal) for a TextView and the shutter release image.

 The left side works fine.  No problem.  The right side works fine on my
 tablet, but not on my phone (Motorold Bravo MB520).  What inevitably
 happens with the layout on my phone is the textviews/spinners taking
 the full screen, and the shutter release button is nowhere to be seen.

 I've played around with the weights, and nothing seems to change the
 end result.

 I've tried setting the width and height of the image from Java...nothing.

 I've tried resizing the image and changing its density...no change.

 I've tried setting the width and height of the two layouts on the left
 (when both were LinearLayouts ... before the TableLayout), and every
 time I've tried to do this, I get a force close with the logcat data
 shown below, saying that android.widget.LinearLayout$LayoutParams cannot
 be cast to android.widget.FrameLayout$LayoutParams.  Just one
 problem:  NOWHERE in any my project will you find the word Frame
 (ignoring case for the fgrep).

 Logcat output (relevant to the force close):

 ---  CUT HERE  ---

 2012-03-25 14:43:42.320 E 24222/AndroidRuntime: FATAL EXCEPTION: main
 java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
 cannot be cast to android.widget.FrameLayout$LayoutParams
at android.widget.FrameLayout.onMeasure(FrameLayout.java:268)
at android.widget.ScrollView.onMeasure(ScrollView.java:308)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at
 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at
 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at
 android.widget.LinearLayout.measureHorizontal(LinearLayout.java:956)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:521)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10828)
at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:764)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at
 com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:1912)
at android.view.View.measure(View.java:10828)
at android.view.ViewRoot.performTraversals(ViewRoot.java:938)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)

 ---  CUT HERE  ---

 I should point out that I have imported android.widget.LinearLayout and
 android.widget.LinearLayout.LayoutParams, and the variables for the layouts
 are defined, e.g.,

   LinearLayout msettingsLayout;

 and set by reference 

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.


Yep, that's right.

On Sun, Mar 25, 2012 at 11:17 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
  LinearLayout is not a FrameLayout. I just remembered that ScrollView
  *is* a FrameLayout, my bad. The layout params of the ScrollView's
  child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
  A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid
Actually.you need to use LinearLayout.LayoutParams to set the layout
parameters. scaleType, alpha are the ImageView parameters. Basically,
anything that start with layout_ is a layout parameter.

On Sun, Mar 25, 2012 at 11:22 PM, YuviDroid yuvidr...@gmail.com wrote:

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.


 Yep, that's right.

 On Sun, Mar 25, 2012 at 11:17 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
  LinearLayout is not a FrameLayout. I just remembered that ScrollView
  *is* a FrameLayout, my bad. The layout params of the ScrollView's
  child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
  A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
 to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-15 Thread YuviDroid
@OP: I saw you released an update for your app that fixed this issue. (I
tested the previous version which in fact had problems with the books
covers on my Galaxy Nexus, while the new one works fine).
Could you please share your solution?

In this way we can all benefit from your experience :)

thanks!
Yuvi

On Wed, Mar 14, 2012 at 10:06 PM, GJTorikian gjtorik...@gmail.com wrote:

 I wrote a reply to this, but I guess it was censored. I
 was complaining about manufacturer fragmentation, again.

 If I have a directory like this: mnt/sdcard/app/dir

 mkdirs(app/dir) fails; mkdirs(app) followed by mkdirs(app/dir)
 works. This is extremely unusual.


 On Saturday, March 10, 2012 10:53:37 PM UTC+1, Kostya Vasilyev wrote:

  I just tried this on my Galaxy Nexus with official 4.0.2, and it
 definitely works, with and without the training slash.

 mkdirs returns false if the directory already exists - are you sure yours
 don't?

 Also, does your app have the permission to write to external storage?
 IIRC, some really older platform versions used to enable this permission if
 it wasn't declared.

 -- K

 On 03/10/2012 11:38 PM, GJTorikian wrote:

 It seems that that's entirely the problem. When I try to perform a
 mkdirs() operation, I get a return of false.

  So, for the structure of: /mnt/sdcard/myapp/

  new File(/mnt/sdcard/myapp/).**mkdirs() fails--but again, only for
 this device, it seems.


   --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] To get usage statistics

2012-03-13 Thread YuviDroid
I'm using Flurry in my apps to track usage patterns, register events (e.g.
the user clicked on a specific button), etc.
http://www.flurry.com/product/analytics/index.html

Take a look at the custom events and parameters section.

On Tue, Mar 13, 2012 at 5:17 PM, Fred Rischter fredrisch...@gmail.comwrote:

 Hi Everybody,

 I have a question about getting usage statistics.

 Consider storing information about for example, what options the user
 selected in the game, dificulty level, which options the user selected,
 when won, when losed, time of playing, framerate, screen dimentions.

 So, can I get this information and send to my server to study the data and
 make better applications, just doing it, or I need to ask the user about
 sending this data?

 Regards,
 Fred

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] To get usage statistics

2012-03-13 Thread YuviDroid
ahhh sorry I didn't get that..

I think it really depends on what you are storing. If it's just some
general statistics about your app I don't see any privacy issues.

On Tue, Mar 13, 2012 at 10:11 PM, Fred Rischter fredrisch...@gmail.comwrote:

 Hi I'm not having problem on how to do it.

 Its quite easy to get the usage statistics, I implemented it by myself.

 I'm asking about the privacy issue. Do you concern something about it?

 Regards,
 Fred



 2012/3/13 YuviDroid yuvidr...@gmail.com

 I'm using Flurry in my apps to track usage patterns, register events
 (e.g. the user clicked on a specific button), etc.
 http://www.flurry.com/product/analytics/index.html

 Take a look at the custom events and parameters section.

 On Tue, Mar 13, 2012 at 5:17 PM, Fred Rischter fredrisch...@gmail.comwrote:

 Hi Everybody,

 I have a question about getting usage statistics.

 Consider storing information about for example, what options the user
 selected in the game, dificulty level, which options the user selected,
 when won, when losed, time of playing, framerate, screen dimentions.

 So, can I get this information and send to my server to study the data
 and make better applications, just doing it, or I need to ask the user
 about sending this data?

 Regards,
 Fred

  --
 You received this message because you are subscribed to 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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

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


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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-10 Thread YuviDroid
Just a guess here...is it possible that maybe you are not calling mkdir/s()
before saving the file on sd? And so your folder myapp doesn't exist.
(although I guess that's not the case since you are having issues only with
ICS).

Anyway, if you need me to test something on the Galaxy Nexus just let me
know.


Cheers,
Yuvi

On Sat, Mar 10, 2012 at 9:12 AM, GJTorikian gjtorik...@gmail.com wrote:

 My use case is this: a user looks up some information about a book. The
 book's cover is fetched from The Internet. If the user wants to save the
 book cover, the image is stored in the external storage directory.

 The storage code is simply this:

 new File(Environment.getExternalStorageDirectory(), file);

 where file is just the name of the JPEG file of the image, prepended
 with my app. So, in theory, this should just be
 /mnt/sdcard/myapp/someBookCover.jpg for the Galaxy Nexus. (Obviously,
 mnt/sdcard varies, and might just be /sdcard-ext, etc).

 Now, when I perform a file.exists() operation to make sure that that file
 exists, I always get a false on ICS devices, and the cover does not load.
 I am not sure why this is happening.
 I had a user send me some logging information, and everything seems to
 check out correctly:

 I/IOUtilities(15437): ExternalStorageDirectory: /mnt/sdcard
 I/IOUtilities(15437): ExternalStorageEmulation: true
 I/IOUtilities(15437): ExternalStorageRemovable: false
 I/IOUtilities(15437): CacheDir: /data/data/com.miadzin.**shelves/cache

 What am I doing wrong here?

 On Saturday, March 10, 2012 12:29:26 AM UTC-6, Zsolt Vasvari wrote:

 As far as I can tell, no issues.  At least nobody complained.

 On Saturday, March 10, 2012 9:42:16 AM UTC+8, GJTorikian wrote:

 Over various Android updates and devices, I've been able to use
 getExternalStorageDirectory() in my code without any problems.

 However, I'm suddenly getting a lot of bug reports from ICS users on the
 Galaxy Nexus complaining that the way they interact with my app is not
 working. Specifically, it's in all the areas that use **
 getExternalStorageDirectory().

 Can someone with a Galaxy Nexus device confirm this? I realize that the
 Nexus does not have an SD card, the external is really internal,
 e.t.c but users are simply not able to use the app properly.


 Thanks in advance.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-03-01 Thread YuviDroid
Uhh great!
I just added a comment + starred.

I hope more devs will star it too so it gets some attention..


Cheers,
Yuvi

On Thu, Mar 1, 2012 at 11:56 AM, Efi Merdler-Kravitz
efi.merd...@gmail.comwrote:

 I can see there is already an open bug -
 http://code.google.com/p/android/issues/detail?id=22590 you are more than
 welcomed to star it.


 On Thursday, March 1, 2012 12:27:56 PM UTC+2, Efi Merdler-Kravitz wrote:

 YuviDroid, confirmed your bug, happens on the BitmapDrawable
 constructor, the DENSITY_DEFAULT is being used which is medium
 density.

 On Feb 29, 11:48 am, Efi Merdler-Kravitz efi.merd...@gmail.com
 wrote:
  I think that medium density is being used by default. The only way I
  found to bypass it is by using explicit width and height in the xml
  layout, e.g.
  ImageView
  android:id=@+id/imageView1
  android:layout_width=480px
  android:layout_height=200px /
 
  other, better ideas are welcomed.
 
  On Feb 23, 7:28 pm, YuviDroid yuvidr...@gmail.com wrote:
 
 
 
 
 
 
 
   I think I found the problem...and it looks like it's an Android bug.
   Drawable.createFromStream() doesn't take as parameter a Resources
 object,
   and later it calls Drawable.**createFromResourceStream() passing
 'null' as
   the Resources parameter.
   From my understanding the resources are then used to ensure that the
   drawable will set its target density correctly, but by being 'null'
 some
   default density is used.

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-26 Thread YuviDroid
Uhmthe root of the error is at that line 87 of your BTD...Activity.
What's at that line?

is it: SetBluetoothDevice pairedDevices = mBtAdapter.getBondedDevices(); ?
ant it might be that mBtAdapter is null (by reading the docs it says that
BluetoothAdapter.getDefaultAdapter() returns null when bluetooth is not
supported -
http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#getDefaultAdapter()
 ).
Maybe you are using the emulator to run this? (AFAIK the emulator doesn't
support bluetooth)

so, just add a if (mBtAdapter != null) { ... rest of your code .. }


On Sat, Feb 25, 2012 at 10:19 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 You mean this part of the log:

  02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228):  at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)


 The program doesn't stop at that point !!

 i was looking at this one:

 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.
 helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException


 On Sat, Feb 25, 2012 at 11:43 PM, YuviDroid yuvidr...@gmail.com wrote:

 As the log suggests the NullPointerException occurs at line 87 of
 BTDdetecetwithV7Activity.java.
 Take a look at that line and see what might be wrong..


 On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread
 main exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-26 Thread YuviDroid
At this point it might be useful if you manage to create a very small
sample app that has this problem, so that you can share that source code
and I/we can try it and figure out what's going on.


I'm sorry I can't be more helpful...

On Sun, Feb 26, 2012 at 2:15 AM, Jim Graham spooky1...@gmail.com wrote:

 On Sat, Feb 25, 2012 at 06:44:31PM -0600, Jim Graham wrote:
  On Sat, Feb 25, 2012 at 06:35:06PM -0600, Jim Graham wrote:
   On Sun, Feb 26, 2012 at 01:31:08AM +0100, YuviDroid wrote:
  
I'm not sure as to what is going wrong exactly...but you might want
 to
check the launchMode of your activity/ies.
   
 http://developer.android.com/guide/topics/manifest/activity-element.html#lmode
  
   I will...thanks.
 
  And there it is...99% sure that's the issue.

 And I was wrong...no change.  :-(

 In the manifest, between the application and activity tags, I added
   android:allowTaskReparenting=true
 and
   android:launcherMode=singleTop  (as opposed to the default, standard)

 I added the reparenting one first, tested it...force close.  Then I
 re-read what you wrote above, and changed launchmode from standard (it
 wasn't specified, thus was the default) to singleTop.  Still force
 closes on exit given the very specific sequence of events I listed
 earlier.

 So, I'm back to being confused again.  :-(

 Here's a question:  can I assume that installing from the Market, and
 using Open from there, pause, resume via icon, and exit will result
 in the same force close as side-loading does?  Or am I most likely
 chasing a ghost...a non-issue that only affects it when side-loaded?
 I'm inclined to believe that if I'm seeing it, someone else will, too.

 Thanks,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

   'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-26 Thread YuviDroid
So, I played a bit with this Snapshot project. First of all, I'm using the
Motorola Xoom with ICS (4.0.3).
I tried following your steps (side load, press home, start from app drawer,
press back) and indeed I got the crash. What's really odd is that in this
scenario when you press 'back' it doesn't call surfaceDestroyed(), but
instead it calls surfaceCreated(), which doesn't really make sense.

Anyway, I tried adding a different launchMode to the Snapshot
activityandit worked! I used 'singleTop'.

activity android:name=.SnapShot

android:label=@string/app_name

android:launchMode=singleTop

intent-filter

action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /

/intent-filter

/activity

Maybe it's a Honeycomb thing? I uploaded here the test apk which works for
me (again, on ICS): http://www.mediafire.com/?eylmq4aomurc9do

Let me know if it works also for you..


Ciao,
Yuvi

On Sun, Feb 26, 2012 at 11:41 AM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Feb 26, 2012 at 11:11:25AM +0100, YuviDroid wrote:
  At this point it might be useful if you manage to create a very small
  sample app that has this problem, so that you can share that source code
  and I/we can try it and figure out what's going on.

 This is the book example I've been working from:

   http://www.jstrack.org/snapshot.zip

 (it's small, and I'd post it here, but I don't know if the list handles
 attachments).  It force closes the same way, only after one specific
 sequence of events (again, side-load, run from installer's
 Open/Uninstall, pause via Home button, resume via icon).  Again, it
 ONLY does this when you resume via the icon---resuming via Honeycomb's
 active apps listing works fine.  The strange thing is that in all cases
 except the force-close case, pausing the app closes the camera and the
 preview, and then restarts them on resume, where the force-close sequence
 has them NOT being stopped, and just picked back up on resume (and then,
 of course, force close on exit).

 Thanks,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-26 Thread YuviDroid
No problem :)

Unfortunately I don't really know what's happening..it seems like the
Installer launches apps in some 'strange' way, while the app drawer uses a
different way and...dunno something odd happens :S
(lol not really useful! eheh)

If someone could explain that it would be great.


Yuvi

DroidAhead
http://www.droidahead.com

On Sun, Feb 26, 2012 at 2:59 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Feb 26, 2012 at 02:42:19PM +0100, YuviDroid wrote:
 
  Anyway, I tried adding a different launchMode to the Snapshot
  activityandit worked! I used 'singleTop'.

 Funny...I tried that yesterday.  I must have made a typo or something.
 Anyways, I downloaded the new apk, and it worked.  I don't understand
 why, or how, but it worked.

 Now if I can just find out why, after a reboot this morning, my camera
 now has a lot of red noise (this started happening a while back...it
 changes with reboots...Acer wants me to do a factory reset---their
 mickeysoft-ish answer to everything).

 Anyways, THANKS!  Now I can comfortably get back to work on this beastie.

 Later,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Issue with OnClick

2012-02-25 Thread YuviDroid
If you use a Dialog (e.g. AlertDialog) then you need to use
DialogInterface.OnClickListener (
http://developer.android.com/reference/android/content/DialogInterface.OnClickListener.html
).
If you use a View then it's View.OnClickListener (
http://developer.android.com/reference/android/view/View.OnClickListener.html
 ).

Check also your imports and look if you see some odd/wrong ones. (sometimes
it happens that you import the wrong class...it happened a lot to me with
the various LayoutParams classes).


On Sat, Feb 25, 2012 at 10:20 AM, Michal Šanda j...@michalsanda.cz wrote:

 Hello, I am trying to do this

  public void onClick(View v) {
// TODO Auto-generated method stub
if(v==findViewById(R.id.Button1)){

Intent intent = new Intent(this,OknoActivity.class);

startActivityForResult(intent,ACTIVITY_INTENT_OKNOACTIVITY);
}

 but eclipse says this error

 Description ResourcePathLocationType
 The type Android_testActivity must implement the inherited abstract
 method DialogInterface.OnClickListener.onClick(DialogInterface, int)
 Android_testActivity.java   /Android_test/src/cz/msanda/test
  line 13
 Java Problem

 Eclipse offers fix, but its this
 public void onClick(DialogInterface arg0, int arg1) {
 ..
 ..
 ..
 ---

 What's wrong? I read a lot of examples but I don't see any problem

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread YuviDroid
=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=android.mgo.helloandroid
   android:versionCode=1
   android:versionName=1.0 
 
   uses-sdk android:minSdkVersion=7 /
 
   application
   android:icon=@drawable/ic_launcher
   android:label=@string/app_name 
   activity
   android:label=@string/app_name
   android:name=.BTDdetecetwithV7Activity
   intent-filter
   action android:name=android.intent.action.MAIN/
 
   category
 android:name=android.intent.category.LAUNCHER/
   /intent-filter
   /activity
   /application
   uses-permission
 android:name=android.permission.BLUETOOTH/
   uses-permission
   android:name=android.permission.BLUETOOTH_ADMIN/
   /manifest
 
   On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com
 wrote:
Hello  moktarul,
 
Thanks alot, i will do that, and let you know :)
 
On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam 
 mokta...@gmail.comwrote:
 
sorry, its Activity Intent filter not internt filter
Moktarul
 
On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
 Hi Soyer,
 All your activity class has to be there in your Manifest.xml
 file
 
 if you call your activity class from other activity then that
 class
 has to be main( internt filter main) Please check these two
 point and
 i think this will solve ur problem.
 I am sure some problem in ur Manifest.xml file
 
 Moktarul
 
 On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com
 wrote:
 
  Hi Moktarul, What is in the the manifest file, you mean i
 have to
remove
  the . ? i don't think that's it, the . has to be there.
 
  Thanks guys for the help, Kris is it wrong if somebody try to
 learn
  something different, out of his field !! Thanks for the help
 though i
  really appreciate it.
 
  On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam 
 mokta...@gmail.com
wrote:
   Hi
   BTDdetecetwithV7Activity in ur android  Manifest file
   activity name=BTDdetecetwithV7Activity/\
 
   Enjoy
   moktarul
 
   On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
Hello everyone, Can anyone explain to me what this
 following error
means? have anyone faced the same?
 
ERROR:
 
02-19 18:10:41.321: E/AndroidRuntime(319):
java.lang.RuntimeException:
Unable to start activity
 ComponentInfo{android.mgo.helloandroid/
android.mgo.helloandroid.BTDdetecetwithV7Activity}:
java.lang.NullPointerException
 
   --
   You received this message because you are subscribed to the
 Google
   Groups Android Developers group.
   To post to this group, send email to
android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

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



  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] android

2012-02-25 Thread YuviDroid
Hey,

if you want to send simple data between two apps (on the same device) you
can use BroadcastReceivers with your own intent filter.

You can find more info here:
http://developer.android.com/guide/topics/intents/intents-filters.html

On Sat, Feb 25, 2012 at 12:59 PM, laxman k laxman.k1...@gmail.com wrote:

 hi...android guys

   i am laxman.I am bulid acadamic project in
 android...that requires the comunications b/w two android
 applications.that means tranfer simple strings two one android app to
 anther android app.

 can u help me ..How to approach this
 concept.??

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-25 Thread YuviDroid
Hey,

I'm not sure as to what is going wrong exactly...but you might want to
check the launchMode of your activity/ies.
http://developer.android.com/guide/topics/manifest/activity-element.html#lmode


I remember I had a similar issue in the past (not with the camera though)
when I launched an app from the Market (where it shows the 'Open' and
'Uninstall' buttons), then pressed home, and started that same app from the
app drawer.

Hope it helps somehow.

Yuvi

On Sat, Feb 25, 2012 at 3:08 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sat, Feb 25, 2012 at 05:45:09AM -0800, gjs wrote:

  Add code / try catch block to check if camera connects OK. If not
  indicate to user camera is busy, exit and restart app.

 No change.  Keep in mind, this happens when exiting from the app.
 AND, it *ONLY* happens if the app is run from the install Open
 option, AND if the user pauses the app via the Home button, AND
 if the user then returns to the app via the app icon (as opposed
 to the Honeycomb active apps listing).  Any other combination
 doesn't force close on exit (i.e., exits normally, as shown both
 by a normal exit and by logcat showing a clean exit).

 I'm completely and utterly confused about a number of things here:

 1) Why would the app only FC on exit with the above combination?
   Why not FC when opened via the app icon and resumed via the icon?
   Why not FC when opened either way and resumed either way (HC
   active apps display or app icon)?

 2) Why is the app behaving differently when paused/restarted with
   the above combination (i.e., in all other cases, the camera is
   closed on pause, and re-opened on resume); in that one case above,
   the camera is not closed on pause, and is simply accessed again
   when the app resumes.

 Maybe there's some mysterious difference between these variables that
 I don't know about, but it's driving me nuts.  I'm just about ready
 to scrap the existing code and start over.  But, as one friend/developer
 has suggested, it could even be a bug in the firmware on my A500who
 knows?  I don't, that's for sure.  :-(

 Thanks,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-23 Thread YuviDroid
I think I found the problem...and it looks like it's an Android bug.
Drawable.createFromStream() doesn't take as parameter a Resources object,
and later it calls Drawable.createFromResourceStream() passing 'null' as
the Resources parameter.
From my understanding the resources are then used to ensure that the
drawable will set its target density correctly, but by being 'null' some
default density is used.


On Sat, Feb 18, 2012 at 2:40 PM, YuviDroid yuvidr...@gmail.com wrote:

 Hi Dianne,

 thanks for your reply. The problem is that I'm using
 RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the
 density.
 The Uri I'm using is content://... which reaches my ContentProvider at
 the method openFile(Uri,String).

 I looked at the Android source code and I see that ImageView.setImageUri()
 uses resolveUri(), and for the content scheme it
 calls 
 Drawable.createFromStream(mContext.getContentResolver().openInputStream(mUri),
  null);
 which calls my openFile() method, which I implemented like this:
 public ParcelFileDescriptor openFile(Uri uri, String mode) throws
 FileNotFoundException {
 File file = new File(getContext().getFilesDir(), MyFile.png);

 return ParcelFileDescriptor.open(file,
 ParcelFileDescriptor.MODE_READ_ONLY);
 }

 I don't see where I can change the density to use. :(


 Thanks,
 Yuvi


 On Sat, Feb 18, 2012 at 2:19 AM, Dianne Hackborn hack...@android.comwrote:

 Set the desired density of your bitmap:
 http://developer.android.com/reference/android/graphics/Bitmap.html#setDensity(int)


 On Fri, Feb 17, 2012 at 12:56 PM, YuviDroid yuvidr...@gmail.com wrote:

 Hi,

 sorry to resurrect this post...but I got into a similar problem. And as
 the OP did, I'm using RemoteViews.setImageViewUri() to set my image on the
 appwidget. However I noticed that my image is being scaled according to the
 screen density.

 So, for example, on an XHDPI screen, if I have a bitmap which is 100x100
 and I set it using setImageViewBitmap() I get the image to look as 100x100.
 However, if I store that bitmap into a png on disk, and then use
 setImageViewUri() my bitmap is displayed as 50x50.

 Do you know if there is a way to change this behavior? (i.e. if my image
 is 100x100 I'd like it to remain 100x100 also after it is decoded).
 Maybe there is a way to force some density on the ImageView itself?

 My only workaround (which sucks..) is to scale-up the bitmap before
 storing on disk so that when it is being decoded I get back my original
 size. But in this way I use more memory to save the image and I also loose
 image quality..:(

 I hope someone can help me!
 Thanks,
 Yuvi

 On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell 
 ash.mcconn...@gmail.comwrote:

 Thanks Kostya and Dianne, setUri works as expected.  I had to create
 the files using context.openFileOutput.  Unfortunately that means I loose
 the ability to use directories.  I can't see a Java way to set permission
 on files, it can be done with native methods, but that seems like overkill.
  I'll do some more googling.

 Thanks again for the help, I was worried that this problem might have
 been a show-stopper.
 Ash

  --
 You received this message because you are subscribed to 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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

  --
 You received this message because you are subscribed to 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




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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
 to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net




-- 
YuviDroid
Check out Launch-X http

Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-23 Thread YuviDroid
There's something odd with the package names :S:S:S

If your BroadcastReceiver package name is package com.needham.RxBcast;
then also in the manifest you should use the same package:
receiver android:name=com.needham.RxBcast.RxBcast 

or correct the package name and make it package com.needham; and the
receiver in the manifest: receiver android:name=com.needham.RxBcast .


On Thu, Feb 23, 2012 at 10:32 PM, Thomas tbirchm...@usa.net wrote:

 It is the program you sent me.  I noticed that I have to debug as an
 Android to get the
 Log.d  statements to work.

 

 package com.needham.RxBcast;

 import android.content.BroadcastReceiver;
 import android.content.ComponentName;
 import android.content.Context;
 import android.content.Intent;
 import android.util.Log;


 public class RxBcast extends BroadcastReceiver {

 private static final String TAG = RxBcast77;
 private static final int NOTE_ID = 1;

@Override
public void onReceive(Context c, Intent i) {
// check and handle registerable actions
String act = i.getAction();
 Log.d(TAG, Rxd + act );
 if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
Intent si = new Intent(c, PiesOfCodActivity.class);
si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
c.startActivity(si);
}
} // onReceive

 }

 *
 package com.needham.RxBcast;

 import android.app.Activity;
 import android.os.Bundle;
 import android.util.Log;
 import android.widget.TextView;

 public class PiesOfCodActivity extends Activity {
/** Called when the activity is first created. */

private static final String TAG = RxBcast77;

public void onCreate(Bundle savedInstanceState) {


Log.d(TAG, POCA777 + savedInstanceState );
   super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText(Hello, Pies of Cod!);
setContentView(tv);
}
 }

 **
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=com.needham.RxBcast
 android:versionCode=1
android:versionName=1.0 

 uses-sdk android:minSdkVersion=7 /
 uses-permission
 android:name=android.permission.RECEIVE_BOOT_COMPLETED /

 application
 android:icon=@drawable/ic_launcher
 android:label=@string/app_name 
 activity
 android:name=.PiesOfCodActivity
 android:label=@string/app_name 
 intent-filter
 action android:name=android.intent.action.MAIN /

 category android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity

 !-- android.intent.action.BOOT_COMPLETED --
 receiver android:name=com.needham.PiesOfCod.RxBcast 
 intent-filter
 action android:name=android.intent.action.BOOT_COMPLETED /
 /intent-filter
 intent-filter
 action android:name=com.needham.PiesOfCode.LAUNCH_APP /
 /intent-filter
 /receiver

 /application
 /manifest


 On Feb 23, 2:16 pm, Ted Scott t...@hootinholler.com wrote:
  On 2/23/2012 11:18 AM, Thomas wrote: I've continued to experiment.  I
 wanted to send an attachment file but
   but here is a portion of the  logcat showing the RxBcast failing at
   bootup and after the Emulator is opened then running correctly.
   look for **  I unlock  emulator
   The same thing happens on my DroidX2 Fails on boot after keyboard is
   unlocked and then works correct when started by touching icon.
 
   ***  Bad stuff here
   E/AndroidRuntime(  237): FATAL EXCEPTION: mainE/AndroidRuntime(  237):
   java.lang.RuntimeException: Unable to instantiate receiver
   com.needham.PiesOfCod.RxBcast: java.lang.ClassNotFoundException:
   com.needham.PiesOfCod.RxBcast in loader dalvik.system.PathClassLoader[/
   data/app/com.needham.RxBcast-1.apk]E/AndroidRuntime(  237):at
   android.app.ActivityThread.handleReceiver(ActivityThread.java:2789)E/
 
  Looks like a configuration issue. Before you started experimenting, did
  you get the stuff I posted working?
 
  What's in your manifest? What does your project's code tree look like?

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe

Re: [android-developers] Intent choosing

2012-02-23 Thread YuviDroid
As Mark suggests it's always good to leave the user a choice.

However if you really want to start that player you can add to the intent
its package name, so that the filtering is limited to that package.

intent.setPackage(com.mobo...);


Hope it helps,
Yuvi

DroidAhead
http://www.droidahead.com

On Thu, Feb 23, 2012 at 8:27 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Feb 23, 2012 at 2:15 PM, bob b...@coolfone.comze.com wrote:
  I have this code for playing back a movie:
 
  Movie_Player.play_movie(/mnt/sdcard/movie1.mpg, this);

 Never hardwire paths. Use Environment.getExternalStorageDirectory().

  public class Movie_Player {
 
 public static void play_movie(String file_path, Activity a)
 {
 Intent intent = new Intent();
 intent.setAction(android.content.Intent.ACTION_VIEW);
 File file = new File(file_path);
 intent.setDataAndType(Uri.fromFile(file), video/*);
 a.startActivity(intent);
 }
 
  }
 
  The problem is it pops up a list and makes the user choose the movie-
  player app.  Is there an easy
  way I can tell it to use Mobo Video Player
  (com.mobo.video.player.arm5)?

 Please allow the user to choose whatever video player they want.

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

 Android Training in DC: http://marakana.com/training/android/

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Broadcast Receiver issue

2012-02-23 Thread YuviDroid
This post might help you:
http://groups.google.com/group/android-developers/browse_thread/thread/6d0dda99b4f42c8f

On Thu, Feb 23, 2012 at 11:09 PM, brian lee br...@brianlee.org wrote:

 I am trying to write what I think is a very simple application just to
 check for when the head phone is plugged in and then mute the
 notification sounds. I am a bit confused on the broadcast receiver,
 can I have a app that is just that class and have it listen for when
 that action happens, do I need a service running as well?

 Here is my code:

 package com.blee.checkheadphone;

 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.media.AudioManager;
 import android.os.Bundle;
 import android.util.Log;

 public class CheckheadphoneManager extends BroadcastReceiver {

public static final String LOG_TAG = Checkheadphone;

Context mContext;
private AudioManager mAudioManager;
private final String HEADSET_ACTION =
 android.intent.action.HEADSET_PLUG;

@Override
public void onReceive(Context arg0, Intent arg1) {

mContext = arg0;
Log.v(LOG_TAG, Intent captured);
String action = arg1.getAction();

action.equalsIgnoreCase(HEADSET_ACTION);

Bundle bundle = arg1.getExtras();
int headValue = bundle.getInt(state);

mAudioManager =
 (AudioManager)arg0.getSystemService(Context.AUDIO_SERVICE);

if(headValue==0){
//System.out.println(Headphone unplugged);
Log.v(LOG_TAG, Headphone unplugged);
//mAudioManager.setSpeakerphoneOn(false);

  mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION,
 false);

}else{
//mAudioManager.setSpeakerphoneOn(true);
//System.out.println(Headphone plugged);
Log.v(LOG_TAG, Headphone plugged);

  mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION,
 true);
}

}


 }

 And my manifest:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.blee.checkheadphone
  android:versionCode=1
  android:versionName=1.0
uses-sdk android:minSdkVersion=10 /
uses-permission
 android:name=android.permission.MODIFY_AUDIO_SETTINGS/uses-
 permission

application android:icon=@drawable/icon android:label=@string/
 app_name


receiver android:name=CheckheadphoneManager
 android:enabled=true  
intent-filter
action
 android:name=android.intent.action.HEADSET_PLUG /
category
 android:name=android.intent.category.DEFAULT /


/intent-filter
/receiver


/application
 /manifest

 When I watch logcat, nothing shows for my app.
 Any help will be appreciated.

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] To make a separate tablet HD version or an Universal one?

2012-02-20 Thread YuviDroid
Considering 1.5 users are 0.6% of the total Android devices (according to
http://developer.android.com/resources/dashboard/platform-versions.html) I
would abandon 1.5 support :)

Otherwise you could considering creating a separate app, since the Market
allows multiple apk uploads for different targets. However I believe it
would be a pain to maintain future updates, unless you use somehow the
Library setup for this.


Cheers,
Yuvi

On Mon, Feb 20, 2012 at 3:48 AM, opok vir...@gmail.com wrote:

 I have an App support Android 1.5+

 I want to extend this app to add Fragment for supporting tablet. The
 Android Compatibility library only starts from Android 1.6, that means if I
 want to build an Universal one, I need to abandon my 1.5 users.

 What should I do?

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-20 Thread YuviDroid
Yep I played with the xml attributes (such as scaleType)...but none would
change the density being used. Or did I miss that?

On Mon, Feb 20, 2012 at 7:36 AM, Dusk Jockeys Android Apps 
duskjock...@gmail.com wrote:

 Could you not play with the xml settings of the ImageView itself? I
 think there are some attributes there that control how the image is
 displayed, whether or not it is scaled, centred etc.

 On Feb 18, 4:56 am, YuviDroid yuvidr...@gmail.com wrote:
  Hi,
 
  sorry to resurrect this post...but I got into a similar problem. And as
 the
  OP did, I'm using RemoteViews.setImageViewUri() to set my image on the
  appwidget. However I noticed that my image is being scaled according to
 the
  screen density.
 
  So, for example, on an XHDPI screen, if I have a bitmap which is 100x100
  and I set it using setImageViewBitmap() I get the image to look as
 100x100.
  However, if I store that bitmap into a png on disk, and then use
  setImageViewUri() my bitmap is displayed as 50x50.
 
  Do you know if there is a way to change this behavior? (i.e. if my image
 is
  100x100 I'd like it to remain 100x100 also after it is decoded).
  Maybe there is a way to force some density on the ImageView itself?
 
  My only workaround (which sucks..) is to scale-up the bitmap before
 storing
  on disk so that when it is being decoded I get back my original size. But
  in this way I use more memory to save the image and I also loose image
  quality..:(
 
  I hope someone can help me!
  Thanks,
  Yuvi
 
  On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell ash.mcconn...@gmail.com
 wrote:
 
 
 
 
 
   Thanks Kostya and Dianne, setUri works as expected.  I had to create
 the
   files using context.openFileOutput.  Unfortunately that means I loose
 the
   ability to use directories.  I can't see a Java way to set
 permission on
   files, it can be done with native methods, but that seems like
 overkill.
I'll do some more googling.
 
   Thanks again for the help, I was worried that this problem might have
 been
   a show-stopper.
   Ash
 
--
   You received this message because you are subscribed to 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
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget
  to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net- Hide quoted text -
 
  - Show quoted text -

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Dynamic icon == widget?

2012-02-19 Thread YuviDroid
Or maybe you can use a notification in the status bar? (and then on some
event change that notification/icon).


2012/2/18 Kostya Vasilyev kmans...@gmail.com

 App icons (shortcuts) are drawn by *a* launcher, and there is no way
 to control / modify their appearance.

 So yes, if you need to display dynamic info, you build a widget.

 -- K

 18 февраля 2012 г. 22:55 пользователь Ted Scott t...@hootinholler.com
 написал:
  I'm running a service that monitors a metric and I want it to colorize
 the
  app icon dependent on the values.
 
  Do I have to build a widget to interact with it or is there some way I
 can
  just replace the image?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Please provide me the Mediarecorder documentation?

2012-02-19 Thread YuviDroid
You can try to read the MediaRecorder source code and figure out what it
does...:)


good luck!

On Sat, Feb 18, 2012 at 3:46 PM, muhammad.ume...@hotmail.com 
muhammad.ume...@hotmail.com wrote:

 hi all,
   Please give me the Mediarecorder documentation or The report on
 Mediarecorder. Please please i really need it.


 Thanks and Regards,

 umer

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-19 Thread YuviDroid
I tried also to set the bitmap density before saving it to disk...just in
case it made any difference...but it doesn't.
No one has a solution to this issue?


Thanks,
Yuvi

On Sat, Feb 18, 2012 at 3:07 PM, YuviDroid yuvidr...@gmail.com wrote:

 Hi Mark,

 I actually switched from setImageViewBitmap() to setImageViewUri() because
 sometimes I need to display large bitmaps which do not work if I use
 setImageViewBitmap().


 Yuvi


 On Sat, Feb 18, 2012 at 2:57 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Feb 18, 2012 at 8:40 AM, YuviDroid yuvidr...@gmail.com wrote:
  thanks for your reply. The problem is that I'm using
  RemoteViews.setImageViewUri(), so I don't have a bitmap object to set
 the
  density.

 Then switch to setBitmap() or setImageViewBitmap().

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

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to 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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
 to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-18 Thread YuviDroid
Hi Dianne,

thanks for your reply. The problem is that I'm using
RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the
density.
The Uri I'm using is content://... which reaches my ContentProvider at
the method openFile(Uri,String).

I looked at the Android source code and I see that ImageView.setImageUri()
uses resolveUri(), and for the content scheme it
calls 
Drawable.createFromStream(mContext.getContentResolver().openInputStream(mUri),
null);
which calls my openFile() method, which I implemented like this:
public ParcelFileDescriptor openFile(Uri uri, String mode) throws
FileNotFoundException {
File file = new File(getContext().getFilesDir(), MyFile.png);

return ParcelFileDescriptor.open(file,
ParcelFileDescriptor.MODE_READ_ONLY);
}

I don't see where I can change the density to use. :(


Thanks,
Yuvi


On Sat, Feb 18, 2012 at 2:19 AM, Dianne Hackborn hack...@android.comwrote:

 Set the desired density of your bitmap:
 http://developer.android.com/reference/android/graphics/Bitmap.html#setDensity(int)


 On Fri, Feb 17, 2012 at 12:56 PM, YuviDroid yuvidr...@gmail.com wrote:

 Hi,

 sorry to resurrect this post...but I got into a similar problem. And as
 the OP did, I'm using RemoteViews.setImageViewUri() to set my image on the
 appwidget. However I noticed that my image is being scaled according to the
 screen density.

 So, for example, on an XHDPI screen, if I have a bitmap which is 100x100
 and I set it using setImageViewBitmap() I get the image to look as 100x100.
 However, if I store that bitmap into a png on disk, and then use
 setImageViewUri() my bitmap is displayed as 50x50.

 Do you know if there is a way to change this behavior? (i.e. if my image
 is 100x100 I'd like it to remain 100x100 also after it is decoded).
 Maybe there is a way to force some density on the ImageView itself?

 My only workaround (which sucks..) is to scale-up the bitmap before
 storing on disk so that when it is being decoded I get back my original
 size. But in this way I use more memory to save the image and I also loose
 image quality..:(

 I hope someone can help me!
 Thanks,
 Yuvi

 On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell ash.mcconn...@gmail.comwrote:

 Thanks Kostya and Dianne, setUri works as expected.  I had to create the
 files using context.openFileOutput.  Unfortunately that means I loose the
 ability to use directories.  I can't see a Java way to set permission on
 files, it can be done with native methods, but that seems like overkill.
  I'll do some more googling.

 Thanks again for the help, I was worried that this problem might have
 been a show-stopper.
 Ash

  --
 You received this message because you are subscribed to 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




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

  --
 You received this message because you are subscribed to 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




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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-18 Thread YuviDroid
Hi Mark,

I actually switched from setImageViewBitmap() to setImageViewUri() because
sometimes I need to display large bitmaps which do not work if I use
setImageViewBitmap().


Yuvi

On Sat, Feb 18, 2012 at 2:57 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Feb 18, 2012 at 8:40 AM, YuviDroid yuvidr...@gmail.com wrote:
  thanks for your reply. The problem is that I'm using
  RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the
  density.

 Then switch to setBitmap() or setImageViewBitmap().

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

 Android App Developer Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-17 Thread YuviDroid
Hi,

sorry to resurrect this post...but I got into a similar problem. And as the
OP did, I'm using RemoteViews.setImageViewUri() to set my image on the
appwidget. However I noticed that my image is being scaled according to the
screen density.

So, for example, on an XHDPI screen, if I have a bitmap which is 100x100
and I set it using setImageViewBitmap() I get the image to look as 100x100.
However, if I store that bitmap into a png on disk, and then use
setImageViewUri() my bitmap is displayed as 50x50.

Do you know if there is a way to change this behavior? (i.e. if my image is
100x100 I'd like it to remain 100x100 also after it is decoded).
Maybe there is a way to force some density on the ImageView itself?

My only workaround (which sucks..) is to scale-up the bitmap before storing
on disk so that when it is being decoded I get back my original size. But
in this way I use more memory to save the image and I also loose image
quality..:(

I hope someone can help me!
Thanks,
Yuvi

On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell ash.mcconn...@gmail.comwrote:

 Thanks Kostya and Dianne, setUri works as expected.  I had to create the
 files using context.openFileOutput.  Unfortunately that means I loose the
 ability to use directories.  I can't see a Java way to set permission on
 files, it can be done with native methods, but that seems like overkill.
  I'll do some more googling.

 Thanks again for the help, I was worried that this problem might have been
 a show-stopper.
 Ash

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-28 Thread YuviDroid
Oh well I gave it a shot :D

Anyway, glad you found the problem/solution at the end ;)


Cheers,
Yuvi

On Sat, Jan 28, 2012 at 7:22 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jan 27, 2012 at 6:00 PM, YuviDroid yuvidr...@gmail.com wrote:

 I think I had a similar problem some time ago...unfortunately I don't
 remember exactly how I solved. However I think I used
 RemoteViews.removeAllViews().


 Thanks. That didn't work (actually led to the default could not load
 widget error layout), but playing around with it a bit more I finally
 found the problem.

 As expected, I was missing something obvious: my linear_layout_entry
 layout that I have been inflating had its height set to match_parent ...
 So the first one was filling the parent and leaving no room for the rest
 ... I just couldn't tell due to the backgrounds being the same ...

 *face palm*

 Man I love posting to the group only to realize I'm being an idiot.

 Thanks for the help!



 -
 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] AutoScroll ListView at specified intervals without user intervention

2012-01-28 Thread YuviDroid
Probably you want to take a look at:
http://developer.android.com/reference/android/widget/ListView.html#smoothScrollByOffset(int)

or
http://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int)


Although I'm not sure exactly what you are trying to accomplish. For
example you say I want to show the first item .., but being a ListView
you will probably see much more than one item.

On Sat, Jan 28, 2012 at 6:32 AM, Giants203 giants...@gmail.com wrote:

 I would like to auto scroll list view at specified time intervals
 without user intervention. The time intervals will be supplied in an
 array on integers  say 1000, 4000, 5000 in millisecs

 I want to show the first list item as soon as the list launches
 and then wait 10 sec to show the next list item on top of the list
 (visible on the screen) and so on based on the time intervals shown
 above.

 What's the best way to accomplish this?

 I was going through this a href=http://groups.google.com/group/
 android-beginners/browse_thread/thread/ea22a389eb900bbe?pli=1thread/
 a  but the getListView().setSelection() is taking directly to the
 end of the list. There is no incremental update 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Crash after StartActivity

2012-01-28 Thread YuviDroid
Can you post the entire stack trace?

First thing that pops to my mind is: have you declared your WakeActivity in
the android manifest?

On Sat, Jan 28, 2012 at 11:48 AM, Rudolf Polzer rudolf.pol...@i-r-p.dewrote:

 I am working on an app for andoid 2.1-update 1 (API Level 7).
 After calling
context.startActivity(new Intent(context, WakeActivity.class));
 the app crashes. The stack is then
ActivityThread.handleReceiver(ActivityThread$ReceiverData) line:
 2639
 This may be unable to start receiver, but why?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: AutoScroll ListView at specified intervals without user intervention

2012-01-28 Thread YuviDroid
Ok, now it's clearer :)

The two links I gave you should help with auto-scroll part.
With the time intervals you might use a Timer (
http://developer.android.com/reference/java/util/Timer.html), or make use
of the AlarmManager (
http://developer.android.com/reference/android/app/AlarmManager.html).
I'm not sure though if any of these will be precise enough, so that you
remain perfectly in sync with the audio being played. Maybe there are some
classes/methods that allow to do that better directly in the MediaPlayer
(or SoundPool).


Ciao,
Yuvi

On Sat, Jan 28, 2012 at 3:50 PM, Giants203 giants...@gmail.com wrote:

 I'm trying to automatically scroll the list view based on the playing
 of an audio file. The listview items will have English translation of
 what is being played in the audio which will be in a foreign language.
 So as the audi progresses, i need to keep the listview scrolling down.
 I will maintain a mapping file with timestamps to directly the scroll.




 On Jan 28, 5:01 am, YuviDroid yuvidr...@gmail.com wrote:
  Probably you want to take a look at:
 http://developer.android.com/reference/android/widget/ListView.html#s...)
 
  orhttp://
 developer.android.com/reference/android/widget/ListView.html#s...)
 
  Although I'm not sure exactly what you are trying to accomplish. For
  example you say I want to show the first item .., but being a ListView
  you will probably see much more than one item.
 
 
 
 
 
 
 
 
 
  On Sat, Jan 28, 2012 at 6:32 AM, Giants203 giants...@gmail.com wrote:
   I would like to auto scroll list view at specified time intervals
   without user intervention. The time intervals will be supplied in an
   array on integers  say 1000, 4000, 5000 in millisecs
 
   I want to show the first list item as soon as the list launches
   and then wait 10 sec to show the next list item on top of the list
   (visible on the screen) and so on based on the time intervals shown
   above.
 
   What's the best way to accomplish this?
 
   I was going through this a href=http://groups.google.com/group/
   android-beginners/browse_thread/thread/ea22a389eb900bbe?pli=1thread/
   a  but the getListView().setSelection() is taking directly to the
   end of the list. There is no incremental update 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
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget
  to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread YuviDroid
Hey,

I think I had a similar problem some time ago...unfortunately I don't
remember exactly how I solved. However I think I used
RemoteViews.removeAllViews().

I would try:
RemoteViews views = new RemoteViews(getPackageName(),
R.layout.widget_layout);
views.removeAllViews(R.id.ll_widget);

... rest of your code.


Hope it helps!
Yuvi

http://www.droidahead.com

On Fri, Jan 27, 2012 at 5:37 AM, TreKing treking...@gmail.com wrote:

 Folks,

 I'm getting my feet wet on app widgets so I'm probably missing something
 obvious, but I've hit a snag that's got me stumped.
 Basically, I cannot seem to dynamically add more than one instance of the
 same layout to a LinearLayout living in a RemoteViews object. Only the *
 first* item gets added.
 Has anyone seen anything like that?

 Here's more detail to clarify: I've got something like this in an
 IntentService that creates a list of objects to display.


 // Create remote view for main widget layout
 RemoteViews views = new RemoteViews(getPackageName(),
 R.layout.widget_layout);

 // list is some list of objects populated in the IntentService
 for (int i = 0; i  list.size(); i++)
 {
 // Create remote view for the object to add to linear layout
 RemoteViews v = new RemoteViews(getPackageName(),
 R.layout.linear_layout_entry);

 // ... Set Text on text views in v for the current object

 // Add new view to the linear layout in the widget
 views.addView(R.id.ll_widget, v);
 }

 AppWidgetManager man = AppWidgetManager.getInstance(this);
 man.updateAppWidget(widgetID, views);


 Now, this works as expected for the first item in the list. However, all
 others seem to be getting ignored - my widget only shows the first entry in
 the list even though there is plenty of room.
 I've stepped through the loop and it's definitely getting populated and I
 can see that the main views RemoteViews object has multiple nested
 views that should be my dynamic views, but they just don't appear.

 If I manually add instances of the layout (the one I'm inflating) to the
 linear layout via the designer, they show up.
 If I dynamically add instances of *different* layouts to the LinearLayout
 one after the other, they show up.
 If I dynamically add instances of *the same layout* to the LinearLayout,
 then only the first shows up.

 So apparently I can only add one instance of a given layout to a
 LinearLayout for a widget? That does not seem right at all ...

 I've gone though the docs and samples and searched this list,
 StackOverflow, and b.android.com and not found anything about this.
 There are no warnings or errors in the LogCat. I've tried on my 2.3.3
 device and various emulators and no dice.

 I can hack this up and manually add a bunch of the layouts and not use the
 ones I don't need, but I really feel like this should work.
 Anyone else seen this while working on widgets and have a clue what I'm
 doing wrong?

 Thanks.


 -
 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] SlidingDrawer - Setting height moves the view up

2012-01-24 Thread YuviDroid
Are you setting fill_parent to the SlidingDrawer or RelativeLayout (in
your code there is 200dp, so I'm not sure)?
Anyway, since you are using a RelativeLayout you can try setting on the
SlidingDrawer android:layout_alignParentBottom=true. (maybe though you'll
need to set the RelativeLayout height to fill_parent).


On Tue, Jan 24, 2012 at 11:42 AM, joaocruz04 jtcru...@gmail.com wrote:

 Hi,

 i'm having a problem:

 i've created a sliding drawer with a specific height, at the bottom of
 the screen.
 The problem is, when the height of the SlidingDrawer is set as
 fill_parent, everything works great, but when i set the height as
 for instance, 150dip, the SlidingDrawer moves to the top of the
 screen..

 is that a common issue? I can't seem to find any user with same
 problem :S

 My code btw:


 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=wrap_content
 android:layout_height=wrap_content

SlidingDrawer android:id=@+id/drawer
android:layout_height=200dip
 android:layout_width=fill_parent
android:content=@+id/content android:handle=@+id/handle

ImageView android:id=@+id/handle
 android:layout_height=wrap_content
android:layout_width=wrap_content
 android:src=@drawable/
 ntrack/ImageView

LinearLayout android:layout_height=fill_parent
 android:id=@+id/
 content
android:layout_width=fill_parent
 android:orientation=vertical

TextView android:id=@+id/txt android:text=This
 is some text
android:layout_width=wrap_content
 android:layout_height=wrap_content
/TextView

Button android:id=@+id/btn android:text=Click
 Me
android:onClick=ClickHandler
 android:layout_width=wrap_content

  android:layout_height=wrap_content/Button

/LinearLayout
/SlidingDrawer

 /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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] AwesomePagerAdapter initial position

2012-01-15 Thread YuviDroid
Since awesomePager is a ViewPager you can call
awesomePager.setCurrentItem(position).
http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setCurrentItem(int)


http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setCurrentItem(int,
boolean)

Hope it helps,
Yuvi

On Sat, Jan 14, 2012 at 10:01 AM, sheamuso ohall...@gmail.com wrote:

 Does anyone know how to set the initial position of the
 AwesomePagerAdapter in the compatibility package.

 I've been trying to use setPrimaryItem but don't know how, see my
 feeble attempt below but don't know what parameters to pass in


 awesomeAdapter = new AwesomePagerAdapter();
 awesomePager = (ViewPager) findViewById(R.id.awesomepager);
 awesomePager.setAdapter(awesomeAdapter);
 awesomeAdapter.setPrimaryItem(null, pos, null);

 private class AwesomePagerAdapter extends PagerAdapter {
 @Override
 public void setPrimaryItem(View collection, int position, Object
 object) {
Object primary = instantiateItem(collection, position);
super.setPrimaryItem(collection, position, object);
 }
 ...

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-09 Thread YuviDroid
Looks very interesting! Count me in!  :)

Yuvi

On Mon, Jan 9, 2012 at 6:04 PM, PhotoSteve dfwgoph...@gmail.com wrote:

 Add me too...I'm so new to Android I don't even know what I don't know
 even to ask questions or how to phrase them right for you nice people
 to understand what I'm asking. Any help for the noob is great.

 Steve

 On Jan 5, 10:50 am, scp89 jayvanbui...@gmail.com wrote:
  I've recently finished writing the first full-length, android-specific
  book on Android Marketing. It covers tips, tricks, strategies,
  competitive analysis, and so much more. Everything I've learned in 2
  years selling android apps, I've put into this book. It is available
  via e-book OR softcover:
 
  E-book:
 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
 
  Softcover:
 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
 
  GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
  reply to this thread, and 1 week from today I will randomly select 3
  members and PM you a link to your free download of the 130 page book.

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] how to select listview from multiple listviews in main.xml (on Android 2.3.3)

2011-12-25 Thread YuviDroid
Hi,

I believe you are using a ListActivity, which by default looks for a
ListView with id @android:id/list. To use custom ids change that
ListActivity to a normal Activity.


Cheers,
Yuvi
http://www.droidahead.com

On Sun, Dec 25, 2011 at 9:55 AM, KK dioxide.softw...@gmail.com wrote:

 hi all,
 I'm using FrameLayout and have defined two LinearLayouts embedded inside
 the FrameLayout. Now for each LinearLayout I've a listview . The problem
 I'm facing is picking the two listviews separately from my Java side code.
 The default listivew in XML uses the standard defined ID as 
 *android:id=@id/android:list
 *and I'm not able to pick the right one. So I decided to give custom ids
 to each of the list view like this in Layout1:
   ListView
 android:id=@+id/list1
 android:layout_width=fill_parent
 android:layout_height=fill_parent /

 and the following in Layout2

   ListView
 android:id=@+id/list2
 android:layout_width=fill_parent
 android:layout_height=fill_parent /

 and this is what I'm trying to use to pick the listviews separately,

   ListView listView1 = (ListView) findViewById(R.id.list1);
   ListView listView2 = (ListView) findViewById(R.id.list2);

 With the above code in pace, I'm not getting any compilation errors. But
 during run time I'm getting errors with this message:
 *  java.lang.RuntimeException: Your content must have a ListView
 whose id attribute is 'android.R.id.list'*

 Are we not allowed to use custom IDs for listviews? If custom IDs are not
 allowed, then what is the best way to handle the above problem? Would
 appreciate if someone could point me to the right direction.

 BTW, I'm actually trying to define two layouts each with its own listview
 and then I'm trying to animate between two UI screens each using one layout
 and the default behavior gives only one of the listivew as picked by
 getListView() which happens to be the 1st one, so my 2nd UI page is not
 showing any listview.


 Thanks,
 KK

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] ICS/Galaxy Nexus Can't Loop Audio without GAP

2011-12-23 Thread YuviDroid
I just did a quick test with your apk and:

Galaxy Nexus - Android 4.0.1 - Kernel 3.0.1-ga052f63 - FAIL
Galaxy S 2 - Android 2.3.4 - Kernel 2.6.35.11-ninphetamine-2.1.3 - PASS
(pls note that this is a custom ROM, I couldn't test right now with a stock
ROM)

Tomorrow I will test on a Nexus S, Xoom, and Archos G9.

Cheers,
Yuvi
http://www.droidahead.com

On Fri, Dec 23, 2011 at 1:39 AM, csyperski csyper...@gmail.com wrote:

 ICS can't loop audio seamlessly with more than one core, when using
 MediaPlayer-setLooping(true).  This is a major bug that is causing
 problems for my applications.  I have a sample project below
 demonstrating the issue.

 I have included a link to a very simple eclipse project that you can
 use to test for the setLooping bug.  This bug doesn’t seamlessly loop
 an audio file.  It plays a simple sine wave that can be used to easily
 detect if your device is displaying the bug.  I have also provided the
 direct like to the apk file as well.

 I feel this bug is an important bug to get fixed.  Although this is a
 simple example, it has real world problems including:

 *Looped music playback
 *Sound machine type applications
 *Game sample loops


 I feel this bug hurts the Android platform and encourages the
 ‘fragmentation’ fault argument.  Some devices/firmware don’t present
 the bug while others do.  For example, almost every recent Motorola
 device has the bug, but most HTC devices don’t.  The Xoom shipped
 without the bug, but a firmware update introduced the bug (I don’t
 know which version introduced it).

 I have an application, SleepyTime, which used to be available on all
 devices but now isn’t available on many devices on the Android Market
 because the bug is present on those devices.  This creates a bad user
 experience for the user because:

 *A user on phone A can get the app, but a user on phone B may not be
 able to.
 *A user with phone X paid for the app, then upgrades to phone Z, which
 can’t get the app because this device has the bug, and now doesn’t
 understand why they can’t download the application they paid for.

 To anyone experiencing this bug, please run this application on any
 device you have access to and report the Android version, kernel,
 device name, and weather the bug is present.  We need to give the
 engineers as much information as possible if we want this to get
 resolved.  Please get as many people as possible to start this bug to
 give it more visibility.

 Eclipse Project:
 http://cwssoft.com/downloads/LoopBug.zip

 APK:
 http://cwssoft.com/downloads/LoopBug.apk



 Here are my test results:


 
 HTC G2
 Android Version:
 2.3.4

 Kernel:
 2.6.35.10-g96de068

 Status:
 Pass

 
 Motorla Xoom
 Android Version:
 3.2.1

 Kernel:
 2.6.36.3-g111d827

 Status:
 FAIL

 

 HTC Nexus One
 Android Version:
 2.3.6

 Kernel:
 2.6.35.7-59465-g42bad32

 Status:
 Pass

 

 Kindle Fire

 Android Version:
 N/A

 Kernel:
 N/A

 Status:
 Pass

 

 Logitech Revue

 Android Version:
 3.1

 Kernel:
 N/A

 Status:
 Fail!!!


 http://code.google.com/p/android/issues/detail?id=18756

 Chuck Syperski
 CWS Software LLC

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

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

Re: [android-developers] Android Market - Why does my first App say it is only available to 18 devices?

2011-12-22 Thread YuviDroid
The problem is with  android:minSdkVersion=14 .
API 14 is Ice Cream Sandwich...which is not available to many devices right
now (actually officially I only know 2..Galaxy Nexus and Nexus S).

You can lower the minSdkVersion to 3 or 4 (Android 1.5 or 1.6), but make
sure you are not using any APIs that are ICS only..otherwise...VerifyError
:P

On Thu, Dec 22, 2011 at 3:51 PM, Stuart B stuartbat...@yahoo.co.uk wrote:

 Can anyone help me on this? I get this message, but I want my app on
 all devices.

 Supported Devices
 This application is only available to devices with these features, as
 defined in your application manifest.
 Screen layouts: SMALL NORMAL LARGE XLARGE
 Required device features
 android.hardware.touchscreen
 This application is available to over 18 devices. Show devices

 The manifest reads like this:

 manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=stuart.test.com
android:versionCode=2
android:versionName=1.1 

uses-sdk android:minSdkVersion=14 /

application
android:icon=@drawable/ic_launcher
android:label=Nav Lights 
activity
android:name=.AndroidtestActivity
android:label=@string/app_name 
intent-filter
action android:name=android.intent.action.MAIN /

category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application

 /manifest

 Many 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to 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] TextView ellipsize marquee on Ice Cream Sandwich

2011-12-20 Thread YuviDroid
Hey there,

I found something strange about ellipsize=marquee on my Galaxy Nexus...or
better...it doesn't work. Instead of seeing nice fading edges at the end of
the word (when the word doesn't fit the view of course), you get the normal
dots (...).
After some digging through the ICS source code I found, in the
ViewConfiguration class, this (which enables/disables the fading edge for
marquee):

mFadingMarqueeEnabled =
res.getBoolean(com.android.internal.R.bool.config_ui_enableFadingMarquee);

For some reason on the Galaxy Nexus (Android 4.0.1) this is actually
false. Do you have any idea on why is that?
I also tried with Android 4.0.3 on the Nexus S, with the same results.

As a test, I tried using Reflection to force the value
of mFadingMarqueeEnabled to true. And while it does work in my own
Activities, in doesn't work on AppWidgets (and that's where I'm actually
using this).

Do you know if it's actually possible somehow to change the boolean value
of com.android.internal.R.bool.config_ui_enableFadingMarquee? (I believe
not... :( )

On the emulator (tested both with Android 4.0 and 4.0.3) this is actually
set to true.


If you have an ICS device could you check if fading edges work for you? (a
quick way to check this is to place on your homescreen an app with a long
name - e.g. News  Weather - and see if it shows .. at the end of the
name, or if it fades nicely).


Thank you,
Cheers,
Yuvi



-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://www.droidahead.com/apps/launchx/ http://android.yuvalsharon.net

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

Re: [android-developers] Display complex object in ListView .

2011-12-19 Thread YuviDroid
I would use a custom adapter. Search on google for examples... (the first
one I found that looks good:
http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/
 ).

On Mon, Dec 19, 2011 at 12:20 PM, Ashish Tiwari ashish...@gmail.com wrote:

 Hi friends,

 I'm stuck showing data [from json] in custom ListView.

 I created a custom-rowlayout to display the object Student. However i am
 unable to display the objects Movie  Game in the ListView.
 I tried it using array adapter( sample code ) -
 http://pastebin.com/HsTmQSbz

 I'm only able to display String[] in a ListView.

 Any suggestions on how to implement such a thing ?

 This is my example JSON data to serialize .

 {
 studentname : ramesh,
 class : IV,
 favoritegames : [
 {name:angry birds},
 {name:need for speed}
 ],
 favoritemovies : [
 {name : MI-3},
 {name : TinTin}
 ]
 }

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] how to get notified that the screen has been successfuly unlocked

2011-12-18 Thread YuviDroid
I believe you are looking for this:
http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT



Yuvi

-- 
YuviDroid
Check out Launch-Xhttp://www.droidahead.com/apps/launchx/androidpit_promo.php
(a
widget to quickly access your favorite apps and contacts!)
Promotion until the 18th of December.

On Sun, Dec 18, 2011 at 5:09 AM, rahul verma rahulsgonnar...@gmail.comwrote:

 how to get notified that the screen has been successfully unlocked
 through a broadcast.
 thanks

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

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

Re: [android-developers] what is that argument in powermanager

2011-12-18 Thread YuviDroid
http://developer.android.com/reference/android/os/PowerManager.html#goToSleep(long)


On Sun, Dec 18, 2011 at 10:02 AM, rahul verma rahulsgonnar...@gmail.comwrote:

 what should we enter as parameter in pm.goToSleep(time).  wat is this
 time?

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Reusing Views in Custom Adapter

2011-11-29 Thread YuviDroid
 = (LayoutInflater)
  mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   v = li.inflate(R.layout.grid_item, null);
   TextView tv =
 (TextView)v.findViewById(R.id.grid_item_text);
   tv.setText(Item #+mItems.get(position));
  }
  return v;
  }
 
 
 
 
 
 
 
  }

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to 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] Someone has the Galaxy Nexus? :)

2011-11-24 Thread YuviDroid
Hey everyone,

while I'm waiting for the Galaxy Nexus to be available here in Switzerland
I was wondering if somebody who already has it he's willing to quickly test
my app to see how it works there?
(especially with respect to the high screen resolution screen and the
'menu' key not being present). Btw is the Galaxy Nexus a hdpi or xhdpi
device?

I already tested on the emulator (well...kind of...) and on my Nexus S with
ICS 4.0.1...but I'm really curious to test it on the real thing :)


Thanks,
Yuvi

-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://www.droidahead.com
http://android.yuvalsharon.net

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

Re: [android-developers] new feature - Statistics in publisher console

2011-03-15 Thread YuviDroid
I just noticed it now! It's basically the same info I had using Flurry...but
at least now I can remove the internet permission and still have this data!
Awesome!

On Tue, Mar 15, 2011 at 4:21 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 Hi,

 In case you weren't checking your Market published account - new feature is
 there called
 Statistics - can see OS, device, country and language stats for each app
 you publish
 and Market totals. Looks handy. At least I know I can fully drop pre 2.0
 support now :)

 Regards,
 Marcin Orlowski

 Tray Agenda for Android http://bit.ly/trayagenda

  --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Setting Alpha for an imageView in a homescreen widget

2011-02-22 Thread YuviDroid
Since Android 2.2 the method setAlpha() of ImageViews has become
@RemoteViewable (or something like that, I don't remember that annotation).
So you can simply call RemoteViews.setInt (viewId, setAlpha, value).

I haven't tried it myself, but I believe it should work..

On Tue, Feb 22, 2011 at 11:50 PM, Jeffrey jeffisagen...@gmail.com wrote:

 Another option that might be easier is if I could find a way to set an
 alpha for the ImageViews themselves, but I can't find an easy way to
 do that.

 On Feb 22, 4:42 pm, Jeffrey jeffisagen...@gmail.com wrote:
  Okay, after trying it out I am still facing issues. I can't seem to
  get the alpha to carry over after converting to Bitmap and using
  setImageViewBitmap(). This is my code so far:
 
  Drawable Sec1 = this.getResources().getDrawable(Test[180]);
  Sec1.mutate().setAlpha(80);
  Bitmap Section1 = ((BitmapDrawable)Sec1).getBitmap();
  views.setImageViewBitmap(R.id.IVGhost1, Section1);
 
  With this I get no alpha, and if I try this:
 
  Bitmap Section1 = ((BitmapDrawable)Sec1).getBitmap().extractAlpha();
  (Adding the extractAlpha() command)
 
  then I get an all black image. What am I missing?
 
  On Feb 22, 3:39 pm, Jeffrey jeffisagen...@gmail.com wrote:
 
 
 
 
 
 
 
   I have traversed the internet and have yet to find an answer for this
   problem. I have a set of image resources that I use in my widget, I
   need to be able to reuse them but with differing Alpha levels. So far
   the only command I can find to change alpha levels is .setAlpha(), but
   that will not work as I am having to dispatch the image
   via .setImageViewResource and I can't seem to get .setAlpha to work
   with this command.
 
   Is there a way to get this to work or am I going to have to double my
   application size by including doubles of my resources?

 --
 You received this message because you are subscribed to 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Change the background of an AppWidget

2011-01-10 Thread YuviDroid

 Maybe it works likewise if you create
 a Drawable object like GradientDrawable dynamically?


Unfortunately there is no RemoteViews.setImageViewDrawable() :(((


On Mon, Jan 10, 2011 at 9:28 AM, mort m...@sto-helit.de wrote:

 I think if you're feeling masochistic, you could create 9 images and
 do some kind of manual 9-patch image with e.g. table or linear
 layout views. Just like in bad old HTML times... ;)
 If your dynamically created images aren't too complex, you might
 also use something similar to the XML shape drawables. Opposed to 9-
 patch drawables, XML drawables always were scaled correctly if I set
 them with setImageViewResource. Maybe it works likewise if you create
 a Drawable object like GradientDrawable dynamically?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] When is an app movable to sd card?

2011-01-07 Thread YuviDroid
These docs are helpful:
http://developer.android.com/guide/appendix/install-location.html

On Fri, Jan 7, 2011 at 11:59 AM, Stephan Wiesner testexpe...@googlemail.com
 wrote:

 Hi,
 what do I have to do in order for my app to be movable to sdcard?
 App2SD for example lists my app as not movable.


 Thanks and greetings from Zurich,
 Stephan

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] app2sd - not working

2011-01-05 Thread YuviDroid
Just a guess:
the problem might be here: uses-sdk android:minSdkVersion=4 /

you should probably also specify the targetSdkVersion to be = 8.

Again, it's just a guess ;)

On Wed, Jan 5, 2011 at 11:51 AM, André pha...@hotmail.com wrote:

 I've just updated my app so the user can choose to install it on the
 sd card or not. But I keep getting some comments that it's not
 possible for them to install it on the sd card. Can anyone see if I've
 made anything wrong or if you have any other suggestions?

 André

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.someapp.fun
android:versionCode=1
android:versionName=3.0
android:installLocation=auto 

uses-permission android:name=android.permission.INTERNET /
uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE /
uses-permission android:name=android.permission.READ_PHONE_STATE
 /
 
uses-permission android:name=android.permission.VIBRATE /

uses-sdk android:minSdkVersion=4 /

application android:icon=@drawable/icon android:label=@string/
 app_name

...

/application
 /manifest

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: app2sd - not working

2011-01-05 Thread YuviDroid
I was talking about targetSdkVersion, not minSdkVersion.
The entry in the manifest should look like this: uses-sdk
android:minSdkVersion=4 android:targetSdkVersion=8 /

Btw on your test phone can you install your app on sdcard?

On Wed, Jan 5, 2011 at 12:51 PM, André pha...@hotmail.com wrote:

 I followed this tutorial:
 http://mobile.tutsplus.com/tutorials/android/move-to-sd-card/
 where it says that I don't need to have 8 as the minsdkversion.
 Doesn't it filter the app so only people with version 8 or greater can
 download my app?


 On Jan 5, 12:02 pm, YuviDroid yuvidr...@gmail.com wrote:
  Just a guess:
  the problem might be here: uses-sdk android:minSdkVersion=4 /
 
  you should probably also specify the targetSdkVersion to be = 8.
 
  Again, it's just a guess ;)
 
 
 
 
 
 
 
 
 
  On Wed, Jan 5, 2011 at 11:51 AM, André pha...@hotmail.com wrote:
   I've just updated my app so the user can choose to install it on the
   sd card or not. But I keep getting some comments that it's not
   possible for them to install it on the sd card. Can anyone see if I've
   made anything wrong or if you have any other suggestions?
 
   André
 
   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.someapp.fun
  android:versionCode=1
  android:versionName=3.0
  android:installLocation=auto 
 
  uses-permission android:name=android.permission.INTERNET /
  uses-permission
   android:name=android.permission.ACCESS_NETWORK_STATE /
  uses-permission
   android:name=android.permission.WRITE_EXTERNAL_STORAGE /
  uses-permission
 android:name=android.permission.READ_PHONE_STATE
   /
 
  uses-permission android:name=android.permission.VIBRATE /
 
  uses-sdk android:minSdkVersion=4 /
 
  application android:icon=@drawable/icon android:label=@string/
   app_name
 
  ...
 
  /application
   /manifest
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to
  quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Getting a test version of an .apk to a end user

2011-01-04 Thread YuviDroid

 Note: because you will have the tester install out-of-band from the
 Market, the tester will need to uninstall the App first.


But if you sign the apk with the same key that has been used to upload the
app on Market the user should be able to update the app without uninstalling
it. (at least I tried that with my own apps and it worked fine..)

Usually I send the apk by email, and tell the user to use a file manager to
install it. Then if he doesn't have 'Unkown
sources' checked he will just get a warning when trying to install and if I
remember correctly there should be also a popup with instructions on
how/where to enable it.

On Tue, Jan 4, 2011 at 1:55 AM, metal mikey coref...@gmail.com wrote:

 Is Email easy enough?

 Note: because you will have the tester install out-of-band from the
 Market, the tester will need to uninstall the App first.

 On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote:
  You mean you put it out on the Android Marketplace?
 
  On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote:
   I've taken to putting the latest version on the website and letting
 them
   download and install from there.
 
   On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com
 wrote:
 
   Is there any relatively easy way for me to send a test version of my
   app.apk file to a user?
   I may have fixed a problem he's seeing (that doesn't happen on my
 phone of
   course), and I'd like to have him test it BEFORE I deploy it to the
 store.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Avoid Multiple click on button..

2011-01-04 Thread YuviDroid
Are you sure that you are just opening a dialog? If you are doing some other
computations and stuff before actually opening it you might have the UI
locked..

On Tue, Jan 4, 2011 at 4:52 PM, ikalbeniz txup...@gmail.com wrote:

 the problem is that sometimes it takes a lot of time to open the
 dialog.. so i press more than one times because i think that i have
 note pressed correctly...

 On Jan 4, 4:42 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
  disable the button on click. enable it on close event of the dialog or on
  some other appropriate event
 
  But, if you are tapping with finger, how can you press more than once
  unwillingly?
 
  Regards
  Sarwar Erfan
 
 
 
  On Tuesday, January 4, 2011 9:37:53 PM UTC+6, ikalbeniz wrote:
 
   Hi,
 
   I have a button that opens a dialog box.. sometimes when i push the
   button i press it more than once and opens more than one dialog box..
   is there any way to avoid this easily?
 
   Regards.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: where is my data?

2010-12-21 Thread YuviDroid
Still, you can access that directory through your app. Try writing and
reading a file there and it should work fine.

On Tue, Dec 21, 2010 at 10:37 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Dec 21, 2010 at 4:34 AM, Stephan Wiesner
 testexpe...@googlemail.com wrote:
  thanks for the fast reply.
  only thing is: getFilesDir() returns  /data/data/de.stephanwiesner
  and, like i wrote, that dir does not exist (or is not accessible)

 It is not accessible from DDMS, nor from ASTRO. It is not supposed to be.

  And, I am sure that it was there last week. I have copied my database
  file several times to my PC for further processing and can't do that
  anymore, as I don't find it :-()
 
  My phone was never rooted.

 Then there was a flaw in the original firmware that has since been
 corrected. What you are experiencing is the normal state of affairs
 for Android development -- you can access your app's local files on an
 emulator, or possibly on rooted phones (not sure about that), but not
 on regular hardware.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Issue with startActivity

2010-12-19 Thread YuviDroid
You need to add the test activity into your manifest.

Anyway, use logcat to see the error that is being thrown, as Kostya
suggested.

On Sun, Dec 19, 2010 at 5:59 PM, apachetechnology 
ad...@apachetechnology.net wrote:

 I am trying to start a activity from ListActivity but its crashing.

 package net.apachetechnology.Organizer;

 import android.R;
 import android.app.ListActivity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;

 public class Organizer extends ListActivity {

private ArrayAdapterItem m_adapterItems;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

Item[] items = {
new Item(Task.class, Add Task),
new Item(test.class, Testing),
};

m_adapterItems = new ArrayAdapterItem(this,
 R.layout.simple_list_item_1, items);
setListAdapter(m_adapterItems);
}

@Override
protected void onListItemClick(ListView l, View v, int position,
 long id) {
//startActivity(m_adapterItems.getItem(position));
//m_adapterItems.getClass();

Intent intent = new Intent();
intent.setClass(Organizer.this, test.class);
startActivity(intent);
}

class Item extends Intent {
String s;
public Item(Class? c, String s) {
super(Organizer.this, c);
this.s = s;
}

@Override
public String toString() {
return s;
}
}
 }
 +++
 +
 package net.apachetechnology.Organizer;

 import android.app.Activity;
 import android.os.Bundle;
 import android.util.Log;

 public class test extends Activity
 {
@Override
protected void onCreate(Bundle savedInstanceState) {
try {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
catch (Exception e)
{
Log.e(ERROR, e.toString());
e.printStackTrace();
}
}
 }

 ===
 ?xml version=1.0 encoding=utf-8?
 LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=center_vertical|center_horizontal

 TextView
android:text=Testing
android:layout_width=fill_parent
android:layout_height=wrap_content
/
 /LinearLayout

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: How to get Icon of user defined default application

2010-12-17 Thread YuviDroid
How are you going to let the user choose what action to take when this
super button is pressed?
Probably you will show some list of apps that the user will manually select,
right? If that's the case then once the app is selected you know exactly the
application and you can get its icon, etc...

On Fri, Dec 17, 2010 at 10:29 PM, neuromit stuart.lay...@gmail.com wrote:

 Ok this is what I want to do:

 I have a button in my app, lets call it a super button. I let the user
 define the action of this button. The user can select options such as:
 send SMS, send an Email, open a browser, etc...

 I would like the icon of this button to be the icon of the users
 preferred application for that function.  This is simple to do when a
 user has actually selected a default application. I can iterate
 through the list of preferred apps and check each one to see if it
 matches the action of the super button.

 However, if the user only has the stock SMS or email client installed
 then the application will not show up in the preferred application
 list. I can get a list of installed packages and applications with
 their associated icons, however, what I am trying to figure out is
 this:

 how can I take the list of installed applications and figure out which
 one, of the many installed, is the sms application. I've tried to use
 the dataScheme identifier but I am unable to get that information
 using the methods provided by
 getPackageManager().getInstalledPackages() or
 getPackageManager().getInstallApplications


 Does this help clarify my problem?

 On Dec 17, 2:44 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  Now why do you need this anyway? Make an icon labeled share, launch
  action_send, and be done with it.
 
  The rest is controlled by the user - sharing by SMS, email, instant
  messages, twitter, Facebook, and possibly a thousand apps that have not
 been
  invented yet. Your application will be ready for any of them.
 
  If this requirement comes from a pointy-haired boss, explain the Android
  way and hopefully they'll understand.
 
  --
  Kostya Vasilyev --http://kmansoft.wordpress.com
  17.12.2010 22:31 пользователь TreKing treking...@gmail.com написал:

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Reducing 1 star ratings for IM; strategies

2010-12-16 Thread YuviDroid

 What I was thinking of trying was to create a little app that has an icon
 so the user would have something to click on. from there I could tell them
 what they need to know.


Probably with this solution you would get comments like Shouldn't appear in
the app drawer!!...1-star.
I got comments like those with a clock-widget, where the main Activity just
showed instructions... at the end I made that activity category
android:name=android.intent.category.INFO /, in this way it didn't appear
in the app-drawer but users could press the Open button through the Market
and get the instructions.
Maybe you could try something like that.


Yuvi


On Thu, Dec 16, 2010 at 11:56 PM, Brill Pappin br...@pappin.ca wrote:

 laugh
 I'm with you John, that's exactly what we need :)
 I love that little Radar widget BTW, use it in my geocaching app :)

 With an IM it's even worse because there is no app icon and the user has to
 dig down a few settings levels to turn it on, then they have to enable it.
 What I was thinking of trying was to create a little app that has an icon
 so the user would have something to click on. from there I could tell them
 what they need to know.

 So, i was asking if anyone has tried that and if there are other ways I
 might be able to improve the user experience, like giving them an on/off
 button in that little app. I'm not sure that the system would let a 3rd
 party app change the keyboard though.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: home screen widget drag or scroll

2010-12-13 Thread YuviDroid
That's just for HTC widgets on the HTC homescreen...and unfortunately they
don't expose any API for us devs, so we cannot make scrollable widgets that
would work on the Sense homescreen or stock launcher.

However, you can create scrollable widgets for 3rd-party launchers (like
LauncherPro, ADW, Home++, etc.) that support those. Take a look here:
- http://hpp.intuitit.mobi/for-developers#TOC-Building-Scrollable-Widget
http://hpp.intuitit.mobi/for-developers#TOC-Building-Scrollable-Widget-
http://hpp.intuitit.mobi/for-developers/scrollable-widget
http://hpp.intuitit.mobi/for-developers/scrollable-widget- (Example)
http://code.google.com/p/scrollable-widget-for-hpp/
http://code.google.com/p/scrollable-widget-for-hpp/- (Example)
http://code.google.com/p/scrollablecontacts/


Bye,
http://code.google.com/p/scrollablecontacts/YuviDroid

On Sun, Dec 12, 2010 at 12:55 PM, KlausSK8 klausmagalh...@gmail.com wrote:

 Thanks for your answer String,

 I uploaded a video showing the home screen widget scrolling...
 So, how this widget allow scroll?
 The link for the video http://www.youtube.com/watch?v=x5AkebfVqsE
 It has much home screen widget scroll like that, contacts,
 appointment, messages, maybe it's just for HTC widgets... but I think
 if HTC widgets allows to scroll, I could too

 Thanks,
 Klaus

 On 11 dez, 04:06, String sterling.ud...@googlemail.com wrote:
  I'm pretty sure that it can't be done, sorry. All interaction with a
 widget gets pushed through a RemoteViews object, and the only event it
 supports is click.
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Help me about publish fee

2010-12-13 Thread YuviDroid
http://market.android.com/support/bin/answer.py?hl=enanswer=113468
http://market.android.com/support/bin/answer.py?hl=enanswer=113468
http://market.android.com/support/bin/answer.py?hl=enanswer=112622
http://market.android.com/support/bin/answer.py?hl=enanswer=112622

On Mon, Dec 13, 2010 at 11:20 AM, binh nguyen thanhbinh0...@gmail.comwrote:

 I want to develop on Android Applications, but I dont know publish fee
 (sign + test +...). Can anyone help me ?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Again Back button issue

2010-12-10 Thread YuviDroid
Mmmm...it looks like you are still starting a new activity each time an item
is deleted.
Don't call startActivity().

On Fri, Dec 10, 2010 at 10:11 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi all, I am developing one application in that I am reading data from
 database and display it in  list using SimpleCursorAdapter class. Last
 time when I had not used SimpleCursorAdapter class then that time list
 is not update instantly therefore this time I am using
 SimpleCursorAdapter.

 But this time is also there is new issue. If suppose there
 are 4 list item and suppose using contectMenu I show option to delete
 particular item from list. If i delete that item then list is updated
 succesfully, but if suppose I want to go back then I want to click on
 back button 2 times(instead of one). If I deleted 5 items then I have
 to click 6 times to go back.

   How to handle this problem?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Again Back button issue

2010-12-10 Thread YuviDroid
Ehmwhat's this: ?
startActivity(getIntent()); //Restarts activity for menu refresh


On Fri, Dec 10, 2010 at 10:24 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi, Yuvidroid no I had not called startActivity. Here is my code

 public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

try
{
System.out.println (Inside try);
//sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);
sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);
System.out.println (Inside try...);
Cursor c = sampleDB.rawQuery (SELECT _id,RoomName,
 SwitchFullName FROM SwitchTable ,null);
System.out.println (c.getCount()+);
startManagingCursor(c);

System.out.println (After startManagingCursor(c)));
String[] columns = new String[] {RoomName,
 SwitchFullName};

int[] names = new int[] {R.id.room, R.id.switch1};

myAdapter = new SimpleCursorAdapter(this,
 R.layout.roomswitchlist, c, columns,names);
setListAdapter(myAdapter);


}
catch (SQLiteException se )
{
Log.e(getClass().getSimpleName(), Could not create or Open
 the database);
}
finally
{
//sampleDB.close();
}

registerForContextMenu(getListView());
}

public void onCreateContextMenu(ContextMenu menu, View
 v,ContextMenuInfo menuInfo)
{
try
{
info = (AdapterView.AdapterContextMenuInfo) menuInfo;
}
catch (ClassCastException e)
{
e.printStackTrace();
}

long id = getListAdapter().getItemId(info.position);
Object obj = getListAdapter().getItem((int) id);
System.out.println (!!!@@@+obj.toString());
str = obj.toString();
System.out.println ($+str);
/*rName = str.substring(0,str.indexOf(-));
sName = str.substring(str.indexOf(-)+1);

test = true;*/

for (int i=0;imenuItems.length;i++)
{
  System.out.println (menuItems[i]);
}

  System.out.println ();
  for (int i = 0; imenuItems.length; i++)
  {
  menu.add(Menu.NONE, i, i, menuItems[i]);
  }

  cursor = (Cursor) myAdapter.getItem((int) id);
  //long phoneId =
 cursor.getLong(cursor.getColumnIndex(People.PRIMARY_PHONE_ID));
}

public boolean onContextItemSelected(MenuItem item)
{
AdapterView.AdapterContextMenuInfo info =
 (AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
int menuItemIndex = item.getItemId();

menuItemName = menuItems[menuItemIndex];
System.out.println (+menuItemName);

System.out.println (+menuItemName);

if (menuItemName.equalsIgnoreCase(Add Switch))
{
System.out.println (Inside Add Switch);

}

else if (menuItemName.equalsIgnoreCase(Remove Switch))
{
System.out.println (Inside Remove switch);

delRoomName =
 cursor.getString(cursor.getColumnIndex(RoomName)-1);
System.out.println (Delete Room  name
 +delRoomName);
delSwitchName =
 cursor.getString(cursor.getColumnIndex(SwitchFullName));
System.out.println (Delete Room  name and switch
 name
 are+delRoomName+:+delSwitchName);

AlertDialog.Builder alt_bld = new
 AlertDialog.Builder(this);
alt_bld.setMessage(Do you want to Delete +delSwitchName
 + ?)
.setCancelable(false)
.setPositiveButton(Yes, new
 DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Yes' Button
System.out.println (User click on Yes
 button);
deleteSwitchID(delRoomName,delSwitchName);
}
})

.setNegativeButton(No, new
 DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
//  Action for 'NO' Button
System.out.println (User click on No
 button

Re: [android-developers] Authorizing Purchase problem

2010-12-10 Thread YuviDroid
AFAIK, you can't buy your own appsto do so use a different phone (and
account..).

On Fri, Dec 10, 2010 at 2:55 PM, Pedro Duque pmdu...@gmail.com wrote:

 I just posted a application to Android Market: Live Gallery Gold. It's a
 paid live wallpaper that is using LVL to authenticate users.

 Now, when I try to buy my own application I get a server error at
 Authorizing Purchase. Is this normal? Can't I buy my own apps? Is it a
 problem related to LVL? I don't have any problem buying other
 applications...

 Please any suggestion will be welcome.

 Thank you,
 Pedro Duque

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Back button problem

2010-12-09 Thread YuviDroid
So...if you have 2 items in your listview and you delete one...and call your
method that reloads the list you get 3 items instead of 1?
Probably you just have to empty the list before re-adding the items that are
in the db.

On Thu, Dec 9, 2010 at 4:53 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hello , Now I had place the code that loads data from the database in
 a function and called that function when user hit the delete button .
 But now record gets deleted, but changes are not visible properly.
 (Properly means suppose there are 2 records and if I delete one record
 then at this time it shows me 3 records i.e 2 earlier and one after
 removing one record out of that 2 But actually one record gets
 successfully deleted. When I restarts the application and see the
 record then only one record it shows.)  Then how to refresh this list
 view screen?

 On Dec 8, 4:47 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  Also, don't do this:
 
  startActivity(getIntent());
 
  This launches a new activity just like the current one.
 
  If you need to keep the current activity and update the UI with new
  data, just put that code in a function and call it when necessary.
 
  -- Kostya
 
  08.12.2010 14:31, pramod.deore пишет:
 
 
 
   Thanks Kostya for your suggestion and link.
 
   On Dec 8, 4:27 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
   Pramod,
 
   Move the code that loads data from the database from onCreate to
 onStart.
 
   See this for an explanation:
 
  http://developer.android.com/guide/topics/fundamentals.html#actlife
 
   ( scroll down to see a very useful flowchart )
 
   -- Kostya
 
   08.12.2010 14:08, pramod.deore пишет:
 
   Hi everybody,
 In my application I am displaying list. I have created
   ContextMenu. In that there are options like add,remove,back,etc...
 Now when I select Remove option then  I call method
   deleteRecord(), which  delete that list record from database. After
   that I call method - startActivity(getIntent());  Because of this
   method activity restarts and list changes are instantly visible to
   user because in start method I had write code that display the list
   like.
   public void onCreate(Bundle savedInstanceState)
 {
 super.onCreate(savedInstanceState);
 try
 {
   sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
   MODE_PRIVATE, null);
   Cursor c = sampleDB.rawQuery (SELECT RoomName,
   SwitchFullName FROM SwitchTable ORDER BY RoomName,null);
   int count = c.getCount();
   System.out.println (Total number of records are+count);
   if (c != null )
   {
   if  (c.moveToFirst())
   {
   do
   {
   roomName =
 c.getString(c.getColumnIndex(RoomName));
   switchName =
   c.getString(c.getColumnIndex(SwitchFullName));
   System.out.println
 (roomName+:+switchName);
  
 results.add(roomName+-+switchName);
   }
   while (c.moveToNext());
   c.close();
   }
   }
   this.setListAdapter(new ArrayAdapterString(this,
   android.R.layout.simple_list_item_1,results));
 }
 catch (SQLiteException se )
 {
   Log.e(getClass().getSimpleName(), Could not create or
 Open
   the database);
 }
 finally
 {
   //sampleDB.close();
 }
 registerForContextMenu(getListView());
 }
   Now suppose I have list like this
   Hall - Fan
   Kitchen - AC
   Bedroom - tv
   and suppose I delete record no 1 then list display as following
   Kitchen - AC
   Bedroom - tv
   It looks perfectly well. But suppose I press the back button then
   list is again display as
   Hall - Fan
   Kitchen - AC
   Bedroom - tv
   Actually first record is deleted succesfully, but though also it is
   displayed when I press back button. How to avoid this problem?
   --
   Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com
 
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http

Re: [android-developers] Back button problem

2010-12-08 Thread YuviDroid
Can't you just refresh the listview instead of creating a new Activity?
If you instead really want to create a new one, before calling
startActivity() call finish(), so that pressing back will skip that old
list activity.

On Wed, Dec 8, 2010 at 12:08 PM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi everybody,

In my application I am displaying list. I have created
 ContextMenu. In that there are options like add,remove,back,etc...
Now when I select Remove option then  I call method
 deleteRecord(), which  delete that list record from database. After
 that I call method - startActivity(getIntent());  Because of this
 method activity restarts and list changes are instantly visible to
 user because in start method I had write code that display the list
 like.

 public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

try
{
sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);

Cursor c = sampleDB.rawQuery (SELECT RoomName,
 SwitchFullName FROM SwitchTable ORDER BY RoomName,null);

int count = c.getCount();
System.out.println (Total number of records are+count);
if (c != null )
{
if  (c.moveToFirst())
{
do
{
roomName =
 c.getString(c.getColumnIndex(RoomName));
switchName =
 c.getString(c.getColumnIndex(SwitchFullName));

System.out.println
 (roomName+:+switchName);

  results.add(roomName+-+switchName);

}
while (c.moveToNext());
c.close();
}
}

this.setListAdapter(new ArrayAdapterString(this,
 android.R.layout.simple_list_item_1,results));



}
catch (SQLiteException se )
{
Log.e(getClass().getSimpleName(), Could not create or Open
 the database);
}
finally
{
//sampleDB.close();
}

registerForContextMenu(getListView());
}


 Now suppose I have list like this

 Hall - Fan
 Kitchen - AC
 Bedroom - tv

 and suppose I delete record no 1 then list display as following

 Kitchen - AC
 Bedroom - tv

 It looks perfectly well. But suppose I press the back button then
 list is again display as

 Hall - Fan
 Kitchen - AC
 Bedroom - tv

 Actually first record is deleted succesfully, but though also it is
 displayed when I press back button. How to avoid this problem?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Widget is not removed after the application is uninstalled

2010-12-08 Thread YuviDroid
I've never seen an app-widget removed automatically from the
homescreen...although it would make sense to do that once the app containing
the widget is uninstalled.

On Wed, Dec 8, 2010 at 10:49 AM, String sterling.ud...@googlemail.comwrote:

 If it's not a bug, it's certainly the known behavior of the OS, and always
 has been. Froyo is a bit better at this than previous versions,
 although still far from 100%. It sometimes will remove appwidgets when the
 underlying app is uninstalled; I think it happens when the Launcher has
 focus, though I wouldn't swear to that.

 I don't immediately see a bug for this on b.android.com, so feel free to
 file one.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Free version to Paid version

2010-12-07 Thread YuviDroid
To maintain two versions of the app, I personally simply use a static
boolean RELEASE_DEMO, that I set to true when releasing the demo one.
It's just a little pain that you have to rename the packages, and eventually
some code if it references the package in some hard-coded way. But at least
I don't have two completely separate applications in which case I would have
to keep copying/pasting every fix/modification/feature/etc...


Yuvi

On Tue, Dec 7, 2010 at 3:50 AM, Brill Pappin br...@pappin.ca wrote:

 I've been thinking of trying that. It can only popup once to let the
 user know because it would be a real pain for them if it popped up
 every time the keyboard did :)

 However they would be able to click directly to download it or maybe
 tell it to remind them rather than just going away for ever.
 If you combine that with TreKing's idea of a button in the settings,
 and you have a pretty good chance that the user will know they have
 the option.

 I must say, I'm happy that the users will have a chance to try it free
 first, because its the kind of thing that there are many poor
 implementations of. Now I have to figure out how to maintain two
 versions of the app, as the library system seems to be very broken!

 - Brill Pappin

 On Dec 3, 5:52 pm, YuviDroid yuvidr...@gmail.com wrote:
  You could push an update to the free version, and then in its app
  description advertise the paid version. In this way users who will want
 to
  update their free-installed version will see the promo text in the
 market.
  (although they might use the Update all button and not see the new
  description...).
 
  I've never written an input-method, but if it's possible to show a dialog
  (or launch an activity) you could show a one time promotion of the paid
  version when your input method gets opened. Mmmdoes it make sense? :P
 
  Yuvi
 
 
 
 
 
 
 
 
 
  On Fri, Dec 3, 2010 at 11:12 PM, Brill Pappin br...@pappin.ca wrote:
   Actually, my question was not about a separate app, but more along the
   lines of how you tell the user they can upgrade. What ways work and
   are unobtrusive and what ways don't.
 
   - Brill Pappin
 
   On Dec 2, 5:46 pm, Leon Moreyn-Android Development
   lmor...@earthcam.com wrote:
pretty much thats the general method being used. One thing to
 consider
is unpublishing the app and releasing a paid version in its place.
 But
users may find that kinda a slap in the face. I would say do as your
doing, add features to the app and call it app Plus and charge money
for it. Remember though those feature need to be worth the price you
apply to the app though. What you can do is remove features in an
update to your free app and keep them in your paid version.
 
On Dec 2, 3:42 pm, Brill Pappin br...@pappin.ca wrote:
 
 I've got a situation a lot of us do, where I have released a free
 version and now need to make a Paid version of the same app.
 
 As those who have tried will know, you can't change an app from
 Free
 to Paid (a silly feature of the Market).
 
 So, what I'm planning to do is release a Plus version that has
 more
 features.
 
 What are others doing to help direct users to their paid versions
 from
 their Free versions?
 I'n my case its an input method, so I have to be careful about how
 I
 tell the user about the paid version with more features.
 
 Comments?
 
 - Brill Pappin
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to
  quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to 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

Re: [android-developers] Sending custom intents from application to service

2010-12-04 Thread YuviDroid
In your AndroidManifest.xml, under your receiver, you should also create an
intent-filter with your custom action. Then create an Intent using the
constructor Intent (String action) (by passing your custom action), and
send the broadcast.

I found here a simple example which might help:
http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-ii-intent-receivers/


Bye,
YuviDroid

On Sat, Dec 4, 2010 at 1:17 PM, Peter Webb r.peter.w...@gmail.com wrote:

 I have a wallpaper app on the market. I have almost finished a
 customisation application for it, which I want to sell. Because it is
 a wallpaper, I can't use a launch intent.

 I have now spent many days trying to simply pass a custom intent using
 BroadcastReceiver. I can't find a single example on the net of doing
 this between two different applications. In desperation I post my best
 guess as to what should work, although I have tried many permutations.
 Stepping through with the debugger and I find the sendBroadcast is
 executed but nothing is ever received.

 Any help on where I am wrong, or to some code that I can use as an
 example, may stop me going crazy:

 My sender has the following on a button click:

Intent intent = new Intent();
intent.setClassName(pack.name,
 pack.name.rtestactivity);
sendBroadcast(intent);

 My receiver has the following manifest:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=pack.name
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
 app_name
  activity android:name=.rtestactivity
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
receiver android:name=rtestactivity$AlarmReceiver/receiver
 /application

 /manifest

 and the following Java:

 package pack.name;
 import android.app.Activity;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;
 import android.widget.Toast;

 public class rtestactivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// set up a button to show mysemaphore value
final Button button = (Button) findViewById(R.id.Button01);
button.setOnClickListener(new OnClickListener()
{
public void onClick(View v) {
Toast.makeText(rtestactivity.this, mysemaphore,
 Toast.LENGTH_SHORT).show();
  }
  });

}

public static String mysemaphore =not received;

public static class AlarmReceiver extends BroadcastReceiver{
 @Override
public void onReceive(Context context, Intent intent){
{
mysemaphore = Received;
}

   }
 }
 }

 Always the same. Whatever I do, the receiver is not called - the
 debugger steps through the sendintent, but nothing seems to happen.

 I write in desperation.

 Thankyou for any help you can provide.


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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Free version to Paid version

2010-12-03 Thread YuviDroid
You could push an update to the free version, and then in its app
description advertise the paid version. In this way users who will want to
update their free-installed version will see the promo text in the market.
(although they might use the Update all button and not see the new
description...).

I've never written an input-method, but if it's possible to show a dialog
(or launch an activity) you could show a one time promotion of the paid
version when your input method gets opened. Mmmdoes it make sense? :P


Yuvi

On Fri, Dec 3, 2010 at 11:12 PM, Brill Pappin br...@pappin.ca wrote:

 Actually, my question was not about a separate app, but more along the
 lines of how you tell the user they can upgrade. What ways work and
 are unobtrusive and what ways don't.

 - Brill Pappin

 On Dec 2, 5:46 pm, Leon Moreyn-Android Development
 lmor...@earthcam.com wrote:
  pretty much thats the general method being used. One thing to consider
  is unpublishing the app and releasing a paid version in its place. But
  users may find that kinda a slap in the face. I would say do as your
  doing, add features to the app and call it app Plus and charge money
  for it. Remember though those feature need to be worth the price you
  apply to the app though. What you can do is remove features in an
  update to your free app and keep them in your paid version.
 
  On Dec 2, 3:42 pm, Brill Pappin br...@pappin.ca wrote:
 
 
 
   I've got a situation a lot of us do, where I have released a free
   version and now need to make a Paid version of the same app.
 
   As those who have tried will know, you can't change an app from Free
   to Paid (a silly feature of the Market).
 
   So, what I'm planning to do is release a Plus version that has more
   features.
 
   What are others doing to help direct users to their paid versions from
   their Free versions?
   I'n my case its an input method, so I have to be careful about how I
   tell the user about the paid version with more features.
 
   Comments?
 
   - Brill Pappin

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Galaxy Tab in debug mode on Win 7 x64

2010-11-21 Thread YuviDroid
Hey,

I just got my Galaxy Tab and tried to use it in debugging mode with Eclipse.
When I first connected it, the drivers were not found and nothing worked.
But I noticed that on the Tab itself it said something related to the
Samsung software Kiesso I went and downloaded/installed it. The
drivers were included in that package. Everything works fine now ;)

If it can help, the download link I used is:
http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=ITCttFileID=3229370CDCttType=SWModelType=NModelName=GT-P1000VPath=SW/201010/20101018093109250/Kies_1.5.3.10092_58_8.exe

Btw I'm also on Win 7 64-bit.

Bye,
Yuvi

On Thu, Nov 11, 2010 at 5:13 PM, fba chsoftwo...@gmail.com wrote:

 Hi all,

 I have a brand new Galaxy Tab that I am trying to use for some
 development.   However, the usual method of installing the ADB driver
 isn't working on my Win 7 x64 version.  (I have even tried the
 USBDeview method of deleting everything that looks like an Android
 device.)

 Has anyone out there gotten this to work?  If so, what did you have to
 do?

 Thanks!

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] What's a feature graphic supposed to contain? A list of features? Screenshots of features? (Why need screens then?)

2010-11-18 Thread YuviDroid
Mmmm...it's a misterynobody knowsGoogle?

On Thu, Nov 18, 2010 at 7:19 PM, niko20 nikolatesl...@yahoo.com wrote:

 So what exactly is a feature graphic...

 Thanks!

 -niko

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Changelog in Market!

2010-11-04 Thread YuviDroid
Yee! This is super cool! Now let's see what comes next...who knows...maybe
they'll add also a way to answer to user comments??? :D:D

On Wed, Nov 3, 2010 at 11:21 AM, String sterling.ud...@googlemail.comwrote:

 Got up this morning and went ahead with some planned releases to a
 couple of my apps. When I got into the app detail page on my Market
 Developer Console, I found a new section: Recent Changes! I pasted my
 changelog in, published my upgrade, and it's already appearing in the
 Market. Text in this box appears to just be appended to your
 description, under a heading of Recent changes:.

 More info from Google can be found here:
 http://market.android.com/support/bin/answer.py?answer=189724

 All I can say is, WOO HOO! It's about frackin' time!

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: color banding. can't get over it :(

2010-11-04 Thread YuviDroid
This might help:
http://stuffthathappens.com/blog/2010/06/04/android-color-banding/


YuviDroid

On Thu, Nov 4, 2010 at 9:33 AM, Hatch tomislav.hecimo...@gmail.com wrote:

 Great

 Your reply gives me hope :)

 But can you provide me with more information on how to do it ?

 I have a gradient alpha png.
 I just use it in imageView inside an XML resource.
 I don't set the dither option (although have tried both true and false
 options with same result)
 And I get the bands.

 Do I need to draw the image by hand, and which API must I use in that
 case ?

 Regards,

 Hatch


 On Nov 4, 1:19 am, Adam Hammer adamhamm...@gmail.com wrote:
  It get's banded because Android automatically decodes images based on
  your screen, and not based on the actual image. Why decode a 2048x2048
  image when it's showing on a 800x480 screen. This I assume is to save
  cpu cycles and speed up image decoding where it normally will not have
  a issue.
 
  When you are doing compositing though it does make a difference, and
  you need to be specific as to how you want the image decoded.
 
  Like I said before, you need to manually define your options to ensure
  it uses ARGB_ when decoding the image, disable dithering and
  scaling.
 
  Do this and you will no longer have banding.
 
  Adam
 
  On Nov 2, 1:01 am,Hatchtomislav.hecimo...@gmail.com wrote:
 
 
 
 
 
 
 
   Yes, Thank you for your replies.
 
   I have read the article but it doesn't explain why alpha enabled
   resource get's banded :(
 
   Is there a way to know exactly which RGB is used in the png ?
 
   BTW the dither option didn't work in the XML nor in the code.
 
   On Oct 30, 2:04 am, Lance Nanek lna...@gmail.com wrote:
 
I saw an interesting article on avoiding this the other day:
 http://android.nakatome.net/2010/04/bitmap-basics.html
 
On Oct 29, 7:01 pm,Hatchtomislav.hecimo...@gmail.com wrote:
 
 Seems my original post (ugly pngs...) somehow disappeared :(
 nvm.
 
 I have a problem with a png resource that has gradient fade-out
 alpha.
 
 The png looks great in the emulator, but displays an artefact known
 as
 color banding (http://en.wikipedia.org/wiki/Colour_banding)
 
 Has anyone surpassed this issue ?
 
 My designer wants to trop a shadow behind his icons, and that's
 where
 the bands appear.
 
 What are my options ?
 
 Thanks
 
Hatch
 
 BTW is there any way to see all my posts here on google groups ?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Is it able to customize soft keyboard?

2010-11-04 Thread YuviDroid
AFAIK, you cannot customize an existing soft keyboard...however you can
write your own.

On Thu, Nov 4, 2010 at 5:15 PM, Bo Huang huangbo...@gmail.com wrote:

 Hi all,

In my android application, I need number and letter  key in the same
 view, not need number and letter switch key.
for example let it looks like computer keyboard, Is it possible to do
 it?

 Bo

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Setting Widget Icon Image on Widget Load

2010-10-21 Thread YuviDroid
I'm not sure what's wrong with your code and I'm kind of guessing
here...but:

- onEnabled() is only called when the FIRST widget is created. So, if you
try to add a second widget to the homescreen this method will not be called.
Also, maybe, when onEnabled() is called the widget actually does not exist
yet? So your updateAppWidget() is probably doing nothing.

- try moving this piece of code to the onUpdate() method of your widget
provider (which is called whenever the widget requires an update).

- are you setting other RemoteViews objects in your onReceive() method?



Yuvi

On Sat, Oct 16, 2010 at 7:40 PM, Benaiah benaiahhe...@gmail.com wrote:

 I am writing my first application and am trying to get my widget to
 load a different image when it is added to the home screen based on
 the state of the notification volume.  It is detecting the
 notification state fine and the proper Toast messages appear when I
 add the widget, but I'm not getting any icon.  I just get an empty
 button.  I'm using the same code to change the icon in my onReceive()
 method to do other things and that works fine.  Is this the proper way
 to accomplish that?  Any suggestions as to what I'm doing wrong would
 be appreciated!


   @Override
public void onEnabled(Context context)
{
AudioManager aManager = (AudioManager)
 context.getSystemService(Context.AUDIO_SERVICE);

RemoteViews remoteViews = new
 RemoteViews(context.getPackageName(),
 R.layout.widget);


if
 (aManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION) ==
 0)
{
Toast.makeText(context, Off,
 Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button,
 R.drawable.off);
ComponentName cn = new ComponentName(context,
 SilenceWidget.class);

  AppWidgetManager.getInstance(context).updateAppWidget(cn,
 remoteViews);
}
else
{
Toast.makeText(context, On,
 Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button,
 R.drawable.on);
ComponentName cn = new ComponentName(context,
 SilenceWidget.class);

  AppWidgetManager.getInstance(context).updateAppWidget(cn,
 remoteViews);
}
}

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] what dialog to use for volume adjustment?

2010-10-16 Thread YuviDroid
The scrollable bar is called SeekBar (
http://developer.android.com/reference/android/widget/SeekBar.html).

It's pretty simple to use ;)


Yuvi

On Sat, Oct 16, 2010 at 1:43 PM, kevindroid kevin.wang...@gmail.com wrote:

 Hi,

 I am trying to adjust volume. But I am not sure what type of dialog
 that should be used.

 In phone settings, there are media volume, ringer volume settings
 which popup a dialog with a scrollable bar to adjust the volume, what
 type of dialog is that? Please help, I am googling so hard and still
 couldn't find out...

 Thanks

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] App without Launcher Icon

2010-10-13 Thread YuviDroid
If you just remove your main activity from the Manifest (or better, remove
the intent-filter) your app will simply not appear in the Launchers app
drawer.

So, remove this:
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter


Hope it helps,
Yuvi

-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net


On Wed, Oct 13, 2010 at 11:24 PM, Nathan critter...@crittermap.com wrote:

 This is probably obvious to the rest of you, but. . .

 Let's suppose I want to install an app that doesn't have a launcher
 icon. Maybe it contains content providers, or maybe it is a license
 key app that just needs to be present.

 What is the proper way to do that?

 If I don't have an application tag at all, that works, but I don't
 think that is the proper way, since provider and receiver are also
 inside application.


 I've tried this after first run,

//Remove this app from the Launcher
pkgMgr.setComponentEnabledSetting(
new ComponentName(PACKAGE_NAME,
 PACKAGE_NAME + .LicenseActivity),

 PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);

 But the user experience is *unacceptable*. Instead of being removed,
 the icon sticks around and says 'Application not installed' until they
 reboot their phone, or, more likely, go for the refund.

 Thanks.

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

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

Re: [android-developers] Re: Is Samsung Galaxy Tab NOT a large screen from application developer's point of view?

2010-10-12 Thread YuviDroid
Thanks for the link! :)

2010/10/12 dan raaka danra...@gmail.com

 For all the folks who were waiting for it ..
 http://innovator.samsungmobile.com/galaxyTab.do

 -Dan


 2010/10/6 Argon Konay haluk.tufe...@gmail.com

 Thanks a lot for your quick replies. I will generate an hardcoded demo
 specific to Galaxy Tab.

 Argon

 On Oct 6, 2:17 am, Dianne Hackborn hack...@android.com wrote:
  You are using a pre-production device.  Things may not work as intended.
 :}
 
  2010/10/5 Argon Konay haluk.tufe...@gmail.com
 
 
 
 
 
   This may be a repost:
 
   (getResources().getConfiguration().screenLayout 
   Configuration.SCREENLAYOUT_SIZE_LARGE) ==
   Configuration.SCREENLAYOUT_SIZE_LARGE returns false on my Samsung
   Galaxy Tab.
 
   Dan, have you tested your comment on an actual Galaxy Tab?
 
   Regards,
   Argon
 
   On 5 Ekim, 22:29, dan raaka danra...@gmail.com wrote:
GalaxyTab is a LARGE/HDPI device.
 
Having android:largeScreens=true in your manifest just makes sure
 that
   the
android market doesn't filter your app out of LARGE devices. Similar
arguments holds true for android:anyDensity=true
 
-Dan
 
On Tue, Oct 5, 2010 at 11:44 AM, Argon Konay 
 haluk.tufe...@gmail.com
   wrote:
 
 Hi,
 
 I have layout issues in my application on Samsung Galaxy Tab. It
 has a
 7 TFT display with 1024x600 resolution.
 
 Galaxy Tab prefers images in res/drawable-hdpi to the ones in
 res/
 drawable. That is understandable.
 However resources in res/layout are used instead of the ones in
 res/
 layout-large. Does it have a logical explanation? Or what am I
 doing
 wrong? What is a large screen for Android?
 
 Manifest contains
 supports-screens
  android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true /
 uses-sdk
  android:minSdkVersion=4
  android:targetSdkVersion=7 /
 
 Thanks in advance
 
 Argon
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubs­cr...@googlegroups.com
   android-developers%2bunsubs­cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en-Alıntıyıhttp://groups.google.com/group/android-developers?hl=en-Al%C4%B1nt%C4%B1y%C4%B1gizle
   -
 
- Alıntıyı göster -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%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.- Hide quoted text -
 
  - Show quoted text -

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


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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Adding Rate this application capability

2010-10-06 Thread YuviDroid
I think they simply use the market intent to start up the Market:

Intent intent = new Intent (Intent.ACTION_VIEW,
Uri.parse(market://details?id=com.yourpackage.app));
context.startActivity(intent);

On Wed, Oct 6, 2010 at 8:24 AM, Amit amitmishr...@gmail.com wrote:

 Hi All,

 I have seen few android applications in which there is a capability
 where they can give an option in the application itself to Grade this
 application.

 Clicking on this option opens the respective application's page in the
 android market where the user can put his rating.

 I wan to know how this is achieved. I also want to give this feature
 in my application.

 Thanks  Best Regards
 Amit

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Sound loop - with pause in between

2010-09-27 Thread YuviDroid
You could create an array with the stuff you want to play (probably holding
your various R.raw.x). Then keep a reference to the current playing file
(e.g. an index to the array), and when the onCompletion() method is called
switch to the next file, play it, and update the global reference.

By looking at the API I couldn't find a handy method to change the data
source to resource id (like the one in the create(Context context, int
resId) method). So, maybe you'll have to keep creating new MediaPlayer
instances. (if you do so, remember to call release() after a file has
finished playing).

On Mon, Sep 27, 2010 at 1:08 AM, svebee sven.kapud...@gmail.com wrote:

 Thank you, I solved it. But...how could I minimize this repetition
 (this is with depth = 3, but what with for ex. depth = 10)?

  mMediaPlayer.setOnCompletionListener(new
 OnCompletionListener(){
@Override
public void onCompletion(MediaPlayer
 arg0) {
sviraj(upper_left, up,
 upper_right, left, right, lower_left,
 down, lower_right, kombinacija_Array_String, 1);


  mMediaPlayer.setOnCompletionListener(new OnCompletionListener(){
@Override
public void
 onCompletion(MediaPlayer arg0)
 {

  sviraj(upper_left, up, upper_right, left, right, lower_left,
 down, lower_right, kombinacija_Array_String, 2);


  mMediaPlayer.setOnCompletionListener(new OnCompletionListener()
 {

  @Override

  public void onCompletion(MediaPlayer arg0)
 {

Context context = getApplicationContext();

CharSequence text = Please repeat.;

int duration = Toast.LENGTH_LONG;


Toast toast = Toast.makeText(context, text, duration);

toast.show();
}
});
}
});
}
});

 On Sep 26, 7:34 pm, YuviDroid yuvidr...@gmail.com wrote:
  Hi,
 
  I've never used the MediaPlayer API, but by reading the docs I see this
  method that might be interesting to you: setOnCompletionListener (
  MediaPlayer.OnCompletionListener
 http://developer.android.com/reference/android/media/MediaPlayer.OnCo...
   listener)
 
  probably you can simply add and implement this listener, and when the
 method
  gets called you know the current mp3 has finished playing, then you can
 play
  the next (or wait 1 sec and then play..).
 
  Hope it helps!
  Yuvi
 
 
 
  On Sun, Sep 26, 2010 at 4:59 PM, svebee sven.kapud...@gmail.com wrote:
   Hi,
 
   I have String Array with some strings in it [UP,L,R,R...] and I have
   some sounds (audio_up.mp3, audio_l.mp3 and so on). I want go through
   all the strings in the array and play sounds accordingly with pause in
   between (let's say 1 second).
 
   for (int a = 0; a  string_Array_String.length; a++) {
  MediaPlayer mp = null;
  if
   (string_Array_String[a].equals(UPL)) {
  mp =
   MediaPlayer.create(Game.this, R.raw.audio_upl);
  } else if
   (string_Array_String[a].equals(UP)) {
  mp =
   MediaPlayer.create(Game.this, R.raw.audio_up);
  }
 
  try {
  mp.prepare();
  } catch (IllegalStateException
 e) {
  // TODO Auto-generated
 catch
   block
  e.printStackTrace();
  } catch (IOException e) {
  // TODO Auto-generated
 catch
   block
  e.printStackTrace();
  }
 
  mp.start();
   }
 
   This is OK but loop is faster than sound fields so I get overlaping -
   not good.
 
   I tried to put
 
  try
  {
  Thread.sleep(1000);
  }
  catch(InterruptedException e)
  {
  e.printStackTrace();
  }
 
   on the end of the loop but only first and second audio file are OK,
   the rest are cut too soon

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

2010-09-26 Thread YuviDroid
The View gets updated only after your method is done executing. So, when you
call setImageResource() the view is not immediately updated. You should use
a separate thread for your for loop, and I can think of 2 options right now:

1. Use a Thread and a Handler to update the UI (
http://developer.android.com/guide/appendix/faq/commontasks.html#threading)

2. Use an AsyncTask (
http://developer.android.com/reference/android/os/AsyncTask.html)


Hope it helps,
YuviDroid

On Sun, Sep 26, 2010 at 10:29 AM, ArcDroid jacobrjohn...@gmail.com wrote:

 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
  the first pic, but will show the second after 5 seconds.
  Thanks
 
  //start with picture 1
  main.setImageResource(R.drawable.pic1);
 
  //after 5 seconds load another picture
  int pause = 5;
   while ( System.currentTimeMillis() = startTime + (pause * 1001)){
  if (System.currentTimeMillis() = startTime + (pause *
 1001)) {
  main.setImageResource(R.drawable.pic2);
 
  }}
 
  On Sep 26, 1:18 am, Kumar Bibek coomar@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 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 Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Sound loop - with pause in between

2010-09-26 Thread YuviDroid
Hi,

I've never used the MediaPlayer API, but by reading the docs I see this
method that might be interesting to you: setOnCompletionListener (
MediaPlayer.OnCompletionListenerhttp://developer.android.com/reference/android/media/MediaPlayer.OnCompletionListener.html
 listener)

probably you can simply add and implement this listener, and when the method
gets called you know the current mp3 has finished playing, then you can play
the next (or wait 1 sec and then play..).

Hope it helps!
Yuvi


On Sun, Sep 26, 2010 at 4:59 PM, svebee sven.kapud...@gmail.com wrote:

 Hi,

 I have String Array with some strings in it [UP,L,R,R...] and I have
 some sounds (audio_up.mp3, audio_l.mp3 and so on). I want go through
 all the strings in the array and play sounds accordingly with pause in
 between (let's say 1 second).

 for (int a = 0; a  string_Array_String.length; a++) {
MediaPlayer mp = null;
if
 (string_Array_String[a].equals(UPL)) {
mp =
 MediaPlayer.create(Game.this, R.raw.audio_upl);
} else if
 (string_Array_String[a].equals(UP)) {
mp =
 MediaPlayer.create(Game.this, R.raw.audio_up);
}

try {
mp.prepare();
} catch (IllegalStateException e) {
// TODO Auto-generated catch
 block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch
 block
e.printStackTrace();
}

mp.start();
 }

 This is OK but loop is faster than sound fields so I get overlaping -
 not good.

 I tried to put

try
{
Thread.sleep(1000);
}
catch(InterruptedException e)
{
e.printStackTrace();
}

 on the end of the loop but only first and second audio file are OK,
 the rest are cut too soon.

 Solution?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] My Application is not showing in Android Market.

2010-09-25 Thread YuviDroid
The HTC Wildfire is a QVGA phone, so you need to declare in your manifest
that your app supports such screens.
You'll need to add the supports-screens tag, see here for more details:
http://developer.android.com/guide/practices/screens_support.html


YuviDroid
http://developer.android.com/guide/practices/screens_support.html

On Fri, Sep 24, 2010 at 11:28 AM, rokson kiranrepa...@gmail.com wrote:

 Hi Friends,

 This is Rock, I unable to find my application in android market.I am
 using HTC wild fire hand set  to download application from market.

 My Hand Set supports android 2.1

 I searched for my application by name Vedic Maths in market it's
 saying that no such file found.

 My application has been shown in some non official sites like
 androidpit

 The fallowing is my manifest file..


 manifest
  xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.popcorn.namesays
  android:versionCode=2
  android:versionName=1.1
  uses-sdk android:minSdkVersion=2 /
  uses-permission android:name=android.permission.INTERNET/
  application android:icon=@drawable/icon
 android:label=@string/app_name
  activity
 android:name=.NameSays
  android:theme=@style/CustomDialogTheme
  android:label=@string/app_name
 intent-filter
 action
 android:name=android.intent.action.MAIN /
  category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
/activity

activity android:name=.DisplayText
  android:label=@string/actvityname
  android:theme=@style/Result_Background /

activity android:name=.CustomDialog /

 /application


 /manifest

 Can any body look into my problem?


 Thanks and Regards,

 Rock

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Using Eclipse - can it get faster?

2010-09-19 Thread YuviDroid
I hope you have 2 Ghz cpu, and not Mhz :P hehe

Anyway, to the OP, if you have a large project then the Build
Automatically feature of Eclipse might be quite frustrating sometimes
(since every time you save a file, the project is compiled). You might try
disabling it (by selecting Project -- Build Automatically). Then you
can build your project manually.

Hope it helps,
Yuvi

On Sun, Sep 19, 2010 at 2:04 PM, DanH danhi...@ieee.org wrote:

 Runs pretty well out of the box on my laptop -- 2MHz dual CPU with 4G
 RAM, running Vista.  Not lightning fast, mind you, but certainly not
 painfully slow (though emulator startup the very first time can be
 benchmarked with a calendar).  I'm guessing that having enough RAM is
 important.

 On Sep 19, 6:07 am, Neilz neilhorn...@gmail.com wrote:
  Hi all. I'm sure like many of you, I use Eclipse for my development.
 
  The problem with it is, I find it incredibly memory hungry... it often
  takes ages to load up, when I save a file it hangs for a while (saying
  Building workspace in the bottom right hand corner), and is just
  generally slow.
 
  I wondered if anyone had any tips for streamlining it for Android. I
  don't use it for anything else (if necessary, I will install a
  separate instance for general Java stuff) so I can't help thinking
  there are lots of modules and stuff I could get rid of which may help
  it run more smoothly.
 
  Anyone have some tips on this?

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] refresh menu icon image

2010-09-19 Thread YuviDroid
You can find that image in the android sdk folder, under
./platforms/android-XX/data/res/drawable-hdpi (or just drawable). Then look
for ic_menu_refresh.png.

In general you should use instead android.R.drawable.XX, but in this
case it seems that the refresh icon is not made public.


YuviDroid

On Sun, Sep 19, 2010 at 2:09 PM, dashman erjdri...@gmail.com wrote:


 where can i get it

 it's not here

 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] refresh menu icon image

2010-09-19 Thread YuviDroid
Ah ok, I didn't know that. I though it was a good idea so that with newer
versions of Android your images were automatically upgraded. Thanks for
the info!

On Sun, Sep 19, 2010 at 2:24 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Sep 19, 2010 at 8:22 AM, YuviDroid yuvidr...@gmail.com wrote:
  In general you should use instead android.R.drawable.XX, but in this
  case it seems that the refresh icon is not made public.

 Actually, Google has advised against this.

 OEMs can, and do, change these images. The result may clash with the
 rest of your images. If you want the image to remain consistent, you
 need to copy it into your own app.

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] setImageViewResource not working

2010-09-19 Thread YuviDroid
Ciao Simone,

probably it's stupid to ask this, but just to be sure: have you called
updateAppWidget() after setting the RemoteViews object? Like this:

appWidgetManager.updateAppWidget(appWidgetId, remoteViews);



Yuvi


On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com wrote:

 I have a simple widget (whose entire layout is just an ImageView) that
 starts and stops a service. From within the service, I'd like to
 switch the image displayed by such ImageView.
 So, i did this:

 public int onStartCommand(Intent intent, int flags, int startId){
RemoteViews remoteViews = new RemoteViews(getPackageName(),
 R.layout.main);
remoteViews.setImageViewResource(R.id.imgView, R.drawable.image1);

...
...

return START_STICKY;
 }

 and

 public void onDestroy(){
RemoteViews remoteViews = new RemoteViews(getPackageName(),
 R.layout.main);
remoteViews.setImageViewResource(R.id.imgView, R.drawable.off);

...
...
 }

 But it doesn't work.  onStartCommand and onDestroy are called, but the
 image doesn't change.
 What gives?
 Simone

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: setImageViewResource not working

2010-09-19 Thread YuviDroid
It depends on how you structured your widget. How are you starting the
service?

If you just need to update all of your widgets that are on the homescreen
you can get their ids with appWidgetManager.getAppWidgetIds().

On Sun, Sep 19, 2010 at 10:53 PM, Simone simone.russ...@gmail.com wrote:

 How can I retrieve the correct appWidgetId from inside the service?

 On 19 Set, 22:30, YuviDroid yuvidr...@gmail.com wrote:
  Ciao Simone,
 
  probably it's stupid to ask this, but just to be sure: have you called
  updateAppWidget() after setting the RemoteViews object? Like this:
 
  appWidgetManager.updateAppWidget(appWidgetId, remoteViews);
 
  Yuvi
 
 
 
  On Sun, Sep 19, 2010 at 4:57 PM, Simone simone.russ...@gmail.com
 wrote:
   I have a simple widget (whose entire layout is just an ImageView) that
   starts and stops a service. From within the service, I'd like to
   switch the image displayed by such ImageView.
   So, i did this:
 
   public int onStartCommand(Intent intent, int flags, int startId){
  RemoteViews remoteViews = new RemoteViews(getPackageName(),
   R.layout.main);
  remoteViews.setImageViewResource(R.id.imgView,
 R.drawable.image1);
 
  ...
  ...
 
  return START_STICKY;
   }
 
   and
 
   public void onDestroy(){
  RemoteViews remoteViews = new RemoteViews(getPackageName(),
   R.layout.main);
  remoteViews.setImageViewResource(R.id.imgView, R.drawable.off);
 
  ...
  ...
   }
 
   But it doesn't work.  onStartCommand and onDestroy are called, but the
   image doesn't change.
   What gives?
   Simone
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to
  quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Best method to save a array in Bundle?

2010-09-18 Thread YuviDroid
I haven't played with this, but if you make your class (myArrayType) implement
the Serializable interface it should work fine. Of course, all the instance
variables of that class must also be Serializable, otherwise you would still
get an exception (probably a NotSerializableException).

Hope it helps,
Yuvi

On Sat, Sep 18, 2010 at 12:46 PM, jlopeznava...@gmail.com 
jlopeznava...@gmail.com wrote:

 I have 2 dimensions array like this:
 public myArrayType[][] mObjArray;

 I want to save it in the onSaveInstanceState method, since my array
 contains lot of elements I dont want to save element by element but
 the whole array object, what is the best way?

 I tried this but exception is thrown:

 -

  public Bundle saveState(Bundle map) {

if (map != null) {
map.putSerializable(objLevel, (Serializable)
 mCurrentLevelMatrix);
}

return map;
}

 ---

 I have seen a putParcelableArrayList method but dunno how it works
 exactly.

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Customizing a RadioGroup

2010-09-17 Thread YuviDroid
Then try out what Mark suggested: set an empty text on the RadioButton, and
on its side put a WebView.
I haven't tried this myself, but it should be something like this:

LinearLayout orientation=horizontal ...
RadioButton

android:text=
...
 /

 WebView
...
 /
/LinearLayout

On Fri, Sep 17, 2010 at 11:26 AM, Neilz neilhorn...@gmail.com wrote:

 Unfortunately I'm using a lot of tags that, as far as I know, this
 won't support. The reason I'm using WebView is that I need javascript
 calls, links with OnClick() etc. I don't think that's supported by
 that method?

 On Sep 17, 9:39 am, Kumar Bibek coomar@gmail.com wrote:
  If you have a text that is HTML, you can set the text to a RadioButton
  like this.
 
  RadioButton.setText(Html.from(htmlString));
 
  Try this out, this should work.
 
  -Kumar Bibekhttp://techdroid.kbeanie.com
 

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] How can i access the /data/data/my_project_name/files/my_file.txt on a real android device

2010-09-17 Thread YuviDroid
You need a rooted phone to access that folder from DDMS. You can still
access your file through your application though.

On Fri, Sep 17, 2010 at 11:10 AM, Lidia lidyp...@yahoo.com wrote:

 Hello to all,

 I wrote a file o the phone from my application in the following path:
 /data/data/my_project_name/files/my_file.txt
 If i run the application in emulator, i can see my file created in
 this path.
 but if i run the application on a real device, i can't see this file.

 Using DDMS from the eclipse the data folder from the phone has
 permissions drwxrwx--x  - what does this mean?
  and when i try to expend the +data , it seems to be empty.

 I use the Astro programm to access the data folder from the phone,
 and it seems to be empty.

 Is the content hidden of this folder, and there is not a way to see
 what it contains?

 Thanks
 Lidia

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-09-14 Thread YuviDroid
I haven't tried it myself, but I believe so.

On Tue, Sep 14, 2010 at 12:47 AM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 If I set monthly,
 I will receive only one big payment with all transactions?

 On Sep 2, 11:51 am, YuviDroid yuvidr...@gmail.com wrote:
  Under Settings -- Financials you can at least Specify how often you'd
 like
  to receive payouts: Daily, Weekly, Biweekly, Monthly.
 
 
 
  On Sun, Aug 29, 2010 at 2:24 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   You cannot just add an account.  For security reasons, Google verifies
   that the account is yours by depositing a few cents.  I think what you
   are asking might be doable, if you are allowed to have no account
   linked, but it is sure a PITA.
 
   Persoanlly, I am not sure why Google is doing the daily deposit.  It
   would appear they could gain a few cents of interest by holding the
   money longer.
 
   On Aug 28, 3:52 pm, Brad Gies rbg...@gmail.com wrote:
Has anyone tried removing their bank account information and then
 when
the amount is high enough that you would like it deposited, adding it
back in just until you get the deposit? Or... maybe there is a way to
disable/renable the account without removing it, so you don't have to
set it up every time?
 
My apps are free so I don't have the problem, but it seems there
 should
be some way to do it.
 
Brad
 
On 28/08/2010 7:17 AM, Zsolt Vasvari wrote:
 
  
 http://checkout.google.com/support/sell/bin/answer.py?hl=enanswer=25400
 
 No, you get a single payment every work day.  If you don't like
 that
 schedule, because who wouldn't like 22 small deposits a month, you
 are
 out of luck.
 
 On Aug 28, 8:09 am, sblantipodiperini.dav...@dpsoftware.org
  wrote:
 no words.
 
 in this way getting the latest transactions from my ATM has no
 sense,
 I will have dozens of $2 on it and
 important payment will not be present.
 
 Congratulations google, as always ;)
 
 On Aug 27, 8:33 pm, TreKingtreking...@gmail.com  wrote:
 
 On Fri, Aug 27, 2010 at 12:34 PM, sblantipodi
 perini.dav...@dpsoftware.orgwrote:
 is there a way to set google checkout to pay us only after our
 balance surpassed a certain amount?
 I don't think so, at least I've not found a way from looking
 around.
 Checkout was really tacked on to Android and in no way designed
 to
   support
 small transactions for virtual goods.
 
  
 ---­
   --
 TreKinghttp://sites.google.com/site/rezmobileapps/treking  -
   Chicago
 transit tracking app for Android-powered devices- Hide quoted
 text -
 - Show quoted text -
 
--
Sincerely,
 
Brad Gies
   
 ---
Bistro Bot - Bistro
  
 Blurbhttp://bgies.comhttp://bistroblurb.comhttp://ihottonight.comhttp://
   forcethetruth.com
   
 ---
 
Everything in moderation, including abstinence
 
Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has -
 Margaret
   Mead- Hide quoted text -
 
- Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  YuviDroid
  Check out Launch-X http://android.yuvalsharon.net/launchx.php (a
 widget to
  quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to 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

Re: [android-developers] How to handle Home Key in our Activity

2010-09-10 Thread YuviDroid
lol :D

On Thu, Sep 9, 2010 at 8:58 PM, TreKing treking...@gmail.com wrote:

 On Wed, Sep 8, 2010 at 10:50 PM, AnnuDroid enigma.an...@gmail.com wrote:

 How to handle Home keyPlzz Help me out


 Plzz take two seconds to spell please correctly.


 I want the Answer.


 42.


 No one in this Blog has any idea how to handle it.


 This isn't a Blog ...


 PLUSMINUS where r u


 Try to the right side of the top row of your keyboard.


  plzzz plzz Help??


 plzzz plzz lurn 2 spell  may b ppl will take u serious lee.


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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Problem with icons of Menu items

2010-09-07 Thread YuviDroid
AFAIK,  in the More option the icons are never shown. You can see that
also in several apps (Google Map, the browser, etc.).

On Tue, Sep 7, 2010 at 8:19 AM, Shashidhar shashi.zep...@gmail.com wrote:

 Hi,
   I have a problem with showing icons for menu items. The items which
 appear when I click on menu button are having icons but When I click on
 More option in Menu, The newly shown menu items are not having any
 icons even though I have set the icons for these items in my xml.

 Thanks,
 Shashidhar

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] launching new instance --- Urgent help needed

2010-09-07 Thread YuviDroid
Or you can simply call finish() in your activity B. This will close activity
B and will bring back the old activity A.

On Tue, Sep 7, 2010 at 12:45 PM, Revathi K J Ramanan 
revathiramana...@gmail.com wrote:

 Hi,

 I have two activities.A and B.
 A starts B.Both are running in the screen and both are visible. Say
 now B is visible.

 On a special key press, I want to bring the A to the front and make it
 active.
 The problem I am facing is when the special key is pressed, another
 instance of A is launched and the new instance is brought to the
 front.

 But I want the original A to come to the front. I want to make this
 change in the framework layer rather than application specific by
 using the singleInstance theme in the launchMode in AndroidManifest
 file.

 Please help me in this regard as this is really urgent for me.
 Any inputs will be really valuable for me.

 Thanks in advance.

 Regards,
 Revathi K J Ramanan

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to 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

  1   2   >