[android-developers] Re: about layout sizes

2011-10-26 Thread hectordu...@yahoo.com
))).requestLayout(); On Oct 24, 1:42 pm, Mark Murphy wrote: > Use Hierarchy View to see what values may be different. > > On Mon, Oct 24, 2011 at 2:29 PM, hectordu...@yahoo.com > > > > wrote: > > hi guys, > > > I am finding out that a layout (or button) size is differ

[android-developers] about layout sizes

2011-10-24 Thread hectordu...@yahoo.com
hi guys, I am finding out that a layout (or button) size is different when doing the definition as folows: ((RelativeLayout) (app.main_gui.get(RoulleteGlobals.WHEEL_1_3_IDX))).setVisibility(VISIBLE); ((RelativeLayout) (app.main_gui.get(RoulleteGlobals.WHEEL_1_3_IDX

[android-developers] nested asynctask

2011-09-27 Thread hectordu...@yahoo.com
hi guys, i wonder if it is possible to call an asynctask from another asynctask ? thanks for 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

[android-developers] turn off screen lock

2011-08-20 Thread hectordu...@yahoo.com
hi guys, i would like to turn off programmatically the screen lock function ... how can i do it ? thanks in advance Hector -- 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@googlegrou

[android-developers] Re: about Async Task

2011-08-18 Thread hectordu...@yahoo.com
thank you guys for help :-) On Aug 18, 10:36 am, Andrew Pittman wrote: > Yes, usually AsyncTask is only able to be run once. Restarting the same task > may give you a little trouble though due to this. If you have something that > needs to run over and over again I would suggest that you look int

[android-developers] Re: about Async Task

2011-08-17 Thread hectordu...@yahoo.com
PM, hectordu...@yahoo.com > > wrote: > > yes, that's what i do, > > This claim runs counter to: > > > but it  is not clear for me, what means "task can be executed only > > once", if we suposse to do it exactly the opossite way .. > > No, you

[android-developers] Re: about Async Task

2011-08-17 Thread hectordu...@yahoo.com
yes, that's what i do, but it is not clear for me, what means "task can be executed only once", if we suposse to do it exactly the opossite way .. On Aug 17, 3:34 pm, Streets Of Boston wrote: > Then create a subclass of AsyncTask that does the same thing in the > background. > Then each time

[android-developers] about Async Task

2011-08-17 Thread hectordu...@yahoo.com
hi guys, i wonder what exactly means: "The task can be executed only once (an exception will be thrown if a second execution is attempted." i now that the answer seems to be logic, but i would like to use async task in order to execute different instances of the same process, with different data,

[android-developers] Re: Activity Lifecycle question

2011-08-14 Thread hectordu...@yahoo.com
on't show it in this latest > post. Are you calling it from goBack()? As the last thing it does? > > On Aug 13, 8:21 pm, "hectordu...@yahoo.com" > wrote: > > > thank you guys, > > finally it works by overriding the back button, calling goBack() and > &g

[android-developers] Re: Activity Lifecycle question

2011-08-13 Thread hectordu...@yahoo.com
Sat, Aug 13, 2011 at 11:22 AM, hectordu...@yahoo.com < > > hectordu...@yahoo.com> wrote: > > i am trying to also do it form onPause(), onStop() , onDestroy . :- > > Well there's your problem. > > I don't know what will actually happen with you doing this

[android-developers] Re: Activity Lifecycle question

2011-08-13 Thread hectordu...@yahoo.com
goBack(); }//onStop thanks for help .. On Aug 12, 11:05 pm, TreKing wrote: > On Fri, Aug 12, 2011 at 5:36 PM, hectordu...@yahoo.com < > > hectordu...@yahoo.com> wrote: > > i wonder if somebody has an idea to deal with this issue; i tried to catch > > the RES

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
ult case at least so that you can put breakpoints there. > > On Aug 12, 3:36 pm, "hectordu...@yahoo.com" > wrote: > > > thank you guys for comments, > > > i wonder if somebody has an idea to deal with this issue; i tried to > > catch the RESULT_CANCEL

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
thank you guys for comments, i wonder if somebody has an idea to deal with this issue; i tried to catch the RESULT_CANCELED but nothing happens, the activity 1 is as follows: public void onActivityResult(int requestCode, int resultCode, Intent rit) { super.onActivityResult(requestCode, re

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
:-( so, if the user press back, the method setResult(RESULT_OK, rit), called from onStop() ... does not work? On Aug 12, 12:35 pm, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com > > wrote: > > "have Activity 1 use > > startActivityForResul

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
RESULT_OK, rit); finish(); }//goBack yelllowR, blueR and redR are instances of the same class ... objects On Aug 12, 12:05 pm, Mark Murphy wrote: > On Fri, Aug 12, 2011 at 1:02 PM, hectordu...@yahoo.com > > wrote: > > Hi guys, > > My app

[android-developers] Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
Hi guys, My app has two activities with a parcelable object going forward and back between them, which works fine. The problem comes when user goes back (from activity 2 to main activity) by using the hardware keyboard. In that moment the method onStop suppose to be called and the activity must lau

[android-developers] Re: transparent images

2011-08-11 Thread hectordu...@yahoo.com
thanks a lot :-) ((Button) findViewById(R.id.spinButton_5)).setBackgroundDrawable(getDrawable(R.drawable.d0)); Bitmap wheelSpin = BitmapFactory.decodeResource(getResources(), R.drawable.blue_chip); Canvas canvas = new Canvas(wheelSpin); Bitmap oneSpin = BitmapFacto

[android-developers] transparent images

2011-08-10 Thread hectordu...@yahoo.com
hi guys, i am trying to overlap two images, a transparent one over an opaque button background. Three simple lines: res = getResources(); Drawable spinImage = res.getDrawable(R.drawable.n8); ((Button) findViewById(R.id.spinButton_5)).setBackgroundDraw

[android-developers] Re: Installing APK + DB

2011-07-13 Thread hectordu...@yahoo.com
hi guys, thanks for comments, i've strongly reduced the size of my DB :-) and thigs are better now! btw, 1 . I am working in improving the activity lifecycle and i am getting also a message like " appl is not responding, force quit OR WAIT". by typing WAIT the process continues ... is there a ti

[android-developers] Re: Installing APK + DB

2011-07-10 Thread hectordu...@yahoo.com
am asking because somewhere i found that it was solved ... my appl is android 2.2. x sansung galaxy S. regards On Jul 8, 11:20 am, "hectordu...@yahoo.com" wrote: > hi kostya, > i get your point, i'll try to find the bug; btw, if you have any > advice on how to deal with

[android-developers] Re: Installing APK + DB

2011-07-10 Thread hectordu...@yahoo.com
am asking because somewhere i found that it was solved ... my appl is android 2.2. x sansung galaxy S. regards On Jul 8, 11:20 am, "hectordu...@yahoo.com" wrote: > hi kostya, > i get your point, i'll try to find the bug; btw, if you have any > advice on how to deal with

[android-developers] Re: Installing APK + DB

2011-07-08 Thread hectordu...@yahoo.com
one, and your code survives an orientation change, add > back the manifest changes as an optimization, if needed. > > -- Kostya > > 07.07.2011 20:31, hectordu...@yahoo.com пишет: > > > > > "your application is still likely crash if you leave it > > by

[android-developers] Re: Installing APK + DB

2011-07-07 Thread hectordu...@yahoo.com
OME, or returning to the app via the icon. it sounds rare but is there a light sensor some where in the phone? On Jul 6, 12:11 pm, "hectordu...@yahoo.com" wrote: > no kostya, > by the moment it thasn't crash for that ... > know i am geting conflicts with single and doubl

[android-developers] Re: Installing APK + DB

2011-07-06 Thread hectordu...@yahoo.com
ostya Vasilyev wrote: > That's good, but your application is still likely crash if you leave it > by pressing Home, change the phone's language in Settings, and return to > the app (via launcher icon or recent app list)... > > 05.07.2011 22:13, hectordu...@yahoo.com пишет: > &g

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
about the screen orientation, i have included this line in the manfest: android:configChanges="orientation|keyboardHidden" ... works :-) On Jul 5, 12:42 pm, "hectordu...@yahoo.com" wrote: > thanK you guys, > finallly I followed this link and > works:www.reignd

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
thanK you guys, finallly I followed this link and works: www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ i had some problems with the package name, which throws in "error copying the database", and then with a table which wasn't found in the schema. it wasn't cle

[android-developers] Re: Installing APK + DB

2011-07-05 Thread hectordu...@yahoo.com
thanK you guys, finallly I followed this link and works: www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ i had some problems with the package name, which throws in "error copying the database", and then with a table which wasn't found in the schema. it wasn't cle

[android-developers] Re: Installing APK + DB

2011-07-03 Thread hectordu...@yahoo.com
eDatabase. Google it how to ship external sqlite > database android, there is sample codes (on one blog, i cant > remember), but they must be modified based on your app requirements. > They are just good for start. > > On Jul 4, 2:08 am, "hectordu...@yahoo.com" > wrote:

[android-developers] Re: Installing APK + DB

2011-07-03 Thread hectordu...@yahoo.com
Mark, yes, i agree, the process is not right ... may you share with me a link which help me including my database into the apk file ? thanks in advance. On 3 jul, 17:59, Mark Murphy wrote: > On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com > > > > wrote: > > I am tryin

[android-developers] Installing APK + DB

2011-07-03 Thread hectordu...@yahoo.com
hi guys, I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so,

[android-developers] Re: STL android

2011-06-18 Thread hectordu...@yahoo.com
sibilities that android has, instead of been dealing each time with c/c++ and JNI :-) thanks you guys, for alll your comments ... On Jun 17, 11:58 am, "hectordu...@yahoo.com" wrote: > yeah! > i need to pass a pointer to a STL structure which is updated by each > user interaction :

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
re engine (and it's state) in C++ and pass just the UI > events across the JNI interface.  I have not tried this yet - I can > feel a test project coming on. > > On Jun 16, 10:06 pm, "hectordu...@yahoo.com" > wrote: > > > hey Richard, thanks for helping ...

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
re engine (and it's state) in C++ and pass just the UI > events across the JNI interface.  I have not tried this yet - I can > feel a test project coming on. > > On Jun 16, 10:06 pm, "hectordu...@yahoo.com" > wrote: > > > hey Richard, thanks for helping ...

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
re engine (and it's state) in C++ and pass just the UI > events across the JNI interface.  I have not tried this yet - I can > feel a test project coming on. > > On Jun 16, 10:06 pm, "hectordu...@yahoo.com" > wrote: > > > hey Richard, thanks for helping ...

[android-developers] Re: STL android

2011-06-17 Thread hectordu...@yahoo.com
re engine (and it's state) in C++ and pass just the UI > events across the JNI interface.  I have not tried this yet - I can > feel a test project coming on. > > On Jun 16, 10:06 pm, "hectordu...@yahoo.com" > wrote: > > > hey Richard, thanks for helping ...

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
html" > > If you have any questions I will try and help. > > On Jun 16, 4:55 pm, "hectordu...@yahoo.com" > wrote: > > > hi guys, > > I would like to migrate a c/c++ (linux fedora 14) application to > > android 2.2. > > Because this will be my

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
our code is complex enough you won't give away what > it does, then you shouldn't have any trouble learning to port it :o)... > > Kris > > On Thu, Jun 16, 2011 at 3:17 PM, hectordu...@yahoo.com < > > hectordu...@yahoo.com> wrote: > > hello Kris, thanks for

[android-developers] Re: STL android

2011-06-16 Thread hectordu...@yahoo.com
rform some > of the operations in a mobile environment...) > > Kris > > On Thu, Jun 16, 2011 at 11:55 AM, hectordu...@yahoo.com < > > hectordu...@yahoo.com> wrote: > > hi guys, > > I would like to migrate a c/c++ (linux fedora 14) application to > > andr

[android-developers] STL android

2011-06-16 Thread hectordu...@yahoo.com
hi guys, I would like to migrate a c/c++ (linux fedora 14) application to android 2.2. Because this will be my first migration, i have some questions about the procedure: 1. considering it has some STL stuff, i wonder if it will work. I specially use vector, set, map and algoritms (set_union, set_