[android-developers] Deploy XML to default storage on Android

2016-03-22 Thread Mikey
Hey

I have to deploy a XML-document to default storage on our MDM managed 
devices.

I'm only able to deploy APK's silent - is it possible to create an APK for 
this?

Best regards

Mikey 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c4f810eb-685d-4eca-b024-50ef7bab0399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Newly installed widgets are not runnable on Honeycomb

2013-06-23 Thread metal mikey
A reboot is not necessary (well, it's overkill) as all that is needed is a 
restart of the Launcher app. So force close the launcher app and the widget 
will show up. The problem is the Launcher app does not update the list of 
AppWidgets as often as it updates the list of Apps.

I asked Dianne Hackborn about this quirky behaviour at IO12, she indicated 
it was unknown behaviour and should be reported as a bug:
https://code.google.com/p/android/issues/detail?id=33971

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Newly installed widgets are not runnable on Honeycomb

2013-06-23 Thread metal mikey
PS: if you're an advocate for equal rights and opportunity for AppWidgets, 
please star this issue too:
https://code.google.com/p/android/issues/detail?id=33973

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Passing information between two Fragments (Map Fragment and List Fragment)

2012-08-29 Thread metal mikey
have a look at how I've passed data around in the example app that's part 
of android-tandemactivities library (it's largely based off inazaruk's 
method, but goes a bit further):

https://github.com/coreform/android-tandemactivities

Effectively you just need to bundle the data and pass it when you're 
setting up the nextFragment to move to.


On Saturday, June 30, 2012 1:38:11 PM UTC+10, EpsilonOrion wrote:

 I am looking for the best way to send information between a Map Fragment 
 and a List Fragment.  Half the screen is dedicated to a Map Fragment using 
 the TabHost method, while the other half is dedicated to a List Fragment.  
 The main activity creates the separate fragments which each have their own 
 Fragment and Activity classes.  My desire is to send an ArrayList of 
 waypoints created in my ItemizedOverlay class that is within the Map 
 Fragment to the List Fragment which will in turn display each waypoint.  
 From the List Fragment side, I desire to send the selected List item 
 (waypoint) back to the Map Fragment so I can then display a bubble giving 
 information on that waypoint.  More will be done, but this is one part of 
 my problem.

 I am sorry if familiar questions to this have been asked, but I have not 
 found one that details how to dig deep into a class such as ItemizedOverlay 
 and pass the information back and forth.  Some methods I have seen are 
 Intents and direct passing a pulling variables in each Fragment, but I am 
 unsure of the best way to handle this information sharing.  I have even 
 looked into the possibility of keeping a third fragment in the background 
 as I will at one time be sending these waypoints outside of this app to 
 another phone.

 Any help would be appreciated and I would be happy to give more 
 information if needed.


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

[android-developers] Re: MapFragment

2012-08-28 Thread metal mikey
I made a little library, mashing up the LocalActivityManager-based 
solutions for the MapFragment problem:

https://github.com/coreform/android-tandemactivities

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is there a maximum limit of apps a user can install in the phone?

2011-07-29 Thread Mikey
Hi,

i'm testing out the limits of android phones and i've installed about
1087 apps (including some system apps that is already there) in my
Galaxy S2 phone.

There's still quite a lot of space:

System ROM: 528MB (43.0MB free)
Internal: 2.11GB (711MB free)
SD: 12.3GB (10.0 GB free)
Ext. SD: 32GB (15GB free)

No matter how i configure or uninstall and install, i'm always stuck
at 1087 apps. I've tried uninstalling a really small app (less than a
M) and install a big app like 2-6M, it allows me to install. But once
i try to install another, it kept giving me Insufficient Storage
Available.

It seems like there is a hard limit on the number of apps one can
install on an android phone. Is this true?

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


[android-developers] Re: Resume for the post of Android Application Developer

2011-05-03 Thread metal mikey
[facepalm]

On May 4, 2:05 pm, tushar sahni tusharsahn...@gmail.com wrote:
 Respected Sir

 I am sending u my latest Resume for the post of Android Application
 Developer

 Regards
 Tushar Sahni

  Tushar_Sahni (1).doc
 85KViewDownload

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


[android-developers] Re: Could anyone tell me what i need to develop this app...?

2011-03-16 Thread metal mikey
Start off by not even touching your end-goal in terms of functionality
(i.e. don't make a Bus Schedule App)...

Rather, start off by making a Hello World App, and move up from there
until you are so comfortable with Android development that you don't
need to ask questions such as the one you asked on here.

Also, you'll probably want to follow a similar learning-curve for
SQL...which is a neat way to store (or handle) dataz and query the
dataz with parameterz. Alternatively you could use a flat-file
database technique and use other methods to search through the data.

Another option is to not quit your day job, save up some money, and
hire a professional to do the job for you.

On Mar 14, 2:41 am, Daichi Shimabukuro wefklem...@gmail.com wrote:
 Hello world here

 i would like to make an application for the local bus schedule but the
 problem is that i am a noob here

 i want to be knowledged through the development of this application

 can anyone suggest any books for learning how to handle datas and
 search them according to the parameter?

 i personaly think that this app can be built with
 html since the datas should cope with google map

 how can i intergrate the map data and the schedule for each bus
 number?

 thank you

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


[android-developers] Re: What more does my game need(space bike)

2011-03-15 Thread metal mikey
Crikey is trademarked by Australia ;P

Some quick feedback based on my 1 time play of about 3minutes (sorry,
am busy!) on a Huawei u8150:

- great that this is now available for small screens! gripe I'd use
a bigger screen but my N1 power button is FAIL so I'm using a much
better built phone that's 1/3rd the cost /gripe
- I agree that the ListView main menu is a bit nasty, but not the
worst problem.
- the Reverse, Stop, and Forward buttons are mostly offscreen (off the
bottom) and I could only tell what they are thanks to the white
writing above them that's displayed at the very beginning...although
those white sentences overlapping each other doesn't look neat. From
what I can see of the buttons, they're overlapping too.
- music would be great. Or at least, a nicer punctuation sound, the
white-noise shot sound is horrible!
- The futuristic font is nice for big headings, but hard to read for
smaller font sizes.

On Mar 15, 2:52 pm, brian purgert brianpurge...@gmail.com wrote:
 Lol spiral, your so set on crikey bikey, I had to google it just go see if
 it actually ment some thing...

 Treking thank you so much, it means alot to me and its really hard to think
 of improvements sometimes because I just am so used to my game. Ill start
 working on it asap and probably have it updated by this friday with alot of
 changes.
 Lol and you would have your phone plugged into your computer with the logcat
 open

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


[android-developers] Re: Steps to make screen reader

2011-03-14 Thread metal mikey
Your intent sounds super-duper dodgy.

If you keep starting heaps of threads asking the same question then
you're bound to get delivered the full source -- that's not true.


On Mar 14, 11:37 pm, ali abd elrahim allo...@gmail.com wrote:
 Hi;

  I need to make screen reader for android, and I need your help to
 figure out some steps for me to follow it to make this screen reader.
 for example: how to get text from screen? how to make the software
 work on background and to monitor the other applications? ...etc

 Thanks.

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


[android-developers] Re: Bluetooth killer availabled in Android ? - WiFi Direct

2011-03-14 Thread metal mikey
http://developer.qualcomm.com/dev/alljoyn-p2p/faq#faq3

On Mar 15, 8:49 am, Irfan Sheriff isher...@gmail.com wrote:
 Its in active development at this time. Nothing in the SDK for developers
 right now.

 Irfan

 On Sun, Mar 13, 2011 at 1:19 AM, KJ kevjon...@hotmail.com wrote:
  I haven't yet seen anything in the Android SDK relating to Wi-fi
  Direct...does anyone yet have any info on using this technology on the
  Android devices supporting wifi direct?  Or is this a technology
  reserved for the devices' built in apps and not something readily
  available to developers?

  On Feb 21, 7:32 am, Wil Lai wil.tf...@gmail.com wrote:
   I saw from web that there's a newly technology for nearby instant
   connection which is called WiFiDirect.
   After my research, I found that Wi-FiDirectis based on traditional
   Wi-Fi so that all the currently Wi-Fi supported products are available
   to connect to aWiFiDirectsupported host.
   To speak to words short, Wi-FiDirectis a bluetooth-like technology
   which provide a more stable, longer-distance and faster connection.

   And there are two android devices supporting Wi-FiDirectnow! One is
   LG optimus Black which I found a video demo on that:
 http://www.viddler.com/explore/engadget/videos/2313/

   What I saw in the video is that after setting up the Wi-Fidirectin
   each device, there's an app for the transmission of files/video/
   images.

   When I search for android SDK I found nothing about Wi-FIDirect(the
   closest one is WifiManager). So I just wonder does anybody know
   anything about Wi-FiDirectsdk/framework/open library on 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



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


[android-developers] Re: == How to Toast or Notify in response to ACTION_VIEW without showing my app ==

2011-03-14 Thread metal mikey
One idea:
Try using an intermediary Activity that is lightweight  completely
transparent, it handles the decision as to whether to show the Toast
message or instead of starting your App (seems your App is already
started, though, since you've created a QSB...).

On Mar 15, 11:32 am, ClarkBattle clarkbat...@gmail.com wrote:
 When a user clicks on a cached Quick Search Box shortcut it takes the
 user to an activity that they should not see if they are in airplane
 mode.  I would like to show them a toast or a notification from within
 the QSB, without showing my app.  The message will be You can not
 view this content while offline.

 If I simply show a toast from my QuickSearchActivity.onCreate(), then
 finish() it shows the toast over my app.  I want it to show the toast
 over the QSB.  Even if I put the finish() in the onResume() or put it
 in a postDelayed() it still shows the app.  Strange.  If it is
 possible to show a toast over the QSB in response to an item being
 clicked then how do you do it?

 If you cant show a toast over the QSB then a notification is
 acceptable.  However, I still need to NOT show my app (and not change
 its activity stack if it is running in the background).

 Basically I need my Activity to just notify the user through a toast
 or notification and stay in the background, never showing itself.
 How?

 Thanks

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


[android-developers] Re: drag and drop view in android?

2011-03-14 Thread metal mikey
That's great and all TreKing, don't see what Google has to do with any
of this though, and you can't expect the OP to read the results for
himself. Can you please provide an automated search of this mailing
list for 'drag and drop' and summarise, fast-immediately-now.

Thanks

On Mar 14, 11:48 pm, TreKing treking...@gmail.com wrote:
 On Mon, Mar 14, 2011 at 5:59 AM, Hitendrasinh Gohil 

 hitendra.virtuei...@gmail.com wrote:
  i  want reordering of the list row by drag and drop.
  means if i drag first row and drop at 5th position the view should
  be updated.

 http://tinyurl.com/6eqvtp9

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

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


[android-developers] Re: Emulator problem with GSM network

2011-03-09 Thread metal mikey
When this problem manifests, are you able to turn Airplane mode on
successfully and then off successfully?

I've often encountered a similar problem with 2.1 emulator, found that
by turning on Airplane mode and quickly closing emulator, sometimes
upon re-opening emulator it has not got Airplane mode selected (though
it should since I'd set it on), while other times it will be on...when
its on, I can then turn it off et voila GSM connectivity gets
established.

Interested to know if this dodgy workaround works in your cases!


On Mar 10, 2:45 am, Brian Smith unobri...@gmail.com wrote:
 I have recompiled with the above fix to turn off the legacy support
 option.  This has solved our issue.  What is the problem with
 accepting this change?  We definitely verified that this issue is more
 prevalent on our Quad Core boxes than Dual Core.

 Do you still need to support 1.0 or 1.1, especially as more
 development environments will become faster and running into this
 issue and fewer devices will need the 1.0/1.1 support?

 On Mar 8, 4:16 pm, Brian Smith unobri...@gmail.com wrote:

  Any movement on this?  I am experiencing this exact same problem using
  Android 2.2 SDK rel 10.  Setup is 64-bit quad core Ubuntu

  .recompiling Android with the above suggested fix now



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


[android-developers] Re: Mobile development, best computer configuration?

2011-03-09 Thread metal mikey
Perhaps a macbook with a seperate partition for a windows OS?

You'd be paying a high premium just to have that ability to develop
for iOS...so probably worthwhile making sure you really intend to do
it before getting that 2nd mortgage and bitting into the apple.

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


[android-developers] Re: Is SL4A a better tool to test android Applications

2011-02-28 Thread metal mikey
For functional testing you can also use HP QTP (QuickTest
Professional) in conjunction with plugins for it that allow testing on
real mobile hardware*, such as M-eux. There's also integrations
between Device Anywhere and HP QTP as well as IBM Rational Quality
Manager.

For application security testing, if you have the source code (or
perhaps even just the .apk) you can use HP Fortify 360.

*phone must be rooted.

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


[android-developers] Re: adding search option

2011-02-24 Thread metal mikey
You could hire a professional to do it.

On Feb 25, 2:59 pm, TreKing treking...@gmail.com wrote:
 On Thu, Feb 24, 2011 at 9:02 PM, nischal nischal.gm...@gmail.com wrote:
  i have successfully displayed google map in my android application.

  now i wish to add search box to that application

  so that user can enter any place in that box and map has to display
  that location

  how can i achieve this ?

  can anyone plz help me.

  if you have the code plz post it .

 Dude, 
 WTFhttp://groups.google.com/group/android-developers/browse_thread/threa...

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

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


[android-developers] Re: Using multiple layouts in one layout file, performance?

2011-02-23 Thread metal mikey
That comes at the cost of more Views, which will be eating up more
memory.

You could simply re-use the one popup View and change its content
per variant, rather than having a popup View per variant.

On Feb 24, 1:50 pm, brian purgert brianpurge...@gmail.com wrote:
 Right now i have a bunch of relativelayouts in one view, they are all pop up
 menus only used in certain levels and certain locations in my game, they are
 all set to (gone) and when i need them i set them to visible and then when a
 button is clicked they go back to gone.

 My question is, is this costing my performance, if so is there a better way
 to do 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2011-02-22 Thread metal mikey
Pretty sure I tried the setInt(whatevz,setAlpha,etc... technique
when adding optional transparent backgrounds to one of my AppWidgets -
didn't work. So I had to opt for making a copy of my base Layout for
each background version. Pretty nasty stuff as I've now got 4 versions
of base Layout to ammend should I need to ammend the base Layout :/
Whatever it takes, though!

On Feb 23, 9:50 am, 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


[android-developers] Re: How can i control room lights with my android phone :)

2011-02-22 Thread metal mikey
On Feb 22, 12:26 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Yet another possibility is to use the phone to push the light switch.

 Works best with devices covered with soft plastic (won't slip).

 For increased distance, one could tie the phone to a broom with a shoe lace.

 ;-)

 -- Kostya

Are you MacGuyver??

@OP: If you are asking a question at this level, you should certainly
NOT be messing around with mains electricity! So, you can safeyl
design, implement, test, debug the phone communicating with a
microcontroller/low-voltage-level-electronics to have a low-voltage-
level ON/OFF output that can control, say, a relay switch BUT stop
short of connecting to high voltage (i.e. mains electricity) - get a
qualified  certified electrician to handle connecting the relay
switch to mains electricity. This is a matter of life or death!

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


[android-developers] Re: animate part of the app widget

2011-02-22 Thread metal mikey
Refer to my posts on the following thread:

http://groups.google.com/group/android-developers/browse_frm/thread/ef1eb3ddfd40153a/f0c68dee4e18d9c0

On Feb 22, 9:06 pm, Zhihong GUO gzhh...@gmail.com wrote:
 Hi all,
 is it possible to animate part of an app widget? for example, there is a
 text string, an image, and a number in my widget, I want to animate the
 number or image in the widget, which is only part of whole widget on the
 home screen. does it possible on Honeycomb?

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


[android-developers] Re: Beta Tester Infrastructure Project

2011-02-22 Thread metal mikey
It would be super handy, but before I enter anything into that form
I'd like to be provided the option of 'not paying' and 'paying less
than $1'. You should add an option to the 'Would you pay' input for
'$0' and change (fix) the option for ' $1' to ' $1'

On Feb 23, 10:02 am, Open gro...@tenromans.com wrote:
 Over the course of the last year or so I created a beta tester
 infrastructure to help me test my new paid apps in the Android
 market.

 The infrastructure allows me to provision a list of beta users for an
 app and provides beta test codes for them to use.  I add a small jar
 to my project and a single line of code to launch the beta login
 activity.

 I'm trying to decide whether it makes sense for me to expand the
 infrastructure so that other developers can use it too.  If you're
 interested click through to a Google form I set up and leave your
 email address.

 P.S. I'm not a spammer, but feel free to leave a throwaway address if
 you're not convinced.

 http://bit.ly/hwXnNF

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


[android-developers] Re: How can i control room lights with my android phone :)

2011-02-20 Thread metal mikey
Here's one idea:

1) Install a lighting system that responds to hand claps.
2) Write an App that makes a loud hand-clap sound when you press a
button.

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


[android-developers] Re: Custom View question

2011-02-15 Thread Mikey
Any ideas anyone? I went to test at least the top left corner of the
campus image (where the bitmap's 0,0 lines up with the screen's 0,0,
i.e. before the image is panned or zoomed at all) while driving onto
campus this morning, then realized I stupidly put latitude in the
translate x and longitude in the translate y. So I'll test that later
tonight after I change it. But does anyone have any ideas as to the
real problem? which is that it appears I can only draw to the campus
and make it relative to the bitmap?

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


[android-developers] Custom View question

2011-02-14 Thread Mikey
Here's my problem. I finally figured out how to get my custom view
working, but discovered that canvas.drawCircle(..) draws based on
the screens dimensions and not the underlying bitmap (I may be
misusing some terms/concepts here, still a little iffy on the whole
custom view).

Basically, I have a bitmap of a map image, and I want to be able to
draw based on the bitmap's pixel dimensions, and to the bitmap if
possible, so that when it's panned/zoomed, it stays in its respective
place. Here is the code for my custom view. I x'd out my latitude and
longitude. The touch handling is code adapted from a Hello, Android
(3e) excerpt.

package mikey.gps.NAV;

import java.util.Vector;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.view.MotionEvent;
import android.view.View;

public class CustomView extends View {
private int mMode;
private double curLat, curLng;
public static final int MAP = 0;
public static final int NAV = 1;
private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
VectorLocationNode mPath = new VectorLocationNode();
Bitmap map;

//Geographical information for translating to pixels
private double XZero = xx;
private double YZero = yyy;
private double XWidth = 0.013884;
private double YWidth = 0.006934;
  //Image dimensions
private double IWidth = 1389;
private double IHeight = 971;


//Matrices for scaling the image
public Matrix matrix = new Matrix();
Matrix savedMatrix = new Matrix();

static final int NONE = 0;
static final int DRAG = 1;
static final int ZOOM = 2;
int mode = NONE;

  PointF start = new PointF();
PointF mid = new PointF();
float oldDist = 1f;

public CustomView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}

public CustomView(Context context, AttributeSet attrs, int defStyle)
{
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
}

public CustomView(Context context) {
super(context);
init();
}
private void init() {
map = BitmapFactory.decodeResource(getContext().getResources(),
R.drawable.campus);
//mPaint.setFilterBitmap(true);
matrix.setTranslate(1f, 1f);
invalidate();
}

/* When the view is invalidated, onDraw does different actions
 * depending on its mode. If it is the map display, it simply
 * draws a circle on the current location. If it is on navigate,
 * it draws a circle on the start and goal nodes, then lines to
 * form the path.
 *
 * (non-Javadoc)
 * @see android.view.View#onDraw(android.graphics.Canvas)
 */
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
canvas.drawBitmap(map, matrix, mPaint);
if(mMode == NAV) {
canvas.drawCircle(translateX(mPath.lastElement().lat),
translateY(mPath.lastElement().lng), 
10, mPaint);
canvas.drawCircle(translateX(mPath.firstElement().lat),
translateY(mPath.firstElement().lng), 
10, mPaint);
for(int i = 0; i  mPath.size()- 1; i++) {
LocationNode startNode = mPath.elementAt(i);
LocationNode stopNode = mPath.elementAt(i+1);
float startX = translateX(startNode.lat);
float startY = translateY(startNode.lng);
float stopX = translateX(stopNode.lat);
float stopY = translateY(stopNode.lng);
canvas.drawLine(startX, startY, stopX, stopY, 
mPaint);
}
}
else if (mMode == MAP) {
canvas.drawCircle(translateX(curLat),
translateY(curLng), 10, mPaint);
}
}

@Override
public boolean onTouchEvent(MotionEvent e) {
// TODO Auto-generated method stub
WrapMotionEvent event = WrapMotionEvent.wrap(e);
switch (event.getAction()  MotionEvent.ACTION_MASK) {
  case MotionEvent.ACTION_DOWN:
 

[android-developers] Re: Custom View question

2011-02-14 Thread Mikey
I mean the bitmap that I'm drawing into the canvas I suppose. In the
code I get the bitmap from a decodeResource(..) call, and then in the
onDraw I draw that bitmap into the canvas with the current matrix
(which is manipulated when the screen is touched). Are you only able
to draw to the campus? I need the dot to stay where it should be on
the bitmap. i.e. if your current location translates to pixel
coordinates(220, 660), I need it to draw the dot on the bitmap's
coordinate (220, 660), not the phone's screen coordinate (my phone has
resolution 480 x 854). So if I'm able to draw that dot onto the
bitmap, then I can just draw it onto the canvas without worrying about
the scale or if the dot is off screen etc.

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


[android-developers] Re: Upgrading from SDK 2.1 rev 1 to SDK 2.1 rev 2

2011-02-10 Thread metal mikey
Eclipse is locking the dir. Run 'SDK Manager.exe' standalone, do the
update, then open Eclipse and enjoy.

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


[android-developers] Re: Problem Loading Widget

2011-02-09 Thread metal mikey
You'll get that Error Layout (the one that says 'Problem Loading
Widget') if there's a problem loading a layout for your AppWidget.

There's various ways for this to manifest. It may be that the
requested Layout simply does not exist, or that the AppWidget is no
longer installed but the Launcher still holds RemoteViews for it (i.e.
they are now orphaned RemoteViews), or some other reasons.

Look more carefully at LogCat, there should be an indication as to why
the Error Layout is being displayed.

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-02-09 Thread metal mikey
So, summarising: just hold the phone near the window.

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


[android-developers] Re: How to connect mysql with android

2011-02-03 Thread metal mikey
Also be sure to check: http://tinyurl.com/yeto93c


On Feb 4, 10:03 am, TreKing treking...@gmail.com wrote:
 On Mon, Jan 31, 2011 at 10:18 PM, noorul nooru...@gmail.com wrote:
  Basic steps for connecting Mysql with Android sdk

 1 Step:http://tinyurl.com/5ufhqfs

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


[android-developers] Re: Emulator loses network connection issue

2011-02-01 Thread metal mikey
My 2.1 emulator never starts up with 3g connectivity working. To get
it working I have to turn Airoplane Mode on and then quickly close the
emulator, open again and typically see that 3g connectivity still not
working, so repeat several times until it finally works. PAINFUL!

Recently, though, while running soak tests (running an App in emulator
overnight or even for several days) I now see the emulator for 2.1 and
2.2 will lose connectivity after say 8-12hours. Only way to
reestablish connectivity is to kill the emulator and go through above
process again. Obviously that doesn't help with soak testing!

On Feb 2, 10:44 am, David Turner di...@android.com wrote:
 I have not been able to reproduce the issue. For the record, how exactly
 does the error occurs. I.e.:

 Does the emulated system think that it has no longer connectivity? I.e. no
 more 3G icon in the status bar, and the browser complains with a dialog if
 you try to use it.

 If not, what kind of error is reported by the browser when trying to access
 a site.

 If the problem limited to DNS or not (i.e. can the browser access a site by
 only using its IP address?)

 Can you connect to the emulator console with telnet localhost 5554 or even
 adb shell when this happens?

 Which exact platform are your running the emulator on?

 Thanks in advance

 On Mon, Jan 31, 2011 at 7:40 PM, H m...@howardb.com wrote:
  My desktop doesn't have wireless or any other network other than the one
  ethernet cable. I also run rrdtool on my pc so can confirm that the ethernet
  connection is constantly active and online. So although Varun's issue may
  have been triggered by the wireless swapping over, I think there is still a
  genuine underlying issue.

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

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


[android-developers] Re: Having issues with one type of phone.

2011-01-24 Thread metal mikey
On Jan 25, 9:26 am, darrinps darri...@gmail.com wrote:
 I have an app on the market. Everyone I have had try it (half dozen
 folks or so) likes the thing and it works well, but one type of
 Android based phone seems to have major issues with it.

 In specific, Droids!  The app plays Ogg Vorbis (ogg) sound files and
 displays a white screen at varying intensities (it's a night light
 app).
 Does anyone have a clue as to why Droids act differently than all
 others (I've hit a wide variety of other phones and they all work
 fine)?


You should at least describe the problem you encounter (in detail) on
Droids! (TM)


 Also as a side note, wouldn't it be GREAT if Google would have a bank
 of phones one could install their application on for testing? We could
 pay a nominal fee, sign up, do our testing, and then let the next one
 hit the phone farm.

 I really hate having bugs that customers have to discover that I don't
 have a good way to solve like this.

Like PerfectoMobile and DeviceAnywhere?

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


[android-developers] Re: Retrieve tweets from my twitter account

2011-01-17 Thread metal mikey
Yes its possible. Yes its easy. You can scrape it from the webpage or
use the API, the API method being the most efficient.

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


[android-developers] Re: Android shopping cart API/SDKs out there?

2011-01-17 Thread metal mikey
According to Google China's reps that featured at Google Australia's
Android Developer Lab a few months ago:

It is a breach of the Android Market's terms  conditions to procure
revenue outside of the Android Market.

I pointed out to them that people are already doing this, and so
saying its not to be done at the same time as doing nothing about it
puts obedient developers at a disadvantage.

I have a funny feeling that they may not be 100% correct, however,
since they also stated that (at the time) Australian developers could
now earn money via Android Market (however, at the time, a bug
remained whereby Google got the money but Australian developers could
not enter Australian bank account details into Marchant Checkout and
thus could not receive pay-outs...I also had to prove it to them for
them to believe)...so, would be great if someone from Google that is
more in-touch with what is really going on could verify the situation
regarding in-App payments!!!

On Jan 18, 3:05 pm, pawpaw17 georgefraz...@yahoo.com wrote:
 Guys,

 Interested in what people are using for shopping cart/credit card
 processing
 support for in-app product purchases. I'm having trouble scraping up
 good
 info on this - any advice would be greatly appreciated.

 Best,

 pawpaw17

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


[android-developers] Re: REQUEST

2011-01-16 Thread metal mikey
On Jan 15, 12:12 pm, TreKing treking...@gmail.com wrote:
 On Fri, Jan 7, 2011 at 2:21 AM, Harshit Agrawal 
 soft.ready@gmail.comwrote:

  Please send me the complete code

 HELLO SIR/MADAM

 Please do your own damn work.

 WITH REGARDS:
 TreKing Developer

LOL. Alternatively you could post on freelancer.com to have some poor
soul do hundreds of dollars worth of work for you for the audacious
price of $30!

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread metal mikey
Will this still work as the car approaches and quite potentially
breaches the speed of sound???

On Jan 15, 4:59 am, DanH danhi...@ieee.org wrote:
 It only takes one phone:  You have the phone generate a tone and
 detect the shifted tone off of whatever object reflects it, like
 radar.  ;)

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


[android-developers] Re: ListView onItemClick - I need something more than just the position of the click

2011-01-13 Thread metal mikey
On Jan 14, 10:17 am, Tobiah t...@tobiah.org wrote:
  I just stuffed a list of Id values in a String array and index that
 with the position parameter I'm getting.  It's not as pretty as I'd like, and 
 I'm keeping
 and extra list around that has to be updated when the ListView is updated, 
 but it works.

You might find Tags to be handy, you can store meta data for each View
in the List within the Views' tags.

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


[android-developers] Re: Making a file world writeable

2011-01-13 Thread metal mikey
 I have an app that is writing a file that I would like other apps to be able
 to access.

You can't achieve that. For good reason too..

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


[android-developers] Re: I ask for power off but get reboot instead sometimes

2011-01-12 Thread metal mikey
Yep, NexusOne is great an all but sucks on a few levels...you're lucky
you can even use your power button! (I can't, it failed on the day I
was attending the Google Developer Lab...coincidence?)

Anyways, this isn't a NexusOne support mailing list..this list is for
Android Developers.

On Jan 13, 10:15 am, TreKing treking...@gmail.com wrote:
 On Wed, Jan 12, 2011 at 4:01 PM, higonnet bthigon...@gmail.com wrote:
  I find this disconcerting at best, since the reason I'm powering the thing
  off is that it isn't behaving the way it usually does...

 http://www.htc.com/www/support/nexusone/

 I'm sending in my second replacement tonight. Nice phone but sure is
 brittle.

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

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


[android-developers] Re: I ask for power off but get reboot instead sometimes

2011-01-12 Thread metal mikey
@TreKing: I feel your paaain! As an early adopter/enthusiat residing
in Australia, I get the added pain of having had my NexusOne
personalised (so a replacement is not an option), HTC support based in
USA, taking calls only around USA business hours, and issuing FedEx
mailing instructions that are only valid for 7 days (hence I saw fit
to not even try to send it over before Christmas). Fun times :/

As for turning it on, there is the trick you can employ whereby you
hook USB power to your NexusOne and then trash the battery in and
out until the phone gets duped into powering on. Make sure to quickly
change your settings so the display doesn't sleep, because that power
button is also the only way to wake it up.

Given that the power button is a major failing point of the NexusOne,
I think it would be very, very nice of Google to provide an official
update for the NexusOne that allows an alternate means of waking the
phone up (i.e. via the trackball button), as then my phone could be
safely taken off life support (i.e. the usb power connection).

On Jan 13, 12:14 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jan 12, 2011 at 6:29 PM, metal mikey coref...@gmail.com wrote:
  you're lucky you can even use your power button! (I can't

 LOL, that's exactly my newest problem! Kinda hard to use the phone when it
 won't turn on.

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

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread metal mikey
You could use the phone's camera to take video of the car's
speedometer and use image analysis to determine what the speedometer
indicates the speed as. LOL :D

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


[android-developers] Re: What is the name of this widget?

2011-01-09 Thread metal mikey
Why not use something that provides the same results, yet with a more
intuitive user interface? i.e. DatePicker
http://developer.android.com/resources/tutorials/views/images/hello-datepicker.png
http://developer.android.com/resources/tutorials/views/hello-datepicker.html

On Jan 10, 8:03 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 9 January 2011 20:34, Kostya Vasilyev kmans...@gmail.com wrote:

  Someone wrote a component just like this for Android, and made it accessible
  - I believe it's somewhere up on Google Code, with sources.

  It's called something like iPhone style wheel.

 http://code.google.com/p/android-wheel/

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


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

2011-01-03 Thread metal mikey
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.comwrote:

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


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

2011-01-03 Thread metal mikey
Your tester will need to uninstall the current from-market instance of
your App then go to MENU  SETTINGS  APPLICATIONS  and check 'Unkown
sources' to allow the not-from-market install. Then upon opening (aka
clicking on) the .apk file attached to the email you sent, Android
will install the App.

On Jan 4, 12:23 pm, John Lussmyer johnlussm...@gmail.com wrote:
 Okay, email is fine - but how does an average end-user get the file onto
 their Android Device?
 That's what I was asking.

 On Mon, Jan 3, 2011 at 4:55 PM, 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

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


[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-23 Thread metal mikey
On Dec 8, 2:17 pm, Dianne Hackborn hack...@android.com wrote:
 You will be able to walk into Best Buy and buy one as soon as it comes out.

Google's Online Phone Store was GOOD! Bring it back, give it more
time, don't worry about useless journalists hanging shit on it (e.g.
saying its a flop)...it was REALLY, REALLY GOOD! Oh, and
mor countries (especially Australia)!

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


[android-developers] Re: problem with andrioid Tablet

2010-12-23 Thread metal mikey
P.I.C.N.I.C?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] about the market 15 minutes refund window

2010-12-20 Thread metal mikey
@Jiang: To solve your problem, first you need to make your own thread
and stop being so rude as to hijack pre-existing threads.
...2nd warning, facepalm

On Dec 21, 1:28 pm, Jiang webs...@yahoo.cn wrote:
 Since the 2 packages are developed by 2 teams, it is more simple to maintain
 souce code in embeded mode.

 --- 10年12月21日,周二, 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: about the market 15 minutes refund window

2010-12-20 Thread metal mikey
@TreKing: because the subject was changed, gmail lists it as a 2nd
conversation, however it remains bound to the same thread in Google
Groups because it continues to use the docid from the original thread
(that had its subject changed). Try emailing yourself an email with a
certain subject, then in gmail reply to that email but 'Edit Subject'
to something different...you'll see you'll get a seperate thread in
gmail.

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


[android-developers] Re: Cost effectiveness of JSON in Android

2010-12-20 Thread metal mikey
You'd likely sooner run into a bottleneck caused by the finite number
of DB connections allowed than you would run into a bottleneck in
performance of a webserver serving JSON.

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


[android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions

2010-12-19 Thread metal mikey
My solution was to take away the problem. Reworked things so I could
simply pull data over HTTP. No more headaches! A shame though, as I'd
put a lot of time into getting FTP working on most phones under most
versions of Android...but the different behaviours I was seeing across
makes/versions was disheartening and the cause of those headaches.

On Dec 12, 12:28 pm, Dianne Hackborn hack...@android.com wrote:
 Re the ANR -- you just need to make sure you keep your main thread
 responsive.  You don't know when the system may ask it to do something.  If
 you get an ANR, just look at the stack traces to see what the main thread
 was doing at that point, and fix whatever that is that is causing that.

 If you are getting these reports in Android Feedback, you will find the
 complete stack crawls there and should be able to determine fairly easily
 what is happening.

 If you are debugging on your own device or emulator, after an ANR happens
 you can pull the stack crawls with adb shell cat /data/anr/traces.txt



 On Sat, Dec 11, 2010 at 4:52 PM, metal mikey coref...@gmail.com wrote:
   Also to the original poster -- Service.setForeground() will basically
   guarantee that your process doesn't get killed for normal memory
  management.
    It will only be killed if it has crashed (either in Java, where you will
   see the crash in the log, or in native code, which is harder to debug),
  has
   extremely used a lot of memory to the point where nothing else can run,
  or
   has had an ANR.

If this is happening, you should be able to see it in LogCat, and you
  might
try moving your code into a background thread, as with an AsyncTask.

  I guess Zehon is failing for one of those reasons now under
  Gingerbread. I still can't be 100% sure whether my AppWidget was
  failing to download anything on GalaxyS for the same reason without
  debugging on an actual device (consistent killing of the Service at
  the point I see it killed in Gingerbread seems to be the best reason
  for GalaxyS users seeing data being used but never getting the full
  data update).
  Unfortunately LogCat only says something along the lines of:

     Stuff happening as expected.
     More stuff happening as expected.
     com.me.project.allmyhardwork has died.
     Scheduling restart of service com.me.project.allmyhardwork in
  5000ms.
     Restarted AppWidget as expected, lalala.
     More stuff happening as expected.

  I.e. there is no ANR stacktrace nor any other stacktrace, the service
  just dies (gets killed). That probably corroborates the idea of Zehon
  failing silently and causing my Service to get killed too...

  I'm now using URLConnection (which utilises FtpURLConnection) to pull
  via FTP instead of Zehon for Java. Massive speed improvement, but
  while Zehon was able to establish FTP connection and pull data under
  emulator and most devices (at least the ones I can test on),
  FtpURLConnection always fails to establish a connection under
  emulator :( I guess that's to do with the proxy that emulator is setup
  to use...?

  So the new way using FtpURLConnection is working on real devices (the
  ones I can test on at least), now ANRs have reared their ugly heads
  and seem to be my next big problem. The data pull process is handled
  within an AsyncTask spawned by the Service, when it finishes, though,
  it quite often (especially on my NexusOne(2.2.1/FRG83D)) yeilds an
  ANR...that has me scratching my head because I don't broadcast to the
  Service at that stage, rather I have an Alarm that broadcasts to the
  service every 2 minutes to either Churn the display or Update the data
  (if update period has expired). Could it be that broadcasts to Churn
  during the Update process are getting queued (they shouldn't, they
  usually yield a Toast message indicating an update is underway) and
  the ANR is only able to make itself known once the Update AsyncTask
  has completed?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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

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

[android-developers] Re: Multiple TextViews Inside a Button

2010-12-19 Thread metal mikey
Or you could just use a normal Button view with a whole bunch of
spaces seperating the right text from the left text.*

*pretty crude way about it, but if your font size won't change and the
button size won't change it could be the path of least resistance ;)

Also, regarding the  (right arrow) image within the LinkedIn example,
that can simple be incorporated into the background 9patch image,
rather than plonking an extra ImageView in the foreground.

On Dec 20, 4:18 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 It CAN be a button.  In my app I have made the bottom of the footer a
 button by placing a Button and a bunch of other controls inside a
 RelativeLayout overlapping each other.

 On Dec 20, 12:39 pm, Sarwar Erfan erfanonl...@gmail.com wrote:

  Hi,
  You missed one element. There is two text elements and one icon also in
  right side of the number of connections (see attached image):

  https://lh4.googleusercontent.com/_Wo4N90M9Gr0/TQ7ctWlInRI/AC...

  I can confirm its not a button. Create your own layout. Use a statelist as
  background. And, use 9 patch images in the statelist (if you want it to look
  good in both orientations).

  Put two TextView and one ImageView in the layout.

  --

  State list:  
  http://developer.android.com/guide/topics/resources/drawable-resource...

  9 Patch:    
  http://developer.android.com/guide/developing/tools/draw9patch.html

  Regards
  Sarwar Erfan

   linkedin_connections_layout.png
  5KViewDownload

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


[android-developers] Re: how to change child list color in ExpandableList

2010-12-16 Thread metal mikey
You shouldn't manually call getChildView method. The
ExpandableListView will do that when it needs to. You should focus on
ensuring that your implementation of getChildView makes sense,
currently it calls itself ad-infinitum (which doesn't make sense).
Then you're just left to manipulate the view as you need before
returning it from getChildView. Just take care not to spend/waste too
much time within getChildView method as Android won't be happy (ANR
thrown, if I recall correctly).

On Dec 17, 3:14 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Here my class in extends from ExpandableListActivity. therefore I have
 implemnts ExpandableListAdapter and override getChildView(int
 groupPosition, int childPosition, boolean isLastChild, View
 convertView, ViewGroup parent).

 But when I from where should I call this method and what parameter
 should I pass at the time of calling this method. My code is like:

 SQLiteDatabase sampleDB = null;
     String SAMPLE_DBNAME = NewHomeAutoDataBase;
         String ROOM_TABLE_NAME = RoomTable;
         String SWITCH_TABLE_NAME = SwitchTable;
         int idVal;

     private ExpandableListAdapter mAdapter;

     @Override
     public void onCreate(Bundle savedInstanceState)
     {
         super.onCreate(savedInstanceState);
         sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
 MODE_PRIVATE, null);

         Cursor groupCursor = sampleDB.rawQuery (SELECT _id,
 RoomName ,SwitchFullName FROM SwitchTable GROUP BY RoomName,null);
         System.out.println (###+groupCursor.getCount());
         System.out.println (_+groupCursor.getPosition());
         System.out.println (groupCursor.getColumnIndex(RoomName));
         groupCursor.getColumnIndexOrThrow(_id);

         // Set up our adapter
         mAdapter = new MyExpandableListAdapter(groupCursor,
                 this,
                 android.R.layout.simple_expandable_list_item_1,
                 android.R.layout.simple_expandable_list_item_2,
                 new String[] {RoomName}, // Name for group layouts
                 new int[] {android.R.id.text1},
                 new String[] {SwitchFullName}, // Number for child
 layouts
                 new int[] {android.R.id.text1});

         setListAdapter(mAdapter);

         System.out.println (
 %+getExpandableListAdapter().getGroupCount());
         System.out.println (::+this.getSelectedId());
         //getChildView();where should I call this and how parameter
 pass to this?

     }

     @Override
     public View  getChildView(int groupPosition, int childPosition,
 boolean isLastChild, View convertView, ViewGroup parent)
     {

         View v = getChildView(groupPosition, childPosition, isLastChild,
 convertView, parent);

         return v;

     }

     @Override
     public void onGroupExpand(int groupPosition)
     {
         System.out.println (Inside onGroupExpand);
                  // TODO Auto-generated method stub
                  super.onGroupExpand(groupPosition);
                  idVal = groupPosition;
                  System.out.println (``);
                 // System.out.println 
 (``+getString(groupPosition));

                  Toast.makeText(this, Group Clicked on pos = + 
 groupPosition,
 Toast.LENGTH_SHORT).show();

     }

     public class MyExpandableListAdapter extends
 SimpleCursorTreeAdapter
     {

         public MyExpandableListAdapter(Cursor cursor, Context context,
 int groupLayout,
                 int childLayout, String[] groupFrom, int[] groupTo,
 String[] childrenFrom,
                 int[] childrenTo){
             super(context, cursor, groupLayout, groupFrom, groupTo,
 childLayout, childrenFrom,
                     childrenTo);
         }

         @Override
         protected Cursor getChildrenCursor(Cursor groupCursor)
         {
                 System.out.println (Inside getChildrenCursor);
                 String roomname =
 groupCursor.getString(groupCursor.getColumnIndex(RoomName));
                 System.out.println (@@#...@#@#...@#+idVal);
             Cursor groupCursor1 = sampleDB.rawQuery (SELECT
 _id,SwitchFullName FROM SwitchTable where RoomName='+roomname
 +',null);

                 return groupCursor1;
         }

     }

 On Dec 17, 8:28 am, pramod.deore deore.pramo...@gmail.com wrote:

  TreKing, Thanks for quick response.

  On Dec 17, 8:11 am, TreKing treking...@gmail.com wrote:

   On Thu, Dec 16, 2010 at 9:00 PM, pramod.deore 
   deore.pramo...@gmail.comwrote:

TreKing, Thanks .Normally we do this by changing in xml file but here 
there
is no xml file. so how to do this.

   Oh, durf - didn't read closely enough.

   Well then, try overriding getChildeView and getGroupView, calling super to
   do the work, get the returned View, change the properties on it, then 
   return
   it.

   -
   TreKing 

[android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions

2010-12-11 Thread metal mikey
 Also to the original poster -- Service.setForeground() will basically
 guarantee that your process doesn't get killed for normal memory management.
  It will only be killed if it has crashed (either in Java, where you will
 see the crash in the log, or in native code, which is harder to debug), has
 extremely used a lot of memory to the point where nothing else can run, or
 has had an ANR.

  If this is happening, you should be able to see it in LogCat, and you might
  try moving your code into a background thread, as with an AsyncTask.

I guess Zehon is failing for one of those reasons now under
Gingerbread. I still can't be 100% sure whether my AppWidget was
failing to download anything on GalaxyS for the same reason without
debugging on an actual device (consistent killing of the Service at
the point I see it killed in Gingerbread seems to be the best reason
for GalaxyS users seeing data being used but never getting the full
data update).
Unfortunately LogCat only says something along the lines of:

Stuff happening as expected.
More stuff happening as expected.
com.me.project.allmyhardwork has died.
Scheduling restart of service com.me.project.allmyhardwork in
5000ms.
Restarted AppWidget as expected, lalala.
More stuff happening as expected.

I.e. there is no ANR stacktrace nor any other stacktrace, the service
just dies (gets killed). That probably corroborates the idea of Zehon
failing silently and causing my Service to get killed too...

I'm now using URLConnection (which utilises FtpURLConnection) to pull
via FTP instead of Zehon for Java. Massive speed improvement, but
while Zehon was able to establish FTP connection and pull data under
emulator and most devices (at least the ones I can test on),
FtpURLConnection always fails to establish a connection under
emulator :( I guess that's to do with the proxy that emulator is setup
to use...?

So the new way using FtpURLConnection is working on real devices (the
ones I can test on at least), now ANRs have reared their ugly heads
and seem to be my next big problem. The data pull process is handled
within an AsyncTask spawned by the Service, when it finishes, though,
it quite often (especially on my NexusOne(2.2.1/FRG83D)) yeilds an
ANR...that has me scratching my head because I don't broadcast to the
Service at that stage, rather I have an Alarm that broadcasts to the
service every 2 minutes to either Churn the display or Update the data
(if update period has expired). Could it be that broadcasts to Churn
during the Update process are getting queued (they shouldn't, they
usually yield a Toast message indicating an update is underway) and
the ANR is only able to make itself known once the Update AsyncTask
has completed?

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


[android-developers] Re: AppWidget's service killed under Gingerbread GalaxyS(2.1) but not killed under other phones/versions

2010-12-10 Thread metal mikey
Yeah, I used Service.startForeground() just in case the service was
being killed because it was in the background (and since this is an
AppWidget I guess my App isn't in the foreground, rather the
Launcher's App is in the foreground).

Am trying out ditching Zehon FTP for Java and using the native
URLConnection. unfortunately Android's implementation of
FtpURLConnection is hard-coded to guessContentTypeFromName(url) so it
doesn't want to download a text file that has an extension of,
say, .wtf...one of the reasons I wasn't using native URLConnection in
the first place.

I'm still interested to know/solve why my service gets killed when
using Zehon FTP for Java, but in the interest of meeting overall goals
of the AppWidget I'm now rejigging regexes to handle the FTP download
of an html file.

On Dec 11, 5:44 pm, TreKing treking...@gmail.com wrote:
 On Fri, Dec 10, 2010 at 8:45 PM, metal mikey coref...@gmail.com wrote:
  I've since tried running my service as a foreground thread but that didn't
  help.

 As a foreground thread you mean you had an ongoing notification in the
 notification area?

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

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


[android-developers] Re: Overlay to make parts of image clickable

2010-12-05 Thread metal mikey
Option 2 would be the best way, as TreKing described.
There exists a 3rd option: you could use an image-map within the HTML
of a WebView.

On Dec 6, 8:48 am, TreKing treking...@gmail.com wrote:
 On Sun, Dec 5, 2010 at 7:43 AM, bagelboy greg.do...@gmail.com wrote:
  Option 2 can be scaled easier however I'm not sure how to go about coding
  it.

 Idea: derive from ImageView a custom view that also includes a list of
 hotspots, which are just hit detection areas (squares or circles for
 simplicity). When you touch your view, you iterate over the list of hotspots
 looking for an intersection given the touch point.

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

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


[android-developers] Re: Custom Navigator app questions

2010-11-18 Thread Mikey
Sorry, I didn't mean to seem pushy or anything, I'm just under a lot
of pressure from my director to be making steady progress. I will look
into overlaying the google maps this weekend. Is this part of the
MapView structure?

As for the touch events on buildings, the whole point of this app is
that incoming students don't know where the buildings are. Schedules
are given that show the name and room number of the building. Thus, I
had created a ListView with all the names of all the buildings, and
was planning to have it route you to whatever building you chose. My
idea for routing was to create a location node for each building, each
crosswalk, everywhere the sidewalk splits or turns, etc. Then, when
you hit navigate, it would center you to your nearest node, and it
would know your goal node, and then it would be a find the shortest
path between nodes. The reason I was going to do it this way was so
that it would follow campus's sidewalks and walkways, which (correct
me if I'm wrong) Google Navigator doesn't see. Doesn't the walking
navigator only walk you along street sides?

I really appreciate the feedback! Thanks for the ideas, I'll certainly
mull them over when I hunker down with my laptop and droid this
weekend.

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


[android-developers] Custom Navigator app questions

2010-11-17 Thread Mikey
Here's a quick background on my situation. I'm a college student and
for my thesis project I've decided to develop a campus navigator app
to assist incoming students in getting acquainted with the campus.
This is a year long project so at this point I'm partially
troubleshooting and partially trying to find out if my ideas are going
to run me into walls later down the road.

So as not to have an overwhelmingly long post, I'll just ask about my
current issues for now. The app opens up and allows the user to select
Map or Navigate. I started working with map first because it
should be significantly simpler.

Current State:
The following currently works: hitting the map button displays a .png
of my campus's map (located at http://www.brockport.edu/about/maps/suny.html).
I've cropped the picture to only show the numbered buildings (i.e. the
oval track at the bottom, erie canal along the top, and blank spaces
on left/right near streets are all removed). The resulting image is
923x630.

Using the multi-touch pan/zoom code from Hello, Android! (3rd Edition)
(source code folder Touchv2 available at book's website), the map
display page allows the user to pinch zoom and pan the image. Here's
my first issue. With this implementation, the user is able to pan the
picture out of the screen or zoom out until it only takes up a pixel
or two. Is there any better implementation that will not allow the
user to pan beyond the borders of the image or zoom out past the image
size?

This feeds into my next issue, the Where I want to be part. Ideally,
I'd like the map display to use a location manager, and upon location
change, draw a circle where the user is standing. As far as projecting
latitude/longitude to pixel coordinates on the campus.png, that's just
math and I can figure that part out. My question is, since I'm using
an ImageView to put the png in, how can I draw on this? I've been
searching around all day and it appears that Canvas would be the ideal
way, since you can call drawCircle(x, y, radius, paint). However, I
was unable to find a way to correlate an ImageView to a Canvas and
back. On top of this, I need it to base these draws solely on
the .png's pixel coordinates, not the current display (since the image
may be panned or zoomed somewhere that would affect this).

I know it would be simple to just use Google Maps to implement this,
but if possible I'd strongly prefer to use the campus map, as it
clearly depicts all the walkways and buildings on the campus.

Any suggestions/help would be greatly appreciated. I just wanted to
ask early on so I don't make a fatal mistake and have to redesign it a
month before it's due. If you want to see any of my code, just let me
know.

-Mikey

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


[android-developers] Re: Custom Navigator app questions

2010-11-17 Thread Mikey
bump. would like to start working on this again but don't know what
direction to go!

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


[android-developers] Re: Run instructions at the end of six animations played together

2010-11-14 Thread metal mikey
Nothing much is impossible.

You seem to be overcomplicating your problems:

Problem 1: Calculating the result at the right time.
Solution 1: Define the random numbers for each state of each TextView
BEFORE you even start animating...benefit of that is you can calculate
the result BEFORE you even start animating. In doing so you have
affectively put Problem 1 out of existence. This is what Mark
suggested.

Problem 2: Knowing when the dies have finished animating.
Solution 2: If you're having trouble using an AnimationListener, why
not try a simpler approach whereby you use a state pattern for each
die and manually control the visual state of each die? Then you not
only know when the animation has finished, you also know when the
animation is at step 1, step 2, step 3, etc.

On Nov 15, 4:00 am, gontran geoffroydecorb...@gmail.com wrote:
 Ok, I get your point, but my problem is both displaying and
 calculating the result at the right time because in my game, you roll
 dices to get an asset of points, to attack another player... So
 depending on the state of the game, the instructions run after each
 rolls are not always the same. so after each roll, I have to display
 the sum and other informations depending on the state of the game and
 maybe changing the state (I use the state design pattern).

 For me, the best solution would be to make a single animation to
 animate the six dices, but correct me if I'm wrong, it's impossible to
 make each dice rotate on itself with a single animation.

 Anyway, thank you for your time.

 On 14 nov, 16:36, Mark Murphy mmur...@commonsware.com wrote:

  On Sun, Nov 14, 2010 at 10:25 AM, gontran geoffroydecorb...@gmail.com 
  wrote:
   Thank you Mark for your answer, but could-you be more specific please?
   What do you mean by pre-compute?

  Pre-compute = compute in advance.

  If I understand correctly, you have 30 random numbers (six dice, five
  state changes). You want the sum of the last six random numbers.

  Right now, you appear to be generating those random numbers on the
  fly. Rather than do that, compute them in advance. Then, you do not
  have to worry about wait that each animation has ended to calculate
  the sum of each roll, because you already know the values.

  Or, just pre-compute the last six random numbers (the ones you need to
  sum), so on your last state change, you go to the pre-computed value
  rather than generating another random number on the fly.

  If your problem is more about displaying the sum at the right time,
  more so than calculating it, just use a single AnimationListener on
  one of your dice. If they are all animating simultaneously, they will
  all end simultaneously, so just pick one and use that to time the
  display of your sum.

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

  Android 2.2 Programming 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


[android-developers] Re: Ajax cross domain requests

2010-11-14 Thread metal mikey
Use it for dDOS? That'a s little far-fetched...moonwhile, its CSRF
abuse that becomes the real problem here.

On Nov 14, 10:41 am, ff fabio.fo...@gmail.com wrote:
 On Nov 8, 8:32 pm, Frank Weiss fewe...@gmail.com wrote:

  Not sure if you're just complainig about the error handling. I suppose you
  know that JSONP does cross-domain and is supported by jQuery.ajax.

 Yep, the error handling is wrong and dangerous since the browser
 actually sends the request while it shouldn't (it becomes possible to
 use it for distributed dos attacks).

 And while jsonp is just an hack, CORS is the standard solutions
 implemented by all modern browsers...

 Bye,
 ff

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


[android-developers] Re: Product images for marketing materials

2010-11-14 Thread metal mikey
Just put a thick, black, round-cornered border around the image of
your App...will look like pretty much any Tablet/Pad then.
Or take a photo of a Galaxy Tab (from a demo model instore, perhaps).
I think you'll find that Android hardware manufacturers don't have an
'artwork license agreement' preinstated because they aren't as
tightarse as Apple.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can anyone recommend a good OpenGL ES book? Options

2010-11-02 Thread metal mikey
@Emre: do not hijack threads! Have a question? Then make your own
thread!

On Nov 3, 12:58 pm, TreKing treking...@gmail.com wrote:
 On Tue, Nov 2, 2010 at 7:06 PM, Emre A. Yavuz eayl...@hotmail.com wrote:

  Let's assume I'd like to pass a Context variable in my MainActivity to
  either Activity A or B.

 Why would you want to pass a Context variable to either of two instances of
 objects that themselves derive from Context?

  How should I do it, what is the most efficient approach ? Any suggestions ?

 Uh ... don't. Just use the Activity itself as the Context.

 Why do you think you need to pass a Context instance around?

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

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


[android-developers] Re: Saving Simplistic Android Widget Across Restarts

2010-10-28 Thread metal mikey
Yes we can see your thread!

FYI: when discussing AppWidgets, better to refer to them as AppWidgets
rather than widgets to avoid confusion ;) A widget is any UI element,
whether it is in an AppWidget or an App.

Concerning your problem: can you not simply apply the User-defined
background image ID to all instances of your AppWidget? If not, then
you need to put in place some means to link an AppWidget instance
(i.e. its ID) to its corresponding User-defined background. E.g. you
could also store the AppWidget ID in SharedPreferences. Also, from
what I've seen when you add a new AppWidget, its ID is the last one in
the array of AppWidget IDs - so you could get away with just applying
the User-defined background to the last AppWidget ID from the array.


On Oct 27, 5:52 am, Greg Mort gregm...@mortyg.com wrote:
 New to this, just want to make sure this is viewable to people... can
 someone at least tell me that?

 thanks



 On Tue, Oct 26, 2010 at 9:48 AM, Greg Mort gregm...@mortyg.com wrote:
  ?

  On Mon, Oct 25, 2010 at 9:17 PM, morty346 gregm...@mortyg.com wrote:

  I have a issue that I have been struggling with for some time and its
  becoming quite frustrating...

  I have an app that a user can modify the background image of a widget
  in a configure activity. Once they select what image they want I save
  a SharedPreferences file with the widgetsID and the value for the
  image... however in the onEnabled of the WidgetProvider I do not know
  the widget ID, so I can not do a look up of which image to use...
  Since there can be multiple instances of this widget I do not know
  which id goes with which onEnabled...

  any suggestions?- 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


[android-developers] Re: Catching button behavior

2010-10-21 Thread metal mikey
If you need to catch the ACTION_UP event, using a Button view is not
the best approach. Use an ImageView with a state-based drawable as the
background (as Kostya suggested), but you need to do your own
capturing of ACTION_DOWN and ACTION_UP. I've implemented this myself,
but I don't have the code handy so can't tell you how to get that
ACTION_UP...all I can say is: its possible :)

On Oct 22, 8:51 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Sure, there is a better way: use a button with a custom background, which
 should be a state-based drawable, pointing to individual images for various
 states: default, selected, disabled, etc...

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 22.10.2010 1:36 пользователь Bill C wtcogg...@gmail.com написал:

 I need to specify the full button images for both the up and down
 positions.  My impression is that the most probable choice is to use
 an custom button based on the ImageView and specify the image for up
 and down positions.  I am using the OnTouchEvent method to capture the
 ACTION_DOWN, but I'm not getting the ACTION_UP event.

 Is there a better choice for creating a button that controls the full
 button image, catches the Down/Up and can subdivide the down time into
 time slices?  If not, how do I catch the up event.

 My application expects a screen touch on the button and not a
 keyboard action.

 Thx,
 Bill

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: using JSON to retrieve .NET Web Service

2010-10-21 Thread metal mikey
What's this got to do with Android?

WebServices use SOAP, not JSON. You may have defined the response
format to be JSON, but I assume the request requires SOAP since it is
a WebService.

On Oct 21, 2:22 am, Jude jude.mo...@gmail.com wrote:
 Here is my .NET Web Service
 [WebMethod]
     [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
     public ArrayList GetAList()
     {
         ArrayList myList = new ArrayList();
         myList.Add(One);
         myList.Add(Two);
         myList.Add(Three);

         return myList;
     }

 myserver.com/webservice.asmx

 How would i call this using JSON?

 Ironically i know what to do with it after it has already been called
 using the JSONArray 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


[android-developers] Re: Looking for android dev (2-10 yrs) Bangalore

2010-10-21 Thread metal mikey
Asking for 10 years Android experience? DODGEY!
Send resumes to a gmail account? DODGEY!
Best salary in industry...in Bangalore? DODGEY!

On Oct 22, 9:51 am, William Ferguson william.ferguson...@gmail.com
wrote:
 I think he meant 2-10 years old.
 Ie somewhere between just out of nappies and no pubes yet.
 Child labour, its all the rage in IT these days.

 On Oct 22, 8:07 am, Kostya Vasilyev kmans...@gmail.com wrote:

  Is that 10 years of Android experience? :)

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  22.10.2010 1:32 пользователь Amit Bihari amit.peop...@gmail.com написал:

  Please send your resume at saswati.peop...@gmail.com

  Location : Bangalore
  Salary : Best in Industry

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 
  athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Is it possible to make the LED / trackball pulse while the screen is on ?

2010-10-21 Thread metal mikey
Its tied to the Notification feature, read up on that.

On Oct 19, 8:04 am, KeKeSeB keke...@gmail.com wrote:
 Hi,

 Is there a way I can make the LED or trackball pulse while my
 application is running and the screen is on ? The same behaviour as
 when a phonecall is received for instance ?

 Thanks

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


[android-developers] Re: Setting Widget Icon Image on Widget Load

2010-10-21 Thread metal mikey
A Button is not an ImageView.

Try using an ImageView instead of a Button.

On Oct 22, 8:14 am, YuviDroid yuvidr...@gmail.com wrote:
 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


[android-developers] Re: Listview not supporting if list extends screen size

2010-10-20 Thread metal mikey
So read the ADB logs and work out why its crashing...post that
information here if its not entirely obvious why your App is crashing.

On Oct 21, 1:50 am, saikiran n saikiran@gmail.com wrote:
 Hi,
 I created a list view in an activity and the list shows some fields.
 When we click a list item a custom dialog should pop up and the user can
 enter some new value to this field.
 The custom dialog contains one edit text and two buttons ok and cancel.
 It is working fine. But when my list is more that means if it exceeds screen
 size it is showing scroll.
 But when we select bottom items which we can select using scroll the dialog
 is appearing in normal fashion. But after entering new value if i am trying
 to save the application is getting crashed.

 Thanks,
 saikiran

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


[android-developers] Re: performance woes

2010-10-20 Thread metal mikey
Guys, I think this is simply a symptom of Samsung's total stuff-up of
the Galaxy S...haven't you heard about and used at least one of the
many fixes for the stalling/lagging issue???
http://techie-buzz.com/featured/fix-samsung-galaxy-s-stalling-issue.html

A terribly big, bad, and dark storm cloud of shame hangs over Samsung
for that issue + the GPS issue. They've left fixing the stalling/
lagging issue to (what one can only assume to be more capable)
developers in the community rather than addressing it themselves golf
claps

While for the GPS issue, it looks like they're addressing it
themselves (fix your own mistakes FTW!):
http://ausdroid.net/2010/08/14/samsung-preparing-a-gps-fix-for-galaxy-s/
Mind you, I don't think the GPS fix has been released, lol.

So, lessons here are: don't confuse a manufacturer's stuff-up for a
problem with Android itself ;) In fact, don't make conclusions about
Android based on a single phone from a single manufacturer! And don't
buy Samsung products in future until its well and truely proven that
they didn't stuff-up the software royally.



On Oct 21, 11:53 am, DanH danhi...@ieee.org wrote:
 It's theoretically possible that the phone is using your CPU to
 assist the signal processor in separating signal from noise.  As the
 signal gets weaker and weaker this would increase the load on the CPU,
 and the phone is obviously going to give priority to signal processing
 over UI stuff.

 I don't know how modern phones are partitioned -- I assume that most
 of the radio work is handed over to a dedicated signal processor, but
 I can see that, to cost reduce the unit and cut it's size/weight/
 power, mfgrs would tend to use the UI CPU for some signal processor
 management functions.

 On Oct 20, 4:29 pm, Kostya Vasilyev kmans...@gmail.com wrote:

  My Samsung Galaxy S also exhibits stuttering issues, launching applications
  often takes a few seconds. This happens with core phone apps, too, so
  reading an sms or making a phone call can sometimes be quite painful.

  On the other hand, my Motorola Milestone is always really snappy and is a
  joy to use.

  I think the difference has to do with Samsung's UI customizations, like the
  pageable application list, etc.

  The Milestone doesn't have those, running Android without enhancements of
  this kind.

  So my conclusion is - Android is pretty good, but phone makers can, and
  sometimes do, make it worse (or better, if you look at HTC, although not
  everyone likes their custom Sense UI either).

  Samsung is about to release an update to 2.2 for the Galaxy S, perhaps this
  will fix the stuttering issue. I'd advise you to wait for this update before
  making a final decision, and keep in mind that Android is not equally good
  (or bad) on every phone.

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  21.10.2010 1:06 пользователь richie rich rich.al...@gmail.com написал:

  I have a Samsung Galaxy S. I'm a happy android developer, with a few
  marketplace apps. Hence, my frustration that overall, my experience
  with Getting the Galaxy S (after my G1) has been pretty fraught with
  performance sluggishness of the phone/overall OS.

  I find when the cel phone signal strength is anything less than 3
  bars, the phone is basically unusable. Want to look up a contact,
  press, and wait 10 seconds for anything. Open and App? Go grab a
  coffee.

  I thought it was something that would get better, but it has gotten
  worse.

  Overall, are people generally impressed with Android performance?
  After a year as an Android user, I'm thinknig of going back to the
  iPhone world. I never waited as long for apps to start/respond as I am
  now and wonder, if this something Froyo would fix?

  Are there settings to help?

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

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


[android-developers] Re: Interface Design Question

2010-10-20 Thread metal mikey
Your interface requirements are quite specific, and thus likely to be
unique, so expecting people to have already implemented the interface
and simply pass you their solution is probably expecting too much.

For lack of being told exactly what to do...If you have ideas, try
them! Whether they work or fail, you'll learn something...

To help you along, though, I suggest a solution involving layout
animation on ImageViews...layout animations that get triggered by
interaction with a single ScrollView.

On Oct 21, 2:44 pm, argon gold argongol...@gmail.com wrote:
 Hi,

 I have uploaded the interface picture that I'd like to design and check it a
 link give below

 http://www.flickr.com/photos/55033...@n06/5100859925/

 I am considering to implement it with layout animation by modifying scroll
 views .
 Give me your suggestion  based on your experience to design this type of
 interface.

 Looking forward for your suggestion,

 argongold

 On Thu, Oct 21, 2010 at 10:37 AM, argon gold argongol...@gmail.com wrote:
  Any one have suggestion on this ?

  On Tue, Oct 19, 2010 at 9:31 AM, argon gold argongol...@gmail.com wrote:

  Hello,

  I'd like to get your suggestion for best option to implement the following
  interface on android 2.2.

  1. Folders (or folder windows displayed as pictures) are assembled or
  places as a deck of cards on screen.
  2. when using a touch (scroll up motion) each folder windows move up
  (scroll up) at a tilted angle and gradually it gets straighten in vertical
  direction when reaches at the center . The other folder windows are linked
  as a chain so if you scroll up again the next folder window will take the
  center position and so on until the last one. This can be scroll up or 
  down.

  Apparently, it seem it can be done with GridView or Gallery Widget to
  start  instead working for new widget. if you have experience doing such
  interface , suggest me for better option?

  Thanks in advance for your suggestions

  Regards,
  argongold

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


[android-developers] Re: Interface Design Question

2010-10-20 Thread metal mikey
Sorry, didn't mean to suggest using a ScrollView, rather:

I suggest a solution involving layout animation on ImageViews...layout
animations that get triggered by interaction with a single
GestureOverlayView.

PS: I've seen a similar interface on promo material for Motorola
Flipout, so I guess a Motorola AppWidget has implemented something
similar to your interface.

On Oct 21, 3:55 pm, metal mikey coref...@gmail.com wrote:
 Your interface requirements are quite specific, and thus likely to be
 unique, so expecting people to have already implemented the interface
 and simply pass you their solution is probably expecting too much.

 For lack of being told exactly what to do...If you have ideas, try
 them! Whether they work or fail, you'll learn something...

 To help you along, though, I suggest a solution involving layout
 animation on ImageViews...layout animations that get triggered by
 interaction with a single ScrollView.

 On Oct 21, 2:44 pm, argon gold argongol...@gmail.com wrote:

  Hi,

  I have uploaded the interface picture that I'd like to design and check it a
  link give below

 http://www.flickr.com/photos/55033...@n06/5100859925/

  I am considering to implement it with layout animation by modifying scroll
  views .
  Give me your suggestion  based on your experience to design this type of
  interface.

  Looking forward for your suggestion,

  argongold

  On Thu, Oct 21, 2010 at 10:37 AM, argon gold argongol...@gmail.com wrote:
   Any one have suggestion on this ?

   On Tue, Oct 19, 2010 at 9:31 AM, argon gold argongol...@gmail.com wrote:

   Hello,

   I'd like to get your suggestion for best option to implement the 
   following
   interface on android 2.2.

   1. Folders (or folder windows displayed as pictures) are assembled or
   places as a deck of cards on screen.
   2. when using a touch (scroll up motion) each folder windows move up
   (scroll up) at a tilted angle and gradually it gets straighten in 
   vertical
   direction when reaches at the center . The other folder windows are 
   linked
   as a chain so if you scroll up again the next folder window will take the
   center position and so on until the last one. This can be scroll up or 
   down.

   Apparently, it seem it can be done with GridView or Gallery Widget to
   start  instead working for new widget. if you have experience doing such
   interface , suggest me for better option?

   Thanks in advance for your suggestions

   Regards,
   argongold

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


[android-developers] Re: strike through text in widget

2010-10-19 Thread metal mikey
From what I know, its not possible. You'd have to try something like
placing a line (in, say, an ImageView) on top of the TextView. That
shouldn't be a problem if the text in your TextView is static, but
would be quite tricky otherwise!

On Oct 19, 4:41 pm, Guru gurudut...@gmail.com wrote:
 Is it possible to have strike through text in widget?
 the setFlags method is not available in the RemoteViews method?Is there any
 other way to accomplish this?

 This was the only link which i found on strike through textView.

 http://fupeg.blogspot.com/2010/01/strikethrough-android.html

 Thanks

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


[android-developers] Re: TextView visibility problem

2010-10-19 Thread metal mikey
It might be because the TextView is positioned offscreen. Try putting
it prior to the RelativeLayout, if you can see it then then it's
likely the RelativeLayout is pushing it offscreen when the TextView
is placed after the RelativeLayout.

On Oct 20, 10:07 am, sisko adeod...@gmail.com wrote:
 The following code is causing me problems as the last view, the
 TextView, does not display :

 LinearLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:id=@+id/LinearLayout01
         android:background=@drawable/bkgrnd
 android:layout_height=fill_parent
 android:layout_width=fill_parent
         RelativeLayout
                 android:id=@+id/RelativeLayout01
                 android:layout_width=wrap_content
 android:layout_height=wrap_content
                         ImageView
                                 android:id=@+id/ImageView01
                                 android:layout_width=wrap_content
                                 android:layout_height=wrap_content
                                 android:background=@drawable/quizicon
                                 android:layout_alignParentLeft=true
                                 android:layout_alignParentTop=true
                         /ImageView
                         TextView
                                 android:id=@+id/TextView01
                                 android:layout_width=wrap_content
                                 android:layout_height=wrap_content
                                 android:text=@string/help
                                 android:layout_alignParentTop=true
                                 android:layout_centerHorizontal=true
                                 android:textSize=@dimen/menuxmlTitleSize
                                 android:textColor=@color/menuxmlTitleColor
                         /TextView
                         ImageView
                                 android:id=@+id/ImageView02
                                 android:layout_width=wrap_content
                                 android:layout_height=wrap_content
                                 android:background=@drawable/quizicon
                                 android:layout_alignParentRight=true
                                 android:layout_alignParentTop=true
                         /ImageView

 /RelativeLayout
 TextView
         android:text=@+id/TextView02
         android:id=@+id/TextView_HelpText
         android:layout_width=fill_parent
         android:layout_height=wrap_content
 /TextView

 /LinearLayout

 Can anyone offer suggestions as to why the TextView does not showup in
 the present format?
 Also, please suggest good online resourse(s) that can help me learn
 good Android XML layout techniques, please.

 Thanks :-)

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


[android-developers] Re: Hierarchical list widget

2010-10-13 Thread metal mikey
Can't you simply use an ExpandableListView at the top level with
ExpandableListViews as children?

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


[android-developers] Re: Hierarchical list widget

2010-10-13 Thread metal mikey
Ah, I've not encountered such a situation yet. I see some talk on the
following thread that's similar to your problem:
http://www.anddev.org/view-layout-resource-problems-f27/multiple-expanablelistviews-and-scrollview-t4971.html
Someone there suggests disabling scolling on the nested ListViews
(which I was about to suggest to you), but then says that didn't
really help. I'm interested to know more about the UX behaviour under
those conditions - can you elaborate?

On Oct 14, 10:35 am, Bret Foreman bret.fore...@gmail.com wrote:
 Except that all ListViews are scrollable and it's well known that
 scrollables inside scrollables is buggy.

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


[android-developers] Re: How to develop a android app store

2010-10-12 Thread metal mikey
Here's some suggestions (I used my imagination):

1) Employ tens of thousands of monkeys to do random stuff, eventually
they may serve the correct .apk file to a request made by one of the
Users of your device.

2) Put your Apps on Android Market as paid Apps. Some dodgy,
unofficial market may steal your Apps and host them for free or for a
yearly paid fee. Users of your device might find the Apps there.

3) Receive an email request for one of your Apps from one of the Users
of your device, reply to that email and include the appropriate .apk
as an attachment.

4) Similar to above, but instead of emailing, use pelicans.

5) Potentially you could do something with a webserver, website, and
that kind of stuff. Clearly an over-engineered approach. Pelicans are
probably better because they eat fish. Your device may not have access
to the Internet, another reason why pelicans are a better approach. Am
pretty sure pelicans can fly anywhere.




On Oct 13, 3:08 pm, Nitin Mahajan np.maha...@gmail.com wrote:
 HI!

 On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote:
  On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan np.maha...@gmail.comwrote:

  How can we develop an Android app store, to distribute apps/upgrades
  specific to a product, which is a non mobile device?

  Your question is ridiculously broad and generic. I doubt anyone is going to
  give you an adequate answer that outlines everything that needs to be done
  to develop an app store.

 To be very specific,  if I am creating an android based(non-mobile phone)
 device with some specific apps, developed by me and selling those devices in
 market.

 I want to make the updates/upgrades for those apps to be available to
 customers and also some new apps in future. For this purpose, I want to
 create an Android app store of mine.

 Hope I have clarified the scenario. Can you give me some suggestions, how
 this can be achieved.

 thanks and regards
 -Nitin



  -
  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

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


[android-developers] Re: Which UI approach is better?

2010-10-11 Thread metal mikey
My idea: use buttons on the right tab, single click opens the
document. Highlight the last selected right-tab-choice for next time
(highlight the row's background, or use a specially-coloured button in
place of the usual button). Too easy!

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


[android-developers] Re: Application Testing Group anyone?

2010-10-10 Thread metal mikey
I think you'll find that most developers don't have enough hours in
the day to get their own work done, let alone your work (or the work
of others). Also, you get what you pay for: if you pay nothing, don't
expect much. You may not get a response from people in this group if
it were to be setup, or you may get a response that makes little to no
sense, or you may get a response too late, etc.

There are businesses that provide access to a range of devices for you
to test on, e.g. DeviceAnywhere.com. Or you can buy a range of phones
for yourself to conduct tests with (a wise solution if/when you need
to test an App over a long period of time and/or test interoperation
of an App between various devices).



On Oct 11, 1:56 pm, xiaoxiong weng ad...@littlebearz.com wrote:
 This seemed a good idea

 On 2010-10-10 5:30 PM, Sanjay Parekh objectprofession...@gmail.com
 wrote:

 Would anyone be interested in setting up an application testing group
 where various beta apps could be tested by individuals on DIFFERENT
 phone models to help ensure the stability of new apps + provide
 concise feedback to the developer...
 I ran into this problem because for some types of apps the emulator
 setting dont seem to be a good enough and reliable indication of
 whether the app will ACTUALLY work on different phones...

 Anyone interested?
 It should be easy enough to get to the downloads to share and I would
 be happy to provide feedback on other's apps for a little more
 constructive + informed criticism of my own, espcially infroming of
 exceptions more descriptively

 Comments?
 Sanjay

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: how to intercept javascript onclick=window.close()

2010-10-03 Thread metal mikey
You could replace the JavaScript (window.close();) with some other
JavaScript that you can intercept.


On Oct 4, 2:31 pm, jgaribay juan.garibay.cervan...@gmail.com wrote:
 Hi,

 I am displaying web content in a WebView but I am having issues to
 identify when the user presses a cancel button which should close the
 current window.

 The cancel button is defined as follows in the page source code:
 input value=Cancel name=cancel type=button
 onclick=window.close(); /

 There are other buttons which I am able to handle using
 shouldOverrideUrlLoading() but since this cancel buttons does not
 attempt to open a new page, this is not working.

 Does anyone know if there is a way to intercept this cancel???

 By the way, when cancel button is pressed nothing happens.

 Thanks in advanced,
 Juan

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


[android-developers] Re: New countries !!!!

2010-09-30 Thread metal mikey
G'day Google,
Thank you!!

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


[android-developers] Re: Debugging on a real device

2010-09-17 Thread metal mikey
I think you're looking for the 'Run Configuration...' option under
'Run Application', then uncheck any avd that is checked and press
'apply' button. If your phone has USB Debugging on, and is connected
to your PC, then eclipse should run the application on your device
rather than the emulator.



On Sep 17, 3:27 pm, John Gaby jg...@gabysoft.com wrote:
 I have gotten to to the point where I need to test my application on a
 real Android device.  I have obtained an Motorola Droid phone and
 attached it to my computer (Windows).  I have installed the USB
 driver, and I believe that my computer can see the phone.  When I
 start up the DDMS it shows my device as 'Online'.

 I cannot, however, figure out how to get the debugger to use the
 device instead of the emulator.  The Android documentation states that
 when I run my program from within Eclipse that I should be presented
 with a 'Device Chooser', but that does not happen.  I read somewhere
 else that pressing F11 will bring up the Device Chooser, but it only
 runs the application on the emulator.

 I know there is probably something obvious that I am missing here, but
 I cannot figure out what it is.  Any help would be appreciated.

 Thanks.

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


[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-14 Thread metal mikey
Also worthwhile to name-and-shame any imagination-defunct, whack, and
moronic developers that can't come up with their own ideas let alone
their own App title. In this case I assume the rightful owner of
'ICE: In Case of Emergency' is Appventive (with 5000 to 1
downloads)...

While the pathetic developer is: nattayb (with 50 to 100 downloads)

Interestingly, nattayb has another App in the Health category at the
same price as the imposter App and with the same icon, titled
'Emergency Information ICE' (with 500 to 1000 downloads). Likely the
same App, in which case nattayb is spamming Android Market.

Users should not put trust in developers that behave like this, while
the developer community should treat such developers with disdain, and
Google should ban the accounts of spammers.



On Sep 15, 10:59 am, JP joachim.pfeif...@gmail.com wrote:
 Consider a DMCA takedown notice. I am sure applicable forms and how-to
 instructions are readily available in the Interwebs. Fill out, send to
 the operator of Android Market, hope for the best. The operator of
 YouTube is dealing with this on a daily basis.

 On Sep 14, 12:02 pm, Flying Coder av8r.st...@gmail.com wrote:



  Hi Dan,
      Thanks for the feedback.  The app is ICE: In Case of Emergency
  and has been published on the Market since Feb 09 (at the time, it was
  the only ICE app for Android).  Its currently one of the top-rated
  paid apps in the Health category. Its such a common phrase, that I
  wasn't expecting to be able to Trademark it, but I did expect the
  Market to require competitors to use names that were at least a LITTLE
  different.

      I discovered the copycat today when I got an email requesting
  technical support from someone who thought they had purchased my app,
  when in fact they had purchased the copycat's.

  Cheers,
  Steve

  On Sep 14, 1:58 pm, DanH danhi...@ieee.org wrote:

   Do you have the app name trademark protected?

   If you have been using the app name for some time (how long some is
   depends) then you could claim it as your trademark.  Simplest way to
   do this is to simply place (tm) after the name.  It's not nearly as
   good as a registered trademark, but it carries some weight.

   However, once a copycat has jumped on the name, it's harder to claim
   your trademark, especially if you haven't used it very long.

   And in any event you have to hire your own lawyer to go after the
   copycat, and if he's in another country things get dicey real
   quickly.  (However, not vigorously defending your trademark against a
   copycat causes you to lose any rights you do have very quickly.)

   Do go to some effort (eg, preserve letters/invoices/etc) to establish
   your priority on the name, so that a year from now the other guy
   can't come along and sue YOU for trademark infringement.

   (And it's probably worth the effort to send the other guy a cease-and-
   desist letter.  Probably would do no good, but it's cheap.)

   I suppose if someone duplicates a name in the Android store then you
   may have some recourse with store management, but it would be purely
   at their discretion, especially given how hard it is to find a unique
   name anymore.

   (I wonder how many here even know how to copyright their work?)

   On Sep 14, 12:41 pm, Flying Coder av8r.st...@gmail.com wrote:

Surely, this can't be allowed, can it?  What recourse do I have?

Thanks,
Steve- 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


[android-developers] Re: Displaying HTML markup in WebView

2010-09-13 Thread metal mikey
dfn is not a custom tag. Been around a while.

http://www.w3schools.com/tags/tag_phrase_elements.asp

As that page suggests, CSS might be the neatest way to achieve the
behaviour the OP is after.



On Sep 14, 2:23 am, Kostya Vasilyev kmans...@gmail.com wrote:
   Looks like your data is a mix of HTML tags and custom tags that have
 meaning only for your application.

 On the other end, WebView works with HTML, and doesn't understand those
 special tags.

 I think one way to make it work is to transform those custom tags into
 HTML ones with proper Javascript crutches to implement the
 functionality you seek.

 This can be done with XSLT, supposedly Xalan supports SAX and possibly
 can be built on Android (you could try it and write up your experiences).

 http://xml.apache.org/xalan-j/

 You could also probably do the transformation by hand, using Java
 String and friends.

 -- Kostya

 13.09.2010 20:10, Neilz пишет:





  Hi all.

  I'm receiving XML which contains elements of HTML and I want to
  display these to the users. Therefore, I have to set the content
  programmatically, rather than extract the strings from an android xml
  resource.

  I'm using a WebView to display the content, rather than TextView, as
  it handles some of the HTML markup - bold text for example, and links.
  However WebView does appear to be rather limited.

  For example, the content I want to display contains definition links:

  pThis is adfn title='some definition'definition/dfn/p

  I've been looking at this for a while now, and can't really think of a
  way to capture this in android. The idea would be that when the
  relevant word is clicked, the definition pops up.

  Any ideas appreciated!

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com- 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


[android-developers] Re: How to know who has registered the developer name on Android Market

2010-09-13 Thread metal mikey
Use your imagination and find yourself a unique 'Developer Name'.

Certainly, hijacking a thread on this group isn't a great way to seek
the help you may need.

Android Market support: 
http://www.google.com/support/androidmarket/bin/request.py


On Sep 14, 1:34 pm, Jiang webs...@yahoo.cn wrote:
 I'd like to publish my application to Android Market, but when I create 
 developer profile inhttp://market.android.com/publish/signup, the following 
 warning messages are shown under the field 'Developer Name':   Will appear to 
 users under the name of your application
    The business name entered is already taken.

 How to know who has registered this developer name?

 Thanks.
 -Jiang

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


[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-10 Thread metal mikey
My hypothesis is that since instructions came out as to how to setup
the emulator with Android Marketplace, spammers/weirdos have used tons
of gmail accounts
to download Apps then uninstall them with the intent of throwing stats
off.


On Sep 10, 3:05 pm, dah...@gmail.com dah...@gmail.com wrote:
 Same here.

 Active install drops a lot since last update last week.

 Not any response until now. Not know what happened.

 On Aug 27, 1:05 am, niko20 nikolatesl...@yahoo.com wrote:

  My apps as well

  My main core app was at 55% and now over the last few weeks it's
  dropped down to 43% as of this writing. My second app was almost at
  60% and now is also at 45%.

  I think it may have to do with install to sdcard, I know there are
  some other bugs with that feature, such as shortcuts on the home
  screen not working right, etc.

  -niko

  On Aug 26, 9:47 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it
  wrote:

   I've spotted this thread only now. It's happening to me too - in a
   week it dropped from a _steady_ 45% (held since several weeks) to 36%,
   with a single newactiveinstall out of regularly increasing new
   downloads. I even posted that on my blog - a commenter pointed out
   that when people upgrade an app the download counter might increase,
   while theactiveinstall doesn't (actually, I've released two updates
   in this month). Can you confirm?- 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


[android-developers] Re: how to dynamically remove widgets from a layout inside a layout ( nested ).

2010-09-05 Thread metal mikey
You'll need to use removeAllViews in combination with addView:

http://developer.android.com/reference/android/widget/RemoteViews.html

These methods were introduced in API Level 7 (i.e. Android 2.1).

The addView method in RemoteViews handles layout inflation so you
can't inflate them yourself.

Don't think you can ever have an EditText in an AppWidget though...you
could instead do what the Google Search Widget does and have a fake
EditText view that launches an Activity onClick.





On Sep 6, 2:38 pm, mani smanikanda...@gmail.com wrote:
 Hi All,

  I have LinearLayout. Inside to that i have added one more Linearyout
 ( checkbox  text ).

 (LinearLayout) one textView, (LinearLayout) Checkbox,textview , one
 textview

 Now whenever clicks the checkbox, i need to dynamically display
 EditBox after the checkbox.

 main.xml
 ---
 ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android android:orientation=horizontal
 android:id=@+id/MainLayout
 android:layout_width=match_parent
 android:layout_height=match_parent

 TextView android:id=@+id/text
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:textSize=25sp
 android:text=Enter category : /

 LinearLayout
                         android:layout_width=fill_parent
                         android:layout_height=wrap_content
                         android:orientation=horizontal
                         android:id=@+id/locationLayout

 CheckBox android:id=@+id/checkbox
 android:layout_width=40dp
 android:layout_height=40dp
 android:checked=true/

 TextView android:id=@+id/checkboxtext
 android:layout_width=fill_parent
 android:layout_height=40dp
 android:paddingLeft=20dp
 android:layout_gravity=center_horizontal
 android:layout_centerHorizontal=true
 android:textSize=25sp
 android:text=Current Location /

 /LinearLayout
 TextView android:id=@+id/text
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:textSize=25sp
 android:text=End of category : /

 /LinearLayout

 test.xml:
 -

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

 EditText android:id=@+id/categotytextbox
 android:hint=eg. pubs,restuarants 
 android:layout_width=250dip
 android:layout_height=wrap_content
 android:maxLines=1/

 /LinearLayout

 On the click of checkbox listener i added a code like below.
             public void onCreate(Bundle savedInstanceState) {
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.main1);
                 final CheckBox location =
 (CheckBox)findViewById(R.id.checkbox);

                 location.setOnClickListener(new Button.OnClickListener(){

       public void onClick(View v) {

         if(location.isChecked() == true)
                         {
                          LinearLayout l = (LinearLayout)
 findViewById(R.id.locationLayout);
                          LayoutInflater linflater = (LayoutInflater)
 getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                              View myView = linflater.inflate(R.layout.main,
 null);
                             l.addView(myView);
                    }
                         else
                         {
                                  LinearLayout l = (LinearLayout)
 findViewById(R.id.locationLayout);
                                  LayoutInflater linflater = (LayoutInflater)
 getSystemService(Context.LAYOUT_INFLATER_SERVICE);

                              View myView = linflater.inflate(R.layout.main,
 null);

                                 l.removeView(myView);  // I want to the layout
 which was added earlier. How do i do that.? I know this is not correct
 solution.

                         }
                 }
         });

 Can anyone help me here.?

 Thanks,
 - mani

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


[android-developers] Re: Linking to your app from external browser

2010-08-24 Thread metal mikey
I use AppBrain for this. E.g.: 
http://www.appbrain.com/app/com.coreform.android.snowcellnet.australia

Would prefer Google made an official Android Market website that
doesn't have arbitrary advertising on it 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Website for your app, how important do you feel it is?

2010-08-05 Thread metal mikey
It has been pointed out that there's a need for developers of Android
Apps to garner trust in Users  potential Users (e.g. Users must trust
the developer to not abuse their private information). I believe that
having a website for an App will help towards that. It shows an extra
effort that the developer has gone to in making a commitment to an
App. Also provides a means to communicate way more information than
can possibly be communicated in the much-too-small App Description on
Android Market.

I've recently launched an App on Android Market that not only uses a
website to help promote it, but also to provide extra features (i.e.
adding that extra dimension as 'Maps.Huge.Info' stated). My App's
website is gotta give it a plug, right?: http://www.snowcell.net

That said, having a website for an App should certainly not be a sole
reason for Users to extend trust to a developer, but it is perhaps one
of many points that can help towards that goal!



On Aug 6, 2:52 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com
wrote:
 I have one for my Radar Now! website called (strangely 
 enough)http://www.radarnow.net

 The site has basic data and screen shots, a map showing where users
 are located, statistics about OS's and devices and a change log for
 versions. I also use it for some social type content, such as (my)
 favorite comments and a list of the most active counties in the US.

 The idea behind the favorite comments page is that if people know
 that their comments will be read and recognized, they're more likely
 to leave glowing comments. Might sound a little off. I think it does.
 What they don't know is I print out another list called (my) Least
 Favorite comments glue them to small dummies and stick pins in them.

 I started tracking the site only last week with Analytics and in that
 time about 7,500 users of Android devices went to the site.

 Is it important? To promote the app, probably not. To engage users?
 Absolutely. For support? Yes.

 You can add another dimension to your app by giving it a web presence.

 -John Coryat

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


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

2010-08-05 Thread metal mikey
I second (or second-hundred-thousand) the idea to create a Wallpaper
category. Also a MatureContent category. And in anticipation of a huge
flood of relatively useless/poor quality Apps created by App Inventor,
an App Inventor category.

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


[android-developers] Re: Stop activity animation problem?

2010-08-04 Thread metal mikey
Can you make up your mind whether you want it or don't want it? Can't
have it all :/

On Aug 4, 3:25 pm, sagare sagar.ekb...@gmail.com wrote:
 Hi All,

   Please help me with this.

 Thanks,
 Sagar

 On Aug 4, 12:08 am, sagare sagar.ekb...@gmail.com wrote:

  Hi All,
     I want dont want the activity animation that comes by default when
  we start a new activity (i.e. the right to left scrolling effect to
  new activity view) so i googled a bit and found a flag
  FLAG_ACTIVITY_NO_ANIMATION in the Intent class also i applied that
  flag to my intent via the setflags() method but somehow i still see
  the activity animation when a new actvity is launced ( i am developing
  in android 2.1 update).

       Please help me in this regards?
  Thanks,
  Sagar

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


[android-developers] Re: LVL - A Massive Concern

2010-08-03 Thread metal mikey
You will find what you are missing is mentioned under NETWORK ACCESS.

On Aug 3, 5:49 am, Mark Carter mjc1...@googlemail.com wrote:
 When I install an app (with that permission) I don't see the CHECK_LICENSE
 permission mentioned. The other permissions are mentioned but not that one.
 This is on N1 Froyo.

 Am I missing something!?


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


[android-developers] Re: LVL Sample application problems

2010-08-02 Thread metal mikey
If your R.java isn't being dynamically created it's likely because
you've got an error in one of your XML files which is stopping Eclipse
from building the App properly.

Although, from what I saw of the LVL sample App, I don't think it's
complete and thus is not capable of being built...

On Aug 2, 2:37 pm, Jeffrey jeffisagen...@gmail.com wrote:
 I've followed the instructions for loading the sample LVL application
 and it loads up with a bunch of errors. Anywhere that a
 R.layout.main or R.* request is made it says R cannot be resolved.
 It suggests importing Android.R but if I do that then it says it can't
 find any of the files, including the R.layout.main file which is
 definitely there.

 What gives? I have had several problems with sample applications so
 far, am I doing something wrong? You'd think that all you have to do
 is import it from existing source and it should work.

 Has anyone else had this issue?

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


[android-developers] Re: benchmarking /stress testing android applications

2010-07-30 Thread metal mikey
But...should Earth be invaded by multi-tentacled beings Android phones
might lose market share to phones running OSes that can handle more
than 2 fingers.

On an equally serious note, if your App were to, say, run a web server
that multiple phones can connect to then you might want to look at
common Performance Testing tools like HP LoadRunner, JMeter, etc...

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


[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-28 Thread metal mikey
Of note is the fact that addView and removeAllViews are only available
in android 2.1, release 1 and up!
Proof on Android 2.1's Facebook page:
http://www.facebook.com/note.php?note_id=422770470544

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


[android-developers] Re: ListView and a button inside the list item... How to process long presses?

2010-07-21 Thread metal mikey
Typically one doesn't longclick a button, rather one would simply
click a button...

I've implemented buttons within childViews and groupViews in an
ExpandableList (similar, but more hardcore than your situation ;), so
it definitely can be done...how'd I do this? Well I don't have the
code at hand, as I recall it took some adjusting of focussable and
clickable properties in the various views that made up the list, the
groupViews, and the childViews.

If/when you get it working using the lead I've provided, would be
great if you can document the solution properly in this thread!

On Jul 21, 12:51 pm, greg sep...@eduneer.com wrote:
 implements ListView.OnItemLongClickListener

 On Jul 20, 10:20 pm, Moto medicalsou...@gmail.com wrote:

  Hi all!
  I got a ListView item that contains a button inside.

  Currently the long press of a ListView item does not get processed.  I
  thought that by setting the Button.setLongClickable(false) would allow
  the long press to be passed along to the ListView item and it's not
  happening...

  Any help on this?

  Thanks!
  -Moto

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


[android-developers] Re: Twitter / Facebook source code

2010-07-21 Thread metal mikey
On the intercloudz

 On Jul 20, 12:23 pm, oriharel ori.ha...@gmail.com wrote:

  Where can I find the source code of Twitter / Facebook?

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


[android-developers] Re: ArrayAdapter craziness

2010-07-20 Thread metal mikey
Yeah, had similar problems in an ExpandableListAdapter when too much
processing time was spent in overridden getChildView or getGroupView.
So perhaps a solution to your problem is to minimise the amount of
work being done in your getChildView function.

On Jul 20, 4:01 pm, nwmotog...@gmail.com nwmotog...@gmail.com
wrote:
 I am using a custom array adapter in my ListView.  It works fine when
 I am scrolling through a list of items slowly but when I attempt to
 scroll quickly the activity get's closed by the memory manager.

 Has anyone else run into 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-12 Thread metal mikey
Got it working!

Refer to this resource:
http://www.satyakomatineni.com/akc/servlet/DisplayServlet?url=DisplayNotePrintURLreportId=2946

I've just found that the LayoutAnimation is applied whenever the
layout is set visible ;)

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


[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-12 Thread metal mikey
oops, not quite. The LayoutAnimation IS only applied when the layout
is added to the AppWidget, as James stated...

...so the trick is to:

Follow these directions:
http://www.satyakomatineni.com/akc/servlet/DisplayServlet?url=DisplayNotePrintURLreportId=2946

+ do something like this:

RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.mycompleteappwidgetlayout);
views.removeAllViews(R.id.myappwidgetlayoutsubview);
RemoteViews myNewAppWidgetLayoutSubView = new
RemoteViews(context.getPackageName(), R.layout.mysubviewlayout);
views.addView(R.id.myappwidgetlayoutsubview,
myNewAppWidgetLayoutSubView);

On Jul 12, 10:35 pm, metal mikey coref...@gmail.com wrote:
 Got it working!

 Refer to this 
 resource:http://www.satyakomatineni.com/akc/servlet/DisplayServlet?url=Display...

 I've just found that the LayoutAnimation is applied whenever the
 layout is set visible ;)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >