[android-developers] Youtube API for subscribed channels list

2016-05-14 Thread shiva pendem
Hello,

I am working on YouTube videos API,

I am unable to get the channels user subscribed,

can any one share me the link where the google api can provide me the list
of channels subscribed for the user account, in the latest version of
google api,

Thanks,
Pendem Shiva Shankar,

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANo2zJMZNj4q7Q_hNLRVL3YgqSn_HZdXovnyUaehQ72MyxZX0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] WhatsApp Messenger: Android + iPhone + Nokia + BlackBerry + Windows Phone

2016-03-12 Thread shiva pendem
Hey,

I just downloaded WhatsApp Messenger on my Android.

It is a smartphone messenger which replaces SMS. This app even lets me send
pictures, video and other multimedia!

WhatsApp Messenger is available for Android, iPhone, Nokia, Windows Phone
and BlackBerry and there is no PIN or username to remember - it works just
like SMS and uses your internet data plan.

Get it now from https://www.whatsapp.com/download/ and say good-bye to SMS!


Thanks,
Pendem Shiva Shankar,
+91-9533024675.
Note: This mail was sent from mobile, please ignore typo and alignments.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANo2zJPOqxBJ2X1dVugTxcvwTAc5igX3M_vJbsznMhz9UEkdig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Call Forwarding for current call which is ringing

2015-11-25 Thread shiva pendem
Hello Team,

I am trying to implement  call diverting application for selected numbers,
Can i do that.

Coming with a clear description i need to implement call forwarding on call
receiving, i get a call from a number lets say 9876543210, this user is a
special person so for this i would like to transfer this call to another
personal number automatically and not for other numbers. I am able to get
the number saved and get the incoming number validated.

How can i divert the call automatically when the phone is ringing if that
number is special number.

Thanks,
Pendem Shiva Shankar,

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Application example

2015-07-30 Thread shiva pendem
Hello,

I need a android application where it will show two routes in first screen
let say the route is from A to B and the second one is from C to D. and
 below that i need a button to which asks for show on map, on clicking the
button  it should show the two route maps in the new screen, here i will be
sending 4 points that is 4 latitudes and 4 longitudes to next screen.

Can any one guide me how can i do this. my main moto or requirement is to
show two routes for 4 different points as explained.

Thanks,
Pendem Shiva Shankar,
Mob:+91-9533024675.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Message Destination

2015-02-06 Thread shiva pendem
Hello Team,

I have a dual sim android phone. 
I want to read detect to which sim,
the SMS has arrived, sms.getOriginatingAddress() using this i can get the 
number from which message has arrived,

But i need to even know to which sim it has received,

Please to suggest me how can i find out the restination mobile number of 
that message,

Thanks,
Shiva Shankar.



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Fingerprint Scanner

2014-04-01 Thread shiva pendem
Hello all,

i am planing to make a application with finger print as a securit to that
application,

but i am unable to find the correct data or reference to my plan of making
the application,

i have seen the application
https://play.google.com/store/apps/details?id=mobi.thinkchange.fingerscannerlite

in this similar way, to access my application it should ask for fingerprint
scan,

how can i achieve the process of scanning the finger print,

all the reference links and sample codes are most welcome,


Thanks,
Pendem Shiva Shankar,
Gtalk:pendem.shiva89,
msn:shivapen...@live.com,
www.shivaapps.in.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] parsing responce of a web url

2013-11-07 Thread shiva pendem
Hello all

I have searches internet. I have got the solution.
Thanks for your support.

Thanks,
pendem shiva shankar
msn:shivapen...@live.com
gtalk:pendem.shiva89
On Nov 7, 2013 5:00 PM, "TreKing"  wrote:

>
> On Thu, Nov 7, 2013 at 1:28 AM, shiva pendem wrote:
>
>> I have 0 knowledge in this.
>> Can you please send me a small method where i will be giving the site url
>> and the output xml or string need to be resulted.
>>
> Having you tried searching the internet? This is a very common task.
>
>
> -
> 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
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/uok-MLIhx2g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] parsing responce of a web url

2013-11-06 Thread shiva pendem
Hello krishna prasad
I am new in using web services in application by searching in net.
I have 0 knowledge in this.
Can you please send me a small method where i will be giving the site url
and the output xml or string need to be resulted.

Thanks,
pendem shiva shankar
msn:shivapen...@live.com
gtalk:pendem.shiva89
On Nov 7, 2013 8:24 AM, "Krishna Prasad" 
wrote:

> did u encode ur url while sending request?
>
>
> On Thu, Nov 7, 2013 at 7:57 AM, shiva pendem wrote:
>
>> Hi mukesh.
>> My applicatoin is parsing the string but i am unable to get the text
>> shown in the web browser.
>> When ever i hit the url in any browser it shows a string as output. So i
>> need a help in getting the string. Parsing was fine with my application
>>
>> Thanks,
>> pendem shiva shankar
>> msn:shivapen...@live.com
>> gtalk:pendem.shiva89
>> On Nov 6, 2013 10:45 PM, "Mukesh Srivastav"  wrote:
>>
>>> You could use any stringtokenizer or just any string parsing and it
>>> should be any challenge to do that.
>>>
>>> let us know if you any specific tag or any specific string to parse
>>>
>>>
>>> On Wed, Nov 6, 2013 at 8:43 PM, shiva pendem 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> i am new using web serviced in the application,
>>>>
>>>> i have a problem while using the web services in the application
>>>>
>>>> i have a URL let us say "www.abc.com/2013/11/06"
>>>>
>>>> and if i run this URL i get only string as response as *"you have done
>>>> a special work","[50%],"[80%]" *  in the browser.
>>>>
>>>> so i want to get the same response in the application
>>>>
>>>> it is not replying as XML to use XML reader of my own XML handler,
>>>>
>>>> please help me how to get the text from the URL.
>>>>
>>>> Thanks
>>>> Shiva Shankar.
>>>>
>>>> --
>>>> 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 unsubscribe from this group and stop receiving emails from it, send
>>>> an email to android-developers+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Warm Regards,
>>> *Mukesh Kumar*,
>>> Android Consultant/Freelancer,
>>> India,Hyderabad.
>>>
>>> --
>>> 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 a topic in the
>>> Google Groups "Android Developers" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/android-developers/uok-MLIhx2g/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> android-developers+unsubscr...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>  --
>> 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.

Re: [android-developers] parsing responce of a web url

2013-11-06 Thread shiva pendem
Hi mukesh.
My applicatoin is parsing the string but i am unable to get the text shown
in the web browser.
When ever i hit the url in any browser it shows a string as output. So i
need a help in getting the string. Parsing was fine with my application

Thanks,
pendem shiva shankar
msn:shivapen...@live.com
gtalk:pendem.shiva89
On Nov 6, 2013 10:45 PM, "Mukesh Srivastav"  wrote:

> You could use any stringtokenizer or just any string parsing and it should
> be any challenge to do that.
>
> let us know if you any specific tag or any specific string to parse
>
>
> On Wed, Nov 6, 2013 at 8:43 PM, shiva pendem wrote:
>
>> Hi,
>>
>> i am new using web serviced in the application,
>>
>> i have a problem while using the web services in the application
>>
>> i have a URL let us say "www.abc.com/2013/11/06"
>>
>> and if i run this URL i get only string as response as *"you have done a
>> special work","[50%],"[80%]" *  in the browser.
>>
>> so i want to get the same response in the application
>>
>> it is not replying as XML to use XML reader of my own XML handler,
>>
>> please help me how to get the text from the URL.
>>
>> Thanks
>> Shiva Shankar.
>>
>> --
>> 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 unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> --
> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/uok-MLIhx2g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] parsing responce of a web url

2013-11-06 Thread shiva pendem
Hi,

i am new using web serviced in the application,

i have a problem while using the web services in the application

i have a URL let us say "www.abc.com/2013/11/06"

and if i run this URL i get only string as response as *"you have done a 
special work","[50%],"[80%]" *  in the browser.

so i want to get the same response in the application
 
it is not replying as XML to use XML reader of my own XML handler,

please help me how to get the text from the URL.

Thanks 
Shiva Shankar.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Admob in a View

2013-08-12 Thread shiva pendem
Hi,

I am working on a game with a view, i would like to display ads after 
completion of each level,

but i don't know how to display ads in view,

Can any one please send me the sample source to display ads in view to 
pendem.shiv...@gmail.com,

Thanks
Shiva Shankar

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Text to speech

2013-08-10 Thread shiva pendem
Hi,
i have been debugging from past 3 days but unable to fine out the reason,

As you have said i have added lot many permissions to make it run but it is 
not working fine,






  
  

these are the permissions added, and i am using, my phone samsung gt s6012 
model mobile phone,

when i get a call i am not getting any voice from this speech and and no 
exception is also thrown for not getting the voice,

Thanks
Shiva Shankar

On Sunday, August 11, 2013 1:58:36 AM UTC+5:30, shiva pendem wrote:
>
> HI every one,
>
> i would like to start a text to speech on a incoming call and i have tried 
> the following method,
> private class CallStateListener extends PhoneStateListener implements 
> TextToSpeech.OnInitListener{
>  public TextToSpeech tts;
>  @Override
> public void onCallStateChanged(int state, String incomingNumber) {
> boolean entered=false;
> tts = new TextToSpeech(ctx, new 
> TextToSpeech.OnInitListener() {
> public void onInit(int status) {
> // TODO Auto-generated method stub
> if (status == TextToSpeech.SUCCESS) {
> int result = tts.setLanguage(Locale.US);
> if (result == TextToSpeech.LANG_MISSING_DATA|| result == 
> TextToSpeech.LANG_NOT_SUPPORTED) {
> Log.e("TTS", "Language is not supported");
> } else {
> speakOut("Test");
> }
> } else {
> Log.e("TTS", "Initilization Failed");
> }
> }
> });
> switch (state) {
> case TelephonyManager.CALL_STATE_RINGING:
> // called when someone is ringing to this phone
> String text="";
> if(!entered)
> {
> Log.v("Test","incomingNumber is "+incomingNumber);
>  tts.speak("Hello "+getUserName()+" you have a call ", 
> TextToSpeech.QUEUE_FLUSH, null);
> entered=!entered;
> }
> Toast.makeText(ctx,"Incoming: "+incomingNumber+" 
>  "+text,Toast.LENGTH_LONG).show();
> break;
> case TelephonyManager.CALL_STATE_OFFHOOK:
> if(entered)
> {
> entered=!entered;
> }
> break;
> }
> }
> public void onInit(int status) {
> // TODO Auto-generated method stub
> if (status == TextToSpeech.SUCCESS) {
>
> int result = tts.setLanguage(Locale.US);
>
> if (result == TextToSpeech.LANG_MISSING_DATA
> || result == TextToSpeech.LANG_NOT_SUPPORTED) {
> Log.e("TTS", "Language is not supported");
> } else {
> speakOut("Test");
> }
>
> } else {
> Log.e("TTS", "Initilization Failed");
> }
> }
> private void speakOut(String text) {
> tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
> }
> }
>
> I have initialized and used all the methods but unable to get the required 
> output,
>
> Can any one tell me how can i overcome this issue and make the speech on a 
> call with user defined message,
>
> If possible please advice me the jar that are used to convert text into 
> speech with a simple method,while the phone was ringing,
>
> Thanks in advance,
> Shiva Shankar
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Text to speech

2013-08-10 Thread shiva pendem
HI every one,

i would like to start a text to speech on a incoming call and i have tried 
the following method,
private class CallStateListener extends PhoneStateListener implements 
TextToSpeech.OnInitListener{
 public TextToSpeech tts;
 @Override
public void onCallStateChanged(int state, String incomingNumber) {
boolean entered=false;
tts = new TextToSpeech(ctx, new 
TextToSpeech.OnInitListener() {
public void onInit(int status) {
// TODO Auto-generated method stub
if (status == TextToSpeech.SUCCESS) {
int result = tts.setLanguage(Locale.US);
if (result == TextToSpeech.LANG_MISSING_DATA|| result == 
TextToSpeech.LANG_NOT_SUPPORTED) {
Log.e("TTS", "Language is not supported");
} else {
speakOut("Test");
}
} else {
Log.e("TTS", "Initilization Failed");
}
}
});
switch (state) {
case TelephonyManager.CALL_STATE_RINGING:
// called when someone is ringing to this phone
String text="";
if(!entered)
{
Log.v("Test","incomingNumber is "+incomingNumber);
 tts.speak("Hello "+getUserName()+" you have a call ", 
TextToSpeech.QUEUE_FLUSH, null);
entered=!entered;
}
Toast.makeText(ctx,"Incoming: "+incomingNumber+" 
 "+text,Toast.LENGTH_LONG).show();
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
if(entered)
{
entered=!entered;
}
break;
}
}
public void onInit(int status) {
// TODO Auto-generated method stub
if (status == TextToSpeech.SUCCESS) {

int result = tts.setLanguage(Locale.US);

if (result == TextToSpeech.LANG_MISSING_DATA
|| result == TextToSpeech.LANG_NOT_SUPPORTED) {
Log.e("TTS", "Language is not supported");
} else {
speakOut("Test");
}

} else {
Log.e("TTS", "Initilization Failed");
}
}
private void speakOut(String text) {
tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
}
}

I have initialized and used all the methods but unable to get the required 
output,

Can any one tell me how can i overcome this issue and make the speech on a 
call with user defined message,

If possible please advice me the jar that are used to convert text into 
speech with a simple method,while the phone was ringing,

Thanks in advance,
Shiva Shankar

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] text to speech in broadcast receiver

2013-08-02 Thread shiva pendem
Hi,
i have written code to start services on receiving calls,

here is my code,

 */
public class CallHelper {
/**
 * Listener to detect incoming calls. 
 */
private class CallStateListener extends PhoneStateListener implements 
OnInitListener{
 @Override
public void onCallStateChanged(int state, String incomingNumber) {
boolean entered=false;
 switch (state) {
case TelephonyManager.CALL_STATE_RINGING:
// called when someone is ringing to this phone
String text="";
Log.v("Test","entered"+incomingNumber);
 Toast.makeText(ctx, 
"Incoming: "+incomingNumber, 
Toast.LENGTH_LONG).show();
// tts.setLanguage(Locale.US);
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
 break;
}
}
public void onInit(int status) {
// TODO Auto-generated method stub
 }
 }
 /**
 * Broadcast receiver to detect the outgoing calls.
 */
public class OutgoingReceiver extends BroadcastReceiver implements
TextToSpeech.OnInitListener {
public TextToSpeech mTts;
public OutgoingReceiver() {
}

@Override
public void onReceive(Context context, Intent intent) {
   
}

public void onInit(int status) {
// TODO Auto-generated method stub
if (status == TextToSpeech.SUCCESS) {
if (mTts.isLanguageAvailable(Locale.UK) >= 0)

Toast.makeText( ctx,
"Sucessfull intialization of Text-To-Speech engine Mytell ",
Toast.LENGTH_LONG).show();
mTts.setLanguage(Locale.UK);

   

} else if (status == TextToSpeech.ERROR) {
Toast.makeText(ctx,
"Unable to initialize Text-To-Speech engine",
Toast.LENGTH_LONG).show();
}
}
}

  

private Context ctx;
private TelephonyManager tm;
private CallStateListener callStateListener;
 private OutgoingReceiver outgoingReceiver;

public CallHelper(Context ctx) {
this.ctx = ctx;
 callStateListener = new CallStateListener();
outgoingReceiver = new OutgoingReceiver();
}
 /**
 * Start calls detection.
 */
public void start() {
tm = (TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE);
tm.listen(callStateListener, PhoneStateListener.LISTEN_CALL_STATE);
 IntentFilter intentFilter = new 
IntentFilter(Intent.ACTION_NEW_OUTGOING_CALL);
ctx.registerReceiver(outgoingReceiver, intentFilter);
 }
 /**
 * Stop calls detection.
 */
public void stop() {
tm.listen(callStateListener, PhoneStateListener.LISTEN_NONE);
ctx.unregisterReceiver(outgoingReceiver);
}

}


this code is showing the incoming no.
i want to stop the ringtone and start text to speech and say "hey boss u 
have a call", or other text,

i have tried a lot but failed, even i faced the issue of bound error for 
text to speech,

can any one make this and reply me the sample code please,

Thanks,
Shiva shankar,

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Get the incoming caller name before phone starts to ring

2013-08-02 Thread shiva pendem
Hello Every one,

Thanks for your reply,
i thank all for helping me,

Thanks.
Shiva

On Tuesday, July 30, 2013 11:57:49 PM UTC+5:30, shiva pendem wrote:
>
> HI everyone,
>
>
> i am making an application to get the name of the contact no saved on the 
> mobile.
>
> i am using the following code
>
> private class *CallStateListener *extends *PhoneStateListener *{
> private String *displayContacts*(String incomingNumber) {
>  ContentResolver cr = ctx.getContentResolver();
> Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
> null, null, null, null);
> if (cur.getCount() > 0) {
>  while (cur.moveToNext()) {
>  String id = 
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
>  String name = 
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
>  if (Integer.parseInt(cur.getString(
>
>  cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {
>  Cursor pCur = cr.query(
>  ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 
>  null, 
>  ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" 
> = ?", 
>  new String[]{id}, null);
>  while (pCur.moveToNext()) {
>  String phoneNo = 
> pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
>  if(phoneNo.length()>9&&incomingNumber.length()>9)
>  {
>  // 
> Log.v("Test",phoneNo.substring(phoneNo.length()-10,phoneNo.length())+"   
> "+incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length()));
>  
> if(phoneNo.substring(phoneNo.length()-10,phoneNo.length()).equals(incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length(
>  {
>  Toast.makeText(ctx, "Name: " + name + ", Phone No: " 
> + phoneNo, Toast.LENGTH_SHORT).show();
>  Log.v("Test","qualified   "+phoneNo+"   "+name);
>  pCur.close();
>  return ""+name;
>  }
>  }
>  } 
>   pCur.close();
>   }
>  }
> }
> return "";
> }
> i am calling the *displayContacts() *method with the incoming call no as 
> argument
> but its taking about 18 to 29 seconds to get the contact name, some times 
> it is taking more than 35 seconds,
>
> can any one suggest me the best way to get the contact names saved in the 
> mobile,
> i need to get the contact name in the following manner,
> i have a contact with name as service call and no as 9848012345
> and if i get a call i should get the name in not more than 5 seconds .
>
> if there are any new mechanisms that are used to implement this mechanism 
> plese send me the links,
>
> Thanks
> Shiva Shankar,
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Get the incoming caller name before phone starts to ring

2013-07-30 Thread shiva pendem
Hi,

Initiallly thanks for your answer,

can we make a app to automatically update the database of contacts so that
recently added contacts will also be added,

if yes,
lease reply me how,
Thanks


Thanks,
Pendem Shiva Shankar,
Gtalk:pendem.shiva89,
msn:shivapen...@live.com,
Mob:+91-9533024675.


On Wed, Jul 31, 2013 at 12:23 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> Why don't you read them into memory when the app starts and cache them
> somewhere?
>
> Kris
>
> On Tue, Jul 30, 2013 at 2:27 PM, shiva pendem 
> wrote:
> > HI everyone,
> >
> >
> > i am making an application to get the name of the contact no saved on the
> > mobile.
> >
> > i am using the following code
> >
> > private class CallStateListener extends PhoneStateListener {
> > private String displayContacts(String incomingNumber) {
> > ContentResolver cr = ctx.getContentResolver();
> >Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
> >null, null, null, null);
> >if (cur.getCount() > 0) {
> > while (cur.moveToNext()) {
> > String id =
> > cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
> > String name =
> >
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
> > if (Integer.parseInt(cur.getString(
> >
> > cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {
> > Cursor pCur = cr.query(
> > ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
> > null,
> > ContactsContract.CommonDataKinds.Phone.CONTACT_ID +"
> =
> > ?",
> > new String[]{id}, null);
> > while (pCur.moveToNext()) {
> > String phoneNo =
> >
> pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
> > if(phoneNo.length()>9&&incomingNumber.length()>9)
> > {
> > //
> > Log.v("Test",phoneNo.substring(phoneNo.length()-10,phoneNo.length())+"
> >
> "+incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length()));
> >
> >
> if(phoneNo.substring(phoneNo.length()-10,phoneNo.length()).equals(incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length(
> > {
> > Toast.makeText(ctx, "Name: " + name + ", Phone No: "
> +
> > phoneNo, Toast.LENGTH_SHORT).show();
> > Log.v("Test","qualified   "+phoneNo+"   "+name);
> > pCur.close();
> > return ""+name;
> > }
> > }
> > }
> >  pCur.close();
> >  }
> > }
> >}
> >return "";
> >}
> > i am calling the displayContacts() method with the incoming call no as
> > argument
> > but its taking about 18 to 29 seconds to get the contact name, some
> times it
> > is taking more than 35 seconds,
> >
> > can any one suggest me the best way to get the contact names saved in the
> > mobile,
> > i need to get the contact name in the following manner,
> > i have a contact with name as service call and no as 9848012345
> > and if i get a call i should get the name in not more than 5 seconds .
> >
> > if there are any new mechanisms that are used to implement this mechanism
> > plese send me the links,
> >
> > Thanks
> > Shiva Shankar,
> >
> > --
> > --
> > 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 unsubscribe from this group and stop receiving emails from it, send an
> > email to android-developers+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> You received this message because you are subs

[android-developers] Get the incoming caller name before phone starts to ring

2013-07-30 Thread shiva pendem
HI everyone,


i am making an application to get the name of the contact no saved on the 
mobile.

i am using the following code

private class *CallStateListener *extends *PhoneStateListener *{
private String *displayContacts*(String incomingNumber) {
 ContentResolver cr = ctx.getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
if (cur.getCount() > 0) {
 while (cur.moveToNext()) {
 String id = 
cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
 String name = 
cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
 if (Integer.parseInt(cur.getString(
   
 cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {
 Cursor pCur = cr.query(
 ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 
 null, 
 ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = 
?", 
 new String[]{id}, null);
 while (pCur.moveToNext()) {
 String phoneNo = 
pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
 if(phoneNo.length()>9&&incomingNumber.length()>9)
 {
 // 
Log.v("Test",phoneNo.substring(phoneNo.length()-10,phoneNo.length())+"   
"+incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length()));
 
if(phoneNo.substring(phoneNo.length()-10,phoneNo.length()).equals(incomingNumber.substring(incomingNumber.length()-10,incomingNumber.length(
 {
 Toast.makeText(ctx, "Name: " + name + ", Phone No: " + 
phoneNo, Toast.LENGTH_SHORT).show();
 Log.v("Test","qualified   "+phoneNo+"   "+name);
 pCur.close();
 return ""+name;
 }
 }
 } 
  pCur.close();
  }
 }
}
return "";
}
i am calling the *displayContacts() *method with the incoming call no as 
argument
but its taking about 18 to 29 seconds to get the contact name, some times 
it is taking more than 35 seconds,

can any one suggest me the best way to get the contact names saved in the 
mobile,
i need to get the contact name in the following manner,
i have a contact with name as service call and no as 9848012345
and if i get a call i should get the name in not more than 5 seconds .

if there are any new mechanisms that are used to implement this mechanism 
plese send me the links,

Thanks
Shiva Shankar,

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] open the file with third party app

2013-06-12 Thread shiva pendem
Hi,

i am developing a application where i need to integrate the file explorer,

in the file explorer, if the user selects a file it should be opened,

for example if user selects a audio file it should open in a music player,  
similarlly same for all the file types,

how to implement this mechanism of opening the selected file with the other 
applications installed

Please help me,

Thanks,
Shiva Shankar

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] setRate method and seekto methods for audio player

2013-04-10 Thread shiva pendem
Hi,

i am working on a music player,

i would like to implement seek bar functionality and setrate method for 
music player ,

can any one suggest me how can i implement both of these functionalists or 
a class which has these both methods,

Thanks,
shiva shankar

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Base and features to audio player

2013-01-21 Thread shiva pendem
Hi,

I am working on a audio player and i am trying to add base settings and 
treble adjustments to the audio player,

please suggest me how to implement the audio player with base and treble

Thanks 
shiva shankar

-- 
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 do you show 'Are you sure you want to quit' dialog?

2012-11-27 Thread shiva pendem
Hi,
here is the code to get the confirmation screen,

  public void onBackPressed() {
 Builder builder = new AlertDialog.Builder(context);
builder.setTitle("application");
builder.setIcon(R.drawable.icon1);
builder.setMessage(""Would you like to exit"");
builder.setNegativeButton(""Exit"",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, 
int id) {
dialog.cancel();
System.exit(RESULT_OK);
}
});

builder.setPositiveButton(""Not now"",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, 
int id) {
dialog.cancel();

}
});
builder.show();
   // 
}


paste this code in the intent where you want to have a exit confirmation,

All the best,

Thank 
Shiva Shankar


On Wednesday, November 28, 2012 2:45:36 AM UTC+5:30, Subodh Nijsure wrote:
>
> Hi,
>
> I want to present a yes/no dialog when user enters back, on main activity 
> 'are you sure you want to quit? ' And if they click ok, quit the 
> application.
>
> To do this I show a dialog in onDestroy() that asks yes/no question but 
> that doesn't work. What is correct way to implement 'are you sure you want 
> to quit the application' dialog? 
>
> -Subodh
>

-- 
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: Transparent image with shadow on android screen

2012-11-19 Thread shiva pendem
Hi

here is the sample image that i am sending check this image by keeping this 
image your application icon 

you can't see the shade on the icon,

if that is the issue then the problem is in the image file that you are 
using

the solution to this is the icon should be of png format and the background 
should be of transparent, so that the shades and images will not appear,

all the best for your success,


Thanks
Shiva



On Friday, November 16, 2012 10:36:25 PM UTC+5:30, bright wrote:
>
>  
> I created a transparent image using GIMP, and used it as Android apk icon. 
> But when I installed the apk on my Galaxy S3, there is a shadow when 
> display the icon on my screen. I attached the image in this post. My apk is 
> on the first row, it has global sphere in it.  As you can see, it has 
> shadow in four corners. 
>
> Please noticed that other apks' icons are ok, as in the second row. 
> Also my icon displayed ok on Android emulator.
>
> I searched around for a while, but couldn't find reason. If anyone can 
> help, I really appreciate 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: Error in saving Ringtone...

2012-11-19 Thread shiva pendem
Hi,

that's due to a simple reason which i expect 
that is due to the absence of the directory

save the file to "/mnt/sdcard/navkarringtone.mp3" by removing "/Ringtones"
or make a directory /mnt/sdcard/Ringtones/ using this before you create a 
file out stream
File mp3Directory = new File("/mnt/sdcard/Ringtones/");
   mp3Directory.mkdirs();

then it works fine

and i suggest to add  in manifest

all the best for the success,

Thanks,
shiva 



On Monday, November 19, 2012 4:17:43 AM UTC+5:30, Bhavik Kothari wrote:
>
> hi..
> While I save wallpaper ,its perfectly set . but when I set .mp3  file as 
> rington in emulator  its give error(I attach Error Photo). 
>
> I use below code for set wallpaper and ringtone. 
>
> If anyone have Idia about it,then Please send me reply.
>
> songnameview.setOnLongClickListener(new OnLongClickListener() {
>  public boolean onLongClick(View v) {
> // TODO Auto-generated method stub
>  String[] arrayfordialog=new String[]{"Wallpaper","Ringtone"};
>   AlertDialog.Builder builder = new 
> AlertDialog.Builder(NavkarSounds_FinalBuildActivity.this);
> builder.setTitle("Save As ")
>.setItems(arrayfordialog, new DialogInterface.OnClickListener() 
> {
>@SuppressWarnings("static-access")
> public void onClick(DialogInterface dialog, int which) {
>if(which==0)
>{
>WallpaperManager 
> wallpapermanager=WallpaperManager.getInstance(getApplicationContext());
>try {
>
>  Display display=getWindowManager().getDefaultDisplay();
>  int height=display.getHeight();
>  int width=display.getWidth();
>  Bitmap bit=BitmapFactory.decodeResource(getResources(), 
> ImageList[currenttrack]);
> wallpapermanager.setBitmap(Bitmap.createScaledBitmap(bit, width, height, 
> false));
>  } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>}
>else
>{
>InputStream in = 
> getResources().openRawResource(songidlist[currenttrack]);
>FileOutputStream out;
>try {
> out = new FileOutputStream("/mnt/sdcard/Ringtones/navkarringtone.mp3");
> byte[] buff = new byte[1024];
> int read = 0;
> while ((read = in.read(buff)) > 0) {
>   out.write(buff, 0, read);
> }
> } catch (FileNotFoundException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>catch(IOException ex)
>{
>
>}
>   
>String 
> path=Environment.getExternalStorageDirectory().getPath()+"/Ringtones/";
>String filename="navkarringtone.mp3";
>
>   File k = new File(path, filename);
>   ContentValues values = new ContentValues();
> values.put(MediaStore.MediaColumns.DATA, 
> k.getAbsolutePath());
> values.put(MediaStore.MediaColumns.TITLE,"Navkar 
> Ringtone");
> values.put(MediaStore.MediaColumns.MIME_TYPE, 
> "audio/mp3");
> values.put(MediaStore.Audio.Media.ARTIST, "");
> values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
> values.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
> values.put(MediaStore.Audio.Media.IS_ALARM, false);
> values.put(MediaStore.Audio.Media.IS_MUSIC, false);
>
> //Insert it into the database
> Uri uri = 
> MediaStore.Audio.Media.getContentUriForPath(k.getAbsolutePath());
> getContentResolver().delete(uri, 
> MediaStore.MediaColumns.DATA + "=\"" + k.getAbsolutePath() + "\"", null);
> Uri newUri = getContentResolver().insert(uri, values); 
>
>  
> RingtoneManager.setActualDefaultRingtoneUri(NavkarSounds_FinalBuildActivity.this,
>  
> RingtoneManager.TYPE_RINGTONE, newUri);
>
>}
>}
>
> });
> builder.create();
> builder.show();
> return true;
> }
> });
>
>

-- 
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: jpg to video

2012-11-09 Thread shiva pendem

Hi,


i have tried the same source but this is not combining,

can any one send me the FFMPEG single file just like this FFMPEG

Present in the link 
https://github.com/guardianproject/SSCVideoProto/tree/master/res/raw
which can alter the np3 file bit rate

Thanks
Shiva
On Monday, February 27, 2012 1:53:54 AM UTC+5:30, hispasat wrote:
>
> Hi, 
> I'm making an application that has to create a video from an image 
> sequence. I searched online but have not found any class or library to 
> do it. 
> Does anyone know any way? 
> The idea is to create a video to upload to YouTube. Greetings.

-- 
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: jpg to video

2012-11-08 Thread shiva pendem
Hi,


If you are able to use ffmpeg,

can any one please send me the sample code to use the FFMPEG in android,

I am unable to find the exact solution or the code to execute FFMPEG,

If any one find the sample code which is working please send it to 
pendem.shiv...@gmail.com

Thanks in advance
Shiva

On Monday, February 27, 2012 1:53:54 AM UTC+5:30, hispasat wrote:
>
> Hi, 
> I'm making an application that has to create a video from an image 
> sequence. I searched online but have not found any class or library to 
> do it. 
> Does anyone know any way? 
> The idea is to create a video to upload to YouTube. Greetings.

-- 
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

Re: [android-developers] Re: Bitmap issue and Webview rendering issue in ICS

2012-11-07 Thread shiva pendem
Hi,

i have used this even but this doesnt make any difference on low end devices

we can see the difference on high end devices like S3 but we wont get the
issue of heap on those devices,  using this will make lots of drawbacks for
the device environment,

please refer to
http://stackoverflow.com/questions/7596950/android-heap-memory-increasewhich
has the same issue of larger heap

Thanks
Shiva

On Wed, Nov 7, 2012 at 9:24 PM, bob  wrote:

> Have you tried this:
>
> android:largeHeap = “true”
>
>
> On Monday, November 5, 2012 2:15:05 PM UTC-6, sourabh deshpande wrote:
>>
>> Hi,
>>
>> 1) I am developing an application which has very high quality image
>> contents. To load these images asynchronously I am using
>>
>> https://github.com/nostra13/**Android-Universal-Image-Loader
>>
>> This library has many options of using memory cache and disc cache. I am
>> using memory cache in onCreateView() of fragment and clearing the memory
>> cache in destroyView() of fragments. But still I am facing the
>> OutOfMemoryException. I have even tried calling Bitmap.recycle() but no
>> luck.What is the best way to clear the bitmap memory?
>>
>> 2) The application has one local html5 component which is hosed in
>> webview. The html component rendering is extremely slow in 4.0 and above. I
>> have tested it with Galaxy Nexus. Its extremely slow. We can see each frame
>> of animation. I have alredy tried enabling and disabling the hardware
>> acceleration. But both does not work.How can I handle this?
>>
>> Sourabh Deshpande.
>>
>  --
> 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: How to rotate a layout with api level 9 with buttons

2012-11-06 Thread shiva pendem
Hi

i think that this solution may help you

make the applicaton to rotate that intent by adding the following content 
in the manifest file


  
this rotates all the view and the dialogs into portrait,

Thanks
Shiva

On Monday, November 5, 2012 3:55:29 AM UTC+5:30, strangeoptics wrote:
>
> Hi,
>
> I program a camera. The activity is fixed to landscape. 
> My problem is that I want to show some preferences or dialog views. The 
> ViewGroup should rotate with the device but they inflate allways in 
> landscape.
>
> If I rotate a ViewGroup with Animations the touch events don't work.
> When I look in the sources of the android camera, they did it somehow with 
> GL.
>
> Is there an common approach to 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: jpeg library crashing

2012-11-06 Thread shiva pendem

Hi

The instance where your application is crashing is definitely due to heap, 

I had worked with the same issue for longer period but i haven't find the 
solution to work on images of longer width and height(BITMAP/jpeg or any 
image), finally i have used it by resizing the image,

if we see the size required to create the image it need width*height*4 
bytes which is not supported for all the devices
the supported size for all the images is 512*512

the solution i have suggest for larger images is as follows

yourSelectedImage = BitmapFactory.decodeFile(path)
;
Float Ratio=(float) 
((yourSelectedImage.getWidth()*1.0)/yourSelectedImage.getHeight());
Float byratio=480/Ratio;

if(yourSelectedImage.getHeight()>490||yourSelectedImage.getWidth()>490)
{

yourSelectedImage=Bitmap.createScaledBitmap(BitmapFactory.decodeFile(path),(int)(byratio*1.0),
 
640, true );
}

the resultant will be re sized with the same ratio of the original image,

using this doesn't need to use any third party jar files,

this is the main reason why all the apps of photo editor have a negitive 
rating saying "low image quality"

Thanks
Shiva,

On Tuesday, November 6, 2012 6:32:52 PM UTC+5:30, jobaal wrote:
>
> Hi
>
> Mi app crashes sometimes when a jpeg library is called. Is there any way 
> to know what is happening inside the lib or at least a way to capture when 
> this is happening? Right now the app closes itself without showing any 
> message, it would be very helpful if at least an error message was shown 
> when this happens.
>
> 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: Bitmap issue and Webview rendering issue in ICS

2012-11-06 Thread shiva pendem

Hi

I had worked with the same issue for longer period but i haven't find the 
solution to work on images of longer width and height(BITMAP),
finally i have used it by resizing the image,

if we see the size required to create the image it need width*height*4 
bytes which is not supported for all the devices
the supported size for all the images is 512*512

the solution i have suggest for larger images is as follows

yourSelectedImage = BitmapFactory.decodeFile(path);
Float Ratio=(float) 
((yourSelectedImage.getWidth()*1.0)/yourSelectedImage.getHeight());
Float byratio=480/Ratio;

if(yourSelectedImage.getHeight()>490||yourSelectedImage.getWidth()>490)
{

yourSelectedImage=Bitmap.createScaledBitmap(BitmapFactory.decodeFile(path),(int)(byratio*1.0),
 
640, true );
}

the resultant will be re sized with the same ratio,


this is the main reason why all the apps of photo editor have a negitive 
rating saying "low image quality"

Thanks
Shiva,

On Tuesday, November 6, 2012 1:45:05 AM UTC+5:30, sourabh deshpande wrote:
>
> Hi,
>
> 1) I am developing an application which has very high quality image 
> contents. To load these images asynchronously I am using 
>
> https://github.com/nostra13/Android-Universal-Image-Loader
>
> This library has many options of using memory cache and disc cache. I am 
> using memory cache in onCreateView() of fragment and clearing the memory 
> cache in destroyView() of fragments. But still I am facing the 
> OutOfMemoryException. I have even tried calling Bitmap.recycle() but no 
> luck.What is the best way to clear the bitmap memory?
>
> 2) The application has one local html5 component which is hosed in 
> webview. The html component rendering is extremely slow in 4.0 and above. I 
> have tested it with Galaxy Nexus. Its extremely slow. We can see each frame 
> of animation. I have alredy tried enabling and disabling the hardware 
> acceleration. But both does not work.How can I handle this?
>
> Sourabh Deshpande.
>

-- 
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: Audio Play

2012-11-01 Thread shiva pendem
Hi,

Even i have faced the issue,

The mail problem is that the instance which you press will compulsorily 
create two instances, They are MotionEvent.ACTION_DOWN and 
MotionEvent.ACTION_MOVE, So to over come this you add a condition as 
follows 

public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
if(event.getAction() == MotionEvent.ACTION_DOWN){
  //start player
return true;
}

On Thursday, November 1, 2012 10:55:21 AM UTC+5:30, Sadhna Upadhyay wrote:
>
>  Hi everybody i am playing a audio o button click then it is playin twice 
> on single click why it is happening,i dont know please help me if any one 
> of you know the reason.
>


All the best
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] Update Gallery to load all images

2012-11-01 Thread shiva pendem
Hi

i am opening Gallery as intent in my application after saving a image in 
the application

here is the code to open the Gallery to intent


Intent intent = new Intent();
  intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  startActivityForResult(Intent.createChooser(intent, "Select 
Picture"),101);

But i notice that the Gallery is not loading all the images (The images 
that are saved Recently), 

Can any one suggest me the way so that the Gallery updates all the images 
and show them in the gallery

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

Re: [android-developers] Using NFC on Android

2012-10-04 Thread shiva pendem
Hi

Min sdk version should be of *9* to use nfc

Thanks
shiva shankar

On Thu, Oct 4, 2012 at 12:29 PM, TreKing  wrote:

> On Mon, Oct 1, 2012 at 7:57 AM, William Chan  wrote:
>
>> I'm working on a project for Uni and I was wondering which is the lowest
>> level of the Android API I would need to use for accessing NFC functions
>> etc.
>>
>
> Can't you answer this for yourself by reading the documentation on NFC?
>
>
> -
> 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

-- 
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 play

2012-10-04 Thread shiva pendem
Hi

i would like to use google play app in android application to show all the 
applictions,
i am using

 intent.setComponent(new ComponentName("com.android.browser", 
"com.android.browser.BrowserActivity")); 

to open it in browser and i need the setcomponent to open in the google 
play app

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

Re: [android-developers] how to implement ffmpeg video codec for video player +android

2012-10-04 Thread shiva pendem
Hi,

i am trying to change the bit-rate of a audio file(mp3 format) but i am 
unable to do it as i don't know native android so, can any one tell me the 
solution to change the bit-rate of a audio file(mp3 format) ,

i will be more help full if you send me an example which can change the 
bitrate 

Thanks in advance 
Shiva Shankar

On Wednesday, September 21, 2011 8:16:56 PM UTC+5:30, NAVI NEW wrote:
>
> Please give me  a guideline for implementing ffmpeg on android app.
>
> On Wed, Sep 21, 2011 at 7:05 PM, John >wrote:
>
>> how to implement ffmpeg video codec for video player +android
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@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