[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-25 Thread Paul Turchenko
Use intent to pick a picture and start activity for result On Jul 24, 10:47 pm, cellurl wrote: > How do I launch some external application to show phone pictures and > let users pick one? > > The picture will serve as a background in my app. > So all in all, I just need their selection. e.g. the

[android-beginners] Re: Large jars in Android

2010-07-25 Thread Paul Turchenko
Just increase JVM's heap size. For eclipse I use willowing eclipse.ini: -framework plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar -vm C:/Program Files/Java/jre6/bin/client/jvm.dll -vmargs -Xms256m -Xmx768m -startup file:/C:/Program%20Files/eclipse/plugins/ org.eclipse.equinox.launcher_1.0.

[android-beginners] Re: Launch Activity from BroadcastReciever

2010-03-28 Thread Paul Turchenko
public class Reciever extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Toast.makeText(context, "Alarm Recieved", Toast.LENGTH_LONG).show(); startActivity(new Intent(context, AlarmRing.class)); } } On Mar 21, 6:30 am, Andrew MacK

[android-beginners] Re: how to get sudoku source coed

2010-03-28 Thread Paul Turchenko
Seriously? On Mar 21, 9:22 pm, narwins wrote: > HI Every One > > I m new to the android development. I interested to learn android much > n munch. I want to know where I will get source code of sudoku and how > to build in eclipse. Please help me, > > Thank You -- You received this message beca

[android-beginners] Re: ADB and Eclipse Losing Contact with Emulator

2010-01-04 Thread Paul Turchenko
Try restarting ADB: adb kill-server adb start-server this might save you 10 minutes waiting, but this issue occured to me and I didn't find any solution yet. On Jan 1, 6:18 pm, jimjenkins5 wrote: > Hello all, > > I am having a problem with the emulator (or ADB).  I consistently lose > connection

[android-beginners] Re: ListView

2009-12-24 Thread Paul Turchenko
Check listview's properties. There are some of them inherited that will allow you to disable the scrollbar. On Dec 24, 4:01 pm, sabs wrote: > Hi all > I have a list view with scroll bar, now i would like to remove the > scroll bar in that list view. I am not sure whether it is possible to > disab

[android-beginners] Re: how to make custom spinners

2009-12-11 Thread Paul Turchenko
Catch click event on item and call to showDialod(int id) On Dec 10, 9:10 am, Jetti wrote: > Hi to all, >  i want to create an application to create an custom spinner.i.e. > while clicking on the spinner it shows a full sized dialog box(entire > screen of emulator)  to select the options.But i wan

[android-beginners] Re: How to you keep your program running as a process?

2009-12-11 Thread Paul Turchenko
How do you know that? There are plenty of service running along with Android system, but battery live doesn't seem to be so poor... On Dec 10, 8:18 pm, Justin Anderson wrote: > Keep in mind though, that any service that runs indefinitely will drain the > hell out of the phone's battery. > > -

[android-beginners] Re: Changing Widget Layout Programmatically

2009-12-08 Thread Paul Turchenko
Are you sure that would work??? Remote views is just a collection of actions. It has nothing to do with real widget's layout. On Dec 7, 11:37 pm, ryan alford wrote: > I ended up figuring it out.  So it goes something like this... > > == > > int layoutID = 0; > > if (1 == 1) >    

[android-beginners] Re: Enable and Disable APN

2009-12-08 Thread Paul Turchenko
Take a look at WifiManager class. It communicates with WifiService and provides all available APIs for things you are trying to implement. Note: All managers can be retrieved from any place where you have application context. Say, for Activity, you have to do something like this: (WifiManager)getS

[android-beginners] Re: Clear difference between local and remote service?

2009-11-29 Thread Paul Turchenko
Local service runs in the same process (actually even in the same thread), remote process runs in the separate process. Try playing with services look @ DDMS in processes and threads to see what's really going on. On Nov 26, 4:31 pm, Chris wrote: > Can anyone explain the difference between a loca

[android-beginners] Re: How to run Android Market in simulator

2009-11-29 Thread Paul Turchenko
Officially there's no way to use android market from emulator, however, there are solutions. Try googling it, as I can't reference such things in Android groups ;) On Nov 27, 5:05 pm, david2 wrote: > As an Android developer, it seems essential to be able to access the > market. Its important to s

[android-beginners] Re: Blocking Window key shortcut when specific activity is running

2009-11-26 Thread Paul Turchenko
You should not add such behavior to your application (and android will not allow that) On Nov 26, 8:48 am, swapnil kamble wrote: > Hi All, >          I want to block window key shortcut, which takes user back to home > screen by suspending current activity. I want to block that, I want to eat > u

[android-beginners] Re:

2009-11-26 Thread Paul Turchenko
Do you REALLY believe someone would answer THAT??? On Nov 26, 1:37 pm, saurabh sinha wrote: > hello any body send their cv who are working on android I need a make a good > cv for android beginner > so I can apply in company -- You received this message because you are subscribed to the Google

[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 wrote: > Depending on what you want to do, with the space in the middle, yo

[android-beginners] Re: Change Android Language

2009-10-26 Thread Paul Turchenko
Menu -> Settings -> Locale & text ->Select locale -> English On Oct 25, 5:05 am, Memes wrote: > I am living in China and I bought a HTC Hero with Chinese version of > Android. Can anyone help me to change back the language to english, I > can not read the caracters, but if you give it to me, I c

[android-beginners] Re: file chooser?

2009-10-26 Thread Paul Turchenko
There's nothing like windows' FileOpenDialog if that's what you want... On Oct 26, 7:34 am, Jeffrey Blattman wrote: > this has to be an easy one. i want to bring up a file chooser to be able > to read a file from say the SD card. i'd rather not roll my own. is > there some standard way to do thi

[android-beginners] Re: Battery Usage Indicator API - JDK 1.6

2009-10-26 Thread Paul Turchenko
Dude, they do not expose all battery values to you. They have service written in C that reads this battery values and sends them back to actual BatteryStatsService. Try reading linux' virtual system to get values you want. On Oct 26, 7:26 am, SagarH wrote: > While continuing on my research: > >

[android-beginners] Re: Error early in development

2009-10-26 Thread Paul Turchenko
I personally have everything installed on Windows 7. There's no HOMEDRIVE or HOMEPATH variables set in my environment. Everything works fine here without it. On Oct 25, 7:02 pm, hawksd20 wrote: > I'm still stuck on this, is anyone else having this problem or is it > just me? --~--~-~--~-

[android-beginners] Re: Android Emulator

2009-10-26 Thread Paul Turchenko
Could you please provide more details on your issue. What you say here sounds rally weird. On Oct 24, 11:29 pm, Nat M wrote: > Hi, > > My android emulator on eclipse takes "=" (Equal to) sign in its > default google toolbar and doesnt allows any of my activities/projects > to load. > > Does

[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 (a

[android-beginners] Re: Creating my own helper classes

2009-10-12 Thread Paul Turchenko
if I want to include various xml values with my helper > > classes.  For example, if I create a new View control, how will I > > include the resource files that the view relies on? > > > On Oct 11, 7:14 pm, jax wrote: > >> ok thanks paul > > >> On Oct 11, 3:01

[android-beginners] Re: Creating my own helper classes

2009-10-10 Thread Paul Turchenko
If you're going to use them in different projects, you should definitely use separate java library (not a separate android project). After that, simply include reference to that library to your projects. On Oct 9, 4:25 pm, jax wrote: > I have some methods that I would like to put into a helper l

[android-beginners] Re: Showing a Toast or Activity on top of another application

2009-10-02 Thread Paul Turchenko
Try using Handler: instead of showing toast from non-GUI thread, use handler.post() method to schedule toast for execution in UI thread. On Sep 30, 8:42 pm, Omer Gilad wrote: > Hello, > I have an application which runs a background thread which eventually > updates listeners on some incoming eve

[android-beginners] Re: Compile C on Android Phone

2009-10-02 Thread Paul Turchenko
Doubt that. On Oct 1, 4:36 am, cookiemonsta wrote: > i would like to know if there is a compiler that can be installed ON > the android phone to be used to compile C programms. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-beginners] Re: Instead of android:layout_marginLeft="100px" can we mentioned it in percentage??

2009-10-02 Thread Paul Turchenko
Consider playing with layout_weight attributes. On Oct 2, 3:23 am, Kent Loobey wrote: > On Wednesday 30 September 2009 05:12:36 Jitu wrote: > > > Hi All, > > > I am facing a problem on UI creation for example > > (android:layout_marginLeft="100px") when i switch to portrait to > > landscape then

[android-beginners] Re: Remote View setString

2009-10-02 Thread Paul Turchenko
class offers. I > guess that explains the error I get. > Is there any way to overcome this limitation? Also, I'd like to know > if there is any other way to > dynamically set an xml attribute through remote view (where none of > the RemoteView methods support setting this attribute)

[android-beginners] Re: Remote View setString

2009-10-01 Thread Paul Turchenko
Yes, you can call a public method on widget's views via the remote views as long as it matches signature of 1 of methods that RemoteViews class offers. For example, to set text on the TextView that exists in widget's layout, you can use RemoteViews.setString(R.id.your_view_id, "setText", "your wid

[android-beginners] Re: Listen to a service installation

2009-10-01 Thread Paul Turchenko
Dude, there's no such thing as service installation, as for the *.apks, consider listening to *PACKAGE broadcasts. On Oct 1, 11:00 pm, Valeriano wrote: > Hi all, > > is there a way to listen to a service installation? > I'd like android to callback every time a service.onCreate is called > or wh

[android-beginners] Re: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Paul Turchenko
Use PendingIntent On Sep 14, 8:01 pm, Tikoze wrote: > Anyone? > > On Aug 31, 4:26 pm, Tikoze wrote: > > > Any info on this would be appreciated.  I know it can be done because > > I have installed a few apps that are able to launch via the camera > > button without having the camera app launch

[android-beginners] Re: creating an avd

2009-06-30 Thread Paul Turchenko
Why do you need to use command line to create adv? Is there any particular reason for that? On Jun 30, 10:42 pm, ain wrote: > There is its for creating an android virtual device. > go tohttp://developer.android.com/guide/developing/tools/avd.html --~--~-~--~~~---~--~-

[android-beginners] Re: Error when setting the android preferences in eclipse.

2009-05-12 Thread Paul Turchenko
It seems like you have outdated SDK. New eclipse add-on (starting from v. 0.9.0) doesn't recognize SDK 1.1. However, if you need to develop for SDK 1.1 you simply set target name to android 1.1 and reference 1.1. library from your application. This should work. On May 12, 10:52 am, andersg wrote

[android-beginners] Re: Help! Android Prob.

2009-05-12 Thread Paul Turchenko
I've faced the same thing: emulator starts to load, but gets stuck on the "android" logo screen. The simplest way to make it work - just close the emulator and run a sample that should 100% work. "Hello world" sample generated by eclipse's add-on will definitely work. Right after you got your emul

[android-beginners] Re: Custom library for android

2009-05-12 Thread Paul Turchenko
Not really :(. Let me explain couple steps I made do discover how is it possible: 1. Create a regular java library (third party user will reference it from his android application and use classes declared in it). This solves the problem until I want to have embedded resources and access them via t