[android-beginners] How to find out the screen orientation used at a point of time?

2009-06-15 Thread RTX

an activity can be used on a
- port mode
- land mode

land mode can be showed when the keyboard is open or orientation is
land

how do i find out what is the currant orientation used by the device
from the code ?


Cheers
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] activity dosnt show on the app menu

2009-06-15 Thread RTX

i have a widget project
im adding an activity to the project that i want to be available from
the app menu
it is registerd on the manifest as well as intentfilter and category

but it refuses to add the activity to the menu

what am i doing wrong or is there any thing im missing ?





--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Ticker and Merquee

2009-06-09 Thread RTX

what hapend to the Ticker object ?
i cant find it any more

also Merquee is implemented only on a focusable objects
and only horizontal

what about vertical
and what about runing by itself

did anyone tried to ipmlement this ?


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Ticker and Merquee

2009-06-09 Thread RTX

i found the TextSwitcher object
this one can be a good replacer for a ticker
or a merquee



On Jun 9, 3:54 pm, RTX rote...@gmail.com wrote:
 what hapend to the Ticker object ?
 i cant find it any more

 also Merquee is implemented only on a focusable objects
 and only horizontal

 what about vertical
 and what about runing by itself

 did anyone tried to ipmlement this ?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to set the timeout to the HttpClient

2009-06-03 Thread RTX

Hi

How do i set the timeout to the HttpClient
here is the code im using

please help me i need to kill the request if its taking to long
otherwise its openning a Force Close






HttpClient httpClient = new DefaultHttpClient();
InputStream result = null;
try
{
String url = ...;
Log.d(tag, HttpGet  + url);
HttpGet method = new HttpGet(new URI(url));
HttpResponse response = httpClient.execute(method);
if (response != null)
{

result = response.getEntity().getContent();
}
}
catch(Exception e)
{
Log.e(tag,e.getMessage(),e);
}
return result;
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to set the timeout to the HttpClient

2009-06-03 Thread RTX

i found the answer

thanks you all for your help :)

HttpParams my_httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(my_httpParams,
connection_Timeout);
HttpConnectionParams.setSoTimeout(my_httpParams,
connection_Timeout);
HttpClient httpClient = new 
DefaultHttpClient(my_httpParams);  //
get http client with given params

On Jun 3, 2:17 pm, RTX rote...@gmail.com wrote:
 Hi

 How do i set the timeout to the HttpClient
 here is the code im using

 please help me i need to kill the request if its taking to long
 otherwise its openning a Force Close

 HttpClient httpClient = new DefaultHttpClient();
                 InputStream result = null;
                 try
                 {
                         String url = ...;
                         Log.d(tag, HttpGet  + url);
                         HttpGet method = new HttpGet(new URI(url));
                         HttpResponse response = httpClient.execute(method);
                         if (response != null)
                         {

                                 result = response.getEntity().getContent();
                         }
                 }
                 catch(Exception e)
                 {
                         Log.e(tag,e.getMessage(),e);
                 }
                 return result;
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how build an android class lib

2009-06-03 Thread RTX

Hi Guys

any help  ?



On Jun 1, 11:59 am, RTX rote...@gmail.com wrote:
 im working on a few apps that share the sam core

 i wonder how to build a class lib fro android
 that is using android classes not only java based classes
 so it will be used as class lib

 i understand it might be a stupid quastion but im not comming from the
 java world and it is not clear to me
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to compile Android Project in to Jar file ?

2009-06-03 Thread RTX

im using the same code base in a few projects
its kind of stupid to copy the code to every project and also very
hard to keep track on code versions and mistakes on the copy

how do i compile the code to Jar

om not a comig from JAVA
im a .Net so its kind of diffrent

please help


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] XML iteration on android

2009-06-01 Thread RTX

hi

i found out that sometimes  xmlData is containing more then one child
even if there is no child node

for example if the text contain  or some other special chars and it
is an a forign charSet
it will create a secondery ChildNode from that text

so make sure you are iterating all the nodes in your ChildNode so you
will not loos data

it toolk me sometime to figure it out



i hope i explaind it clear enough

Thanks Mark for your help here
 :)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] how build an android class lib

2009-06-01 Thread RTX

im working on a few apps that share the sam core

i wonder how to build a class lib fro android
that is using android classes not only java based classes
so it will be used as class lib

i understand it might be a stupid quastion but im not comming from the
java world and it is not clear to me

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to set TrueType to a TextView from remote View

2009-05-31 Thread RTX

its very easy to do on an activity
but
the widget got a diffrent way of seeting the activity views

the remoteViews can only set a few things like calling methods and
setting viewText 

how do i set the TrueType to a TextView from remote View

thanks


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to set title icon on Dialog Theme

2009-05-31 Thread RTX

i want to set an icon on the title of the dialog theme
i saw it on a few apps
but i dont know how to applay it to my dialog

thanks

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] how to check in intenet connction is avaliable

2009-05-31 Thread RTX

some times when internet connction is down for conctivity reasons
my app crashes
i want to know how to check intrnet connction before i make a request
ftom the web

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] how to change Widget layout when screen is opend

2009-05-27 Thread RTX

please

any help will be welcome
im stuck with vertical widget that looks like hell on horizontal


what event is being fierd when screen is being opend
i can probebly change the images by the code in there if i would only
knew what event is fired and what filter do i need

but im sure there is a buitin functionality for the layout changing
but i couldnt find anything

again

any help will be great




--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] XmlReader with InputSource encoding issue

2009-05-27 Thread RTX

XmlReader with InputSource

crash when xml encoding is windows-1255

what can i do

i tried to set
inputSource.SetEncoding(cp1255)

then it gives me unknown encoding

i know its probebly a java thing and not android but i will be happy
to get help here

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] work with widget and screen oriantation

2009-05-26 Thread RTX

i m working on a widget
and i have trubles changing the widget layout whenscreen oriantation
changed

so my quastion is
How to change the widget layout when the screen oriantation is
changed ?




--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to convert inputStream to string

2009-05-25 Thread RTX

im retriving XML file from url
im currantly using XmlReader
but for some xml its crashing on me
i whould like to manipulate the xml before parsing
but i dont know how to get the xml String from the ImputStream


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] widget Ticker

2009-05-21 Thread RTX

hi

im trieng to build a widget ticker
that will move on the desktop

do anyone have a demo ?

thanks

Rotor
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Modal Window

2009-05-21 Thread RTX

Hi Guys
please help

im trying to implement a modal window with activity
instead of a fullscreen activity

i saw something with window manager and inflate
but i didnt get it

any chance anyone allready got that

thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Best way to update clock

2009-05-20 Thread RTX

im trying to ACTION_TIME_TICK

but

when i register it to the reciver it is not being called
any ideas ?

here is the manifest :

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=learn.Class_01
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=Chepter_01 android:label=@string/
app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /

action android:name=android.intent.action.TIME_TICK/action
/intent-filter
/activity
receiver android:name=.MySMSMailBox 
intent-filter
action
android:name=android.provider.Telephony.SMS_RECEIVED /
action 
android:name=android.intent.action.TIME_TICK/action
action android:name=android.intent.action.TIME_SET/action
action android:name=android.intent.action.TIMEZONE_CHANGED/
action
/intent-filter
/receiver
/application
uses-sdk android:minSdkVersion=3 /
uses-permission android:name=android.permission.RECEIVE_SMS/uses-
permission





On May 4, 1:02 pm, kaloer mkal...@gmail.com wrote:
 Thank you very much! That's exactly what i was looking for.

 On 4 Maj, 16:32, MrSnowflake mrsnowfl...@gmail.com wrote:



  I believe you are updating you clock every minute. If that's true, you
  could(/should?) use the ACTION_TIME_TICK intent (http://
  developer.android.com/reference/android/content/
  Intent.html#ACTION_TIME_TICK). Register to it from you Activity and
  your BroadcastReceiver will be called every minute.

  On 4 mei, 14:38, kaloer mkal...@gmail.com wrote:

   Hi,

   I have a method in my application which updates a clock. But what is
   the best way to run the method so that it automatically updates the
   clock?

   Should i use a Timer (i have heard, that it does not work very well in
   android) or what should i use?
   I will be glad if you could please post a simple example :-)

   Currently the part of my code that contains the thread looks like
   this, but it does not work (I don't get an exeption, but it simply
   does not run the updateTime() method.) :

   public class NightClock extends Activity {

           private final ScheduledExecutorService scheduler =
   Executors.newScheduledThreadPool(1);
           ScheduledFuture? updateHandle;

       /** Called when the activity is first created. */
       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
           Calendar cal = Calendar.getInstance();
           updateTime();
           long toTimerStart = ( 60 - cal.get(Calendar.SECOND) ) * 1000;
           Runnable mUpdateTimeTask = new Runnable() {
                           public void run() {
                                   updateTime();
                           }
           };

           updateHandle = scheduler.scheduleAtFixedRate(mUpdateTimeTask,
   toTimerStart, 1000, TimeUnit.MILLISECONDS);

       }

   Thank you very much!

   //Kaloer- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---