Re: [android-developers] Re: app for blocking apps

2009-11-29 Thread Spektor Yaron
yes, and you can also time bomb it when the application expires. http://stackoverflow.com/questions/1223552/how-to-time-bomb-an-android-application Enjoy, On Sun, Nov 29, 2009 at 11:31 PM, Lance Nanek lna...@gmail.com wrote: I can think of some legitimate reasons. What if the user is a parent,

[android-developers] Re: Preference screen for IME

2009-10-20 Thread Spektor Yaron
; android:settingsActivity=Prefs android:name=@string/settings_title android:isDefault=true / On Fri, Aug 28, 2009 at 1:32 AM, Spektor Yaron spekt...@gmail.com wrote: Hi, this seems to be an easy one, but i am not finding a solution for it...actually there are 2 different questions

[android-developers] Re: adding and reading new attributes from/to a declare-styleable

2009-10-20 Thread Spektor Yaron
. On Fri, Aug 28, 2009 at 3:16 AM, Spektor Yaron spekt...@gmail.com wrote: Hi, i was wondering if anyone could give me hints on this one (i am re-posting an older version of a question i once had): i created a new attrs.xml that adds some functionality to the soft keyboard sample code. i

[android-developers] Re: orientation changes for layouts

2009-10-18 Thread Spektor Yaron
but the view is the same. this is why i need to get the resId and parse the xml and not use inflate On Sat, Oct 17, 2009 at 2:44 AM, Mark Murphy mmur...@commonsware.comwrote: Spektor Yaron wrote: Thanks again, so i went ahead and implemented that and then found out that this: public

[android-developers] orientation changes for layouts

2009-10-16 Thread Spektor Yaron
Hi, i have a layout folder with 2 layouts. layout1 and layout2 i have another folder layout-land that has layout1 in it. i would like to be able to get to all the layouts so i could create a set of layout like this: {layout1, layout2, layout1(from layout-land folder)} is there any way i can use

[android-developers] Re: orientation changes for layouts

2009-10-16 Thread Spektor Yaron
it wouldn't work? if so, why? and what would work? On Sat, Oct 17, 2009 at 12:04 AM, Mark Murphy mmur...@commonsware.comwrote: Spektor Yaron wrote: i have a layout folder with 2 layouts. layout1 and layout2 i have another folder layout-land that has layout1 in it. i would like to be able

[android-developers] Re: orientation changes for layouts

2009-10-16 Thread Spektor Yaron
Thanks got it, but the point still is that Android would not know that layout3 and layout1 are the same and so if i am in layout3 it will not switch to layout1 when an orientation change occurs, right? On Sat, Oct 17, 2009 at 12:25 AM, Mark Murphy mmur...@commonsware.comwrote: Spektor Yaron

[android-developers] Re: orientation changes for layouts

2009-10-16 Thread Spektor Yaron
though) any way to work around this? On Sat, Oct 17, 2009 at 12:47 AM, Mark Murphy mmur...@commonsware.comwrote: Spektor Yaron wrote: Thanks got it, but the point still is that Android would not know that layout3 and layout1 are the same and so if i am in layout3 it will not switch

[android-developers] Preference screen for IME

2009-08-27 Thread Spektor Yaron
Hi, this seems to be an easy one, but i am not finding a solution for it...actually there are 2 different questions relating to settings here: i created a PreferenceActivity for my application (it is a softkeyboard) i am trying to add those settings to the Settings-Locale Text screen next to my

[android-developers] Re: How to Access SharedPreferences created file?

2009-08-27 Thread Spektor Yaron
hi, i am not sure if your problem was resolved or not, but this link can give you a clue on writing and reading from the file system: http://www.anddev.org/working_with_files-t115.html On Thu, Aug 6, 2009 at 12:13 PM, Prajkti prajakta.kha...@gmail.com wrote: Hi all, I am using

[android-developers] Re: no virtual keyboard available

2009-08-27 Thread Spektor Yaron
was your issue solved? if not i would look in settings - locale and text and check that a keyboard is set there. also, does it only happen with your app? On Wed, Aug 19, 2009 at 3:25 AM, Dianne Hackborn hack...@android.comwrote: Long pressing on menu will always open the keyboard. Did he

[android-developers] Re: out of memory error on eclipse

2009-08-27 Thread Spektor Yaron
i am not sure this is what you need, but eclipse works best with between 256M to 512M try this when you run eclipse (you will need to change the relevant path of course): c:\eclipse3.3\eclipse.exe *-vm c:\sun-java2-5.0\bin\java.exe* -vmargs -Xms256M -Xmx512M if that works you can add that line

[android-developers] adding and reading new attributes from/to a declare-styleable

2009-08-27 Thread Spektor Yaron
Hi, i was wondering if anyone could give me hints on this one (i am re-posting an older version of a question i once had): i created a new attrs.xml that adds some functionality to the soft keyboard sample code. i would appreciate any insight you may have on this: i added: attr name=keysImg

[android-developers] Re: getting all the resources from other apks

2009-08-24 Thread Spektor Yaron
need to make this hard -- for example you could just define the resource IDs that are in the skin and what they should contain and not have to worry about any analysis of the resources. On Sun, Aug 23, 2009 at 5:15 PM, Spektor Yaron spekt...@gmail.com wrote: Thanks Dianne, i appreciate your

[android-developers] getting all the resources from other apks

2009-08-23 Thread Spektor Yaron
Hi, i was able to play around with the resource on a different apk and get them using createPackageContext as you suggested. here is an example of the code: otherAppContext = this.createPackageContext(com.android.demo.notepad2,Context.CONTEXT_INCLUDE_CODE + Context.CONTEXT_IGNORE_SECURITY); int

[android-developers] Re: Screen rotation

2009-08-23 Thread Spektor Yaron
Hi Kabir, if you mean how do you catch these events and change the layout this could help: http://www.devx.com/wireless/Article/40792/1954 On Sun, Aug 23, 2009 at 1:27 AM, kabir kab...@gmail.com wrote: Hi, I have an activity which I have defined to keep in portrait position. However I

[android-developers] Re: getting all the resources from other apks

2009-08-23 Thread Spektor Yaron
of the .apk. On Sun, Aug 23, 2009 at 8:15 AM, Spektor Yaron spekt...@gmail.com wrote: Hi, i was able to play around with the resource on a different apk and get them using createPackageContext as you suggested. here is an example of the code: otherAppContext = this.createPackageContext

[android-developers] Re: getting all the resources from other apks

2009-08-23 Thread Spektor Yaron
resolveInfo and i know the folder name (e.g., layout etc.) all i need now is a method to get all the resources in something like: com.android.demo.notepad2:layout on a diffrent apk. thanks On Mon, Aug 24, 2009 at 12:18 AM, Spektor Yaron spekt...@gmail.com wrote: Hi, i know it is done somehow by other

[android-developers] Re: getting all the resources from other apks

2009-08-23 Thread Spektor Yaron
by replacing the existing (layout, drawable, etc) resource with a different one. On Sun, Aug 23, 2009 at 2:18 PM, Spektor Yaron spekt...@gmail.com wrote: Hi, i know it is done somehow by other applications (for example adding new skins to an existing application w/o knowing the name of the layout

[android-developers] Re: getting all the resources from other apks

2009-08-23 Thread Spektor Yaron
the entry part and type part of the integer), to step through retrieving names until you get a resource not found exception. However, I can't make any guarantees that this will work in the future. On Sun, Aug 23, 2009 at 3:44 PM, Spektor Yaron spekt...@gmail.com wrote: Hi again, just to verify

[android-developers] adding/changing resources on runtime

2009-08-19 Thread Spektor Yaron
Hi, i was wondering if there is any way to load resource (such as skins etc.) that include drawables and layout information during runtime. what i mean is that the user can download a file (probably a signed apk - would it work any other way?) and would be able to install it adding to an already

[android-developers] Re: adding/changing resources on runtime

2009-08-19 Thread Spektor Yaron
at 4:23 PM, Mark Murphy mmur...@commonsware.comwrote: Spektor Yaron wrote: Hi, i was wondering if there is any way to load resource (such as skins etc.) that include drawables and layout information during runtime. what i mean is that the user can download a file (probably a signed apk

[android-developers] Re: adding/changing resources on runtime

2009-08-19 Thread Spektor Yaron
Mark, i actually found your post about this: http://osdir.com/ml/AndroidDevelopers/2009-06/msg01323.html i am guessing this is what you meant, right? On Thu, Aug 20, 2009 at 3:52 AM, Spektor Yaron spekt...@gmail.com wrote: Thanks for the answer, i was wondering if you had any links on how

[android-developers] Re: create service only

2009-08-17 Thread Spektor Yaron
well, in some cases i guess you can. look at the manifest of the Softkeyboard sample in android 1.5: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.android.softkeyboard application android:label=@string/ime_name android:debuggable=true

[android-developers] uploading an apk from my computer

2009-08-17 Thread Spektor Yaron
Hi, i have a softkeyboard code that i am trying to install on my device. i was able to debug and run on my device it using eclipse, it works well as long as the USB cable is connected (of course,once i disconnect it it stops working) i tried adb install as well, that works for a few sample

[android-developers] how to get to internal.R

2009-08-17 Thread Spektor Yaron
hi, i have read several posts about getting to internal.R but i want to make sure i got it. i understand that the SDK does not support it anymore (not even what is in public.xml?) and of course, that i shouldn't use reflection (i got that Dianne, thank you :-) how can i without taking all the

[android-developers] Re: can not debug application

2009-08-17 Thread Spektor Yaron
15, 3:44 pm, Spektor Yaron spekt...@gmail.com wrote: I/dalvikvm( 770): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) Add the android:debuggable=true attribute to your manifest. http://developer.android.com/guide/developing/device.html -- Yaron Spektor

[android-developers] Re: can not debug application

2009-08-17 Thread Spektor Yaron
OK i found the problem. i was using android.os.Debug.waitForDebugger(); in my code. the emulator knew how to deal with it and the device got stuck on it. hope this will help anyone who gets stuck on this issue On Tue, Aug 18, 2009 at 1:25 AM, Spektor Yaron spekt...@gmail.com wrote: Thanks

[android-developers] Re: uploading an apk from my computer

2009-08-17 Thread Spektor Yaron
browser to get it from the web. On your phone you also have to authorize beforehand the installation of applications from unknown sources in the android preferences / applications menu. On 17 août, 12:45, Spektor Yaron spekt...@gmail.com wrote: Hi, i have a softkeyboard code that i am trying

[android-developers] can not debug application

2009-08-15 Thread Spektor Yaron
Hi, i was wondering if anyone could help me with this one. i created an input method application and tested it on the emulator (using Eclipse). it was working fine. i signed it (with my own private key and later with the debug.keystore) and installed it with adb. i see it in the list of

[android-developers] using attrs.xml

2009-08-01 Thread Spektor Yaron
Hi, i was wondering if anyone could give me hints on this one: i created a new attrs.xml that adds some functionality to the soft keyboard sample code. i added: attr name=keysImg format=reference / to: declare-styleable name=Keyboard !-- Default width of a key, in pixels or percentage of

[android-developers] cropping and changing images on a soft keyboard

2009-07-30 Thread Spektor Yaron
Hi, I am trying to crop an image on a key for a soft keyboard. i want to do the following: 1.create a key with an icon (from a Bitmap) 2.take that Bitmap and crop it 3.set the new Bitmap back on the key as an icon Optional: 4.do some or most of this from the XML using the parser (i could not get a

[android-developers] cropping and changing images on a soft keyboard

2009-07-30 Thread Spektor Yaron
Hi, I am trying to crop an image on a key for a soft keyboard. i want to do the following: 1.create a key with an icon (from a Bitmap) 2.take that Bitmap and crop it 3.set the new Bitmap back on the key as an icon Optional: 4.do some or most of this from the XML using the parser (i could not get a

[android-developers] Re: cropping and changing images on a soft keyboard

2009-07-30 Thread Spektor Yaron
); Bitmap cropedBitmap = Bitmap.createBitmap(orgBmp, 0, 0, 20, 10); BitmapDrawable bitMapDraw = new BitmapDrawable(cropedBitmap); key.icon= bitMapDraw; On Wed, Jul 29, 2009 at 11:50 PM, Spektor Yaron spekt...@gmail.com wrote: Hi, I am trying to crop an image on a key