[android-developers] Urgent Help for Pricing Setup on Playstore Mobile

2017-01-24 Thread Barbara


Hi All,


I want to publish paid app on Playstore. We have setup merchant account and 
added price for an app.


Now how could we get the app available for all countries. By default, once 
the price is set it is available to all countries?


For eg: If I set the price as 4.99GBP


What price end user will see while downloading the app?


How much owner will get in his account?



Please help me urgent.

-- 
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/1a0ea5d4-754f-4a1a-88d1-5569b9fb9a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Urgent help is required

2017-01-06 Thread Pramod Kumar
Dear Friends, 

Let me introduce myself - My name is Pramod Kumar. I am staying in the 
Forest Gate, London area with my wife and little kid in the single shared 
room. I am working in the hotel. 

My mother is passed away after the kidney transplant operation in Shri 
Lanka. I have spent GBP 35000 for the transplant operation + India to Shri 
Lanka VISA. In India the kidney transplant is not allowed (only blood 
relative i.e. close family member are allowed to donate the kidney within 
family, my kidney was not suitable for my mom in India.) My Mom was on 
dialysis three times in the week with both kidney failure. 

I am in bad debt because of these expenses. I have to travel with my family 
to India to do my mom's dealth rituals. I took the loans to get my mom's 
dead body from Shri Lanka to India but NO money to travel from London to 
India with my family (in total three peoples). 

Please help if anyone would like to raise the helping hands. I am looking 
to raise GBP 2000 for the travel plus for my mom's death rituals expenses 
in India. 

My mom's dead body is in India and we are not able to fly from London 
because of lack of funds. Please help generously. Thanks.

My a/c details to send the help - 

Sort Code: 60-08-28 
Account Number: 62731858 

Regards 
Pramod Kumar 

-- 
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/17be8292-a208-4a68-8136-256855b7d80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Urgent Help Regarding KeyStore

2016-07-08 Thread Vinay Yamusani
I lost my Keystore file,Is there any way to update my app on Playstore.  

I have searched on internet & only way is to Unpublish or upload the new 
app with change in package name.

But is there any solution or any way to create a keystore using the keys.

Thanks,
Vinay Yamusani.

-- 
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/7439b39e-9a1a-4815-ae92-35a9ac9766ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] urgent help needed: getLinkDownstreamBandwidthKbps returning the value 102400 whereas the downstream Bandwidth is 10 MHz

2016-03-28 Thread 'Robert Greenwalt' via Android Developers
The function is documented as:
Retrieves the downstream bandwidth for this network in Kbps. This always
only refers to the estimated first hop transport bandwidth.

It is returning a guess based solely on the Radio Access Technology and is
tuned for the radio in the device.  It does not take into account the
network your attached to or any variability based on cell congestion or
signal quality issues.  This make information is somewhat inaccurate and is
mostly there as a guide so app developers don't need to know the relative
value of many RAT technologies when thinking about bandwidth.
If you had been on 1xRTT you would have gotten a much lower number.  LTE
could have offered the higher number but you were on slow LTE apparently.
This is WAI.

R


On Mon, Mar 28, 2016 at 11:08 AM, Abhishek Jain  wrote:

> Hi,
>
> The android API, getLinkDownstreamBandwidthKbps returns the value 102400
> (100 MHz). When I verified the same with *#0011# command on the Samsung
> Active S5, it shows 10MHz. Please let me know if I am missing something.
>
> Below is my code snippet to retreive getLinkDownstreamBandwidthKbps.
>
> int netBw;
> ConnectivityManager conMgr = (ConnectivityManager) 
> getSystemService(Context.CONNECTIVITY_SERVICE);
> Network[] networks = conMgr.getAllNetworks();
> NetworkInfo networkInfo;
> for (Network mNetwork : networks){
> networkInfo = conMgr.getNetworkInfo(mNetwork);
>
> if ((networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) && 
> (networkInfo.getState().equals(NetworkInfo.State.CONNECTED))) {
> NetworkCapabilities capabilities = 
> conMgr.getNetworkCapabilities(mNetwork);
> int bw = capabilities.getLinkDownstreamBandwidthKbps();
> showMessage(networkInfo.getSubtypeName() +"downlink BW in kbps = " + 
> capabilities.getLinkDownstreamBandwidthKbps());
> showMessage(networkInfo.getSubtypeName() +"Uplink BW in kbps = " + 
> capabilities.getLinkUpstreamBandwidthKbps());
> break;
> }
>
>
> if ((networkInfo.getType() == ConnectivityManager.TYPE_WIFI) && 
> (networkInfo.getState().equals(NetworkInfo.State.CONNECTED))) {
> //ConnectivityManager.setProcessDefaultNetwork(network);
> NetworkCapabilities capabilities = 
> conMgr.getNetworkCapabilities(mNetwork);
> int bw = capabilities.getLinkDownstreamBandwidthKbps();
> showMessage("wifi bandwidth = " + bw/1024);
> break;
> }
> }
>
>
> *showMessage() is my own function to print the arguments passed to it.
>
> Regards
> Abhishek
>
> --
> 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/5de34511-0fa5-409e-848f-1b95ccc77303%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CABrF01DNxXjZYF0rsnxq0tY0X7Ddg%3DLoe4eRLLdC2eWtS3UAXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] urgent help needed: getLinkDownstreamBandwidthKbps returning the value 102400 whereas the downstream Bandwidth is 10 MHz

2016-03-28 Thread Abhishek Jain
Hi,

The android API, getLinkDownstreamBandwidthKbps returns the value 102400 
(100 MHz). When I verified the same with *#0011# command on the Samsung 
Active S5, it shows 10MHz. Please let me know if I am missing something.

Below is my code snippet to retreive getLinkDownstreamBandwidthKbps. 

int netBw;
ConnectivityManager conMgr = (ConnectivityManager) 
getSystemService(Context.CONNECTIVITY_SERVICE);
Network[] networks = conMgr.getAllNetworks();
NetworkInfo networkInfo;
for (Network mNetwork : networks){
networkInfo = conMgr.getNetworkInfo(mNetwork);

if ((networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) && 
(networkInfo.getState().equals(NetworkInfo.State.CONNECTED))) {
NetworkCapabilities capabilities = 
conMgr.getNetworkCapabilities(mNetwork);
int bw = capabilities.getLinkDownstreamBandwidthKbps();
showMessage(networkInfo.getSubtypeName() +"downlink BW in kbps = " + 
capabilities.getLinkDownstreamBandwidthKbps());
showMessage(networkInfo.getSubtypeName() +"Uplink BW in kbps = " + 
capabilities.getLinkUpstreamBandwidthKbps());
break;
}


if ((networkInfo.getType() == ConnectivityManager.TYPE_WIFI) && 
(networkInfo.getState().equals(NetworkInfo.State.CONNECTED))) {
//ConnectivityManager.setProcessDefaultNetwork(network);
NetworkCapabilities capabilities = 
conMgr.getNetworkCapabilities(mNetwork);
int bw = capabilities.getLinkDownstreamBandwidthKbps();
showMessage("wifi bandwidth = " + bw/1024);
break;
}
}


*showMessage() is my own function to print the arguments passed to it.

Regards
Abhishek

-- 
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/5de34511-0fa5-409e-848f-1b95ccc77303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Urgent Help Required | Directional View Pager Problem

2013-04-29 Thread naseem Rafique


Hi All,

I integrated JakeWharton / Android-DirectionalViewPager (https://
github.com/JakeWharton/Android-DirectionalViewPager) and I m facing 

java.lang.NoClassDefFoundError: 
com.directionalviewpager.DirectionalViewPager$DataSetObserver

Have any one come up with any solution for this.. or this widget is only 
useful  for the JakeWharton's sample app.

P.S: Any please suggest a working Vertical ViewPager component.


Thanks,

Naseem

-- 
-- 
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] Urgent help needed

2012-03-20 Thread swa
Hi
   I have created the webservice 
http://demo.polymerupdate.com/web/news-desk.asmx?op=DisplayNewsHeadLines
after filling the username and password  i get the response in xml
fromat every thing is working fine and smooth.
 But
when the other devloper adds the refrence of the webservice he is
getting the anytype error .He is working on android platform
only half of the responce i we are getting along with anytype keyword
in result


Log type Looks like this

 result= anyType{NewDataSet=anyType{Table=anyType{id=7222;
headline=Shell Chemicals nominates Asian MEG contract price for March;
newsdate=21 Feb 2012; newstime=15:00 ; YEAR=2012; IsImp=true; };
Table=anyType{id=7221; headline=SABIC nominates MEG contract price for
Asia for March; newsdate=21 Feb 2012; newstime=14:55 ; YEAR=2012;
IsImp=true; }; Table=anyType{id=7220; headline=Yuyao Domestic market
price of LLDPE as of 20th February 2012; newsdate=21 Feb 2012;
newstime=14:50 ; YEAR=2012; IsImp=false; }; Table=anyType{id=7219;
headline=Yuyao Domestic market price of LDPE as of 20th February 2012;
newsdate=21 Feb 2012; newstime=14:45 ; YEAR=2012; IsImp=false; };
Table=anyType{id=7218; headline=Yuyao Domestic market price of HDPE as
of 20th February 2012; newsdate=21 Feb 2012; newstime=14:40 ;
YEAR=2012; IsImp=false; }; Table=anyType{id=7217;
headline=International Market prices of Methanol as of 20th February
2012; newsdate=21 Feb 2012; newstime=14:35 ; YEAR=2012;
IsImp=false; }; Table=anyType{id=7216; headline=International Market
prices of Styrene as of 20th February 2012; newsdate=21 Feb 2012;
newstime=14:30 ; YEAR=2012; IsImp=false; };

-- 
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] URGENT HELP : Bypassing Default Camera Viewfinder

2011-11-17 Thread s.rawat
Hi,
I am trying to by-pass the default camera viewfinder and making an
application which will give the Surfaceview some continuous jpeg frames
(instead of getting it from Camera view finder)., but I have realized its
quiet a gigantic task and I have to modify the files in the
framework/core/jni(native calls), framework/core/java and services and
client as well and even the CameraHardware.cpp for this
as Surfaceview(Surfaceholder instance) connected with the mCamera
instance (as  the fully initialized SurfaceHolder is to be passed to the
setPreviewDisplay()(which is connectd with the Camera Hardware code).So i
wanted to ask these questions:

(1) Is it possible to bypass the default camera view finder at the
application (android application code) level.
(2) I am able to generate the video by passing the continuous jpeg frames to
* image view*(running in a thread being spawned form the main thread until
i press stop), can I also  in some way pass these frames to Surface
holder(surface view so that I can see the video in the viewfinder- my
understanding is that Surface holder is responsible for the viewfinder on
the camera)
(3) Any other way to implement this without delving deep into the Android
framework.
Plz suggest .
Rgds and Thanks for your reply
Saurabh

-- 
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] urgent help for the project

2011-11-17 Thread Akshat Sharma
hello im using eclipse and i'm making an android application.
can anyone tell me how to link the various pages in an application?
and suggest me how to store data?? have tried many coding available on
the net but all in vain.
can any project can have more than one main class??

-- 
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] Urgent Help required

2011-11-11 Thread chowdary nani
Please how to integrate face book in android.I am trying to do it
using fbconnection/api.jar but i am facing problem in loading the jar

-- 
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] Urgent help required

2011-11-10 Thread TreKing
On Thu, Nov 10, 2011 at 7:24 AM, Sunil Mishra wrote:

> I have developed a HTTP web server and sending HTML files. But now i
> am trying to use images for background in the html page. But it is not
> able to load the html file with proper background image.
>
> Any idea how to resolve this?
>

What does this have to do with Android?

-
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] Urgent help required

2011-11-10 Thread Sunil Mishra
Hi,

I have developed a HTTP web server and sending HTML files. But now i
am trying to use images for background in the html page. But it is not
able to load the html file with proper background image.

Any idea how to resolve this?

-- 
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] urgent help

2011-09-12 Thread akhil android
hey dear,

i want to fetch my inbox message while it goes run m going
threw this code but can't be able to fullfill it can u help meplease
need wuick responce dear. m writiing this code in apidemos.java
my mail id is akhil.andr...@gmail.com


http://schemas.android.com/apk/res/android";

package="org.apache.sms">















package org.apache.sms;

import android.app.ListActivity;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentReceiver;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.provider.Telephony:
import android.util.Log;
import android.telephony.gsm.SmsManager;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;

import java.text.Collator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SMSApp extends IntentReceiver {

 private static final String LOG_TAG = "SMSApp";



/* package */ static final String ACTION =

"android.provider.Telephony.SMS_RECEIVED";



public void onReceiveIntent(Context context, Intent intent) {

if (intent.getAction().equals(ACTION)) {

StringBuilder buf = new StringBuilder();

Bundle bundle = intent.getExtras();

if (bundle != null) {

SmsMessage[] messages =
Telephony.Sms.Intents.getMessagesFromIntent(intent);

for (int i = 0; i < messages.length; i++) {

SmsMessage message = messages[i];

buf.append("Received SMS from  ");


buf.append(message.getDisplayOriginatingAddress());

buf.append(" - ");

buf.append(message.getDisplayMessageBody());

}

}

Log.i(LOG_TAG, "[SMSApp] onReceiveIntent: " + buf);

NotificationManager nm = (NotificationManager)
context.getSystemService(

Context.NOTIFICATION_SERVICE);



nm.notifyWithText(123, buf.toString(),

NotificationManager.LENGTH_LONG, null);



}

}



private void appendData(StringBuilder buf, String key, String
value) {

buf.append(", ");

buf.append(key);

buf.append('=');

buf.append(value);

}

}

-- 
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] urgent help

2011-05-21 Thread neha jain
Thanx 4 rply
I can solve my problem.No need of ur code...

On Sat, May 21, 2011 at 11:11 PM, TreKing  wrote:

> On Fri, May 20, 2011 at 3:33 PM, Robin Talwar <
> r.o.b.i.n.abhis...@gmail.com> wrote:
>
>> Hey treking why dont you send the same code to her the one you send me
>> when i was stuck in same trouble  but somehow i dont have that now :)
>>
>
> You'll forgive if I don't recall for I post a lot in this group, but I
> highly doubt I sent you any code.
>
> On Sat, May 21, 2011 at 4:27 AM, neha jain  wrote:
>
> Treking
>> If u have answer than plz send me the code
>>
>
> I don't have an answer (it's not like you posed a clear question to answer
> anyway), and even if I did I would not send you the code. Sorry.
>
>
>>  or suggest me some sip development group.
>>
>
> Have you tried Google?
>
>
> -
> 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

Re: [android-developers] urgent help

2011-05-21 Thread TreKing
On Fri, May 20, 2011 at 3:33 PM, Robin Talwar
wrote:

> Hey treking why dont you send the same code to her the one you send me when
> i was stuck in same trouble  but somehow i dont have that now :)
>

You'll forgive if I don't recall for I post a lot in this group, but I
highly doubt I sent you any code.

On Sat, May 21, 2011 at 4:27 AM, neha jain  wrote:

> Treking
> If u have answer than plz send me the code
>

I don't have an answer (it's not like you posed a clear question to answer
anyway), and even if I did I would not send you the code. Sorry.


>  or suggest me some sip development group.
>

Have you tried Google?

-
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

Re: [android-developers] urgent help

2011-05-21 Thread neha jain
Treking
If u have answer than plz send me the code or suggest me some sip
development group.


On Fri, May 20, 2011 at 9:33 PM, Robin Talwar
wrote:

> Hey treking why dont you send the same code to her the one you send me when
> i was stuck in same trouble
> but somehow i dont have that now :)
>
>
> On Fri, May 20, 2011 at 10:38 PM, TreKing  wrote:
>
>> On Fri, May 20, 2011 at 4:20 AM, neha  wrote:
>>
>>> hi
>>> Is there are anyone who worked on SIP server.
>>> I want to get registered with server and make call.
>>>
>>
>> This is an Android Development group, not a SIP server group.
>>
>>
>> -
>>  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
>

-- 
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] urgent help

2011-05-20 Thread Robin Talwar
Hey treking why dont you send the same code to her the one you send me when
i was stuck in same trouble
but somehow i dont have that now :)

On Fri, May 20, 2011 at 10:38 PM, TreKing  wrote:

> On Fri, May 20, 2011 at 4:20 AM, neha  wrote:
>
>> hi
>> Is there are anyone who worked on SIP server.
>> I want to get registered with server and make call.
>>
>
> This is an Android Development group, not a SIP server group.
>
>
> -
> 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

Re: [android-developers] urgent help

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 4:20 AM, neha  wrote:

> hi
> Is there are anyone who worked on SIP server.
> I want to get registered with server and make call.
>

This is an Android Development group, not a SIP server group.

-
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] urgent help

2011-05-20 Thread neha
hi
Is there are anyone who worked on SIP server.
I want to get registered with server and make call.

-- 
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] urgent help--> how to send audio record out in real time mode

2010-10-26 Thread cindy
Hi Friend,

I have faced on big problem.

I can use AudioRecord to pull the audio data out. But the format is
PCM, which is too huge to sent out through network.

Does any one know how to change it to AMR ?

A lot of thanks!

Cindy

-- 
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] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Dianne Hackborn
MidWindow is old, broken, and will disappear in the next release.  There is
really not much point in talking about it.

On Wed, Sep 1, 2010 at 3:41 AM, Revathi K J Ramanan <
revathiramana...@gmail.com> wrote:

> Hi Dianne,
>
> I was trying to find the reply for the below question in short..
>
> What is the
> difference between these two and on what basis the policy will be
> choosen ?
>
> Please help me...
>
> Regards,
> Revathi K J Ramanan
>
> On Wed, Sep 1, 2010 at 4:09 PM, Revathi K J Ramanan <
> revathiramana...@gmail.com> wrote:
>
>> Hi Dianne,
>>
>> Thanks for the immediate response.
>>
>> I need the basic difference between the PhoneWindow and MidWindow.Like why
>> android is choosing PhoneWindow for its implementation not MidWindow.
>>
>> And In the x86 code of Cupcake 1.6 version, I found that MidWindow was
>> being used.
>> But in x86 of Eclair 2.1 Version, PhoneWindow is being used.
>>
>> What is the advantage of PhoneWindow over MidWindow?
>>
>> Please help me,
>>
>> Regards,
>> Revathi K J Ramanan
>>
>>   On Wed, Sep 1, 2010 at 1:33 PM, Dianne Hackborn wrote:
>>
>>> These are not part of the SDK, they are implementation details, that
>>> change over time.  In fact MidWindow will be gone in the next release.
>>>
>>>
>>> On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan <
>>> revathiramana...@gmail.com> wrote:
>>>
 Hi,

 What is the basic difference between the PhoneWindow and MidWindow
 policies?

 I found that the emulator version takes the implementations of the
 PhoneWindow.When the MidWindow implementations will be used?

 Also, I found that PhoneWindow handles the call settings
 implementation and the same is not there in MidWindow?

 Please someone help me pointing out the differences between both the
 policies and under which circumstances which one will be used..

 Please help me

 Regards,
 Revathi K J Ramanan

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

>>>
>>>
>>>
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time to
>>> provide private support, and so won't reply to such e-mails.  All such
>>> questions should be posted on public forums, where I and others can see and
>>> answer them.
>>>
>>>
>>> --
>>> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread enjoylifehappyeveryday
Dear friends

I created google groups, you could join. We can discuss together.
Homepage:   http://groups.google.ca/group/codecoregroups 
Group email:   codecoregro...@googlegroups.com 

enjoylifehappyeveryday
2010-09-01 14:49:09 



发件人: Revathi K J Ramanan 
发送时间: 2010-09-01  14:47:06 
收件人: Android Developers 
抄送: 
主题: [android-developers] Urgent Help - Diff between Phone Window and Mid Window 
 
Hi,
What is the basic difference between the PhoneWindow and MidWindow
policies?
I found that the emulator version takes the implementations of the
PhoneWindow.When the MidWindow implementations will be used?
Also, I found that PhoneWindow handles the call settings
implementation and the same is not there in MidWindow?
Please someone help me pointing out the differences between both the
policies and under which circumstances which one will be used..
Please help me
Regards,
Revathi K J Ramanan
-- 
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

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Revathi K J Ramanan
Hi Dianne,

I was trying to find the reply for the below question in short..

What is the
difference between these two and on what basis the policy will be
choosen ?

Please help me...

Regards,
Revathi K J Ramanan

On Wed, Sep 1, 2010 at 4:09 PM, Revathi K J Ramanan <
revathiramana...@gmail.com> wrote:

> Hi Dianne,
>
> Thanks for the immediate response.
>
> I need the basic difference between the PhoneWindow and MidWindow.Like why
> android is choosing PhoneWindow for its implementation not MidWindow.
>
> And In the x86 code of Cupcake 1.6 version, I found that MidWindow was
> being used.
> But in x86 of Eclair 2.1 Version, PhoneWindow is being used.
>
> What is the advantage of PhoneWindow over MidWindow?
>
> Please help me,
>
> Regards,
> Revathi K J Ramanan
>
>   On Wed, Sep 1, 2010 at 1:33 PM, Dianne Hackborn wrote:
>
>> These are not part of the SDK, they are implementation details, that
>> change over time.  In fact MidWindow will be gone in the next release.
>>
>>
>> On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan <
>> revathiramana...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> What is the basic difference between the PhoneWindow and MidWindow
>>> policies?
>>>
>>> I found that the emulator version takes the implementations of the
>>> PhoneWindow.When the MidWindow implementations will be used?
>>>
>>> Also, I found that PhoneWindow handles the call settings
>>> implementation and the same is not there in MidWindow?
>>>
>>> Please someone help me pointing out the differences between both the
>>> policies and under which circumstances which one will be used..
>>>
>>> Please help me
>>>
>>> Regards,
>>> Revathi K J Ramanan
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see and
>> answer them.
>>
>>
>> --
>> 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

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Revathi K J Ramanan
Hi Dianne,

Thanks for the immediate response.

I need the basic difference between the PhoneWindow and MidWindow.Like why
android is choosing PhoneWindow for its implementation not MidWindow.

And In the x86 code of Cupcake 1.6 version, I found that MidWindow was being
used.
But in x86 of Eclair 2.1 Version, PhoneWindow is being used.

What is the advantage of PhoneWindow over MidWindow?

Please help me,

Regards,
Revathi K J Ramanan

On Wed, Sep 1, 2010 at 1:33 PM, Dianne Hackborn  wrote:

> These are not part of the SDK, they are implementation details, that change
> over time.  In fact MidWindow will be gone in the next release.
>
>
> On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan <
> revathiramana...@gmail.com> wrote:
>
>> Hi,
>>
>> What is the basic difference between the PhoneWindow and MidWindow
>> policies?
>>
>> I found that the emulator version takes the implementations of the
>> PhoneWindow.When the MidWindow implementations will be used?
>>
>> Also, I found that PhoneWindow handles the call settings
>> implementation and the same is not there in MidWindow?
>>
>> Please someone help me pointing out the differences between both the
>> policies and under which circumstances which one will be used..
>>
>> Please help me
>>
>> Regards,
>> Revathi K J Ramanan
>>
>> --
>> 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
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> --
> 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

Re: [android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-09-01 Thread Dianne Hackborn
These are not part of the SDK, they are implementation details, that change
over time.  In fact MidWindow will be gone in the next release.

On Tue, Aug 31, 2010 at 11:31 PM, Revathi K J Ramanan <
revathiramana...@gmail.com> wrote:

> Hi,
>
> What is the basic difference between the PhoneWindow and MidWindow
> policies?
>
> I found that the emulator version takes the implementations of the
> PhoneWindow.When the MidWindow implementations will be used?
>
> Also, I found that PhoneWindow handles the call settings
> implementation and the same is not there in MidWindow?
>
> Please someone help me pointing out the differences between both the
> policies and under which circumstances which one will be used..
>
> Please help me
>
> Regards,
> Revathi K J Ramanan
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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] Urgent Help - Diff between Phone Window and Mid Window

2010-08-31 Thread Revathi K J Ramanan
Hi,

What is the basic difference between the PhoneWindow and MidWindow
policies?

I found that the emulator version takes the implementations of the
PhoneWindow.When the MidWindow implementations will be used?

Also, I found that PhoneWindow handles the call settings
implementation and the same is not there in MidWindow?

Please someone help me pointing out the differences between both the
policies and under which circumstances which one will be used..

Please help me

Regards,
Revathi K J Ramanan

-- 
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] Urgent Help: AudioTrack class ...Streaming Mode

2010-05-18 Thread silentpartner
Hi all,

I am trying to playback voice data which is received in form of RTP
packets in my application. The class

Receiver.java extends thread is playing back the audio.

The question is 
1. For real time streaming operation how to configure the
write(byte[], int offsetInBytes, int sizeInBytes) methods???

2. What is the function and purpose of getPlaybackHeadPosition()???...
What is playback head position kindly explain!

Note: The RTP packets I am receiving are not from a traditional
Datagram Socket but rather then from Ad Hoc Network so there is unknow
delay for receiving the RTP packets.

I need to design the Receiver class to play back the voice as soon as
packets are recieved.

Kindly help me in this regard

-- 
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] Urgent-Help

2010-04-09 Thread ~ TreKing
On Fri, Apr 9, 2010 at 12:48 AM, subrat kumar panda <
evergreen.sub...@gmail.com> wrote:

> would you please anybody help me regarding this matter. it's very urgent
>

First of all, why is this "very urgent"? Does someone's life depend on this?
Along the same lines, please don't title posts "Urgent-Help" or anything
along those lines. It doesn't give anyone any indication of what problem
you're having, makes it harder to find your post later on if someone wanted
to reference it, and makes you seem impatient, all of which will decrease
your chances of getting a good answer.

On Fri, Apr 9, 2010 at 1:02 AM, subrat kumar panda <
evergreen.sub...@gmail.com> wrote:

> The GPS hasn been turned on in the first place.
>

What does this mean? The GPS on your phone is off completely? That would be
a problem.
I took a quick look at your code and didn't see anything blatantly wrong.
Put in more print statements and see if any of the status changed or
provider enabled / disabled events are being called.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Urgent-Help

2010-04-08 Thread subrat kumar panda
Hello everybody,

This is subrat.my app is showing latitude,longitude on emulator
 but not in Sony Xperia_x10.
would you please anybody help me regarding this matter.
it's very urgent , if anybody knows the solution please
help me.

Best Regards,
Subrat Kumar Panda.
Microaid dreamworks,
kolkata, India.
09038025238.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] urgent help needed for Home Screen Customization problem

2010-02-18 Thread satish bhoyar
Hi all,

Cant I have my desired content on the HomeScreen of the android?
I want to add some button or any other view.
Only widgets are possible or is there any help related to this.
please give some inputs.

thanks
sat

-- 
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] urgent help Integrating code with Android home screen code.

2010-01-22 Thread satish bhoyar
Hi all,

I am trying to integrate my code to the android Home Screen code.
I want to launch my activity frm the HomeScreen by click of a button.
I Did the code & then build it but when i click the button i m getting error
as
Application not installed on phone.

please help

Thanks,
satish

-- 
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] Urgent HELP pls - Video Recording

2009-11-28 Thread WrVishnu
Hi

Am new to android development , need to build a POC on video record
and saving it in SDcard.  I got some sample in which audio recording
in working but not the video . Could someone help me to solve this
issue .  below are the current code where video is not working .  i
have commented the video related code as it was throwing some error.

Java Code : VideoTest.java

package com.app.test;
/**
 * @author Pankaj
 *
 */
import java.io.File;
import java.io.FileDescriptor;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.StatFs;
import android.provider.MediaStore;
import android.provider.MediaStore.Images;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.KeyEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.SimpleCursorAdapter;
/**
 * @author Pankaj
 *
 */
public class VideoTest extends Activity {
private static final long NO_STORAGE_ERROR = -1L;
private static final long CANNOT_STAT_ERROR = -2L;
private static final long LOW_STORAGE_THRESHOLD = 512L * 1024L;

private static final int STORAGE_STATUS_OK = 0;
private static final int STORAGE_STATUS_LOW = 1;
private static final int STORAGE_STATUS_NONE = 2;

private static final boolean SWITCH_CAMERA = true;
private static final boolean SWITCH_VIDEO = false;
private boolean recording = false;
private ContentValues mCurrentVideoValues;
private int mStorageStatus = STORAGE_STATUS_OK;
private FileDescriptor mCameraVideoFileDescriptor;
private ContentResolver mContentResolver;
private MediaRecorder recorder;
private Context context;
private ContentValues values = new ContentValues(3);

private SurfaceView preview=null;
private SurfaceHolder previewHolder=null;
private Camera camera=null;


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
setContentView(R.layout.camera);
preview=(SurfaceView)findViewById(R.id.surface);
// Hide the window title.
previewHolder=preview.getHolder();
previewHolder.addCallback(surfaceCallback);

previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
} catch (Exception e) {
e.getMessage();
}

}


public boolean onKeyDown(int keyCode, KeyEvent event)   {
try {
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER){
if (!recording) {
takePicture();
recording = true;
}else{
stopRecorder();
finish();
}
return true;
}
return super.onKeyDown(keyCode, event);
} catch (Exception e) {
e.getMessage();
}
return true;
}

private void stopRecorder() {
try {
if (recorder == null){
return;
}
recorder.stop();
recorder.reset();
recorder.release();
recording = false;
recorder = null;
} catch (Exception e) {
e.getMessage();
}
finally {
if (recorder != null){
recorder.release();
}
}
}

private void takePicture() {

try {
recorder = new MediaRecorder();
String url = createVideoPath();
//Uri base = Uri.parse(url);
//Uri uri =  new Uri.Builder().scheme("content").authority
("file").appendPath(url).build();

//camera.unlock();


 ContentResolver contentResolver = getContentResolver();
 Uri mBase = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
 

[android-developers] urgent help needed

2009-09-08 Thread liorharsat

Hi All,

I hope I am not out of line but I need some urgent assistance.
I have uploaded my first app to the market and my users say it crashes
when they launch a map through it.
The scenario they describe obviously works on my phone.
I would be in your debt if you could download "Blue Tooth Locator"
from the market, play around with it and send me the error shown in
ddms when it crashes.

Thanx in advance and I appologize if this forum is not the place for
such requests.

Lior

The following scenario crashes:

background:

my app identifies BlueTooth Devices in the are of the phone and asks
the user if he/she want to monitor their location. It the user
agrees , every time the user gets out of range of the bluetooth
device , the GPS is launched in the backgroung and its location is
saved.
later on the user can launch the app and press the map icon near the
device name in order to get direction to it on a map.

crash:
my users complain that when they launch the map , my app crashes.

--~--~-~--~~~---~--~~
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] Urgent Help Needed: How to get AnimationDrawable to animate when drawing to SurfaceView?

2009-08-27 Thread jeka

Here is my AnimationDrawable:

res/anim/my_anim.xml

http://schemas.android.com/apk/res/
android" android:oneshot="false">


 

Here is how I use it from the drawing thread, which is implemented as
an inner class of my SurfaceView subclass:

AnimationDrawable ad = (AnimationDrawable) getResources().getDrawable
(R.anim.my_anim);
ad.setCallback(MyView.this);
ad.draw(canvas);
ad.start();

this only draws the first frame of the animation and nothing else.

Thank you.

--~--~-~--~~~---~--~~
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] Urgent help in getting screen coordinatesof a view

2009-03-23 Thread kavitha

Hi All,

I need help in getting coordinates of a view on screen.

I tried to print the view coordinates,they print value as 0.

If i say v.getLeft()  even that print it's value  as 0.

I am not understanding.Please help on this regard.

Here is my code.I am trying to print view values in onStart()

package com.android.table;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.graphics.Rect;

public class GameDemo extends Activity {
   public static int idLayout = 1;
   public static int screenheight = 0;
   public static int screenwidth = 0;
   public AddPegHoles adp = new AddPegHoles(this);
   public Hole h;
   public static int holeid = 0;
   Hole[] holeArray = new Hole[3];
   FrameLayout l1,l2,l3,l4,;
   RelativeLayout layout;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   layout=(RelativeLayout) findViewById(R.id.tableviewback);
   layout.setBackgroundResource(R.drawable.woodenbackground);

   Display display;
   display =
((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
   screenheight = display.getHeight();
   screenwidth = display.getWidth();

   l1=(FrameLayout)findViewById(R.id.frame1);
   adp.addPegHoles(l1, 1,0);
   createHole(holeid,true,R.id.frame1,1);
   l2=(FrameLayout)findViewById(R.id.frame2);
   adp.addPegHoles(l2, 1, leftpadding+l1.getWidth());
   holeid++;   createHole(holeid,true,R.id.frame2,1);
   l3=(FrameLayout)findViewById(R.id.frame3);
   adp.addPegHoles(l3, 1, leftpadding+l1.getWidth());
   holeid++;   createHole(holeid,true,R.id.frame3,1);


   int  leftpadding=(screenwidth/7);
   int  toppadding=(screenheight/7);

ViewGroup child=(ViewGroup)layout.getChildAt(0);//frame1
 child.setPadding(45*2, 45, 0, 0);
 child=(ViewGroup)layout.getChildAt(1); // frame2
 child.setPadding(45*3, 45, 0, 0);
 child=(ViewGroup)layout.getChildAt(2); //frame3
  child.setPadding(45*4, 45, 0, 0);

  }

  public void onStart(){
super.onStart();
int[] loc=new int[2];
 View v = layout.getChildAt(1);
 v.getLocationOnScreen(loc);
   System.out.println(loc[0]+loc[1]);
   System.out.println(v.getLeft());
System.out.println(v.getRight());


  v=(FrameLayout)findViewById(R.id.frame1);
 v.getLocationOnScreen(loc);
   System.out.println(loc[0]+loc[1]);
   System.out.println(v.getLeft());
System.out.println(v.getRight());

 }

   public void createHole(int holeid, boolean filled,
int parent_frame_id,
int parentrow) {
h = new Hole(holeid);
h.setHoleId(R.drawable.hole);
h.setHoleIndex(0);
h.setFilled(filled);
h.setParentFrameId(parent_frame_id);
h.setParentRow(parentrow);
h.setMarbleId(R.drawable.marble);
h.setMarbleIndex(1);
holeArray[holeid] = h;

}
}

And I am adding imageviews for frame in AddPegHoles.java looks like
this

package com.android.table;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;

public class AddPegHoles {

public Context context;
public static int id=0;

AddPegHoles(Context c){
super();
this.context=c;

}

public void addPegHoles(ViewGroup v,int row,int leftpadding){

ImageView iv1=new ImageView(context);
iv1.setImageResource(R.drawable.hole);
ImageView iv11=new ImageView(context);
iv11.setImageResource(R.drawable.marble);
id++; v.setId(id);
v.addView(iv1,0);v.addView(iv11,1);

}

}






And my AndroidManifest.xml looks like this


http://schemas.android.com/apk/res/android";
 android:layout_height="fill_parent"
 android:layout_width="fill_parent"
 android:background="#44"
 android:id="@+id/tableviewback"
 >

 
 
 



Thanks
Kavitha
--~--~-~--~~~---~--~~
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