[android-developers] Billing System

2011-07-05 Thread Ahmed Shoeib
hi all ,
i want to know how to develop this ideas

1 - assume i have a free application on android market and this
application is free
and contain some locked service .

now i need that when user click button to enable this service we will
take it's cost from the user .

2 - using sms ... calling my friends and when he reply me .
automatically we will take cost from me .

please i want to know how to develope this idea ??

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Billing System

2011-07-05 Thread Ahmed Shoeib
how i can do this ???

On Jul 5, 4:19 pm, Chrystian Vieyra  wrote:
> You must collect the payment via an authorized Android Market Payment
> Processor.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to get my mobile service provider using android

2011-07-07 Thread Ahmed Shoeib
hi all ,

i want to know how to get my mobile servie provider using android
code ?

thanks .

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to get my mobile service provider using android

2011-07-07 Thread Ahmed Shoeib
thanks for reply
i tested this code

 TelephonyManager telephonyManager =((TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE));
String operatorName =
telephonyManager.getNetworkOperatorName();
Log.e("service provider ", operatorName);

and the output in simulator  = Android

is this a correct result on simulator or not 

On Jul 7, 12:15 pm, Raghav Sood  wrote:
> Take a look 
> athttp://developer.android.com/reference/android/telephony/TelephonyMan...()
>
> On Thu, Jul 7, 2011 at 2:16 PM, Ahmed Shoeib
> wrote:
>
> > hi all ,
>
> > i want to know how to get my mobile servie provider using android
> > code ?
>
> > thanks .
>
> > --
> > 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...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Raghav 
> Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Localization

2011-07-09 Thread Ahmed Shoeib
hi ,

i want to make button when i press it ... the app language will
change without need to close the app and open it again


can i do this step ???

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] web view

2011-07-10 Thread Ahmed Shoeib
hi ,

now i have a web view

wv.setWebViewClient(new WebViewClient() {
  @Override
  public boolean 
shouldOverrideUrlLoading(WebView view, String
url)
  {
view.loadUrl(url);
return true;
  }
});

wv.loadUrl("file:///android_asset/t2.html");

t2.html may contain doc/pdf links

i want to open this links in webview
or i need another solution to open it


please help

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Localization

2011-07-10 Thread Ahmed Shoeib
using this code
Locale locale = new Locale("ar");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;

getBaseContext().getResources().updateConfiguration(config,

getBaseContext().getResources().getDisplayMetrics());
setContentView(R.layout.main);

the acticivity language converted to arabic correctly

but when i am trying to do it with english

Locale locale = new Locale("en");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;

getBaseContext().getResources().updateConfiguration(config,

getBaseContext().getResources().getDisplayMetrics());
setContentView(R.layout.main);

nothing happen  why ??


On Jul 10, 11:43 am, Ali Chousein  wrote:
> > . load
> > the layout again after changing the locale
>
> Martin, good information man. Although I didn't ask the original
> question, thank you. If I ever support localization I'll keep this in
> my mind.
>
> --
> Ali Chousein
> Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/
> Cisco Android marketplace (Chosen for Cisco 
> Cius)https://marketplace.cisco.com/apphq/products/510

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: web view

2011-07-14 Thread Ahmed Shoeib
how i can download it by myself

do you mean after invoking intent to open this pdf/doc
i will save it on device ??? or what ?

thaks for reply

On Jul 11, 9:36 pm, Kumar Bibek  wrote:
> WebView cannot render doc/pdf. You should be launching intents when
> someone hits those links. Moreover, the applications installed on the
> devices might not be able to (in some cases) download and render these
> files. In such scenarios, you would need to download the files
> yourself and then launch the respective intents.
>
> On Jul 10, 7:52 pm, Ahmed Shoeib 
> wrote:
>
>
>
>
>
>
>
> > hi ,
>
> > now i have awebview
>
> > wv.setWebViewClient(new WebViewClient() {
> >                                   @Override
> >                                   public boolean 
> > shouldOverrideUrlLoading(WebViewview, String
> > url)
> >                                   {
> >                                    view.loadUrl(url);
> >                                     return true;
> >                                   }
> >                                 });
>
> >                                 wv.loadUrl("file:///android_asset/t2.html");
>
> > t2.html may contain doc/pdf links
>
> > i want to open this links in webview
> > or i need another solution to open it
>
> > please help

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Radio Streaming App

2010-09-01 Thread Ahmed Shoeib
Hi all ,
i want simple application for streaming Radio on android

thanks ,
ahmed shoeib

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android streamer Class

2010-09-01 Thread Ahmed Shoeib
Hi all ,
i want a class implements radio streamer
the application should streams radio from url
the streamer should include ( MP3 , WM , AAC ) ..

can anyone help me ???

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Radio streamer Class

2010-09-03 Thread Ahmed Shoeib
Hi all ,

i have some question about android streamer class

1 - is there is an open-source streamer class for android ( streamer
class include [ mp3 , WM , AAC ] and include meta data about the
file ?


and if there is an streamer class for android can you support a link
for it ?


Thanks ,

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Radio streamer Class

2010-09-03 Thread Ahmed Shoeib
do you have alink for this app

On Sep 3, 10:29 pm, Jeremy Wadsack  wrote:
> The NPR android app on Google code is open source. It streams mp3 and any
> other natively supported stream. I doubt it supports WAV.
>
> - Jeremy
>
> On Sep 3, 2010 12:43 PM, "Ahmed Shoeib" 
> wrote:
>
> > Hi all ,
>
> > i have some question about android streamer class
>
> > 1 - is there is an open-source streamer class for android ( streamer
> > class include [ mp3 , WM , AAC ] and include meta data about the
> > file ?
>
> > and if there is an streamer class for android can you support a link
> > for it ?
>
> > Thanks ,
>
> > --
> > 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...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Stream WMA using libmms & libffmpeg

2010-09-14 Thread Ahmed Shoeib
I need a report about libmms &libffmpeg in Java/Android

and  how can we use them to stream wma ???


thanks

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Stream WMA using libmms & libffmpeg

2010-09-15 Thread Ahmed Shoeib
I need a report about libmms &libffmpeg in Java/Android

and  how can we use them to stream wma ???

thanks

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] libmms & libffmpeg in Android to Stream WMA

2010-09-15 Thread Ahmed Shoeib
I need a report about libmms & libffmpeg in Android


 how can we use them to stream wma ???


Thanks

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Google Map Problem

2010-11-05 Thread Ahmed Shoeib
hi,

i need to make progressBar start and during it map loaded
and after the progressBar finish the Map load ?


how to do it ?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] handle android BackButton with Repalcing Views

2010-11-08 Thread Ahmed Shoeib
Hi ,

this following code i use it to make Replace view ( VideoStepView )
with other view (VideoViewController)

Intent intent = new Intent(VideoStepView.this,
VideoViewController.class);

intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

View view =
HomeActivity.group.getLocalActivityManager().startActivity("VideoViewController",intent
   )
.getDecorView();
HomeActivity.group.replaceView(view);


---

now i want to handle android backbutton @ ( VideoViewController)

i tried this code to do this

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
super.onKeyDown(keyCode, event);

if(keyCode == KeyEvent.KEYCODE_BACK){

Log.e("Back Video View ", "Done ");

Intent intent = new Intent(VideoViewController.this,
VideoStepView.class);

intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

View view =
HomeActivity.group.getLocalActivityManager().startActivity("VideoStepView",intent
   )
.getDecorView();
HomeActivity.group.replaceView(view);
}

return true;
}


---

but the action of the android backButton not enter this action
??


how to solve this problem  ?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] streaming mp4 from Internet

2010-11-21 Thread Ahmed Shoeib
hi ,

i got this message when trying to play mp4 video on android from url
( video is not valid for streaming on this device )


the code i use to play mp4

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "video/mp4");
startActivity(intent);

how to solve this problem ??

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-21 Thread Ahmed Shoeib
but i tried it on areal device
how can MP4Box added to fix this problem ??

On Nov 21, 10:40 pm, Mark Murphy  wrote:
> On Sun, Nov 21, 2010 at 3:35 PM, Ahmed Shoeib
>
>  wrote:
> > how to support it
>
> You need to modify the video. The video is not safe for streaming.
>
> http://groups.google.com/group/android-developers/browse_frm/thread/f...
>
> Use MP4Box -hint  to fix it.
>
> http://www.videohelp.com/tools/mp4box
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-21 Thread Ahmed Shoeib
how to support it
or
do you have any other way to play mp4 file ??

On Nov 21, 10:27 pm, Kumar Bibek  wrote:
> You cannot fix this. This media type is not supported on your device,
>
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> On Mon, Nov 22, 2010 at 1:47 AM, Ahmed Shoeib 
> > wrote:
> > hi ,
>
> > i got this message when trying to play mp4 video on android from url
> > ( video is not valid for streaming on this device )
>
> > the code i use to play mp4
>
> >                Intent intent = new Intent(Intent.ACTION_VIEW);
> >                intent.setDataAndType(Uri.parse(url), "video/mp4");
> >                startActivity(intent);
>
> > how to solve this problem ??
>
> > --
> > 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...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-21 Thread Ahmed Shoeib
what do you mean by this video is my video or not ??
and how to start MP4Box on device ??

On Nov 21, 10:55 pm, Mark Murphy  wrote:
> On Sun, Nov 21, 2010 at 3:52 PM, Ahmed Shoeib
>
>  wrote:
> > but i tried it on areal device
> > how can MP4Box added to fix this problem ??
>
> You do not run MP4Box on the device.
>
> Either this is your video, or it is not.
>
> If it is your video, on your PC, run MP4Box on the video file, and
> arrange it so your device can download the repaired file.
>
> If this is not your video, you simply cannot play it streaming. You
> are welcome to download the video and play it locally.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-23 Thread Ahmed Shoeib
as a conclusion
to stream mp4 video from internet i need to use MP4Box installed on my
device
Right ??

On Nov 22, 8:38 pm, Leon Moreyn-Android Development
 wrote:
> If this video is your video is stored locally on your computer. If its
> not video, ie you are trying to steam from Youtube or something like
> that that is streaming this video on the web then you will not be able
> to do so. You must have admin access to the video for it to be "your
> video".  MP4Box is tool to repair the video file before it reaches
> your device. You do not run the repair on the device because while
> Android are robust the battery need to repair small video will consume
> too large a portion of battery.
>
> On Nov 21, 4:20 pm, Ahmed Shoeib 
> wrote:
>
> > what do you mean by this video is my video or not ??
> > and how to start MP4Box on device ??
>
> > On Nov 21, 10:55 pm, Mark Murphy  wrote:
>
> > > On Sun, Nov 21, 2010 at 3:52 PM, Ahmed Shoeib
>
> > >  wrote:
> > > > but i tried it on areal device
> > > > how can MP4Box added to fix this problem ??
>
> > > You do not run MP4Box on the device.
>
> > > Either this is your video, or it is not.
>
> > > If it is your video, on your PC, run MP4Box on the video file, and
> > > arrange it so your device can download the repaired file.
>
> > > If this is not your video, you simply cannot play it streaming. You
> > > are welcome to download the video and play it locally.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android App Developer Books:http://commonsware.com/books

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-23 Thread Ahmed Shoeib
but the video streams correctly on iphone

On Nov 23, 5:22 pm, Mark Murphy  wrote:
> On Tue, Nov 23, 2010 at 10:14 AM, Ahmed Shoeib
>
>  wrote:
> > as a conclusion
> > to stream mp4 video from internet i need to use MP4Box installed on my
> > device
> > Right ??
>
> If by "device" you mean "Android device", then no. MP4Box runs on a
> Windows, OS X, or Linux computer. You use it to fix up an MP4 file,
> such that it is "safe for streaming". Then, you can upload that video
> file to your Web server, and Android devices will be able to stream
> it.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android internationalization problem

2010-11-23 Thread Ahmed Shoeib
hi,

now i know that to check English Language using xml --- we create
folder named ( values-en )
to be used if the language is English language

and using code

String locale =
this.getResources().getConfiguration().locale.toString();

that return selectmen language on the device ?

and it is en_us if the device language is English

now my Question is :-


- how to check the Norwegian language using xml file ?
- and what the value for local if the device language is Norwegian ???


thanks,

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming mp4 from Internet

2010-11-23 Thread Ahmed Shoeib
thanks alot for this support.


On Nov 23, 8:42 pm, Mark Murphy  wrote:
> On Tue, Nov 23, 2010 at 1:38 PM, Ahmed Shoeib
>
>  wrote:
> > but the video streams correctly on iphone
>
> That may be true. However, you will note that Android is not iPhone.
> In particular, early Android devices have little storage space, and so
> while iPhone can buffer the MP4 to deal with the unhinted data,
> Android does not.
>
> A properly-hinted MP4 file, such as is generated via MP4Box -hint,
> will start playback faster on iOS devices, as well as be compatible
> with current generations of Android devices.
>
> Perhaps one day the "safe for streaming" limitation will be lifted.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android internationalization problem

2010-11-28 Thread Ahmed Shoeib
how to check the Norwegian language using xml file ?

-- i mean that for checking if the device language is English then we
create folder named ( values-en) that hold file name strings.xml
this file work if the device language is English .

-- now i need to know if the device language is Norwegian what is the
name of the folder that hold the file (strings.xml).


and about the value
i mean en_us is the value  of English
what is the value for Norwegian ??

thanks,

On Nov 24, 9:31 pm, TreKing  wrote:
> On Tue, Nov 23, 2010 at 12:45 PM, Ahmed Shoeib <
> values
> ahmedelsayed.sho...@gmail.com> wrote:
> > - how to check the Norwegian language using xml file ?
>
> Not sure what you're asking.
>
> >  - and what the value for local if the device language is Norwegian ???
>
> http://www.google.com/search?q=norwegian+locale
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android internationalization problem

2010-11-28 Thread Ahmed Shoeib
thanks i found the solution
the values for Norwegian is -> nb

thanks.


On Nov 28, 3:29 pm, Ahmed Shoeib 
wrote:
> how to check the Norwegian language using xml file ?
>
> -- i mean that for checking if the device language is English then we
> create folder named ( values-en) that hold file name strings.xml
> this file work if the device language is English .
>
> -- now i need to know if the device language is Norwegian what is the
> name of the folder that hold the file (strings.xml).
>
> and about the value
> i mean en_us is the value  of English
> what is the value for Norwegian ??
>
> thanks,
>
> On Nov 24, 9:31 pm, TreKing  wrote:
>
> > On Tue, Nov 23, 2010 at 12:45 PM, Ahmed Shoeib <
> > values
> > ahmedelsayed.sho...@gmail.com> wrote:
> > > - how to check the Norwegian language using xml file ?
>
> > Not sure what you're asking.
>
> > >  - and what the value for local if the device language is Norwegian ???
>
> >http://www.google.com/search?q=norwegian+locale
>
> > -
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android internationalization problem

2010-11-28 Thread Ahmed Shoeib
thanks i found the solution
the values for Norwegian is -> nb

thanks.


On Nov 28, 3:29 pm, Ahmed Shoeib 
wrote:
> how to check the Norwegian language using xml file ?
>
> -- i mean that for checking if the device language is English then we
> create folder named ( values-en) that hold file name strings.xml
> this file work if the device language is English .
>
> -- now i need to know if the device language is Norwegian what is the
> name of the folder that hold the file (strings.xml).
>
> and about the value
> i mean en_us is the value  of English
> what is the value for Norwegian ??
>
> thanks,
>
> On Nov 24, 9:31 pm, TreKing  wrote:
>
> > On Tue, Nov 23, 2010 at 12:45 PM, Ahmed Shoeib <
> > values
> > ahmedelsayed.sho...@gmail.com> wrote:
> > > - how to check the Norwegian language using xml file ?
>
> > Not sure what you're asking.
>
> > >  - and what the value for local if the device language is Norwegian ???
>
> >http://www.google.com/search?q=norwegian+locale
>
> > -
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android internationalization problem

2010-12-08 Thread Ahmed Shoeib
thanks a lot

On Nov 28, 9:19 pm, Kostya Vasilyev  wrote:
> "nb" is for the other Norwegian dialect, apparently more widespread than
> Nyorsk. But then I'm not Norwegian either :)
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
> 28.11.2010 22:16 пользователь "Marcin Orlowski" 
> написал:>> -- now i need to know if the device language is Norwegian what is 
> the
> >> name of the folder that hold the file (strings.xml).
>
> > Mandatory lecture for anyone interested:
>
> http://developer.android.com/guide/topics/resources/providing-resourc...
>
> > which reads "The language is defined by a two-letter ISO 639-1
> > language code", so ISO codes
> > are listed here:http://www.loc.gov/standards/iso639-2/php/code_list.php
>
> >> i mean en_us is the value  of English
> >> what is the value for Norwegian ??
>
> > Look up the ISO code, as language code is not always what one may think
> > it is. I.e. "Swedish" is not "se" (as I happened to think myself
> > wrongly as well)
> > but "sv".)
>
> >> the values for Norwegian is -> nb
>
> > I believe you got it wrong. "nn" is for "Norwegian Nyorsk" (
> >http://en.wikipedia.org/wiki/Nynorsk)
> > while "Norwegian" is just "no". I'd rather use "no" myself, but as
> > your norvegian translation
> > did not come out of nowhere, just ask your translator. S/he shall know
> > what type of norvegian was
> > used and if that person is native, then that would be more than perfect.
>
> > --
> > 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...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android internationalization problem

2010-12-08 Thread Ahmed Shoeib
thanks a lot

On Nov 28, 9:19 pm, Kostya Vasilyev  wrote:
> "nb" is for the other Norwegian dialect, apparently more widespread than
> Nyorsk. But then I'm not Norwegian either :)
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
> 28.11.2010 22:16 пользователь "Marcin Orlowski" 
> написал:>> -- now i need to know if the device language is Norwegian what is 
> the
> >> name of the folder that hold the file (strings.xml).
>
> > Mandatory lecture for anyone interested:
>
> http://developer.android.com/guide/topics/resources/providing-resourc...
>
> > which reads "The language is defined by a two-letter ISO 639-1
> > language code", so ISO codes
> > are listed here:http://www.loc.gov/standards/iso639-2/php/code_list.php
>
> >> i mean en_us is the value  of English
> >> what is the value for Norwegian ??
>
> > Look up the ISO code, as language code is not always what one may think
> > it is. I.e. "Swedish" is not "se" (as I happened to think myself
> > wrongly as well)
> > but "sv".)
>
> >> the values for Norwegian is -> nb
>
> > I believe you got it wrong. "nn" is for "Norwegian Nyorsk" (
> >http://en.wikipedia.org/wiki/Nynorsk)
> > while "Norwegian" is just "no". I'd rather use "no" myself, but as
> > your norvegian translation
> > did not come out of nowhere, just ask your translator. S/he shall know
> > what type of norvegian was
> > used and if that person is native, then that would be more than perfect.
>
> > --
> > 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...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] read Bar-code From Image

2010-09-26 Thread Ahmed Shoeib
hi ,
i want to know if there is an open-source code for Android that
enables us to read the barcode from an image and parse it


i found zebra crossing hosting on Google code

http://code.google.com/p/zxing/

but i can't found the code .
and when trying to check out the code the url is invalid


thanks,
ahmed shoeib

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: read Bar-code From Image

2010-09-27 Thread Ahmed Shoeib
yeah i made it
but the code have mutliple error
and when trying to fix it
the code not work


do you have another example 

On Sep 27, 2:46 am, Alan Carvalho de Assis  wrote:
> Hi Ahmed,
>
> On 9/26/10, Ahmed Shoeib  wrote:
>
> > hi ,
> > i want to know if there is an open-source code for Android that
> > enables us to read the barcode from an image and parse it
>
> > i found zebra crossing hosting on Google code
>
> >http://code.google.com/p/zxing/
>
> > but i can't found the code .
> > and when trying to check out the code the url is invalid
>
> Did you execute it:
>
> $ svn checkouthttp://zxing.googlecode.com/svn/trunk/zxing-read-only
>
> BR,
>
> Alan

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] video player

2010-10-02 Thread Ahmed Shoeib
hi,
i want to play video on android
can anyone help me to play video ?

thanks,

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: video player

2010-10-03 Thread Ahmed Shoeib
but i want it for mp4 files

On Oct 3, 9:05 am, AnasSamara  wrote:
> 1-ADD VideoView in the layout.
> 2- push video file to sdcard
> 3- put the code
> VideoView videoHolder = (VideoView) activity
>                                 .findViewById(R.id.VideoView01);
>                 videoHolder.stopPlayback();
>                 videoHolder.clearFocus();
>                 videoHolder.requestFocus();
>                 videoHolder.setMediaController(new MediaController(activity));
>                 videoHolder.setVideoURI(Uri.parse("sdcard/androidVideo" + i + 
> ".
> 3gp"));
>
>                 videoHolder.start();
>
> On Oct 2, 11:09 pm, Sudsak  wrote:
>
> > READ THE DOCUMENTATION.
>
> >http://developer.android.com/guide/index.html
>
> > Google is your friend, use it.
>
> > On Oct 2, 6:57 am, Ahmed Shoeib  wrote:
>
> > > hi,
> > > i want to play video on android
> > > can anyone help me to play video ?
>
> > > thanks,
>
>

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] MP4 video problem

2010-10-11 Thread Ahmed Shoeib
hi all,

i want to play mp4 video on android .
using intent

this is the code i used to play mp4 file :

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("http://www.apphuset.no/
skiprepper/video/rex/6.mp4"), "video/mp4");
startActivity(intent);


but there is no video play back only sound we can here from it


what is the problem and how to fix this ?


thanks.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android internationalization problem

2010-10-11 Thread Ahmed Shoeib
hi all,

now i now how to make my application internationalization

the problem in :

i wanna to test it if the language is Norwegian
but i can't find it on my simulator .

how to Add Norwegian Language To my Application ?

thanks

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Save User Data in android

2010-10-11 Thread Ahmed Shoeib
hi all,

i want to know how to save user Data in android so i can retrieve it
when staring and during the run of the application


thanks .

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Custom ListView Contain ImageView + TextView + CheckBox for selected Row

2010-10-12 Thread Ahmed Shoeib
hi all ,

the first Question :
---

i tried to make this using normal listView
and this is the pic

http://www8.0zz0.com/2010/10/12/10/511032679.png


i can't add image to it
how i can Add image At The beginning of the listView in each Row ???



the Seconed Question :
-

i tried to make the same thing using Custom ListView Using
ArrayAdapter
and this is the pic

http://www8.0zz0.com/2010/10/12/10/413507770.png

i can't add a checkBox at each row

how i can add a CheckBox At the End of each Row ?


-

or if there is any other way to do that plz tell me about it ??


thanks,
ahmed shoeib




-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Custom ListView Contain ImageView + TextView + CheckBox for selected Row

2010-10-12 Thread Ahmed Shoeib
i made this
and this is the pic

http://www6.0zz0.com/2010/10/12/21/748629320.png

but i can't make an action on the table

this is the  row.xml



http://schemas.android.com/apk/res/android";
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
android:orientation="horizontal">






and this is the code

package com.sai.ui.listview;

import java.util.ArrayList;
import java.util.HashMap;


import android.app.AlertDialog;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;

public class MyCustomListView extends ListActivity {

private String[] m_orders =
{"Swix","Dominator","Holmenkol","Rex","Rode",
 "Skigo","Star","Toko","Vauhti","Vola"};

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.custom_list_view);

SimpleAdapter adapter = new SimpleAdapter(
this,
list,
R.layout.custom_row_view,
new String[] {"image","text","check"},
new int[] {R.id.ImageView01,R.id.text1}
);
populateList();
setListAdapter(adapter);
}

static final ArrayList> list =
new ArrayList>();

private void populateList() {
HashMap temp = new HashMap();
temp.put("text","Swix");
temp.put("image", ""+getResources().getIdentifier("swix",
"drawable", getPackageName()));
list.add(temp);

HashMap temp1 = new HashMap();
temp1.put("text","Dominator");
temp1.put("image", ""+getResources().getIdentifier("dominator",
"drawable", getPackageName()));
list.add(temp1);

HashMap temp2 = new HashMap();
temp2.put("text","Holmenkol");
temp2.put("image", ""+getResources().getIdentifier("holmenkol",
"drawable", getPackageName()));
list.add(temp2);

HashMap temp3 = new HashMap();
temp3.put("text","Rex");
temp3.put("image", ""+getResources().getIdentifier("rex",
"drawable", getPackageName()));
list.add(temp3);


HashMap temp4 = new HashMap();
temp4.put("text","Rode");
temp4.put("image", ""+getResources().getIdentifier("rode",
"drawable", getPackageName()));
list.add(temp4);

}

@Override
protected void onListItemClick(ListView l, View v, int position,
long id) {
//
this.m_adapter.getItem(position).click(this.getApplicationContext());
AlertDialog.Builder adb = new
AlertDialog.Builder(MyCustomListView.this);
    adb.setTitle("LVSelectedItemExample");
adb.setMessage("Selected Item is = " + m_orders[position]);
adb.setPositiveButton("Ok", null);
adb.show();





}
}




---

how can i solve this prolem ???






On Oct 12, 3:25 pm, karteek  wrote:
> 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 
> wrote:
>
> > hi all ,
>
> > the first Question :
> > ---
>
> > i tried to make this using normal listView
> > and this is the pic
>
> >http://www8.0zz0.com/2010/10/12/10/511032679.png
>
> > i can't add image to it
> > how i can Add image At The beginning of the listView in each Row ???
>
> > the Seconed Question :
> > -
>
> > i tried to make the same thing using Custom ListView Using
> > ArrayAdapter
> > and this is the pic
>
> >http://www8.0zz0.com/2010/10/12/10/413507770.png
>
> > i can't add a checkBox at each row
>
> > how i can add a CheckBox At the End of each Row ?
>
> > -
>
> > or if there is any other way to do that plz tell me about it ??
>
> > thanks,
> > ahmed shoeib
>
>

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] CheckBox problem

2010-10-13 Thread Ahmed Shoeib
hi all,

i have custom ArrayAdapter to make listView each row contain ( image &
text & checkBox )

i made the xml file to make the standard layout for row

and make the default visibility for checkBox false

in getView function that draw the listview

get the checkBox using id and assign specific tag for it to enable me
to get it

on the onListItemClick function

i made this code :

   CheckBox check = (CheckBox)v.findViewWithTag(position);
check.setVisibility(0);

to get the current checkbox and make it visible

but when i choose specific row i found that some of the other rows
checkbox become visible
and current row checkbox not change ??

what is the problem ???
how can isolve it

thanks



-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en