[android-beginners] Re: how to pause emulator

2009-11-09 Thread kiro
Don't know how to pause, but if use Multi-core processor (my 2 cores) then you will develop with a pleasure ;) On Nov 9, 5:24 pm, Marton Kodok pentiu...@gmail.com wrote: When I run the emulator it eats 50% of the CPU continuously. How can I pause it so I can work smoothly? -- Márton -- You

[android-beginners] Re: How to receive and read an Email

2009-11-09 Thread jrichards1...@googlemail.com
Thanks. Sorry but the sdk definetly doesnt have that intent anymore http://developer.android.com/search.html#q=SMS_RECEIVED%20t=0 On Nov 9, 5:12 pm, Sean Hodges seanhodge...@googlemail.com wrote: SMS_RECEIVED definitely should be in the SDK, it is a frequently used intent. An example of it's

Re: [android-beginners] Re: How to receive and read an Email

2009-11-09 Thread Sean Hodges
Do you mean the intent no longer works, or that it is simply not documented on the Android dev site any more? Sorry, I would usually write a quick JUnit test myself, but my time is currently consumed by other development work... I would be interested to hear your findings though. On Monday 09

[android-beginners] Re: How to add a dialog in a AppWidget

2009-11-09 Thread Tikoze
You could set it up so that the widget just launches an activity, and have that activity themed to look like a dialog... On Oct 28, 6:11 pm, Carl vapor.trail@gmail.com wrote: Hi all, I am trying to add a dialog to a widget I made, in where when you press it, it displays two options, YES

[android-beginners] Re: How to begin with android

2009-11-08 Thread RichardC
If you want to develop Android applications then all you need is Java, the SDK and Eclipse (or Ant) and this is the right group to discuss getting started. However if you want to work on the kernel then I sugguest you visit and have a read of: http://groups.google.com/group/android-kernel

[android-beginners] Re: How to build EditText view like that in Android Market where X button appears for clearing text?

2009-11-08 Thread westmeadboy
I've just been playing around with this solution and it works, sort of, but feels a little hacky. I was wondering if this alternative might work: 1. Use a LinearLayout and set the background to be the same StateListDrawable used by EditText - I can't get this to work, but then again I'm a newbie

Re: [android-beginners] Re: How to begin with android

2009-11-07 Thread Niamathullah sharief
I have some doubts. From where we will get this android kernel part? is it nessary to learn java to work in android kernel part? On Wed, Oct 28, 2009 at 7:46 PM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: Congratulations on starting with Android - Books there are many good

[android-beginners] Re: how to install SDK in FreeBSD

2009-11-05 Thread Alexey Tarasov
Well, There is no official support for FreeBSD. You may use my builds for native tools (works on FreeBSD 8.0), see bsdroid.org for related snapshots. It's made using AOSP source tree, thus Android 1.6 only, as 2.0 sources were not integrated to it [yet?]. adb is available as separately

[android-beginners] Re: how to type in a webview

2009-11-03 Thread Indicator Veritatis
I'm a Facebook 'refusenik', so I am not in a position to be very helpful on Facebook specific issues. But concerning your other question, see http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#controlling which lists two columns in a table: they are Emulated Device Key and

Re: [android-beginners] Re: how to type in a webview

2009-11-03 Thread Marton Kodok
I want my user to login to Facebook. (There is already a FacebookWebViewClient custom class that extends WebViewClient) I use this code: WebViewwebview; webview = (WebView) findViewById(R.id.facebookview); webview.getSettings().setJavaScriptEnabled(true);

[android-beginners] Re: how to type in a webview

2009-11-03 Thread Indicator Veritatis
Another point: as I review the API doc (reference tag) on WebView, I see that it does not itself support key events or data entry. Now I don't know exactly what you are trying to do, but it sounds like you really want to use a WebViewClient object, not a WebView. This does support both. On Oct

[android-beginners] Re: how does one change the font COLOR in an applicaton

2009-11-02 Thread Vootog andarena
Hi,, Change the fontcolor of textview or edittext with android:textcolor=#c. OR put an xml colors.xml in res\values. colors.xml - ?xml version=1.0 encoding=utf-8? resources color name=opaque_red#ff00/color color name=green#ff22ff11/color color

[android-beginners] Re: How to use external library in Android project

2009-11-02 Thread Sj
Hi, Naveen I know how to add .jar file in project explorer. But when Android build the project, it doesn't add the external class. That's why the application (which built successfully) got crash when I run it in the Android emulator. Any other way you know? On Oct 30, 6:02 am, Naveen Krishna Ch

[android-beginners] Re: How to Replace of existing default Application by the Application created by me without user intervention

2009-11-02 Thread Anne
I want to replace the Androids Default Home screen with my Home Application. How can I remove these Properties form the Androids Default Home screen? One more Query I had Was. Is it possible to write an application with an Activity containing a Button, and on click of the Button the default Home

Re: [android-beginners] Re: How to Replace of existing default Application by the Application created by me without user intervention

2009-11-02 Thread Jeffrey Blattman
there are several home replacement apps on the market. you might try contacting the developers and seeing if they can give you some pointers, or if their apps are open source you could take a look at the source. On 10/29/09 11:54 PM, Anne wrote: I want to replace the Androids Default Home

[android-beginners] Re: How to Replace of existing default Application by the Application created by me without user intervention

2009-11-02 Thread Anne
I need to replace the default Android Home screen. How can I change the properties of the default Android Screen?. And One more query that I had was , is it possible to write an application (not uses the ResolverActivity Dialog Box) that starts and activity with some buttons and on click of the

[android-beginners] Re: how to type in a webview

2009-11-01 Thread Indicator Veritatis
Please explain in more detail, why you can't do that. Is it because you never can get focus in the input field for the authorization credentials? Can you tell us what login page you are required to go to? On Oct 30, 1:28 am, Marton Kodok pentiu...@gmail.com wrote: Hello, I have a really small

[android-beginners] Re: How to Replace of existing default Application by the Application created by me without user intervention

2009-10-29 Thread sbruno74
You need to make sure that the activity you want to be the home activity is the only one having category MAIN and category LAUNCHER properties. It seems that you forgot to remove those properties for the previous activity so android doesn't know which one to use a.d ask you to make a.choice.

[android-beginners] Re: How to connect through HttpConnection using WiFi for Android?

2009-10-29 Thread Roman ( T-Mobile USA)
Your HttpConnection code is independent from the type of data connectivity (whether it's wifi or cellular). There are no changes needed on your code. Changes might be needed when the requirements for data connectivity on Wifi are different than on cellular data. For example it might be that you

[android-beginners] Re: How to Replace existing default Application by the Application created by me without a user intervention

2009-10-29 Thread Justin Anderson
AKAIK that can't be done, and even if it could, why would you want to do that? As a user of an app that does that, I would find it extremely annoying... Thanks, Justin -- There are only 10 types of people in the world... Those

[android-beginners] Re: How to set clickable areas of a single image?

2009-10-29 Thread Justin Anderson
Use View.OnTouchListener... It provides an onTouch() method with a MotionEvent object... This should give you the information you need... -- There are only 10 types of people in the world... Those who know binary and those who

[android-beginners] Re: How to use external library in Android project

2009-10-29 Thread Naveen Krishna Ch
Eclipse provides an option to add the *.jar files in external libraries. 2009/10/29 Sj soojung_h...@hanmail.net Hi, Android developers I am trying to create very simple 'http client using Jersey API'. So I included Jersey library (such as jsr311-api-1.0.jar) as Referenced Library. And my

[android-beginners] Re: How to begin with android

2009-10-28 Thread android beginner
dont worryinstall the sdkit took some 1 hour...after that install the things with eclipse plug in.then started to run it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to

[android-beginners] Re: How to begin with android

2009-10-28 Thread Niamathullah sharief
Its not a hard thing to do. You have to do this. If you feel this is hard? Then you cant handle the developing things. On Wed, Oct 28, 2009 at 11:02 AM, android beginner mirra07aurobin...@gmail.com wrote: dont worryinstall the sdkit took some 1 hour...after that install the things

[android-beginners] Re: How to begin with android

2009-10-27 Thread RichardC
Wrong group try: http://groups.google.com/group/android-platform http://groups.google.com/group/android-porting To develop applications you don't need to build from source (there is a nice SDK). However reading the source is sometimes useful - just don't use anything you find that is not in the

[android-beginners] Re: How to begin with android

2009-10-27 Thread Matt Raffel
Windows works too. :) I happen to be old school XP for my windows box. I dl/install android sdk, Eclipse, the adroid plug-in, etc... I found the information somewhere at this site: http://developer.android.com/guide/developing/eclipse-adt.html Matt neha wrote: Hi, I am new to android. I

[android-beginners] Re: How to Align button to button of screen???

2009-10-27 Thread Matt Raffel
So that does not put my button at the bottom of the screen. Is that because I am using a LinearLayout? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent

[android-beginners] Re: How to import an existing project into Eclipse?

2009-10-26 Thread 魏文生
If you wanna run some codes sample in Android SDK in eclipse..you must use newandroid project and then select exising code in workspace.Browing the code samples folder. Best wishes to you. 2009/10/25 Freeman Zhang pcman.zh...@gmail.com: HI I wanna import some codes sample to the Eclipse

[android-beginners] Re: How to unsync Google Account in Android Phones

2009-10-26 Thread piuccio
Try Settings - Applications - Manage Applications For any google application you find select clear data On Oct 25, 2:31 pm, Geff geffa.fel...@googlemail.com wrote: When you first turn on go to settings under Synchronization the Android asks for a Google Account and an Password, but when you

[android-beginners] Re: How to Align button to button of screen???

2009-10-26 Thread Justin Anderson
Depending on what you want to do, with the space in the middle, you could create a view that acts as an empty space holder and set its layout_height attribute to fill_parent. One simple way of doing this would be to use a TextView that only displays an empty string

[android-beginners] Re: How to Align button to button of screen???

2009-10-26 Thread Paul Turchenko
Yet another way is to use RelativeLayout as a root element (instead of LinearLayout) and set android:layout_alignTop and android:layout_alignBottom on TextView and Button respectively. On Oct 26, 8:58 pm, Justin Anderson janderson@gmail.com wrote: Depending on what you want to do, with the

[android-beginners] Re: How can I develop application using C/C++

2009-10-26 Thread Justin Anderson
This question has been answered on this forum a few times already. Just do a simple search for C++ -- There are only 10 types of people in the world... Those who know binary and those who don't.

[android-beginners] Re: How to Align button to button of screen???

2009-10-26 Thread Matt Raffel
I tried that :) I created a second textview control. It ends up pushing the button off the bottom of the screen. TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / TextView android:layout_width=fill_parent

[android-beginners] Re: How do I get a view's height to fill the space in between two other views?

2009-10-26 Thread launchpadtt
Thanks. The android:layout_weight worked. I gave the scrollview a weight of 1 and the textview and linearlayout a weight of 0 and the scrollview filled out the screen On Oct 26, 12:23 am, Justin Anderson janderson@gmail.com wrote: If you are using XML layouts, there are a couple things you

[android-beginners] Re: How to import an existing project into Eclipse?

2009-10-25 Thread jax
File -- Import -- Existing Projects into Workspace Click browse and find the API demo directory On Oct 25, 7:53 pm, Freeman Zhang pcman.zh...@gmail.com wrote: HI I wanna import some codes sample to the Eclipse to learn the API usage. But, when I choose import from the menu, I found

[android-beginners] Re: How to import an existing project into Eclipse?

2009-10-25 Thread Freeman Zhang
Sorry, it doesn't work. But, I find the way, File - New - Android Project - Create Project form existing source Thanks a lot. 2009/10/25 jax jackma...@gmail.com File -- Import -- Existing Projects into Workspace Click browse and find the API demo directory On Oct 25, 7:53 pm, Freeman

[android-beginners] Re: How do I get a view's height to fill the space in between two other views?

2009-10-25 Thread Justin Anderson
If you are using XML layouts, there are a couple things you could try... 1) Set the layout to use fill_parent instead of wrap_content 2) Give the layout a weight... android:layout_weight Thanks, Justin -- There are only 10

[android-beginners] Re: how to set the hyperlink text with textview.

2009-10-24 Thread jbrohan
The Notepad tutorial deals with specifically this point. You click on the list of notes and get into an edit dialog. John On Oct 23, 2:14 am, pp clinw.w...@gmail.com wrote: I'm working on java for android and I need your help. my question is set the text with textview, its style is look like

[android-beginners] Re: how to set a shortcut key to launch an activity ?

2009-10-21 Thread Mark Murphy
swapnil kamble wrote: Hello, how to set a shortcut key to launch an activity ? Lets say I have an app TestApp. I want to set a shortcut key (e.g alt + T ) to launch activity of TestApp. Is there any way to set such shortcuts to android apps ? In your own application, you can create

[android-beginners] Re: how to i check if an EditText is empty

2009-10-21 Thread Roman ( T-Mobile USA)
You cannot check the emptiness of a String using the = operator! You would need to use the equals method which is a method in the String class String yourString = someEditText.getText().toString(); if (yourString.equals() ){ } -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick

[android-beginners] Re: how to i check if an EditText is empty

2009-10-20 Thread Jeffrey Blattman
toString().length() == 0? On Oct 20, 2009 1:48 PM, JasonMP hyperje...@gmail.com wrote: using if(someEditText.getText().toString == null) doesnt work im passing information from this editText into a database. Ive already limited it to 2 characters and numbers only in the xml file, but i need

[android-beginners] Re: how to i check if an EditText is empty

2009-10-20 Thread James Yum
FYI, Android has a handy TextUtils library: http://developer.android.com/reference/android/text/TextUtils.html#isEmpty(java.lang.CharSequence) http://developer.android.com/reference/android/text/TextUtils.html#isEmpty(java.lang.CharSequence) Cheers, James On Tue, Oct 20, 2009 at 2:18 PM,

[android-beginners] Re: How to make a child activity?

2009-10-18 Thread niko20
I dont understand why everyone makes this so complicated. First of all, this is a phone, you don't want to be using tons of data structures. There is nothing wrong with some global variables/ functions. If you want to store data that will be shared between activities, just simply use a static

[android-beginners] Re: How to make a child activity?

2009-10-16 Thread vchris80
thanks, I feel a bit over complicate and bug-prone to manage views manually via setContentView, so I simply changed the architecture, putting the common classes of interest in a singleton (luckily this solution fits with my app design). This way I can decouple the activities and keep a common

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-16 Thread KK
ahI've not been deep into linux, and i have no sense on how to handle linux gui, and I think it's pretty easy once you know how to hookup ICON interface. the aapt source is there and open :D I'll keep update when I'm doing research aapt tool. :D On 10月15日, 下午9时03分, Sean Hodges

[android-beginners] Re: How to convert oid program? java programs:zoneaandd.java and clock.javato Android program?

2009-10-16 Thread Nancy Forbes
I understand you were using horde software for dalecarnegie. I understand we can use through web based. Do we need to install something to do it if someone is going to start using HORDE? How would we do this Forbes and Associates - Web Design, Web Redesign, Web Updates, Logo, business card ,

[android-beginners] Re: How to make a child activity?

2009-10-16 Thread Paul Turchenko
Another way you can use to share common data between activities is having it in the Application's instance. Just create your own Application - derived class, tell Android via manifest to use it and you can easily access it from any context. Say you have MyApplication extending Application, then

[android-beginners] Re: How to make a child activity?

2009-10-15 Thread vchris80
hi james, thanx for reply. I try to explain what I want to achieve. It is actually very simple, but maybe I am walking on the wrong path since I think in the Windows way other than in the Android way :) My app is a window with 3 buttons (can't use tab since the buttons will increase in the

[android-beginners] Re: how to call a function after taking snap from camera?? plz help

2009-10-15 Thread Chris
Have you tried using StartActivityForResult then calling the myfunction () in an override of onActivityResult? Chris. On Oct 15, 1:58 am, wahib wahib.t...@gmail.com wrote: Hi!! I am stuck with this issue. When i press a button in my custom app the built-in camera app executes but after taking

[android-beginners] Re: how to call a function after taking snap from camera?? plz help

2009-10-15 Thread jbrohan
try http://code.google.com/p/android-playground-erdao/wiki/SnapFace This is how I got my project like yours going. Basically there is a callback after the picture is taken. John On Oct 14, 8:58 pm, wahib wahib.t...@gmail.com wrote: Hi!! I am stuck with this issue. When i press a button in my

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-15 Thread KK
actually, the code of extraction icon is inside aapt which is from base package of android source code. I create a .net dll to display icon in explorer, for now, I easily include aapt.exe into resorce, extract it and run it when needed. I will transform the code into native .net language

[android-beginners] Re: How do I unsubscribe?

2009-10-15 Thread Disconnect
Click the more options button and do it from the web interface. On Thu, Oct 15, 2009 at 9:51 AM, Danny W. Pimienta iph...@the16thletter.com wrote: The unsub email doesn't work I keep getting a mailer-daemon return email. Sent from my iPhone

[android-beginners] Re: How to make a child activity?

2009-10-15 Thread Yusuf Saib (T-Mobile USA)
If you are more specific about what the 3+ buttons are supposed to do, we may be able to suggest alternatives. To answer your question, setContentView is needed with ActivityGroup. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of

[android-beginners] Re: How to make a child activity?

2009-10-14 Thread vchris80
thank for your reply, but I still have some troubles: now I have my main activiy been a ActivityGroup and the child activity been a simple Activity. I start the child with this code: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class);

[android-beginners] Re: How to add a view to application layout programmatically

2009-10-14 Thread Sven
Hi Justin, my main.xml looks as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView

[android-beginners] Re: How to add a view to application layout programmatically

2009-10-14 Thread Alan Cassar
Title: Alan Cassar, Software Developer | Tel: +356 21334457 | Fax: +356 21 334156 The mistake is in the following lines of code: LinearLayout main = (LinearLayout) AndroidTest.this.findViewById(R.layout.main); Your layout is not called R.layout.main, that is a reference to the whole

[android-beginners] Re: How to clean intermediary build files

2009-10-14 Thread Mark Murphy
Carl wrote: Hello all, When I was building some source code there was an error with resource files. I fixed the problem, but when I try to build again the source code using the command line, the same error shows up. I presume the builder is using the same intermediary files, made in the

[android-beginners] Re: How to make a child activity?

2009-10-14 Thread James Yum
Hi, I'm still not sure what you're trying to achieve. Are you really trying to embed an activity within another? You can look at the TabActivity source for a pretty clean example:

[android-beginners] Re: How can I change the look of the front screen of the Android

2009-10-13 Thread Sean Hodges
-Applications will be launched in the space left in the middle What space? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] Re: How to make a child activity?

2009-10-13 Thread James Yum
Hi, Those are meant for an ActivityGroup and its embedded activities, for example a TabActivity. What you might want to look into, is this introduction on opening screens (activities): http://developer.android.com/guide/appendix/faq/commontasks.html#opennewscreen Cheers, James On Tue, Oct 13,

[android-beginners] Re: How to add external jar without Eclipse?

2009-10-13 Thread jotobjects
use android create project to create the build script and directory tree and put your jar files in the libs directory that is created. The ant script will package the classes in your jars with the application. One thing to watch out for is whether any of your jared classes have dependencies (such

[android-beginners] Re: How to display List in homescreen app widget ?

2009-10-13 Thread Justin Anderson
AFAIK, you can only use views supported by RemoteViews. You might consider using a live folder (not sure if that is exactly what it is called but that is what Docs To Go calls it) instead, since that allows you to display a list when you open the folder. Thanks, Justin

[android-beginners] Re: How can I change the look of the front screen of the Android

2009-10-12 Thread Mark Murphy
Gautam Tripathi wrote: Hi! The Home screen of Android has a StatusBar at the top and displays the desktop folders. I need to change this to a custom look as follows. -A status bar at the top -A similar bar at the bottom -And one bar running parallel to the left edge of the screen -All

[android-beginners] Re: How to hide activity from menu?

2009-10-12 Thread f...@r@0n
Yeah, removing LAUNCHER category works fine. This is what I need. Such kind of things always happen when copy-paste code without clear understanding what you are doing. Will try to avoid this in future :) Thanks again! f...@r@0n --~--~-~--~~~---~--~~ You

[android-beginners] Re: How can solve this error? Please help me :)

2009-10-12 Thread Chaiyasit T
Hi friend Can you give me your code so that I will review the correctness for you. Regards + Thanks On Mon, Oct 12, 2009 at 11:57 AM, GreenRiver thong.dom...@gmail.com wrote: I installed the older version of Android SDK and ADT but still have that error The method openDatabase(String,null)

[android-beginners] Re: how to drop call???

2009-10-12 Thread Roman ( T-Mobile USA)
Could you rephrase your question? If you want to drop programmatically a call, you cannot do this officially with the Android SDK. If you try to get the duration of a call, try to capture Call state changes. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views,

[android-beginners] Re: How can solve this error? Please help me :)

2009-10-12 Thread f...@r@0n
I installed the older version of Android SDK and ADT but still have that error The method openDatabase(String,null) is underfinded for the type Context.  Please help me :) Hi, I can say that currently I try to learn Android by one book and I faced quite many mismatches between book

[android-beginners] Re: How to add a view to application layout programmatically

2009-10-12 Thread Justin Anderson
What does the XML for your res/layout/main.xml look like? Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't.

[android-beginners] Re: How can solve this error? Please help me :)

2009-10-12 Thread Justin Anderson
Looks like the tutorial you are using is from the 1.1 SDK In 1.5 that method was removed and replaced with openOrCreateDatabase(). http://www.mail-archive.com/android-beginners@googlegroups.com/msg11654.html Unfortunately, I have not done anything with databases in Android yet and so I

[android-beginners] Re: How can solve this error? Please help me :)

2009-10-12 Thread GreenRiver
I know that errors cause by the differences between versions of Android SDK, but althought i uninstalled current version SDK (1.5) and install the older version (1.0 or 1.0) but still have that errors. There are many methods are not suitable with this SDK version (1.5). Thanks for your all

[android-beginners] Re: How to hide activity from menu?

2009-10-11 Thread Mark Murphy
f...@r@0n wrote: Hello guys, Does anybody know how to hide activity icon from menu? I am trying to write simple multiview application. So, I have two activities there, the first (main) activity starts the second one. However, my second activity icon is visible in installed apps menu grid

[android-beginners] Re: How can I add context menus to my application

2009-10-11 Thread Mark Murphy
okubax wrote: Hi, I am new to developing apps on the android platform, I have just created a simple file manager, I can browse and see my file but I want to add context menus to move, delete and rename files and directories. How can I go about this ? Override onCreateContextMenu() and

[android-beginners] Re: How to modify the default Android splash screen in source code?

2009-10-11 Thread sp...@droidshow
This might help ... http://www.ryebrye.com/blog/2008/12/08/replacing-the-splash-screen-on-a-t-mobile-g1-dev-phone/ On Oct 9, 3:46 pm, smallzz june_...@hotmail.com wrote: Hi... I want to have my image as the splash image instead of the default Android splash image. Could someone advise how

[android-beginners] Re: How can solve this error? Please help me :)

2009-10-11 Thread GreenRiver
I installed the older version of Android SDK and ADT but still have that error The method openDatabase(String,null) is underfinded for the type Context. Please help me :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] Re: How to get resource path?

2009-10-10 Thread Kevin Grant
mediaplayer mp = new mediaplayer(); mp.getResources().openRawResources(myfilename); mp.start(); mp.stop(); On Oct 9, 7:08 pm, abhi rkabhi1...@gmail.com wrote: Thank you, Balwinder. But I just have a string for the name of the song and so, its not possible to get the ID for it using: . Please

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-10 Thread 天地间有我在行走
Thanks for your quick reply. Sounds like a good way for both of your solutions. Yes, I just tried to find a temporary solution: int rid = 0x7f02 + input; Not sure if it is transplantable? 在2009-10-07,Balwinder Kaur (T-Mobile USA) balwinder.k...@t-mobile.com 写道: int rid =

[android-beginners] Re: How to get resource path?

2009-10-09 Thread abhi
Thank you, Balwinder. But I just have a string for the name of the song and so, its not possible to get the ID for it using: . Please find my code below: String songFile = NameOfSong.mp3; MediaPlayer mp = new MediaPlayer(songFile); //This is not working since I don't have the entire path to

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-08 Thread KK
Hi, I found the path is stored in resources.arsc, but where to indicates the index? BR, KK On Oct 7, 11:48 am, KK guo.jing...@gmail.com wrote: Sorry, I'm NOT using android API On Oct 7, 11:40 am, KK guo.jing...@gmail.com wrote: Actually I'm doing a shell extension for windows,

[android-beginners] Re: How to find permissions required

2009-10-08 Thread jbrohan
I've found that there is an error reported in the logcat which is quite clear about a missing permission. Just keep going and look at the logcat output. John On Oct 8, 5:13 am, Chris themaninthesuitc...@googlemail.com wrote: I am trying to see if some of the classes I am using require any

[android-beginners] Re: How to find permissions required

2009-10-08 Thread Chris
I take it this would need to be done on a real device not the emulator? On Oct 8, 10:38 am, jbrohan jbro...@gmail.com wrote: I've found that there is an error reported in the logcat which is quite clear about a missing permission. Just keep going and look at the logcat output. John On Oct

[android-beginners] Re: How to get resource path?

2009-10-08 Thread Balwinder Kaur (T-Mobile USA)
getResources().openRawResourceFd(int id) Get the FileDescriptor for the file and use MediaPlayer.setDataSource (FileDescriptor fd) method. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-beginners] Re: How will users upgrade their firmware?

2009-10-08 Thread sp...@droidshow
I was going through the flashing procedure for the ADP1 and this is what I get from there: If you are using the fastboot method for upgrading the firmware, there is are specific commands to erase userdata and cache : $ fastboot erase userdata $ fastboot erase cache or $ fastboot update

[android-beginners] Re: How to access the files on SD card through emulator?

2009-10-08 Thread Jason Van Anden
Instructions here: http://developer.android.com/guide/developing/tools/emulator.html#diskimages j On Thu, Oct 8, 2009 at 8:46 AM, Abhi hk.abhij...@gmail.com wrote: Hi,      I need to search for certain type of files (like .mp3) and populate the list of files present in that particular

[android-beginners] Re: How to use the Network Manager?

2009-10-08 Thread Roman ( T-Mobile USA)
Based on your preferred interface list, I would first do a scan on Wifi. Look for open Wifi networks to connect without security codes. Otherwise open a dialog that the user can enter the security information for the secured network. If no Wifi network is available turn off Wifi which

[android-beginners] Re: How to remove/hide the notification bar?

2009-10-07 Thread Luis Estrada
Solution: http://www.androidsnippets.org/snippets/27/ On Oct 5, 2:57 pm, Luis Estrada luisestrada...@gmail.com wrote: How to remove/hide the notification bar? I am trying to run a GLSurfaceView in full screen but the notification bar is in the way. Thanks, Luis

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread I82Much
I take it you're looking for something a little more scalable than the naive solution: switch (input) { case 1: return R.drawable.pic_1; . . . case n: return R.drawable.pic_n; } I see the problem; you need to append an arbitrary number to the end of a string, and

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread I82Much
I suppose you could also do something like int[] iconRefs = { R.drawable.pic_1, ... R.drawable.pic_n } if (input = 0 input n) { // Account for 0 based indexing return iconRefs[input - 1]; } This code gets the reference out (I might be wrong in how you reference it, maybe

[android-beginners] Re: How to remove/hide the notification bar?

2009-10-07 Thread Mark Murphy
Solution: http://www.androidsnippets.org/snippets/27/ Be sure to scroll down on that page: using android:theme=@android:style/Theme.NoTitleBar.Fullscreen, as mentioned in a comment, is a better solution. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread Balwinder Kaur (T-Mobile USA)
int rid = getResources().getIdentifier(pic_ + input, drawable, your_package_name); Drawable d = getResources().getDrawable(rid); You may check out the file MBellishClipartSelector.java from http://codecamp.pbworks.com/EmbellishYourPictures-BuildanApplicationforanAndroidPhone-2009 Balwinder

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-06 Thread Justin Anderson
What exactly are you trying to do with this icon? You can get the icon of an installed application on your phone via PackageManager.getActivityIcon() or PackageManager.getApplicationIcon(). http://developer.android.com/reference/android/content/pm/PackageManager.html Thanks, Justin

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-06 Thread KK
Actually I'm doing a shell extension for windows, showing the icon of apk files in windows, isn't it a good idea? :D so I want to know where the icon located in apk file, and I'm using android API... Thanks for your tip, at least I can go and see the source code of packagemanager.. BR, KK On

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-06 Thread KK
Sorry, I'm NOT using android API On Oct 7, 11:40 am, KK guo.jing...@gmail.com wrote: Actually I'm doing a shell extension for windows, showing the icon of apk files in windows, isn't it a good idea? :D so I want to know where the icon located in apk file, and I'm using android API...

[android-beginners] Re: How to receive an incoming call programmatically?

2009-10-05 Thread Yusuf Saib (T-Mobile USA)
Sorry, no. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 2, 10:47 pm, Nemat nemate...@gmail.com wrote: I mean

[android-beginners] Re: How to set button background color?

2009-10-05 Thread Justin Anderson
The default button background is not a color, but rather a 9-patch png image. Your best bet would be to create a similar 9-patch png image in your favorite image editing software that has a red background. Thanks, Justin --

[android-beginners] Re: How to set button background color?

2009-10-05 Thread Mark Murphy
The default button background is not a color, but rather a 9-patch png image. Your best bet would be to create a similar 9-patch png image in your favorite image editing software that has a red background. It's not even just a 9-patch. It is a StateListDrawable of many 9-patch images

[android-beginners] Re: How to receive callback when press and hold button for a longer time.

2009-10-04 Thread Alexander Kazanin
Now I see. I will suggest a following solution. Suppose we have an activity. Lets create a handler. Than add to our channel up button View.OnTouchListener. Each time user presses the button, we will increase channel number and send a message to handler with FIRST_DELAY delay time. And when user

[android-beginners] Re: How to receive callback when press and hold button for a longer time.

2009-10-03 Thread Shude Zheng
Hi, Alexander, Thank you. I have not describe the question clearly. I want change the channel by pressing button. But press button once and the callback is called once. The channel only one channel up. But I want to change more channels. So I press the button and hold it. The callback will call

[android-beginners] Re: How to receive callback when press and hold button for a longer time.

2009-10-02 Thread Alexander Kazanin
Hi. If I understood your intentions correctly you should set OnLongClickListener. Button button = (Button) findViewById(R.id.*channel_up*); button.setOnFocusChangeListener(new View.OnLongClickListener() { public boolean onLongClick(View

[android-beginners] Re: How to receive an incoming call programmatically?

2009-10-02 Thread Nemat
I mean when we have an incoming call,phone should not be notified and call should be received automatically On Oct 1, 11:47 am, naG mano...@gmail.com wrote: can you explain it more... On Sep 30, 4:12 am, Nemat nemate...@gmail.com wrote: is it possible to intercept an incoming call? I

[android-beginners] Re: How to receive an incoming call programmatically?

2009-10-01 Thread naG
can you explain it more... On Sep 30, 4:12 am, Nemat nemate...@gmail.com wrote: is it possible to intercept an incoming call? I want my application to receive the call automatically through programming.Can we do this in SDK-1.6? Thanks Nemat

<    1   2   3   4   5   6   7   8   9   10   >