David Karr | 1 Jan 2012 01:57
Picon

Why isn't "layoutopt" in my sdk?

I noticed the mention of the "layoutopt" tool in the Android Training pages.  I see that I don't have that in my sdk distro anywhere. I've kept the SDK installed from the ADT pretty up to date, but perhaps that's separate from this.

Why might it be missing?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
TreKing | 1 Jan 2012 02:15
Picon

Re: can use ATM cum debit card of State Bank of India (SBI) for registration.

On Sat, Dec 31, 2011 at 3:17 AM, Mohd Arshi Khan <arshikhan4u <at> gmail.com> wrote:
it is possible to use ATM cum Debit Card of State Bank of India (SBI) for registration on android Market for publish my App.

Why don't you just try it and see ... ?

-------------------------------------------------------------------------------------------------
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Mark Murphy | 1 Jan 2012 02:17
Favicon
Gravatar

Re: Why isn't "layoutopt" in my sdk?

On Sat, Dec 31, 2011 at 7:57 PM, David Karr <davidmichaelkarr <at> gmail.com> wrote:
> I noticed the mention of the "layoutopt" tool in the Android Training
> pages.  I see that I don't have that in my sdk distro anywhere. I've kept
> the SDK installed from the ADT pretty up to date, but perhaps that's
> separate from this.
>
> Why might it be missing?

My guess is that it has been subsumed into the lint utility.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

--

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

Tor Norbye | 1 Jan 2012 02:23
Picon
Favicon

Re: Why isn't "layoutopt" in my sdk?

On Sat, Dec 31, 2011 at 5:17 PM, Mark Murphy <mmurphy <at> commonsware.com> wrote:

On Sat, Dec 31, 2011 at 7:57 PM, David Karr <davidmichaelkarr <at> gmail.com> wrote:
> I noticed the mention of the "layoutopt" tool in the Android Training
> pages.  I see that I don't have that in my sdk distro anywhere. I've kept
> the SDK installed from the ADT pretty up to date, but perhaps that's
> separate from this.
>
> Why might it be missing?

My guess is that it has been subsumed into the lint utility.

Correct. Lint includes all the layoutopt rules (and more).

We'll try to get the training docs updated.

-- Tor
 

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

Warescription: Three Android Books, Plus Updates, One Low Price!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Dancing Fingers | 1 Jan 2012 03:41
Picon

Setting TabSpec Content using Source Code

Hi Guys,
I've created a custom game keyboard that I want to share with several
windows so I decided to give TabActivity a try.  I created a layout
for each tab, for example:

		// Plain text input layout
		inputLayout = new LinearLayout(this);
		inputLayout.setOrientation(LinearLayout.VERTICAL);
		mainText.setHeight(120);
		inputLayout.addView(mainText);
		inputLayout.addView(keyboard);

        host.addTab(host.newTabSpec("Text
Input").setIndicator("Input").setContent(inputLayout));

I get an "change inputLayout to int" compile error.  This seems
inconsistent with the Activity class.  Is there a workaround or do I
have to use xml?

Thanks.

Chris

--

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

James Black | 1 Jan 2012 04:20
Picon
Gravatar

NPE in Pre Compiler using Eclipse 3.7.1

I recently updated my SDK, and in one project I am getting this error:


!ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
!MESSAGE Unknown error: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPath(AaptParser.java:721)
at com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptParser.java:473)
at com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:370)
at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:599)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:124)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:961)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:146)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I have this in project.properties:
android.library.reference.1=../BookTrackerLib

java.runtime.version=1.6.0_29-b11



For my project, everything is done in the library, so here is my main activity:
public class BookTrackerActivity extends BookTrackerLibActivity {
public void onCreate(Bundle savedInstanceState) {
mContext = this;
super.onCreate(savedInstanceState);
}

}

I don't know what else may be needed to help solve this problem.  I have cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt the main project, still have the same error.
--
"I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant."
- Robert McCloskey

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
James Black | 1 Jan 2012 04:51
Picon
Gravatar

Re: NPE in Pre Compiler using Eclipse 3.7.1

I looked at another two projects that use a different library and I
have a different problem that is new, as I had recently built this and
put it on the market:
R cannot be resolved to a variable

For this line:
case R.id.clear_menu:

I have the ids defined in the library, as they are shared for both
projects, and this used to work.

So, I think the fact that I am not copying the res files from the
library to the actual projects may be the problem, which to me seems
to be a bug.

On Dec 31, 10:20 pm, James Black <planiturth... <at> gmail.com> wrote:
> I recently updated my SDK, and in one project I am getting this error:
>
> !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
> !MESSAGE Unknown error: java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa th(AaptParser.java:721)
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars er.java:473)
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse r.java:370)
> at
> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui ld(PostCompilerBuilder.java:599)
> at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 199)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 321)
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
> at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> at
> org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
> at org.eclipse.core.internal.resources.Project.build(Project.java:124)
> at
> com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementa lDebugBuild(ProjectHelper.java:961)
> at
> com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Lau nchConfigDelegate.java:146)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:854)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:703)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja va:928)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> I have this in project.properties:
> android.library.reference.1=../BookTrackerLib
>
> java.runtime.version=1.6.0_29-b11
>
> [image: image.png]
>
> For my project, everything is done in the library, so here is my main
> activity:
> public class BookTrackerActivity extends BookTrackerLibActivity {
> public void onCreate(Bundle savedInstanceState) {
> mContext = this;
> super.onCreate(savedInstanceState);
>
> }
> }
>
> I don't know what else may be needed to help solve this problem.  I have
> cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
> the main project, still have the same error.
> --
> "I know that you believe you understand what you think I said, but I'm not
> sure you realize that what you heard is not what I meant."
> - Robert McCloskey
>
>  image.png
> 14KViewDownload

--

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

Perry | 1 Jan 2012 13:10
Picon

how to disable the enlarge

hi,
I am using following method to create a bitmap and canvas.

myBG = Bitmap.createBitmap(theScreenWidth, theuserScreenHeight,
Config.ARGB_8888);
Canvas myCanvas = new Canvas(myBG);

After I draw something to "myBG" and use drawbitmap method to canvas.
I found that the "myBG" be enlarged. Who can tell me how fix this
problem?
thanks a lot!

--

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


Gmane