[android-developers] Re: Check for which orientations are available to the device.

2011-11-28 Thread karteek
We can set orientation in our activity onCreate() method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); On Nov 28, 5:36 am, XdebugX xdeb...@gmail.com wrote: I want my app to set the orientation to portrait

[android-developers] Re: How do i upload the file from android mobile to public server

2011-03-25 Thread karteek
The error message 03-25 10:33:36.821: WARN/System.err(301): java.io.IOException: Unable to connect to server: The operation timed out This indicates there should be some problem with server address Once check this address in any browser On Mar 25, 10:52 am, snehalal gangadharam

[android-developers] Re: How to receive WAP push programatically

2011-02-21 Thread karteek
at application level. How to catch this event Please any help On Feb 16, 3:06 pm, Karteek N kartee...@gmail.com wrote: I am sending wap push using now sms software.I have a android development phone. The following is my code to receive wap push Android Manifest file receiver android:enabled=true

[android-developers] How to receive WAP push programatically

2011-02-16 Thread Karteek N
I am sending wap push using now sms software.I have a android development phone. The following is my code to receive wap push Android Manifest file receiver android:enabled=true android:name=.PushMsgReceiver intent-filter action android:name=android.provider.Telephony.WAP_PUSH_RECEIVED / action

[android-developers] Adding contact working in emulator but not in real device

2010-11-09 Thread Karteek N
Hi I implemented an application which will add contacts . It is working in emulator perfectly. I have android 2.0.1 device I am checking in that device but it is not adding contacts to contact list. I have given necessary permissions like write contacts . Any help karteek -- You received

[android-developers] Re: Can we catch android.intent.action.ACTION_UMS_CONNECTED event

2010-11-04 Thread karteek
Yes i registered receiver in the code instead of manifest file. But problem is whenever if my activity is closed i need to unregister it. But my requirement is it needs to be listen for that event. Why it not working if we are declared in AndroidManifest file. Any help. Regards, Karteek On Nov 3

[android-developers] Can we catch android.intent.action.ACTION_UMS_CONNECTED event

2010-11-03 Thread Karteek N
Hi I want to show some notification when android phone is connected to system. I implemented BroadcastReceiver for listening to event android.intent.action.ACTION_UMS_CONNECTED in my application But it is not working. Is it possible to capture this event Please help Regards, Karteek -- You

[android-developers] Re: How to catch android.intent.action.MEDIA_MOUNTED

2010-10-29 Thread karteek
Thank u i understand On Oct 28, 8:53 pm, Streets Of Boston flyingdutc...@gmail.com wrote: You'd have to register your broadcaster in your code:http://groups.google.com/group/android-developers/browse_frm/thread/c... On Oct 28, 4:53 am, Karteek N kartee...@gmail.com wrote: How to cath

[android-developers] How to catch android.intent.action.MEDIA_MOUNTED

2010-10-28 Thread Karteek N
=android.intent.action.MEDIA_MOUNTED/action /intent-filter /receiver /application Any help please karteek -- 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] Re: Custom ListView Contain ImageView + TextView + CheckBox for selected Row

2010-10-12 Thread karteek
You first declare a special layout file with all your ImageView,TextView and checkbox. and use that layout file while setting array adapter On Oct 12, 3:41 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: hi all , the first Question : --- i tried to make

[android-developers] Re: Host not resolved issue

2010-10-11 Thread karteek
3. Instead of localhost , i used ipaddress of the machine means are you running any apache server. Is your apache server is running?. I did some application with apache server which is running on my machine and able to access without port number example http://myip/sample.xml Check your server

[android-developers] Re: http POST request problem

2010-10-11 Thread karteek
Inorder to pass data using http post we need to set content-Type field in http header. Otherwise the server won't recognize your data which have been sent by parms. Try with the following Example httppost.setHeader(Content-Type,your content type supported by u r server); On Oct 11, 4:11 

[android-developers] Re: Can we customize spinner dialog

2010-09-16 Thread karteek
width in spinner.xml to some 60px instead of wrap_content The string is cut into two are three rows but the background display is still as the device screen width Any help, Thanks, Karteek On Sep 16, 10:01 am, Shashidhar shashi.zep...@gmail.com wrote: Yes, You can do it. While setting

[android-developers] Re: how to list files on SD card

2010-09-16 Thread karteek
You can use File apis as follows File f=new File(/sdcard); if(f.isDirectory()){ String files[]= f.list(); for(int i=0;ifiles.length;i++){ Log.d(,files[i]); } And identify your file and construct file path and delete On Sep 16, 11:56 am, cindy

[android-developers] Can we customize spinner dialog

2010-09-15 Thread Karteek N
When we select spinner it shows a display of items which almost the device screen size Can we minimize its width or height, I think this question was already posted by some one. But i am unable to find solution Thanks, Karteek -- You received this message because you are subscribed

[android-developers] Re: Plz help. android emulator on eclipse

2010-07-19 Thread karteek
If you want to give your desired string go and edit the following res-values-strings.xml hello On Jul 19, 12:24 pm, xuxu shlomitmay...@gmail.com wrote: Hi all, I'm newbie with android and eclipse and I got this strange thing...when ever I'm running little program that I write on the emulator

[android-developers] Re: Remove a row in a Listview

2010-07-09 Thread karteek
use the methode remove with position of the row mAdapter.remove(2); On Jul 9, 2:32 am, Albert albert8...@googlemail.com wrote: Hi all, Does someone know how to remove a row from a Listview? I have an Adapter that takes care of the List and when I try mAdapter.remove(Object) it does not

[android-developers] How to kill application

2010-06-08 Thread Karteek N
I started a sample application and called finish() method when user clicks the button. Then it is showing the android home screen and called the onDistroy() method also. But if i am executing the 'ps' command in android shell still it is showing the pid of my application. What is the meaning of

[android-developers] How to kill application

2010-06-08 Thread Karteek N
I started a sample application and called finish() method when user clicks the button. Then it is showing the android home screen and called the onDistroy() method also. But if i am executing the 'ps' command in android shell still it is showing the pid of my application. What is the meaning of

[android-developers] How to link libc.so.6

2010-06-03 Thread Karteek N
:25.792: INFO/dalvikvm(261): Unable to dlopen(/data/data/sct.widget/lib/libmylib.so): Cannot load library: link_image[1721]:30 could not load needed library 'libc.so.6' for 'libmylib.so' (load_library[1051]: Library 'libc.so.6' not found) Please anyone can help me Regards, karteek -- You received

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-06-02 Thread karteek
we need to link it with our shared library How can i do this please help me Regards, karteek. On Jun 1, 8:01 pm, karteek kartee...@gmail.com wrote: mah thanks for your reply 1 I checked in /data/data/mypackage/libs   my library is present in the above folder Second aproach you suggested me

[android-developers] How to send date from service to activity

2010-06-01 Thread Karteek N
Hi, I have one service in one application. In my second application i am binding to that service using aidl tool . Now i want to send some data from my service to activity which is running in second application. How can i achieve this. Any help please, -- You received this message because you

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-06-01 Thread karteek
: That would likely mean you've compiled your library using an x86 compiler. That will not run on an ARM processor. You do not have to use the Android makefile or build system to build your library, but you do need to use the compiler that comes with the NDK. On May 27, 3:05 am, karteek kartee

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-06-01 Thread karteek
unwind_phase2_forced Regards, karteek On Jun 1, 4:32 pm, mah m...@heilpern.com wrote: From what I've seen, the library not found error doesn't only occur if the library cannot be found, however your first step now should probably be to see if it should be found... open an adb shell to your

[android-developers] Re: where is the sdcard in emulator 2.2?

2010-05-28 Thread karteek
i am working with eclips with the new SDK2.2. while creating u r avd(emulator) there is option called sdcard size you need to mention size and in the below there is option called property there include sdcard support option On May 28, 2:37 pm, coolbanana ralf...@web.de wrote: yes,  i did it,

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-05-27 Thread karteek
: On May 25, 6:31 am, Karteek N kartee...@gmail.com wrote: In above two cases it is throwing same exception What exception?  What does the logcat output show?  If it's a dlopen() failure you'll see the error message from that function in the log. -- You received this message because you

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-05-27 Thread karteek
didn't use the NDK?. There are great chances that what you generated is not a valid ARM ELF binary that can be loaded on Android. On Tue, May 25, 2010 at 6:31 AM, Karteek N kartee...@gmail.com wrote: Hi all, I have gone through android ndk tutorials. But i am little confusing in Android.mk file

[android-developers] Re: Playing Audio During call so that other person on call can hear it

2010-05-26 Thread karteek
In Music application there is a service class called MediaPlayBackService,java It is having a telephonestate listener. This will monitor the telephone state and stops when any change in the phone state. If you remove that listener it won't stop song even you answer call . But i didn't try ever

[android-developers] Can't we add shared libraries without use of android ndk tools

2010-05-25 Thread Karteek N
Hi all, I have gone through android ndk tutorials. But i am little confusing in Android.mk file as well as Application.mk file so instead of that i used the following approach I created a Test.java file which is having one native method. i added the static{ System.loadLibrary(mylib); } By using

[android-developers] Where dialog is building

2010-05-19 Thread Karteek N
Hi, When we going for ring tone settings ie Home-Settings-SoundDisplaySettings/Phone Ringtone it is displaying the ring tones which are added from media player. If we want to change we can select from the list and press ok. I want to know the source code of it how it is collecting the data of

[android-developers] Changing LandScape to Potrait mode

2010-05-15 Thread Karteek N
Hi, I have a an application which is having some UI items like Buttons Radio Buttons etc. I want to change through code from landscape to portrait mode. I did by calling the method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But my UI items totally disturbed some of the i

[android-developers] How to create uses-library

2010-05-10 Thread Karteek N
Hi, In android manifest file there is a tag to include libraries called uses-library. Suppose if i have some java files in the package hierarchy called com.my.lib i used the following tag in my manifest file uses-library android:name=com.my.lib / Now it is compiled successfully. But if i want to

[android-developers] Re: How to create uses-library

2010-05-10 Thread karteek
it as pure Java application but here it is also using some android api's. what is the way to achieve this. On May 10, 4:45 pm, Mark Murphy mmur...@commonsware.com wrote: Karteek N wrote: In android manifest file there is a tag to include libraries called uses-library. This is for SDK add-ons

[android-developers] Re: How to create uses-library

2010-05-10 Thread karteek
Log cat is 05-11 11:02:12.062: ERROR/PackageManager(52): Package com.my.lib requires unavailable shared library com.my.lib; failing! On May 10, 3:46 pm, Vinay S s.vinay@gmail.com wrote: Can post the LogCat Output.. -Vinay On May 10, 12:21 pm, Karteek N kartee...@gmail.com wrote: Hi

[android-developers] How to build default applications as a seperate

2010-05-08 Thread Karteek N
. Please fix project properties.* Why it is giving the above error. where iam wrong. Please any one help me Regards, Karteek -- 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

[android-developers] Re: How to load more than one layout file for an activity

2010-04-29 Thread karteek
to tv variable.         folder.show();     } Any suggestions please Regards, Karteek -- 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

[android-developers] Re: What is the maximum memory capacity

2010-04-26 Thread karteek
: The maximum heap memory an process (app) gets in Android is 16M. That's not that much, a basic app takes already several MBs after you've only just started it. - Anurag Singh On Mon, Apr 26, 2010 at 9:34 AM, Karteek N kartee...@gmail.com wrote: Hi all, If i have implemented a database

[android-developers] Is it possible to send sms using adb tool

2010-04-26 Thread Karteek N
Hi all, Can we send sms using adb tool. If possible can u provide any document or link Regards, Karteek -- 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

[android-developers] Re: how to connect android phone to pc using adb

2010-04-26 Thread karteek
@Rogerio My OS is ubuntu.And I already used these commands.But the device is not getting displayed under ./adb devices. @AJ I have the Driver CD that came with the phone.But,it is for Windows,the driver installer is in .exe. How do I make it work for linux? On Apr 26, 5:35 pm, Rogério de Souza

[android-developers] What is the maximum memory capacity

2010-04-25 Thread Karteek N
will it depends. Please help Regards, Karteek -- 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 this group, send email to android-developers+unsubscr

[android-developers] How to execute cd sdcard command

2010-04-22 Thread Karteek N
code like process=rt.exec(cd sdcard); process=rt.exec(ls); Its throws exception Any help please Regards, Karteek -- 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

[android-developers] Re: How to execute cd sdcard command

2010-04-22 Thread karteek
the Java facilities for accessing the filesystem and avoid all kinds of bugs you'd probably introduce -- like, for example, handling spaces in filenames, etc. On Apr 22, 5:50 am, Karteek N kartee...@gmail.com wrote: Hi , I want to display what are the files and contents in sdcard through

[android-developers] Re: change size of controls in a layout

2010-04-21 Thread karteek
If you declared EditText in xml file you can change by EditText android:layout_width=50px android:layout_height=50px /EditText where you can use any nuber instead of 50 On Apr 22, 12:32 am, dillipk codersnet2...@gmail.com wrote: Hi,   How do I change the size of the controls placed

[android-developers] How to set XMPP settings

2010-04-15 Thread Karteek N
and 2.0 with google API also. Any one can help me. Regards, Karteek -- 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 this group, send email to android

[android-developers] Re: How can I get all the name of activities in the android system ?

2010-04-15 Thread karteek
here is sample code PackageManager appInfo = context.getPackageManager(); ListPackageInfo packageList=appInfo.getInstalledPackages(0); packageList holds the all the packages in your android device/ emulator check with ur application package then you will get u r application information

[android-developers] import com.google.android.gtalkservice.IGTalkSession

2010-04-15 Thread Karteek N
to import above things. Any help Regards, Karteek -- 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 this group, send email to android-developers+unsubscr