[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Ask
I had used the same.. but it gives the Exception in first iteration itself.. On Sep 11, 4:41 pm, joyband wrote: > Use Log to debug the index number i > > On 9月11日, 下午7时35分, Asif k wrote: > > > > > Hi all, > > > I am getting null pointer exception at the bellow mentioned line in > > the for lo

[android-developers] Re: error msg after run a thread

2009-08-20 Thread Ask
Use post and handler mechanism or RunFromUI interface. Thanks asif On Aug 20, 11:16 am, tstanly wrote: > thanks for reply, > > so how can I do for change thread's control to change my UI? > > thanks! > > On 8月20日, 下午1時03分, star double wrote: > > > > > My god, you must change your UI in main th

[android-developers] Re: error while building the android code using make

2009-07-20 Thread Ask
=== > find: invalid predicate `-L' > frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for > the given PRODUCT_POLICY (android.policy_phone). Stop. > > On 7月17日, 下午3时05分, Ask wrote: > > > Hi Fred, > > >If you got the answer then can yo

[android-developers] Re: error while building the android code using make

2009-07-17 Thread Ask
solution ..it did fro my > build error on ubunut > > On Jul 16, 5:48 am, Ask wrote: > > > > > This is the link on android platform group, > > >http://groups.google.com/group/android-platform/browse_thread/thread/... > > > On Jul 16, 3:46 pm, Ask wrote: >

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Ask
This is the link on android platform group, http://groups.google.com/group/android-platform/browse_thread/thread/208c760eab587239/4974176be9b4ed03?hl=en#4974176be9b4ed03 On Jul 16, 3:46 pm, Ask wrote: > Hi Mark, > >   I had asked the same question to android platform forum earlier but

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Ask
policies/base/PolicyConfig.mk:22:*** No module defined > > for > > the given PRODUCT_POLICY (android.policy_phone) . stop.  " > > > So can  anyone plz tell me regarding this problem > > That's probably a better question to ask of the Android open source

[android-developers] Re: how to call intent_view

2009-06-28 Thread Ask
yer on Android by default, AFAIK. However, there > > may be third party video players that will honor your request, depending > > on what mCurrentVideoFilename is. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy >

[android-developers] Re: Sending messages to Subactivity( currently running) from the parentActivity

2009-06-02 Thread Ask
hello Saurav, Thanks for your reply. Its working fine for user defined subActivity. But If we use intents for ACTION_CALL and dial a number, then if after 30 second I want to end the call programmatically from my parent activity , how to accomplish this using intent broadcast ?? or how can w

[android-developers] Re: finishing subactivity after some perticular time

2009-05-27 Thread Ask
delayed message to itself > and have it call finish() when it gets it? > > > > On Tue, May 26, 2009 at 11:49 PM, Ask wrote: > > > Is it possible to call finish() for subactivity from the parent > > activity?? I want to show subactivity for only some perticular t

[android-developers] Re: DDMS.. file explorer problem

2009-05-27 Thread Ask
one observation : Whenever I am puling a file from emulator using DDMS fileexplorer / data/app , one process is created in which file explorer window is continuosly refreshed and emulator remains engaged. So I could not run any application on that instance. To run a new application, I have to

[android-developers] Re: finishing subactivity after some perticular time

2009-05-26 Thread Ask
Is it possible to call finish() for subactivity from the parent activity?? I want to show subactivity for only some perticular time and after that I want it to be automatically finished.. Thanks, Asif On May 26, 7:26 pm, Asif k wrote: > Hi all, > >    I had opened an image file store in the sdc

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Ask
; >   78     { > >   79         return mBase.getResources(); > >   80     } > > > > > > On Wed, May 13, 2009 at 9:34 PM, Ask wrote: > > > Fadden, > > >   It throws these exceptions only when " I tried to create any UI > > component like Toast message

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Ask
Fadden, It throws these exceptions only when " I tried to create any UI component like Toast message or invoking phone dialer inents etc. " It executes nicely when I just "tried to print a log message or created MediaPlayer and playing a song " . So my conclusion is that It throws NullPoi

[android-developers] Re: Running two applications in the same process

2009-05-12 Thread Ask
Hello Neil, the same thing I had done. I had given the same android:sharedUserId= "hii.hello" in the manifest of the both the application as well as same android:process = "guide.android" in both the manifests. But could not get the expected result. Is the anything more to be done to r

[android-developers] Re: Invoking one apk from another

2009-05-07 Thread Ask
Thanks for your reply. Actually I want to call one method abc() which resides in the other application(PhoneDialer.apk) from my application (TestApp.apk) and that PhoneDialer application resides in the /data/app-private directory (means this application is not installed in the device) . This m

[android-developers] Re: Playing a .mp3 file using View Intent

2009-05-05 Thread Ask
Hi MrChaz, Thanks for your help. I changed it and its working now. regards, Asif On May 5, 3:55 pm, MrChaz wrote: > it's "audio/mp3" not "/audio/mp3" > > On May 5, 11:27 am, Asif k wrote: > > > > > Hi all, > > >    I want to play a mp3 file which is stored in the /sdcard/ using > > ACTIO

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-22 Thread Ask
Hi Dianne, Please respond. On Apr 21, 6:27 pm, Ask wrote: > >executing code from the SD card is a security hole for your app, no > >matter how short a time you have the code there. > >   now I am successful in writing file in the /data/app-private/ dir > rather than /sdca

[android-developers] Re: ConditionVariable Usage

2009-04-21 Thread Ask
Please help on this. Thanks On Apr 21, 5:45 pm, Asif k wrote: > Hi, > > I'm trying to use a ConditionVariable to control the execution > sequence of two threads. I can create a ConditionVariable in one > thread and block on it. But I would like to be able to access it from > another Thread  and

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-21 Thread Ask
files dynamically from the desktop using socket communication and execute one method in this .apk at runtime . After executing this methos I will delete this .apk file. Thanks, Asif On Apr 20, 1:13 pm, Dianne Hackborn wrote: > On Sun, Apr 19, 2009 at 3:37 AM, Ask wrote: > > >I am w

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-19 Thread Ask
Can DexClassLoader solve this above problem?? I have not downloaded early look sdk yet.. Will The application which is running on sdk 1.0 run on 1.5 without an problem?? On Apr 19, 3:37 pm, Ask wrote: > fadden, > >  >but rather why are you getting the > > >NullPointerEx

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-19 Thread Ask
ld not write the file >prgrammatically.. Is there any way to write in the private dir >programmatically using changing permissions?? On Apr 18, 12:45 am, fadden wrote: > On Apr 17, 6:24 am, Ask wrote: > > > The application will be residing in the /sdcard/ and I am loading it > > d

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-17 Thread Ask
means that exception is coming due to different user IDs?? why cant that method use any variable of the activity?? Regarding Loading and ulloading of .apk in the /sdcard, I am making sure to put it in the card only when I am executing my application and after competion of my application I am

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-17 Thread Ask
Mark, The application will be residing in the /sdcard/ and I am loading it dynamically using PathClassLoader API. and using Method.invoke() function I am invoking the method residing in that class. Yes it may violate the model but I need it in my application >>If not, are both applications exec

[android-developers] Re: C\C++ support for application level

2009-04-16 Thread Ask
Please give some suggestions.. On Apr 15, 5:35 pm, Asif k wrote: > Hi, > >    I want to ask to google engineers that whether future sdk releases > will provide any C\C++ support for application developement?? If no.. > then Can you please tell me the disadvantage of these langu

[android-developers] Re: setCursorVisible in the TextView

2009-04-09 Thread Ask
yess, I got it using setSelection() method On Apr 9, 2:53 pm, Ask wrote: > Hi Jef, > > Thanks 4 ur reply. > Its working fine 4 EditText.. > > But here there is no API to set cursor position like > EditText.setcursorPosition(), > > I am updating EditText at diff

[android-developers] Re: setCursorVisible in the TextView

2009-04-09 Thread Ask
Hi Jef, Thanks 4 ur reply. Its working fine 4 EditText.. But here there is no API to set cursor position like EditText.setcursorPosition(), I am updating EditText at different stages of application execution programatically using EditText.append(); But cursor position is remaining at the first

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Ask
you? > I don't think it matters that you were using reflection for it.Why a view > component needs the looper before it is attached to an active Window, I > don't know. > > > > On Wed, Apr 8, 2009 at 2:31 PM, Ask wrote: > > > It works nice after I had added only

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Ask
some clearification. Regards, Asif On Apr 8, 11:44 am, Ask wrote: > Hi all, > > Thanks 4 ur reply. > > Actually I want to call some methods of one Activity > (test.check.Test1.java) from another activity (my current activity) at > runtime in the separate Thread. In the mai

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-07 Thread Ask
#x27;? If so, I understand why it may > > need a looper/handler. But if you're loading an Activity (Test1) > > within another Activity (the one trying to load check.apk), you may > > get into a heap of other trouble. But i'm not an expert on this at > >

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-07 Thread Ask
exception if you would have called 'new > test.check.Test1()'. > > On Apr 7, 9:17 am, Ask wrote: > > > > > Is there any handler needed for that?? Any Idea??? > > > On Apr 7, 3:58 pm, Ask wrote: > > > > Hi, > > > > I am using Reflect

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-07 Thread Ask
Is there any handler needed for that?? Any Idea??? On Apr 7, 3:58 pm, Ask wrote: > Hi, > > I am using Reflection APIs in the background thread to call a method > dynamically from another application but I am getting the Exception: > > "java.lang.RuntimeException: Can&

[android-developers] Re: Server/Client in different machines

2009-04-07 Thread Ask
Can you send the exception you are getting or some code snippets, it can be some io exception... On Apr 7, 4:58 pm, Lillian Brandão wrote: > I've already done at the server machines: > redir add tcp:7000:7000. > > -- > Lillian Brandão > > > > On Tue, Ap

[android-developers] Re: Server/Client in different machines

2009-04-07 Thread Ask
Have you done port forwarding at server machine?? Any message which is coming to the server should be redirected towards the emulator port : 7000 On Apr 7, 4:35 pm, Lillian Brandão wrote: > Hi all, > > I have an application client/server and I want to install this application > in differente ma

[android-developers] Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-07 Thread Ask
kTrace(); } } Please help.. If you know the issue. On Apr 6, 7:14 pm, Ask wrote: > Thanx Mark for your quick reply. I will try it out and get back > > On Apr 6, 6:49 pm, Mark Murphy wrote: > > > > > Asif k wrote: > > >    But in my case, I am g

[android-developers] Re: Displaying real time information during the execution of an activity

2009-04-06 Thread Ask
Thanx Mark for your quick reply. I will try it out and get back On Apr 6, 6:49 pm, Mark Murphy wrote: > Asif k wrote: > >    But in my case, I am getting all 3 messages at a time after > > activity execution completed. > > That is probably because you are doing long-running work on the UI thread

[android-developers] Re: DexClassLoader Feature in the Cupcake

2009-03-25 Thread Ask
Please respond.. Whether DexFile class can solve this purpose? On Mar 25, 11:52 am, Asif k wrote: > Hi all, > >    Can anyone please provide some information regarding the reflection > API DexclassLoader, which will be includeed in cupcake release?? In > the latest development of the cupcak

[android-developers] Re: Launching adb commands programtically from android application

2009-03-20 Thread Ask
Mark, Then is there any way to copy one file xyz.abc.apk from the /sdcard to /data/app/ folder using the application. Because I want to call it at the runtime using PathClassLoader but for that .apk file must be in the /data/app folder. Regardz, Asif On Mar 20, 5:00 pm, "Mark Murphy" wrote: