[android-developers] subset of Android SDK running on an Android device-- possible?

2011-12-11 Thread CresCoJeff
Hey all, I was wondering recently if it might be possible to get some or all of the Android SDK running on an Android device, wrapped within an on- device IDE app and running via JNI... any thoughts? I know this would probably make for too huge an app for most devices, but just speaking strictly i

[android-developers] Re: instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-04 Thread CresCoJeff
ogcat. Do I need to override any other View class methods? From the docs it doesn't seem really necessary to override any of them unless you need special functionality, but I'm not sure... thanks, CCJ On Aug 3, 4:07 pm, Kostya Vasilyev wrote: > 03.08.2011 23:34, CresCoJeff пи

[android-developers] Re: instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-03 Thread CresCoJeff
to call the super method, so that we get called. > > << > > 03.08.2011 0:35, CresCoJeff пишет: > > > What should I add to make CustomView 'aware' of its elements?  Is it > > necessary to use the LayoutInflater class perhaps? > > -- > Kostya Vasilye

[android-developers] Re: instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-02 Thread CresCoJeff
r logcat says. > > > *Thanks and Regards, > > Kumar Bibek* > > * > >http://techdroid.kbeanie.com > >http://www.kbeanie.com* > > > On Wed, Aug 3, 2011 at 12:35 AM, CresCoJeff wrote: > > >> Hi all, > > >> I am rather new to Android programming in g

[android-developers] Re: instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-02 Thread CresCoJeff
: > Your first code is the correct way to initialize stuff. Something else is > going wrong. Please post what your logcat says. > > *Thanks and Regards, > Kumar Bibek* > *http://techdroid.kbeanie.comhttp://www.kbeanie.com* > > > > > > > > On Wed, Aug 3, 2011

[android-developers] instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-02 Thread CresCoJeff
Hi all, I am rather new to Android programming in general and am having particular difficulty with the xml/java UI shuffle... I have a layout which I would like to use as the view displayed when a custom, view class is instantiated in the activity class. This much works fine by simply calling set

[android-developers] Re: question about Snake game in sample code-- getting the snake tiles on to same coordinate plane as SnakeView

2011-06-11 Thread CresCoJeff
Yes, the 7,3 coordinates do refer to the snake's head tile bitmap (I did not make it sensitive to touch events; 7,3 is merely the coordinate set it starts off around) and the 90,40 is from my touch input on the view-- my question is how can I make the bitmaps that compose the snake's head and body

[android-developers] question about Snake game in sample code-- getting the snake tiles on to same coordinate plane as SnakeView

2011-06-09 Thread CresCoJeff
Hello all, I was exploring the Snake game sample code (from the revision 10 directory of the SDK) and found that there was no touch support integrated. I have a Nexus S, so I decided for practice I would add touch control support to the project; my original idea was to put an onTouchEvent method