[android-developers] Trouble with pixels

2012-02-13 Thread atcal
I have some complex graphics to draw using Canvas but I am confused by the documentation. I can get the size of the screen using getResources().getDisplayMetrics() and looking at widthPixels and heightPixels. For my AVD this is 1250x800. I can also check this in my onDraw() method by using

[android-developers] Need full screen after WebView

2012-02-12 Thread atcal
My app has two activities. The main activity uses WebView to interact with the user. When the user has selected certain options the second activity is intented. WebView creates a top margin in the emulator showing battery state and time (among other things). Under this is the title bar of the web

[android-developers] Re: Need full screen after WebView

2012-02-12 Thread atcal
On Feb 12, 5:36 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Feb 12, 2012 at 10:59 AM, atcal alan.williams...@ya.com wrote: My app has two activities. The main activity uses WebView to interact with the user. When the user has selected certain options the second activity

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-02 Thread atcal
On Feb 1, 6:46 pm, Ted Scott t...@hootinholler.com wrote: On 2/1/2012 11:01 AM, atcal wrote: On Feb 1, 4:25 pm, Ted Scottt...@hootinholler.com  wrote: On 2/1/2012 4:11 AM, atcal wrote: I'm trying to define my own View subclass. public class myView extends View {       myView

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-02 Thread atcal
On Feb 1, 10:23 am, sourabh sahu souruit...@gmail.com wrote: I think you should write super(context) Sourabh On Wed, Feb 1, 2012 at 2:41 PM, atcal alan.williams...@ya.com wrote: I'm trying to define my own View subclass. public class myView extends View {    myView(Context context

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-02 Thread atcal
On Feb 1, 10:23 am, sourabh sahu souruit...@gmail.com wrote: I think you should write super(context) Sourabh On Wed, Feb 1, 2012 at 2:41 PM, atcal alan.williams...@ya.com wrote: I'm trying to define my own View subclass. public class myView extends View {    myView(Context context

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-02 Thread atcal
. I'd recommend spending a couple hours on a Java crash course, they can be easily found with Google Search. -- Kostya 02.02.2012 12:27, atcal пишет: my problems with it as an Android issue, not a Java issue -- Kostya Vasilyev OK. So why is the documentation so misleading? View

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-02 Thread atcal
On Feb 2, 3:41 pm, Kostya Vasilyev kmans...@gmail.com wrote: On 02/02/2012 05:27 PM, atcal wrote: OK. So why is the documentation so misleading? View() is shown as a public method in teh android documentation. Not for me: http://developer.android.com/reference/android/view/View.html

[android-developers] What do these errors mean (using Eclipse)?

2012-02-01 Thread atcal
I'm trying to define my own View subclass. public class myView extends View { myView(Context context) { View(context); } } Eclipse flags the first line of my constructor with an error Implicit super conctructor View() is undefined. Must explicitly invoke another constructor and

[android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-01 Thread atcal
On Feb 1, 4:25 pm, Ted Scott t...@hootinholler.com wrote: On 2/1/2012 4:11 AM, atcal wrote: I'm trying to define my own View subclass. public class myView extends View {      myView(Context context) {          View(context);      } } Eclipse flags the first line of my

[android-developers] WebView using Assets

2012-01-31 Thread atcal
I'd like to use html (with images, btw) to provide documentation for my app. I thought to store my documentation pages in assets and use webview but I cannot find a way to link the webview to the assets. Does anyone know if this is possible? -- You received this message because you are

[android-developers] Re: WebView using Assets

2012-01-31 Thread atcal
Thanks. It was the form of URL I was missing. On Jan 31, 1:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jan 31, 2012 at 5:31 AM, atcal alan.williams...@ya.com wrote: I'd like to use html (with images, btw) to provide documentation for my app. I thought to store my documentation

[android-developers] Web pages as assets?

2012-01-30 Thread atcal
I'd like to store my app documentation as web pages (mixed text and images) in the assets then display them in webview. Is this possible? I've done my best to look through the on line documentation but I can't find how to do it. -- You received this message because you are subscribed to the

[android-developers] LinearLayout problem

2012-01-30 Thread atcal
I'm trying to create two rows of display, each consisting of an image to the left and accompanying text to the right. My XML file looks like: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] Why can't I debug?

2012-01-30 Thread atcal
I can run the hello android example on a phone AVD. I have a slightly modified Hello Android app which I want to run on a tablet AVD (1250x800). But after installing the apk on the emulator, eclipse grinds to a halt. The last console messages are (for example): [2012-01-27 12:17:21 -