[android-developers] Re: Resetting the activity stack

2009-09-22 Thread Andrei Bucur
http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP On Tue, Sep 22, 2009 at 11:26 AM, tauntz wrote: > > Hi > > Activities: > A & B are activities that once you have navigated away from them, > it's not logical that you can get back to them using the back b

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-18 Thread Andrei Bucur
super.onCreate(savedInstanceState); InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); On Thu, Sep 17, 2009 at 11:17 PM, Mike Collins wrote: > > I have a dialog t

[android-developers] Re: How secure is SharedPreferences?

2009-09-14 Thread Andrei Bucur
So basically storing private data on the phone is actually impossible? I must implement a system that needs to store some information at some times in application lifetime. This information must not be deleted / modified in any way because of security issues (the user could trick the system). Is th

[android-developers] Re: Soft keyboard in Fullscreen/extract mode

2009-09-11 Thread Andrei Bucur
There's a post on this groups regarding the resize issue. It seems that using the FULL_SCREEN flag actually (as it's name suggests) makes the IME unable to "steal" a part of the screen for display purposes. And regarding the other problem... try using InputType.TYPE_NULL + InputMethodManger.showSof

[android-developers] Re: Stop Soft Keyboard from appearing

2009-09-07 Thread Andrei Bucur
I guess Window.setSoftInputMode() with http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#SOFT_INPUT_STATE_ALWAYS_HIDDENshould do the trick. Haven't tested it though. On Mon, Sep 7, 2009 at 2:19 PM, kalyan simhan wrote: > Hi all.. > Is there any way to prevent the

[android-developers] Re: buttons hidden

2009-09-06 Thread Andrei Bucur
I would recommend using the RelativeLayout instead of the linear layout. You could place them like this: - first label aligned top parent (Band) - second label below first label (Members) - second edit text (Members list) right of second label, aligned top with second label and aligned parent right

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread Andrei Bucur
Maybe this helps: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_PREVIOUS_IS_TOP On Mon, Aug 31, 2009 at 4:28 AM, tstanly wrote: > > can possiable to verify whether B is exist or not? > if B exist,so the apps can call finish() to close B, > if not,don't call B.f

[android-developers] Re: Advice for speeding up my drawing

2009-08-27 Thread Andrei Bucur
Memory allocation can be very perverse especially if you don't know what happens behind the curtain. From what I noticed a simple String allocation implies most of the time an internal char array allocation (pretty obvious) and many more that I can't now recall. The rule is simple: If you can avoi

[android-developers] Re: Is it possible for a View having more than one Canvas

2009-08-26 Thread Andrei Bucur
Use save/restore with MATRIX_SAVE_FLAG flag. Before rotating the canvas you save the current matrix and after the first bitmap is drawn you restore it. On Wed, Aug 26, 2009 at 2:09 PM, Nithin wrote: > > Hi, > > I have a View and that has a canvas. I am rotating the canvas, for > rotating a bitma

[android-developers] Re: Advice for speeding up my drawing

2009-08-26 Thread Andrei Bucur
If you haven't tried already: 1. Replace the strings that get modified with char[]. Strings are immutable objects so changing one means memory allocation and leaking. 2. Also check the Allocation Tracker for memory leaking. 3. For the constant strings I would use Picture or some bitmap buffer mecha

[android-developers] Re: setSoftInputMode() and addFlags()

2009-08-18 Thread Andrei Bucur
Sure! I built a simple example that looks something like my app layout: http://schemas.android.com/apk/res/android";> and the onCreate() method: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //this.getWindow().addFlags(WindowManager.LayoutParams.

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
time. On Fri, Aug 14, 2009 at 7:55 PM, Dianne Hackborn wrote: > Do the same thing TextView does. > > On Fri, Aug 14, 2009 at 8:33 AM, Andrei Bucur wrote: > >> Hello! >> AbsListView implements onCreateInputConnection using an EditText, subclass >> of TextView :). My q

[android-developers] Re: Displaying virtual keyboard

2009-08-14 Thread Andrei Bucur
Hello! AbsListView implements onCreateInputConnection using an EditText, subclass of TextView :). My question is how should a custom View implement those methods so one can display the virtual keyboard. Andrei. On Fri, Aug 14, 2009 at 6:23 PM, greg wrote: > > I put the following menu option in m

[android-developers] Re: Incredible bug reading a network stream

2009-08-11 Thread Andrei Bucur
InputStream.read(buffer) doesn't guarantee you'll read exactly buffer.length bytes. You must use the value returned by read to actualy see how much was read. On Tue, Aug 11, 2009 at 9:51 PM, Vermouth wrote: > > > you have to check how many bytes in.read() actually read > Hum... > I don't underst

[android-developers] Re: add an activity pragmatically in Menifest.xml

2009-08-10 Thread Andrei Bucur
This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path -> Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. >From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at 2

[android-developers] Re: Folder issues

2009-07-30 Thread Andrei Bucur
UPDATE2: I manually uninstalled the package on the phone and then launched again the debugger in eclipse. Now it works :|. If someone has a possible explanation for this please feel free to share. My guess is that sometime in the development process I used the path to create a file (not a folder) a