[android-beginners] Re: Maximum SD Card size?

2009-06-01 Thread marak...@gmail.com

I think i read somewhere it was 8GB, although i have a feeling it
depends more on the phone compatability. Im using the Dream(same as
your G1), so id say its probably 8GB.  Try to find a friend with a
16GB and try that first(dont forget to fill it up to make sure you can
access all the data before going out to buy one and find out its only
access 8gb of it haha).

 - Marak

On May 29, 5:36 am, Troglodad troglo...@gmail.com wrote:
 Okay, I know this might sound like a dumb question, but is there a
 limit on miniSD Card size for the ADP1/G1?

 I am finding that using the Youtube link keeps my 3 year old occupied
 while we're out, shopping, restaurant, etc. So now I want to put some
 episodes of Spongebob or something as MP4s on my card to have ready to
 go. So far, I've only used the factory-installed 1GB card in the
 phone. Will a larger, say 4 or 8Gb pose any problem?

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



[android-beginners] Re: Sending sms via intents launches only the compose window

2009-06-01 Thread marak...@gmail.com

My comps working on software atm, so cant confirm it, but as its
opening a new window/software, you will probably have to pass on a
call to activate the *send* option, otherwise its just loading the
software. Your code atm is sending the data, but not doing anything
after that.  I must say though, id be a little worried about my sms
functions being called by external software - eg expensive signups
being illegally run on your phone.

Question though, is it passing on the sms data(eg the text) to the
software? (i assume from your code it should)

On May 27, 2:28 pm, Vignesh vignesh.kart...@gmail.com wrote:
 hi,

 I am trying to send an sms by using android native messaging application as
 follows
                         Uri smsToUri = Uri.parse(smsto://5556);
                         Intent i = new Intent(Intent.ACTION_SENDTO,
 smsToUri);
                         i.putExtra(sms_body, This must get sent);
                         startActivity(i);

 All it does is open a compose window with To and Body filled in.    What
 do I need to do so that the SMS is sent automatically via existing
 application?

 Where can I find references to valid putExtras that I MUST do to send an SMS?
 I couldn't find any useful info on Android developer guide - perhaps I
 didn't notice them.

 Kindly help.

 -vignesh

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



[android-beginners] Re: Corner-centric window backgrounds

2009-06-01 Thread marak...@gmail.com

Cant try it out myself as im about to run out the door for a meeting,
but try setting the background color, then overlaying the image ontop
of that at a certain position(use % based if you can so portrait/
landscape is just one code).  Ill have a play when i get back myself,
though this meeting will probably take a few hours.

 - Marak

On May 24, 5:55 am, CaptainSpam captains...@gmail.com wrote:
 I'm not sure if this is exactly a beginner question or not, but I'll
 ask here anyway.

 What I'm trying to add to my app is a simple background for the common
 windows.  That part is easy enough either through themes or defining a
 background attribute to the toplevel layouts, but what I'm
 specifically trying for is a background with a drawing in the lower-
 right of the window.

 Now, this is also easy to implement in a sort of brute-force method.
 That is, make a background the size of the screen that is mostly white
 and leave it at that.  But, that seems sort of a waste of storage
 space (ignoring the fact that PNG compresses big empty spaces well)
 and would not scale well if used on a device that doesn't have the
 320x480 screen of the G1.  Plus, it requires two backgrounds for the
 G1 regardless, one for portrait and one for landscape.  And I can't
 easily define it in a theme without checking the orientation on each
 layout and reassigning the theme then based on it (else it scales to
 the new orientation).

 So my question is, how hard would it be to make a background I can
 attach to a theme with a single image in the corner that does not
 scale with the rest of the single-color background?  Would this be a
 job for a NinePatch (albeit not the job it was meant for)?

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



[android-beginners] Re: Where do i put Audio Files.

2009-06-01 Thread marak...@gmail.com

Your going to have to put them on the SD card, but the problem with
that, is only a dev phone(or g1/dream in dev mode) can use the sd card
to store active programs on.  Do you really need 48mb of audio in your
program lol?  Consider that most people are on data limits when not at
home on their wifi, and will baulk at downloading that much data.

On May 27, 3:04 pm, Freshman csato...@gmail.com wrote:
 Any idea/help on this greatly appriciated.

 On May 26, 3:44 pm, Freshman csato...@gmail.com wrote:

  Hi Jack,

  Thax a lot for reply.
  It is aroung 48 MB big in size.
  i tried it by puting in raw folder but it wont work as it is larger in
  size.

  Thax in Advance,
  Freshman

  On May 26, 3:27 pm, Jack Ha (T-Mobile USA) jack...@t-mobile.com
  wrote:

   How big are your audio files?

   You should be able to place them in the res/raw folder and get to them
   with:

   getResources().openRawResource(R.raw.audio_file);

   --
   Jack Ha
   Open Source Development Center
   ・T・ ・ ・Mobile・ stick together

   The views, opinions and statements in this email are those of
   the author solely in their individual capacity, and do not
   necessarily represent those of T-Mobile USA, Inc.

   On May 25, 10:21 pm, Freshman csato...@gmail.com wrote:

Hi guys,

I am new to android and i need to play list of audio files in my
application.
but i am bit confused where to put all the audio files as its large in
size.

any help/info regarding this greatly appreciated.

many thax,
Freshman

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



[android-beginners] Re: Internet through ad-hoc wifi

2009-06-01 Thread marak...@gmail.com

This is more a problem with your laptop and less with the phone.
There is a function in windows xp/vista to turn your existing wired
connection(with a wireless connection on the system) into a hotspot.
Google that and set it up, then you will probably have to access your
network settings on the laptop and turn on *share this internet
connection with the network*.  There is a login security feature that
exists though, im not sure if the android will be able to mesh with it
properly, but its worth a try.  If it cannot, its going to take custom
software to make its own link(then id route that data to the internal
wifi connection on the phone, should save on code)

 - Marak

On May 25, 8:40 pm, Mina Shokry minasho...@gmail.com wrote:
 Hi all,
 I saw many threads on web talking about using G1 phone as modem to
 give internet to laptops. but my problem is the reverse and I can not
 find any threads on web talking in this.

 I have a wired internet connection that I use with my laptop and my
 laptop has a wifi card. I could make a shared wifi connection that I
 am able to use from other mobile phones like Nokia N81. and the nokia
 phone can get internet through this connection. My problem is that I
 want my android phone (developer phone) to get internet using same
 approach (i.e through an ad-hoc wifi connection to the laptop that has
 wired internet access). can I?

 when I do a wifi scan from the android phone, it doesn't discover this
 shared wifi connection also entering connection ID manually doesn't
 work..

 any help is much appreciated.

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



[android-beginners] Re: Threading with UI components

2009-06-01 Thread marak...@gmail.com

Hey don,

Im still playing around with the threading atm, but here`s an article
that may help you out a bit.

http://developer.android.com/guide/appendix/faq/commontasks.html#threading

Hope that helps mate,
Marak

On May 27, 8:58 am, Don Oleary donole...@gmail.com wrote:
 Hi guys

 I have a question around threading. I have one Activity that does the
 following tasks
 on first load

 - Queries the DB
 - Aggregates the results (some intensive post processing)
 - Displays the results to the user

 Depending on the amount of data, this can take a bit of time. I am trying to
 push this
 DB query and post processing off to a separate thread to the UI so the user
 will perceive the app to be faster while also avoiding the application not
 responding
 message.
 I can successfully do this using an inner class that extends AsyncTask, and
 can update Views (set as member variables of the Activity class) that have
 been defined in XML with the updated content. Where I am running into
 problems is when I need to dynamically create views (TableRows for example).
 Can I (should I) access the App Context object from the extended AsyncTask
 inner class ?

 Where one is dynamically creating views, what is the best way to do this in
 a separate thread to the UI ?

 Regards
 Don

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



[android-beginners] Re: SDK USB driver for Vista SP1 won't install - Solution?

2009-06-01 Thread marak...@gmail.com

I assume you mean connecting the phone, not just the SD card as
raphael mentioned?  My best bet would be to upgrade your XP to the
latest SP.  Im not sure which drivers the G1 is going under, but i do
remember i had to upgrade for other USB products to get them working
(some sort of internal conflict for data passing in the usb channel
was kicking up an non-reported error).

 - Marak

On May 22, 6:39 am, Tony Su ton...@su-networking.com wrote:
 Howdy,

 When I connect a G1 to Vista SP1, the phone is automatically recognized and 
 Vista's own USB driver (WpdFs.dll and WUDFRd.sys) is installed, but that 
 driver doesn't work.

 Nothing I try seems to update or change the USB driver to the one supplied by 
 the SDK...
 Have tried
 uninstalling the device and re-scanning
 Updating the driver in the Device Properties

 When I try to force updating by manually pointing to the SDK driver, Vista 
 says it's not even a driver. Of course, with Vista's improved security I 
 can't disable/rename the Microsoft driver (permissions even an Admin can't 
 touch).

 Any ideas?

 TIA,
 Tony

 Full deatils on the Vista SP1 driver...
 Provider: Microsoft Corporation
 File Version: 6.0.60001.18000(longhorn_rtm.080118-1840

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



[android-beginners] Re: Wondering if my computer can handle the Emulator

2009-06-01 Thread marak...@gmail.com

I had a similar problem when using one of my other computers(main
computer was busy running software).  I had to shut down basicly
everything on the computer - virus scanner definatly, go through your
process`s and kill all the non-necessary, if on XP switch your
graphics mode to classic(chews up less resources).  Basicly strip it
down to a very very base setup and you shouldnt have a problem.  Still
its quite a push, and could take 3-4 minutes to load the home screen
on the emulator, but you will find if you dont shut down the computer
(or run other software), it will respond faster and faster each time.
Initally it took me about 7 minutes to load the home on the emulator,
after a few runs it was down to 2 minutes.

 - Marak

On May 25, 11:02 am, rnstewart rnstew...@gmail.com wrote:
 I'm running a 5-year-old Dell Inspiron 600m with 512MB of RAM. I've
 been trying to get going with the Android SDK and Developer Tools, but
 the Emulator has stopped me in my tracks.

 It just won't boot. I don't get any error messages, but I can never
 get past the animated boot logo. I'll leave it running for 15, 20,
 even 30 minutes, but it never finishes booting. And it eats up so much
 CPU that it leaves my system basically unusable -- in fact, at one
 point I decided to just leave it running for a while, but when I came
 back to my computer, it had shut itself down. I assume the CPU was
 overheating. I've tried running the emulator with nice +1, and that at
 least keeps the CPU from running too hot, but it still never finishes
 booting.

 Is this a hopeless case? I am hoping that I will be able to buy a new
 computer in a few months, but I don't want to wait that long to at
 least get started. Does anyone have any suggestions? Is there a way I
 can check the boot progress of the emulated system, so I can at least
 have an idea if it's actually getting anywhere?

 I would appreciate any help.

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



[android-beginners] Re: icon not compatible?

2009-06-01 Thread marak...@gmail.com

Its been a while since i worked with PNG images, but i believe you can
save them in multiple bit formats correct? (32/16/8 etc).  If thats
the case(and its the only reason i could figure it wouldnt be passing
the check), drop it down to 16 bit, which seems to be pretty much
standard - except in graphics software lol.  Or if that doesnt help,
open an existing and working icon, and paste yours over that then hit
save, which i use as a cheat to steal formats and sizes (lazyness at
its best)

 - Marak

On May 27, 2:30 pm, solid young...@gmail.com wrote:
 I have finished the first version of my app and I am trying to upload
 it to the market.  But every time I select my apk file for upload, the
 market upload website says: The icon for your application is not
 valid. Please use a 48x48 PNG.  I have checked my image and resaved it
 in gimp at various resolutions.  I have rebuilt several times.  I keep
 gettin the same error. what gives?  Is there a fix?

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



[android-beginners] Re: Android 1.5 SDK now available

2009-06-01 Thread marak...@gmail.com

I had a quick look at your problem, and the others that reported the
problems and it seems that your having trouble communicating with the
server(remember the check box for agreeing to send google anon
data?).  Did you check that?? If not, there *may* be an internal
update check, but i havnt researched that yet.

If your sitting behind a proxy, maybe its not setup for that?  Id
recommend uninstalling/re-installing, this time un-checking that anon
data box, see if that helps.  My computer is running some software atm
that will take about an hour to fix(on laptop atm), but when its done
ill jump on and see if the software is sending/recieving network
traffic, if so ill try to track down exactly what`s being transmitted
and if i can figure a work around.

 - Marak



On May 3, 9:27 am, david.lygagnon david.lygag...@gmail.com wrote:
 Hi,

 I am having the same problem as Javier with ubuntu 9.04 Jaunty, x64
 and eclipse version: 3.4.2.

 On launching eclipse after installing the Android plugin, I get the
 following error:

 Multiple problems have occured:
 pingUsageServer failed
 Android sdk ping

 Does anyone have a solution to this problem?

 David

 On Apr 27, 12:41 pm, Javi javierjc1...@gmail.com wrote:

  I have problems with the new sdk (1.5),

  A dialog show with a error a and suggest me to exit the workbench.
  Other dialog appear with a pingUsageServer failed:
  Android SDK Ping
  pingUsageServer failed

  The .log file says:

  !SESSION 2009-04-27 21:31:38.570 
  ---
  eclipse.buildId=M20090211-1700
  java.version=1.6.0_13
  java.vendor=Sun Microsystems Inc.
  BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=es_ES
  Command-line arguments:  -os linux -ws gtk -arch x86_64

  !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:46.358
  !MESSAGE Failed to load properties file for project 'WifiScan'

  !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:48.330
  !MESSAGE pingUsageServer failed
  !STACK 0
  org.eclipse.swt.SWTError: Not implemented [multiple displays]
          at org.eclipse.swt.SWT.error(SWT.java:3803)
          at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
          at org.eclipse.swt.widgets.Display.create(Display.java:842)
          at org.eclipse.swt.graphics.Device.init(Device.java:154)
          at org.eclipse.swt.widgets.Display.init(Display.java:471)
          at org.eclipse.swt.widgets.Display.init(Display.java:462)
          at 
  com.android.sdkstats.SdkStatsService.getUserPermission(SdkStatsService.java:278)
          at 
  com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:126)
          at 
  com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer(Unknown
  Source)
          at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:48.341
  !MESSAGE pingUsageServer failed
  !STACK 0
  org.eclipse.swt.SWTError: Not implemented [multiple displays]
          at org.eclipse.swt.SWT.error(SWT.java:3803)
          at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
          at org.eclipse.swt.widgets.Display.create(Display.java:842)
          at org.eclipse.swt.graphics.Device.init(Device.java:154)
          at org.eclipse.swt.widgets.Display.init(Display.java:471)
          at org.eclipse.swt.widgets.Display.init(Display.java:462)
          at 
  com.android.sdkstats.SdkStatsService.getUserPermission(SdkStatsService.java:278)
          at 
  com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:126)
          at 
  com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer(Unknown
  Source)
          at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  I use the latest Ubuntu jaunty and Sun JDK
  The previous Android SDK  (1.1) works without problems

  I tried to do a clean installation of the eclipse and the sdk but the
  problem persist

  Anybody else with this problem?
  --
  Javier Jardón Cabezas

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



[android-beginners] Re: Android Dev1 Phone network connection via USB connection

2009-06-01 Thread marak...@gmail.com

Wait let me confirm a question i have first.  You want to use the
phone through USB, WITHOUT an active simcard in it?

If so, just grab a cheap simcard, throw it in the phone, sign up as
normal and grab a wireless router for your computer($10).  Setup your
computer as a wireless access point, and to share its network
connection.  Then your android will be able to access the connection
on the computer without having to be wired.

If there`s another reason you need a USB connection, shout and ill try
to figure a work around.

 - Marak

On May 24, 10:30 am, Jorge Luis Méndez jlmendezbon...@gmail.com
wrote:
 Hi,

 I'm considering to buy the dev1 phone but I would like to know if
 connection to the network through the USB connection works out of the
 box.
 Basically, the scenario would be the following:

 A desktop computer, no wireless nearby and no active data SIM card.
 Connection the phone to the computer with the USB cable allows the
 phone to connect to the network the computer is on?.

 Thank you very much in advance.

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