Re: [android-developers] Designing graphics for different devices/screens?

2012-11-11 Thread Fred Stluka

Lots of good detailed practical info at:

http://developer.android.com/training/basics/supporting-devices/screens.html

and for mobile Web apps on Android:
http://developer.android.com/guide/webapps/targeting.html

To see how big your screen is, browse with a phone/table to:
http://bristle.com/Tips/BrowserWidth.htm
and for more info:
http://bristle.com/Tips/BrowserStats.htm

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 11/8/12 9:26 PM, TreKing wrote:
On Wed, Nov 7, 2012 at 1:52 AM, Søren Neigaard <mailto:sneiga...@gmail.com>> wrote:


But how do I design a full screen graphics that works well on
Android devices, what sizes should it be?


I'd look at this: http://developer.android.com/tools/help/draw9patch.html

-
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 


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

Re: [android-developers] flip the emulator

2012-10-16 Thread Fred Stluka

On 10/16/12 11:21 AM, bob wrote:


Is there any way to flip the emulator (i.e. go from landscape to 
reverseLandscape)?




Yes.  Ctrl-F11.  See:
http://bristle.com/Tips/AndroidProg.htm#emulator_keys

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


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

Re: [android-developers] jump to R.layout.main?

2012-10-11 Thread Fred Stluka

I'm a big fan of keyboard shortcuts, and informative mouse actions
like this, so I've documented what I think are the most useful ones
for a couple of editors and systems:

Eclipse:
http://bristle.com/Tips/Eclipse.htm#eclipse_shortcut_keys

Intellij:
http://bristle.com/Tips/IntelliJ.htm#intellij_shortcut_keys

NetBeans:
http://bristle.com/Tips/NetBeans.htm#netbeans_shortcut_keys

PyCharm (Python IDE -- many of the same shortcuts as IntelliJ
which is produced by the same company, JetBrains):
http://bristle.com/Tips/Python.htm#pycharm_shortcut_keys

Mac:
http://bristle.com/Tips/Mac.htm#mac_shortcut_keys

Windows:
http://bristle.com/Tips/Windows.htm#windows_shortcut_keys

Enjoy!
--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 10/11/12 3:35 PM, bob wrote:


Oh, nice, thanks.  BTW, on Mac, it looks like it is */Command/* 
instead of */CTRL/*.



On Thursday, October 11, 2012 1:13:31 PM UTC-5, Kostya Vasilyev wrote:

Ctrl + hover with the mouse, then select from a popup

2012/10/11 bob >

If you see something like R.layout.main in the code, is there
an easy way to use that to jump to main.xml?


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-d...@googlegroups.com 
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com 
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
<http://groups.google.com/group/android-developers?hl=en>


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


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

Re: [android-developers] Hardware reccomendations: Next development laptop

2012-09-30 Thread Fred Stluka

I've been very happy with my MacBook Pro.

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 9/30/12 12:42 AM, Nathan wrote:
Since the hardware would primarily be used for developing Android, I 
think this is on topic.


My three year old Vista laptop does do well at complex builds in 
Eclipse, I'd just like to do more than one per day. ;)


What do you recommend for my next development laptop?

I really don't enjoy hardware shopping any more than car shopping. .

I have a vague idea that I want plenty of processor speed, plenty of 
memory, Solid State drive, and  probably 15 inch screen. I do have a 
17 inch screen now, and that was largely because I didn't even have an 
external monitor. Now it is docked to an external monitor most of the 
time, and is just too bulky when I actually do lug it somewhere.


This would probably gain me an hour of productivity every day, so I 
can afford to sink a 1-2,000 or maybe more.


I did have the idea of maybe getting a MacBook Pro, since it could do 
iOS development if I dabbled on the dark side, could possibly run 
Windows if I did some development on that side. Then again, getting a 
Windows Laptop  and a Mac mini could also solve that problem.


I haven't really gotten into Linux for a personal computer, though I 
do have a remote server running Debian now.


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


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

Re: [android-developers] Re: My Google Play app was suspended, any advice ?

2012-09-19 Thread Fred Stluka

On 9/19/12 1:44 PM, spocky12 wrote:
> I've just had an anwser and my app has just been reinstated (though I 
still don't know why it's been suspended first):


That's good news!  Can you please give details of how you successfully
contacted Google?  Via e-mail?  Via a link on a support Web page?  By
posting to a forum?

It would be nice to have positive success stories like this well
documented, to counter the numerous negative posts by developers
who say they can't get a response from Google.

Thanks!
--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


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

Re: [android-developers] Re: Device compatibility when publishing on the Play Store

2012-08-01 Thread Fred Stluka

Yeah, I got fooled by that once too.  Have to activate the APK before
it will show a valid list of compatible devices.

Google folks, it would be useful for that message to include a
reminder to activate the APK.

Meanwhile, I have a warning about this at my Android Tips page:

Publishing Your First App to Google Play

http://bristle.com/Tips/AndroidProg.htm#publishing_your_first_app_to_google_play


--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 8/1/12 7:41 AM, Amokrane wrote:
Turns out there was no problem at all! The APK was just not activated 
and the error message was really misleading (saying that there were no 
devices compatible instead of: 0 APK activated).


Thanks all for your help!

Le mercredi 1 août 2012 12:46:27 UTC+2, RichardC a écrit :

I can't see anything obviously wrong, have a read of:
http://developer.android.com/guide/google/play/filters.html
<http://developer.android.com/guide/google/play/filters.html>
there are a few other things (outside the manifest) that Play
filters on

On Wednesday, August 1, 2012 9:32:01 AM UTC+1, Amokrane wrote:



Le mardi 31 juillet 2012 22:53:33 UTC+2, RichardC a écrit :

Paste your manifest here please



Sure,


http://schemas.android.com/apk/res/android
<http://schemas.android.com/apk/res/android>"
package="com.xxx"
android:installLocation="auto"
android:versionCode="30"
android:versionName="1.0" >




















On Tuesday, July 31, 2012 9:19:08 PM UTC+1, Amokrane wrote:

Hi,


We have an issue publishing a new app on the Play
Store. The error message is that no devices compatible
with the app have been found...

This is what the manifest looks like:
https://gist.github.com/3220116
<https://gist.github.com/3220116> (between the
 I have defined a couple
activities/services.

It's driving me crazy! I have already published 2 apps
before (It was the Market at that time, did anything
change?)

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


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

Re: [android-developers] Keytool-error

2012-06-22 Thread Fred Stluka
On Sunday, August 9, 2009 7:27:31 AM UTC-4, Mark Murphy wrote:
>
> http://mortalpowers.com/news/android-development-error-incorrect-ava-format
>
Solved my problem.  Thanks!
--Fred Stluka 

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

Re: [android-developers] How to get technical support from Google?

2012-01-05 Thread Fred Stluka

Kris,

Most of your answers on this forum are VERY helpful and VERY
accurate, but in this case I think you are wrong about what is
a reasonable expectation.

Many large companies have entire divisions devoted to selling
"support services", "consulting services", professional services",
etc. usually at pretty high hourly rates, and mostly to large
corporate clients.  See:
- http://www.microsoft.com/microsoftservices/
- http://aws.amazon.com/premiumsupport/
- http://www.oracle.com/products/consulting/

However, you seem to be right that Google, Facebook, and others
haven't gotten into that business.  At least, I didn't find any via a
couple quick Google searches, and no one in this forum is citing
the existence of any.

Charles, as a couple people have said, your best bet is probably
to hire a private consultant, and this forum may be a great place
to find one.  I'd suggest you start by writing a detailed description
of your current problem, and see if anyone here can answer it.
Or post a job offer (is that an acceptable thing to do on this list?).
Or read the forum for a while, see who seems to be knowledgeable
and have a good temperament for problem-solving and for
teaching things to you, and e-mail them an offer.  Or do a Google
search for something like "android consulting services".

--Fred
--------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 1/3/12 4:16 PM, Kristopher Micinski wrote:

Uhh.. No, this isn't possible...

Google solely develops the platform.  They don't help individual
developers in any way other than occasionally responding to bug
reports or some "interesting" questions.

What leads you to believe that such a large company would act as a
consultancy?  I doubt Facebook, Amazon, or Microsoft would do this
(throwing out other large companies with APIs) either..

If you have a lot of cash, you can contact an individual consultant,
who is probably as helpful as a google engineer..

Kris

On Tue, Jan 3, 2012 at 4:07 PM, Charles Gordon  wrote:

>  How do I get paid technical support from Google for Android
>  development?  Someone asked this question two years ago and did not
>  get an answer.  There must be some way of getting direct support from
>  Google for Android development for a fee.


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

Re: [android-developers] Layout control for onscreen input method

2012-01-01 Thread Fred Stluka

Dreamtrove,

Sounds like a job for RelativeLayout.

See:
http://developer.android.com/resources/tutorials/views/index.html
http://developer.android.com/resources/tutorials/views/hello-relativelayout.html
http://developer.android.com/guide/topics/ui/declaring-layout.html

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 12/29/11 3:36 PM, Dreamtrove wrote:

Okay, I'm just beginning this project. I've been programming for many
years but I'm new to Android. I did the hello world and a few other
test apps and now I want to start my first real app, which is going to
be an input method. I've got some Android books stacked up here and am
holding an animal book right now, but there's nothing here on good
layout control. I end up with a flow layout, which may work for many
things, but it makes for a sucky on screen input. I'd appreciate any
ideas.

Here are the specs that I want to aim for:

1) I want to be able to place the keys exactly where I want them
2) I want them to register on finger down, I'll explain below*
3) I'm considering key registering by collision like a video game
rather than by button, but that is probably too complicated for a
first time out, so I'll just stick with the other two for now.

* On many on screen input methods, if not most, the key registers on
finger up. The problem with this is if I hit  G and then hit an O
before letting go of the G, most devices will give me the G but not
the O, and some will even give me a J instead, as a compromise of the
two locations. I know this problem isn't unique to android because it
happens on a few iOS apps as well. So, what I'd like to do is register
a finger down event, and have that trigger a routine that sticks
things in a buffer, to be released as text out on a finger up, but I
digress

I really have to tackle the layout issue, so, starting with, absolute
layout, or what would be really nice is "layout as % of total screen"
so each key could be 10% of the screen width for qwerty, and then
again for asdfg, only with a left margin of 2.5% and a right one of
7.5% (or a key there, like enter, or the elusive apostrophe.)

Also, I'm thinking that I want to possibly be able to resize this
keyboard for tablets, (this is mostly a tablet app, you can't really
finger type on a phone.) If I resize it, then it just has to be some %
of an abstract size that the app creates, and then that can be
translated to the user's screen size.

Anyway, sorry this post was longer than intended. Any ideas for better
layout control?



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

Re: [android-developers] Many Widgets in one layout

2011-12-15 Thread Fred Stluka

JP,

Use a layout, like LinearLayout, to have them not overlap:
http://developer.android.com/guide/topics/ui/declaring-layout.html

http://developer.android.com/guide/topics/resources/layout-resource.html

http://developer.android.com/resources/tutorials/views/index.html
http://developer.android.com/reference/android/widget/LinearLayout.html

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 12/14/11 4:02 PM, JP wrote:

Hi,

I'm really new to Android programming, so this question may be
obvious, but still I can't find a way to do it: I'm working on a
layout where the user have to enter many data about a person (name,
address, birthdate, etc). I'm capturing this information through
EditText widgets. I added them to a ScrollView, but when I run the
layout, a bunch of them overlap on the last row of the screen.
Obviously my idea is to have them one beneath the other and that the
user can be able to scroll down to continue the entering of data.. How
can I accomplish this task? Do I have to use more than one layout or
any other kind of widget?

Thanks in advance!

Regards



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

Re: [android-developers] Re: Problems reading a huge file of 12 MB (java.lang.OutOfMemoryError)

2011-12-14 Thread Fred Stluka

On 12/14/11 8:58 AM, RamaMohan wrote:

This might be helpful.
http://androidsnips.blogspot.com/2010/10/copying-larger-database-files-in.html

Nice blog!  Useful tips.  Thanks!

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


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

Re: [android-developers] Re: Emulator takes 15 minutes to start an app, something wrong ?

2011-12-14 Thread Fred Stluka

On 12/14/11 1:43 AM, Kristopher Micinski wrote:

I feel like this honestly could be your machine, it sucks, but the way
things are set up are pretty dependent on your machine.  People who
typically do a lot of stuff on the emulator have pretty high end
machines.

Yeah, I've heard people complaining about the speed of the emulator,
but on my MacBook Pro it's not bad.

When I launch my Android app in the emulator, the emulator window
appears in less than 5 seconds and the app is up and running in less
than 40 seconds.  Once the app is running, it takes only 8-10 seconds
to launch a different app in the emulator instead.  Interacting with the
app, there's a slightly perceptible (less than 1 second) lag to some
interactions, but most are instantaneous.

Not as fast as the hardware, but not bad.

What kinds of delays are others seeing, and on what computers?

--Fred
--------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


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

Re: [android-developers] Broken link in docs, and question about command line building

2011-11-29 Thread Fred Stluka

Tobiah,

Yeah, it's a typo.  Should be:

http://developer.android.com/guide/developing/building/building-cmdline.html


It should probably be coded as:
/guide/developing/building/building-cmdline.html
which would be a relative URL that expands to the above, but is
accidentally coded with an extra leading slash as:
//guide/developing/building/building-cmdline.html
which causes it to be interpreted as:
http://guide.com/developing/building/building-cmdline.html
which doesn't work.

--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 11/28/11 3:06 PM, Tobiah wrote:

http://developer.android.com/resources/tutorials/hello-world.html

The link with the text "Building and Running from the Command Line"
seems to be broken.  I figured that someone who cares might be on
the list.

I think it would be behind that link somewhere where I'd find
the answer to my question.  I want to start building a project
that I started to build with Eclipse, from the command line.

I use a script like this:


RELEASE_TYPE=debug


if [ $1x = releasex ]; then
RELEASE_TYPE=release
fi


if ant $RELEASE_TYPE; then
#adb shell pm uninstall -k org.tobiah.HelloOpenGLES10
adb uninstall org.tobiah.HelloOpenGLES10
adb -d install bin/HelloOpenGLES10-$RELEASE_TYPE.apk
adb shell am start -n 
org.tobiah.HelloOpenGLES10/org.tobiah.HelloOpenGLES10.HelloOpenGLES10
adb logcat HelloOpenGLES10:V *:E  | grep -v 
'GpsConnectionService\|LightsService'


fi


But I forgot how to initialize the environment so that I
get a build.xml.  It think it's a simple command using ant
or adb or android or something.  Appreciate a reminder.

Thanks!

Tobiah



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