[android-developers]

2012-06-13 Thread Vijay Krishnan
Hi all,
I could not save my image in phone.Here is my code

 Bitmap imageMap=BitmapFactory.decodeByteArray(data,0,data.length);
 File root = Environment.getExternalStorageDirectory();
File f1 = new File(root.getAbsolutePath()+/DCIM/Camera/,image.jpeg);
FileOutputStream fos=new FileOutputStream(f1);
   imageMap.compress(Bitmap.CompressFormat.JPEG,85,fos);
   fos.flush();
   fos.close();
   Anyone help on this

Thanks,
vijay.k

-- 
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] context menu title button

2012-06-13 Thread vaibs malviya
in android there a context menu.
my question is that or my problem is that i want to add a button on right
corner of title of context menu.
and than selection operation are perform by this button not by touch on
context menu.

any one have knowledge about that please share with me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2012-06-13 Thread vaibs malviya
try this

*MediaStore.Images.Media.insertImage(getContentResolver(), yourBitmap,
yourTitle , yourDescription)*


On Wed, Jun 13, 2012 at 11:52 AM, Vijay Krishnan
vijay.vijay...@gmail.comwrote:

 Hi all,
 I could not save my image in phone.Here is my code

  Bitmap imageMap=BitmapFactory.decodeByteArray(data,0,data.length);
  File root = Environment.getExternalStorageDirectory();
 File f1 = new
 File(root.getAbsolutePath()+/DCIM/Camera/,image.jpeg);
 FileOutputStream fos=new FileOutputStream(f1);
imageMap.compress(Bitmap.CompressFormat.JPEG,85,fos);
fos.flush();
fos.close();
Anyone help on this

 Thanks,
 vijay.k

 --
 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] dhcp fails on wlan0 and ethernet with android 4.0

2012-06-13 Thread swaraj
Hi,

Can anyone suggest me, why dhcp fails on ethernet and on wifi when
dhcp service is started from init.rc.
But its working  fine when
dhcpcd -B wlan0/eth0  command is given manually.
Dhcp is not starting during start up and when started manually it
works.


D/wpa_supplicant( 1753): State: ASSOCIATING - ASSOCIATED
I/wpa_supplicant( 1753): CTRL-EVENT-STATE-CHANGE id=1 state=7
BSSID=00:00:00:00:00:00
I/wpa_supplicant( 1753): CTRL-EVENT-CONNECTED - Connection to
00:18:f8:51:45:3f completed (reauth) I//system/bin/dhcpcd( 1778):
dhcpcd[1779]: Android requires an interface
I//system/bin/dhcpcd( 1778): dhcpcd[1779]: stop_control: No such file
or directory
I/logwrapper( 1778): /system/bin/dhcpcd terminated by exit(1)
D/Tethering( 1155): MasterInitialState.processMessage what=3
D/Tethering( 1155): MasterInitialState.processMessage what=3

E/DhcpStateMachine( 1155): DHCP failed on wlan0: Timed out waiting for
dhcpcd to start

I/ethernet( 1146): ==android_net_ethernet_initEthernetNative
I/ethernet( 1146): interface eth0:2 found
V/EthernetStateTracker( 1146): Starts...
I/ethernet( 1146): interface sit0:3 found
E/ethernet( 1146): android_net_ethernet_initEthernetNative exited with
success
I/ethernet( 1146): User ask for device name on 0, list:7BC7F8, total:2
I/ethernet( 1146): User ask for device name on 1, list:7BC7F8, total:2
V/EthernetStateTracker( 1146): Successed
V/EthernetStateTracker( 1146): start to monitor the ethernet devices
I/EthernetManager( 1146): Init Ethernet Manager, service:
com.android.server.EthernetService@4129e608
V/EthernetService( 1146): device 0 name sit0
V/EthernetService( 1146): device 1 name eth0
E/EthernetService( 1146): EthernetManager.ETHERNET_STATE_ENABLED
E/MobileDataStateTracker( 1146): default: Ignoring feature request
because could not acquire PhoneService
E/MobileDataStateTracker( 1146): default: Could not enable APN type
default
D/NetworkManagementService( 1146): Registering observer
D/NetworkManagementService( 1146): Registering observer
I/WifiService( 1146): WifiService starting up with Wi-Fi enabled
E/WifiStateMachine( 1146): Failed to reload STA firmware
java.lang.IllegalStateException: Error communicating to native daemon
I/ethernet( 1146): User ask for device name on 0, list:7BC7F8, total:2
I/ethernet( 1146): User ask for device name on 1, list:7BC7F8, total:2
I/EthernetService( 1146): Ethernet dev enabled 2
V/EthernetService( 1146): device 0 name sit0
V/EthernetService( 1146): device 1 name eth0
D/NetUtils( 1146): android_net_utils_resetConnections in env=0x7d8df8
clazz=0x2f91 iface=sit0 mask=0x3
V/EthernetStateMachine( 1146): start to monitor the ethernet devices
E/EthernetStateMachine( 1146): startMonitoring resetInterface()
I/EthernetStateMachine( 1146): reset device sit0
W/CommandListener( 1068): Failed to retrieve HW addr for wlan0 (No
such device)
D/CommandListener( 1068): Setting iface cfg
D/NetworkManagementService( 1146): rsp 213 00:00:00:00:00:00 0.0.0.0
0 [down]
D/NetworkManagementService( 1146): flags [down]
E/WifiStateMachine( 1146): Unable to change interface settings:
java.lang.IllegalStateException: Unable to communicate with native
daemon to interface setcfg -
com.android.server.NativeDaemonConnectorException: Cmd {interface
setcfg wlan0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set
address (No such device)}
E/WifiHW  ( 1146): Cannot open /system/etc/wifi/wpa_supplicant.conf:
No such file or directory
E/WifiHW  ( 1146): Wi-Fi will not be enabled
E/WifiStateMachine( 1146): Failed to start supplicant!
[   49.792060] init: no such service 'dhcpcd_sit0'

W/EthernetStateMachine( 1146): Could not stop DHCP
I/EthernetSta[   54.808940] init: no such service 'dhcpcd_sit0:-h
android-49740c444506a674 sit0'
teMachine( 1146): trigger dhcp for device sit0
I/SystemServer( 1146): Throttle Service
D/EthernetStateMachine( 1146): DhcpHandler: DHCP request started
I/SystemServer( 1146): Mount Service

E/EthernetStateMachine( 1146): DhcpHandler: DHCP request failed: Timed
out waiting for dhcpcd to start
I/Process ( 1146): Sending signal. PID: 1307 SIG: 3




***init.rc*

  chmod 0770 /system/etc/wifi
   chmod 0660 /system/etc/wifi/wpa_supplicant.conf
   chmod 0777 /system/etc/dhcpd/dhcpd.conf
   chown dhcp dhcp /system/etc/dhcpcd
   chown dhcp dhcp /system/etc/dhcpcd/dhcpcd.conf
   chmod 0775 /system/etc/dhcpcd/dhcpcd-run-hooks
   mkdir /data/local 0771 shell shell
   chown dhcp dhcp /system/etc/dhcpcd/dhcpcd-run-hooks
   chown dhcp dhcp /system/etc/dhcpcd/dhcpcd-hooks
   chown wifi wifi /system/etc/wifi/wpa_supplicant.conf
   #wpa_supplicant control socket for android wifi.c (android private
socket)
   mkdir /data/misc/wifi 0770 wifi wifi
   mkdir /data/misc/wifi/sockets 0770 wifi wifi
   chmod 0770 /data/misc/wifi
   chmod 0770 /data/misc/wifi/wpa_supplicant.conf
   chown wifi wifi /data/misc/wifi
   chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
   chown wifi wifi /system/release/wifi_settings.cfg
mkdir /data/system/wpa_supplicant 0777 

Re: [android-developers]

2012-06-13 Thread Vijay Krishnan
no.that is for creating thumnail.

On Wed, Jun 13, 2012 at 12:01 PM, vaibs malviya
vaibs.malviy...@gmail.comwrote:

 try this

 *MediaStore.Images.Media.insertImage(getContentResolver(), yourBitmap, 
 yourTitle , yourDescription)*


 On Wed, Jun 13, 2012 at 11:52 AM, Vijay Krishnan vijay.vijay...@gmail.com
  wrote:

 Hi all,
 I could not save my image in phone.Here is my code

  Bitmap
 imageMap=BitmapFactory.decodeByteArray(data,0,data.length);
  File root = Environment.getExternalStorageDirectory();
 File f1 = new
 File(root.getAbsolutePath()+/DCIM/Camera/,image.jpeg);
 FileOutputStream fos=new FileOutputStream(f1);
imageMap.compress(Bitmap.CompressFormat.JPEG,85,fos);
fos.flush();
fos.close();
Anyone help on this

 Thanks,
 vijay.k

 --
 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] Problem with video in WebView

2012-06-13 Thread vaibs malviya
i think your solution is in this line
*iframe width=\1100px\ height=\1500px\ src=\
http://www.youtube.com/embed/g6-8zkbCjl8\; frameborder=\0\
allowfullscreen*
there is a  *allowfullscreen* so try to remove or replace it by other.

On Tue, Jun 12, 2012 at 10:03 PM, Angélica Oliveira
angelica@gmail.comwrote:

 Thank you very much! I could watch the video with this code.

 The only problem is that the video only appears when I watch it on
 fullscreen mode.

 Why is that happening? Anyone knows?

 I am testing it on Samsung Galaxy Tab.

 Thank's in advance again!


 2012/6/9 vaibs malviya vaibs.malviy...@gmail.com

 hy
 Deniz is correct, u should create your on custom view of web-view
 let me explain u ,see my code
 implement this code and check it out.



 *public class TestYoutubeVedio extends Activity *
 *{*
 *
 *
 *HtmlvVido mWebView;*
 *   *
 *   *
 *  *
 *  *
 *   *
 *
 *
 *@Override*
 *public void onCreate(Bundle savedInstanceState)*
 * {*
 *super.onCreate(savedInstanceState);*
 * *
 *mWebView = new HtmlvVido(this);*
 *
 *
 *if (savedInstanceState != null) *
 *{*
 *mWebView.restoreState(savedInstanceState);*
 **
 **
 *} else*
 *{*
 *String Play = htmlbody bgcolor=+#00+iframe
 width=\1100px\ height=\1500px\ src=\
 http://www.youtube.com/embed/g6-8zkbCjl8\; frameborder=\0\
 allowfullscreen/iframe/body/html;  *
 *  *
 **
 *}*
 *  *
 *setContentView(mWebView.getLayout()); *
 *  *
 *}*
  *
 *
 *@Override*
 *public void onSaveInstanceState(Bundle outState) *
 *{*
 **
 *super.onSaveInstanceState(outState);*
 *mWebView.saveState(outState);*
 *   *
 *  *
 *}*
 *
 *
 *@Override*
 *public void onStop() *
 *{*
 **
 *super.onStop();*
 **
 *mWebView.stopLoading();*
 *}*
 **
 *}*

 *create ur custom web-view *


 *public class HtmlvVido extends WebView*
 *{*
 *
 *
 *private Context mContext;*
 *private MyWebChromeClient   mWebChromeClient;*
 *private ViewmCustomView;*
 *private FrameLayout mCustomViewContainer;*
 *private WebChromeClient.CustomViewCallback  mCustomViewCallback;*
 *
 *
 *private static FrameLayout mContentView;*
 *private FrameLayout mBrowserFrameLayout;*
 *private FrameLayout mLayout;*
 * *
 *FrameLayout COVER_SCREEN_PARAMS1;*
 *
 *
 *   *
 *static final String LOGTAG = HTML5WebView;*
 *
 *
 *@SuppressWarnings(deprecation)*
 * private void init(Context context) *
 *{*
 *mContext = context; *
 *Activity a = (Activity) mContext;*
 *
 *
 *mLayout= new FrameLayout(context);*
 *   *
 * *
 *  *
 *  *
 **
 *  *
 *
 *
 *mBrowserFrameLayout = (FrameLayout)
 LayoutInflater.from(a).inflate(R.layout.custum, null);*
 * *
 **
 *  *
 *mContentView = (FrameLayout)
 mBrowserFrameLayout.findViewById(R.id.main_content);*
 *mCustomViewContainer = (FrameLayout)
 mBrowserFrameLayout.findViewById(R.id.fullscreen_custom_content);*
 *
 *
 *mLayout.addView(mBrowserFrameLayout,COVER_SCREEN_PARAMS);*
 *   *
 **
 *
 *
 *// Configure the webview*
 *WebSettings s = getSettings();*
 *s.setBuiltInZoomControls(true);*
 *
 s.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);*
 *s.setUseWideViewPort(true);*
 *s.setLoadWithOverviewMode(true);*
 *  //  s.setSavePassword(true);*
 *s.setSaveFormData(true);*
 *s.setJavaScriptEnabled(true);*
 *  *
 *mWebChromeClient = new MyWebChromeClient();*
 *setWebChromeClient(mWebChromeClient);*
 *
 *
 *setWebViewClient(new WebViewClient());*
 *
 *
 *setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);*
 *
 *
 *// enable navigator.geolocation *
 *   // s.setGeolocationEnabled(true);*
 *   //
 s.setGeolocationDatabasePath(/data/data/org.itri.html5webview/databases/);
 *
 *
 *
 *// enable Web Storage: localStorage, sessionStorage*
 *   // s.setDomStorageEnabled(true);*
 *
 *
 *mContentView.addView(this);*
 *}*
 *
 *
 *public HtmlvVido(Context context) *
 *{*
 *super(context);*
 *init(context);*
 *}*
 *
 *
 *public HtmlvVido(Context context, AttributeSet attrs) {*
 *super(context, attrs);*
 *init(context);*
 *}*
 *
 *
 *public HtmlvVido(Context context, AttributeSet attrs, int defStyle)*
 *{*
 *super(context, attrs, defStyle);*
 **
 *   *
 **
 *init(context);*
 *}*
 *
 *
 *public FrameLayout getLayout() *
 *{*
 **
 *return mLayout;*
 *}*
 *
 *
 *public boolean 

Re: [android-developers]

2012-06-13 Thread vaibs malviya
use the sample code from this link
http://stackoverflow.com/questions/6027720/android-how-to-save-captured-image-into-phones-gallery


On Wed, Jun 13, 2012 at 12:10 PM, Vijay Krishnan
vijay.vijay...@gmail.comwrote:

 no.that is for creating thumnail.


 On Wed, Jun 13, 2012 at 12:01 PM, vaibs malviya vaibs.malviy...@gmail.com
  wrote:

 try this

 *MediaStore.Images.Media.insertImage(getContentResolver(), yourBitmap, 
 yourTitle , yourDescription)*


 On Wed, Jun 13, 2012 at 11:52 AM, Vijay Krishnan 
 vijay.vijay...@gmail.com wrote:

 Hi all,
 I could not save my image in phone.Here is my code

  Bitmap
 imageMap=BitmapFactory.decodeByteArray(data,0,data.length);
  File root = Environment.getExternalStorageDirectory();
 File f1 = new
 File(root.getAbsolutePath()+/DCIM/Camera/,image.jpeg);
 FileOutputStream fos=new FileOutputStream(f1);
imageMap.compress(Bitmap.CompressFormat.JPEG,85,fos);
fos.flush();
fos.close();
Anyone help on this

 Thanks,
 vijay.k

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can we send data to fragment from activity?

2012-06-13 Thread tiyyagura yamini
I am using android2.3.3, I have develop one sample for horizontal paging. 
Where I am unable to send the data from actvity to the fragments.

I have two fragment classes, these two classes are configured to the 
activity by using FragmentPagerAdapter class. 
I can send data from fragments to activity by interface declared in 
fragments and implement this interface by actvity class.

Now I need to send the data from one fragment to another fragment (or) from 
actvity to fragment back?

How can do this. Could any one please share your knowledge.

Thanks  Regards
mini.

-- 
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] context menu title button

2012-06-13 Thread TreKing
On Wed, Jun 13, 2012 at 1:26 AM, vaibs malviya vaibs.malviy...@gmail.comwrote:

 my question is that or my problem is that i want to add a button on right
 corner of title of context menu.
 and than selection operation are perform by this button not by touch on
 context menu.


Use a custom dialog. You can't customize the default context menu this way.

-
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

Re: [android-developers] Using TableLayout to perform like expandable listview.

2012-06-13 Thread TreKing
On Tue, Jun 12, 2012 at 7:59 AM, Raneez rane...@gmail.com wrote:

 Is it possible to use TableLayout to get the same function of
 ExpandableListView by dynamically adding the rows(when expanding) and
 removing the rows ( when hiding) ?


Yes, it's probably possible, but why do this when you have
ExpandableListView for exactly this purpose?

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how to connect ms sql server management studio in android code

2012-06-13 Thread Giuseppe
you must use a webservice or a WCF service from server side and use 
respectively KSOAP for webservice client side or ODATA4J for Odata client 
side.

GIuseppe

-- 
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] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-13 Thread Lars
Okay, I will post the code when I get home.

What do you need to see, Java or xml?

-- 
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] Landscape Portrait and more... advanced question

2012-06-13 Thread Mark Cz
Hi all,
I am writing an SDK that shows a EULA dialog in portrait mode upon starting 
the user application.

My EULA is an activity with the following manifest 

activity
android:name=.EulaActivity
android:screenOrientation=portrait
android:theme=*@android:style/Theme.Translucent*
android:configChanges=keyboard|keyboardHidden|orientation /


Suppose that the top activity is in landscape mode, and wants to display my 
EULA activity. 
My EULA is indeed in portrait mode, but it changes the mode of the activity 
below (restarting it, or calling onConfigurationChange, depends on the 
manifest).
On the other hand if my EULA doesn't have *Translucent *style, everything 
is OK. 

Is it possible to show a *Translucent * activity is in portrait while the 
activity below is in landscape ?

-- 
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] Landscape/Portrait and more... an advanced question

2012-06-13 Thread Mark Cz
Hi all,
I am writing an SDK that shows a EULA dialog in portrait mode upon starting 
the user application.

My EULA is an activity with the following manifest 

activity
android:name=.EulaActivity
android:screenOrientation=portrait
android:theme=*@android:style/Theme.Translucent*
android:configChanges=keyboard|keyboardHidden|orientation /


Suppose that the top activity is in landscape mode, and wants to display my 
EULA activity. 
My EULA is indeed in portrait mode, but it changes the mode of the activity 
below (restarting it, or calling onConfigurationChange, depends on the 
manifest).
On the other hand if my EULA doesn't have *Translucent *style, everything 
is OK. 

Is it possible to show a *Translucent * activity is in portrait while the 
activity below is in landscape ?

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

2012-06-13 Thread Vijay Krishnan
Hi all,
I am getting the following runtime exception while using camera
intent

  java.lang.RuntimeException: failure delivering result resultinfo
{who=null request=0 result=-1 data=null}

Thanks,
vijay.k

-- 
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] Landscape/Portrait and more... an advanced question

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 5:18 AM, Mark Cz ome...@gmail.com wrote:
 My EULA is an activity with the following manifest

 activity
             android:name=.EulaActivity
             android:screenOrientation=portrait
             android:theme=@android:style/Theme.Translucent
             android:configChanges=keyboard|keyboardHidden|orientation /

Please don't use android:screenOrientation=portrait, particularly
for something as trivial as a EULA. For example, I can think of no
reason why Google TV users -- or anyone else with a landscape-only
device -- should need to incur neck pain to read your EULA. Even for a
regular device, I'd be annoyed at somebody forcing me to turn my
device just to read their legal agreement.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/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-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] hello

2012-06-13 Thread iconapp 2010
Hello android people,
   I want to write a program in andriod for unlock the phone with out
touching it,
how can i do it.. can u please send me some idea and if some sample code
means it ll quite helping to me..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] page curl

2012-06-13 Thread iconapp 2010
hello android gurus...
I want the code to do page curl effect for my pdf book which is in
webview, is it possible to do like that if it is so can u please send me
some sample code

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

2012-06-13 Thread Madhur Gupta
hello
you can do it via shaking phone .finger sacnning.


On Wed, Jun 13, 2012 at 4:32 PM, iconapp 2010 iconapp2...@gmail.com wrote:
 Hello android people,
    I want to write a program in andriod for unlock the phone with out
 touching it,
 how can i do it.. can u please send me some idea and if some sample code
 means it ll quite helping to me..

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Madhur PremG

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

2012-06-13 Thread deepak mamdapure
plz Suggest me any one


 i wrote all code for mapview but it does not appeair on emulator it
shows only blocks on emulator

my code is below pls check is there any correction plz tell me .there
is no any error in this code  plz suggest me.

  thank you


public class mapDemo extends MapActivity {
MyLocationOverlay mlo;
MapController mpc;
MapView mv;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mv=(MapView)findViewById(R.id.mapview);
   final LocationManager
lm=(LocationManager)getSystemService(Context.LOCATION_SERVICE);

   final LocationListener ll=new MyLocationListener();

   mpc=mv.getController();
   mpc.setZoom(18);
   mlo=new MyLocationOverlay(this,mv);

   mv.getOverlays().add(mlo);
   mv.postInvalidate();
   final Location
location=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
updateWithNewLocation(location);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,ll);
mlo.enableMyLocation();
}



private void updateWithNewLocation(Location location) {
// TODO Auto-generated method stub
if (location !=null)
{
final double lat=location.getLatitude();

final double lng=location.getLongitude();

final GeoPoint mylcation=new 
GeoPoint((int)(lat*100),(int)
(lng*100));

mv.getController().animateTo(mylcation);
mv.getController().setCenter(mylcation);

}
}



public class MyLocationListener implements LocationListener{

public void onLocationChanged(final Location location) {
// TODO Auto-generated method stub
updateWithNewLocation(location);
}



public void onProviderDisabled(final String provider) {
// TODO Auto-generated method stub
 Toast.makeText(getApplicationContext(),Gps
Disabled,Toast.LENGTH_LONG).show();

}

public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(),Gps
enabled,Toast.LENGTH_LONG).show();
}

public void onStatusChanged(final String provider,final int
status,final Bundle extras) {
// TODO Auto-generated method stub

}

}



@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}

This is my main.xml


?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

com.google.android.maps.MapView
 android:id=@+id/map
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:apiKey=0n-H5VH-
CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw
 /
LinearLayout
android:id=@+id/zlayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentBottom=true
android:layout_centerHorizontal=true
/LinearLayout
/RelativeLayout


This is my manifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.ashwath.mapDemo
  android:versionCode=1
  android:versionName=1.0
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission android:name=android.permission.INTERNET/uses-
permission


application android:icon=@drawable/icon android:label=@string/
app_name
uses-library android:name=com.google.android.maps/

activity android:name=.mapDemo
  android:label=@string/app_name


intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
/manifest

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

2012-06-13 Thread deepak mamdapure
plz Suggest me any one


 i wrote all code for mapview but it does not appeair on emulator it
shows only blocks on emulator

my code is below pls check is there any correction plz tell me .there
is no any error in this code  plz suggest me.

  thank you


public class mapDemo extends MapActivity {
MyLocationOverlay mlo;
MapController mpc;
MapView mv;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mv=(MapView)findViewById(R.id.mapview);
   final LocationManager
lm=(LocationManager)getSystemService(Context.LOCATION_SERVICE);

   final LocationListener ll=new MyLocationListener();

   mpc=mv.getController();
   mpc.setZoom(18);
   mlo=new MyLocationOverlay(this,mv);

   mv.getOverlays().add(mlo);
   mv.postInvalidate();
   final Location
location=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
updateWithNewLocation(location);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,ll);
mlo.enableMyLocation();
}



private void updateWithNewLocation(Location location) {
// TODO Auto-generated method stub
if (location !=null)
{
final double lat=location.getLatitude();

final double lng=location.getLongitude();

final GeoPoint mylcation=new 
GeoPoint((int)(lat*100),(int)
(lng*100));

mv.getController().animateTo(mylcation);
mv.getController().setCenter(mylcation);

}
}



public class MyLocationListener implements LocationListener{

public void onLocationChanged(final Location location) {
// TODO Auto-generated method stub
updateWithNewLocation(location);
}



public void onProviderDisabled(final String provider) {
// TODO Auto-generated method stub
 Toast.makeText(getApplicationContext(),Gps
Disabled,Toast.LENGTH_LONG).show();

}

public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(),Gps
enabled,Toast.LENGTH_LONG).show();
}

public void onStatusChanged(final String provider,final int
status,final Bundle extras) {
// TODO Auto-generated method stub

}

}



@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}

This is my main.xml


?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

com.google.android.maps.MapView
 android:id=@+id/map
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:apiKey=0n-H5VH-
CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw
 /
LinearLayout
android:id=@+id/zlayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentBottom=true
android:layout_centerHorizontal=true
/LinearLayout
/RelativeLayout


This is my manifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.ashwath.mapDemo
  android:versionCode=1
  android:versionName=1.0
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission android:name=android.permission.INTERNET/uses-
permission


application android:icon=@drawable/icon android:label=@string/
app_name
uses-library android:name=com.google.android.maps/

activity android:name=.mapDemo
  android:label=@string/app_name


intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
/manifest

-- 
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] page curl

2012-06-13 Thread Raghavendra Rao
Hi,

As far as i know you have to create your own jar and make use of that jar
in your pdf book program. Its like creating your own library and adding
that in your app to give the page flipping effect.

Regards,
Raghu
On Jun 13, 2012 4:35 PM, iconapp 2010 iconapp2...@gmail.com wrote:

 hello android gurus...
 I want the code to do page curl effect for my pdf book which is in
 webview, is it possible to do like that if it is so can u please send me
 some sample code

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

2012-06-13 Thread Amey Bapat
check your logcat if u r getting dis line in red color
couldn't get connection factory client

den check your map apikey ..der is smething wrong there..
are u creating the fingerprint using md5 or sha1..(command prompt creation
of map key)
all da best
On Wed, Jun 13, 2012 at 4:59 PM, deepak mamdapure 
developer.it.a...@gmail.com wrote:

 plz Suggest me any one


  i wrote all code for mapview but it does not appeair on emulator it
 shows only blocks on emulator

 my code is below pls check is there any correction plz tell me .there
 is no any error in this code  plz suggest me.

  thank you


 public class mapDemo extends MapActivity {
MyLocationOverlay mlo;
MapController mpc;
MapView mv;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mv=(MapView)findViewById(R.id.mapview);
   final LocationManager
 lm=(LocationManager)getSystemService(Context.LOCATION_SERVICE);

   final LocationListener ll=new MyLocationListener();

   mpc=mv.getController();
   mpc.setZoom(18);
   mlo=new MyLocationOverlay(this,mv);

   mv.getOverlays().add(mlo);
   mv.postInvalidate();
   final Location
 location=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
updateWithNewLocation(location);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,ll);
mlo.enableMyLocation();
}



private void updateWithNewLocation(Location location) {
// TODO Auto-generated method stub
if (location !=null)
{
final double lat=location.getLatitude();

final double lng=location.getLongitude();

final GeoPoint mylcation=new
 GeoPoint((int)(lat*100),(int)
 (lng*100));

mv.getController().animateTo(mylcation);
mv.getController().setCenter(mylcation);

}
}



public class MyLocationListener implements LocationListener{

public void onLocationChanged(final Location location) {
// TODO Auto-generated method stub
updateWithNewLocation(location);
}



public void onProviderDisabled(final String provider) {
// TODO Auto-generated method stub
 Toast.makeText(getApplicationContext(),Gps
 Disabled,Toast.LENGTH_LONG).show();

}

public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(),Gps
 enabled,Toast.LENGTH_LONG).show();
}

public void onStatusChanged(final String provider,final int
 status,final Bundle extras) {
// TODO Auto-generated method stub

}

}



@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}

 This is my main.xml


 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

 com.google.android.maps.MapView
 android:id=@+id/map
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:apiKey=0n-H5VH-
 CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw
 /
 LinearLayout
 android:id=@+id/zlayout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_alignParentBottom=true
 android:layout_centerHorizontal=true
 /LinearLayout
 /RelativeLayout


 This is my manifest.xml

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.ashwath.mapDemo
  android:versionCode=1
  android:versionName=1.0
 uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/uses-
 permission
 uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
 permission
 uses-permission android:name=android.permission.INTERNET/uses-
 permission


application android:icon=@drawable/icon android:label=@string/
 app_name
uses-library android:name=com.google.android.maps/

activity android:name=.mapDemo
  android:label=@string/app_name


intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
 /manifest

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

Re: [android-developers] mapviewError

2012-06-13 Thread Narendra Singh Rathore
On Wed, Jun 13, 2012 at 4:57 PM, deepak mamdapure 
developer.it.a...@gmail.com wrote:

 plz Suggest me any one


  i wrote all code for mapview but it does not appeair on emulator it
 shows only blocks on emulator

 my code is below pls check is there any correction plz tell me .there
 is no any error in this code  plz suggest me.

  thank you



Well, the possible reasons behind this problem are:
1) wrong api key
2) unavailability of internet

So, it may be either of the two reasons.
Tell me if I am wrong.

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

2012-06-13 Thread Amey Bapat
exactly..thats what ws trying to suggest..!!

On Wed, Jun 13, 2012 at 5:27 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Wed, Jun 13, 2012 at 4:57 PM, deepak mamdapure 
 developer.it.a...@gmail.com wrote:

 plz Suggest me any one


  i wrote all code for mapview but it does not appeair on emulator it
 shows only blocks on emulator

 my code is below pls check is there any correction plz tell me .there
 is no any error in this code  plz suggest me.

  thank you



 Well, the possible reasons behind this problem are:
 1) wrong api key
 2) unavailability of internet

 So, it may be either of the two reasons.
 Tell me if I am wrong.

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




-- 
live and let LIVE!!!

-- 
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 connect ms sql server management studio in android code

2012-06-13 Thread lbendlin
This request makes no sense. SQL Server Management Studio is just that, a 
management suite. You probably meant that you need to connect to a SQL 
Server database.

On Wednesday, June 13, 2012 1:12:07 AM UTC-4, yogeshkumar tiwari wrote:

 Hi freinds,
  i am developing an android apps in that i have to save my data in to the 
 microsoft sql server management studio and retrieve the data from the same 
 so please any one have any idea of how to save data on the microsoft sql 
 server managment studio and retrieve the data from same.If any one have 
 code or refrence please share with me freinds.

 -- 
 With Regards:
 Yogesh Tiwari
 (Android Developer)



-- 
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] App Security

2012-06-13 Thread sujit dubey

  Hi,
  Is there a way to prevent reverse engineering on .apk file generated 
for app? 

-- 
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] App Security

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 8:04 AM, sujit dubey sujit...@gmail.com wrote:
   Is there a way to prevent reverse engineering on .apk file generated
 for app?

Not really. Obfuscation with ProGuard helps a little.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/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-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] App Security

2012-06-13 Thread Amey Bapat
apk signing ...read fr obfuscation of the code also

On Wed, Jun 13, 2012 at 5:34 PM, sujit dubey sujit...@gmail.com wrote:


   Hi,
   Is there a way to prevent reverse engineering on .apk file generated
 for app?

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




-- 
live and let LIVE!!!

-- 
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] Learning to design in Android development

2012-06-13 Thread Parth Amin
Hello,

Can anyone suggest me how to master android layouts, views and graphics ?

How to start with it and gain the maximum advance ?

Please guide me

-- 
Parth Amin

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

2012-06-13 Thread Raghav Sood
What have you tried so far? What is the error/exception you are getting.

Also, you should generally wait at least 48 hours before bumping your post.

On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan vijay.vijay...@gmail.comwrote:

 Hi all,
   I could not save the image taken from my app in my phone.Anyone
 help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
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: Learning to design in Android development

2012-06-13 Thread G. Blake Meike
Well, since you asked...

The second edition of Programming Android is now on-line:
http://shop.oreilly.com/product/0636920023005.do

G. Blake Meike
Marakana


On Wednesday, June 13, 2012 5:27:52 AM UTC-7, Parth Amin wrote:

 Hello,

 Can anyone suggest me how to master android layouts, views and graphics ?

 How to start with it and gain the maximum advance ?

 Please guide me

 -- 
 Parth Amin

  

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

2012-06-13 Thread deepak mamdapure
in the logcat below msg will displayed then what i do



06-13 18:34:13.114: ERROR/MapActivity(388): Couldn't get connection factory
client


On 13 June 2012 17:32, Amey Bapat amey.n.ba...@gmail.com wrote:

 exactly..thats what ws trying to suggest..!!


 On Wed, Jun 13, 2012 at 5:27 PM, Narendra Singh Rathore 
 nsr.curi...@gmail.com wrote:



 On Wed, Jun 13, 2012 at 4:57 PM, deepak mamdapure 
 developer.it.a...@gmail.com wrote:

 plz Suggest me any one


  i wrote all code for mapview but it does not appeair on emulator it
 shows only blocks on emulator

 my code is below pls check is there any correction plz tell me .there
 is no any error in this code  plz suggest me.

  thank you



 Well, the possible reasons behind this problem are:
 1) wrong api key
 2) unavailability of internet

 So, it may be either of the two reasons.
 Tell me if I am wrong.

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




 --
 live and let LIVE!!!

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




-- 








   (Deepak Mamdapure)

 You only live once, once is enough.

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

2012-06-13 Thread Vijay Krishnan
hi raghav,
 Here is my code
File root =
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
   File f1 = new
File(root.getPath()+File.separator+image.jpeg);
   FileOutputStream fos=new FileOutputStream(f1);
boolean
imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
 fos.flush();
fos.close();
 I am trying to save the file under Pictures directory,but i
could not see the file in that directory.And,no exception occurs.
Thanks,
vijay.k

On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood raghavs...@gmail.com wrote:

 What have you tried so far? What is the error/exception you are getting.

 Also, you should generally wait at least 48 hours before bumping your post.


 On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan 
 vijay.vijay...@gmail.comwrote:

 Hi all,
   I could not save the image taken from my app in my phone.Anyone
 help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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

2012-06-13 Thread Narendra Singh Rathore
On Wed, Jun 13, 2012 at 6:44 PM, deepak mamdapure 
developer.it.a...@gmail.com wrote:

 in the logcat below msg will displayed then what i do



 06-13 18:34:13.114: ERROR/MapActivity(388): Couldn't get connection
 factory client


Amey has clarified you what to do in that case.
Check your map api key, there may be something wrong.

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

2012-06-13 Thread Raghav Sood
Do you have permission to write to the SD Card?

On Wed, Jun 13, 2012 at 6:50 PM, Vijay Krishnan vijay.vijay...@gmail.comwrote:

 hi raghav,
  Here is my code
 File root =
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File f1 = new
 File(root.getPath()+File.separator+image.jpeg);
FileOutputStream fos=new FileOutputStream(f1);
 boolean
 imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
  fos.flush();
 fos.close();
  I am trying to save the file under Pictures directory,but i
 could not see the file in that directory.And,no exception occurs.
 Thanks,
 vijay.k

 On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood raghavs...@gmail.com wrote:

 What have you tried so far? What is the error/exception you are getting.

 Also, you should generally wait at least 48 hours before bumping your
 post.


 On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan vijay.vijay...@gmail.com
  wrote:

 Hi all,
   I could not save the image taken from my app in my
 phone.Anyone help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

2012-06-13 Thread Vijay Krishnan
raghav,
  i had included this line uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/ in my
AndroidManifest.xml.But it doesn't work.

On Wed, Jun 13, 2012 at 6:52 PM, Raghav Sood raghavs...@gmail.com wrote:

 Do you have permission to write to the SD Card?


 On Wed, Jun 13, 2012 at 6:50 PM, Vijay Krishnan 
 vijay.vijay...@gmail.comwrote:

 hi raghav,
  Here is my code
 File root =
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File f1 = new
 File(root.getPath()+File.separator+image.jpeg);
FileOutputStream fos=new FileOutputStream(f1);
 boolean
 imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
  fos.flush();
 fos.close();
  I am trying to save the file under Pictures directory,but i
 could not see the file in that directory.And,no exception occurs.
 Thanks,
 vijay.k

 On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood raghavs...@gmail.comwrote:

 What have you tried so far? What is the error/exception you are getting.

 Also, you should generally wait at least 48 hours before bumping your
 post.


 On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan 
 vijay.vijay...@gmail.com wrote:

 Hi all,
   I could not save the image taken from my app in my
 phone.Anyone help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

 --
 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] Calendar EditEventHelper test case

2012-06-13 Thread Michael Chan
Thank you. I will integrate your fix into the repro.

On Mon, Jun 11, 2012 at 6:48 AM, Daniel Kang doojin.k...@gmail.com wrote:

 Hello,

 I'm doing some Unit Test with Android Calendar application.
 In the test code in EditEventHelperTest.java, lots of testSaveEvent*
 encountered java.lang.NullPointerException.
 This comes from AsyncQueryService. startBatch(...).


public void startBatch(int token, Object cookie, String authority,
ArrayListContentProviderOperation cpo, long delayMillis)
 {
OperationInfo info = new OperationInfo();
info.op = Operation.EVENT_ARG_BATCH;
info.resolver = mContext.getContentResolver();
info.handler = mHandler;

 getContentResolver() cause NULL pointer exception.

 I found null resolver derived from wrong mContext. Not in test case
 mContext type is EditEventActivity, but in test case the type is
 MockAbsCalendarActivity.
 MockAbsCalendarActivity in EditEventHelperTest.java is mock test
 module and defines new startBatch for test module.

 I changed EditEventHelper creator code like this

public EditEventHelper(Context context, CalendarEventModel model)
 {
 //mService = new AsyncQueryService(context);
mService =
 ((AbstractCalendarActivity)context).getAsyncQueryService();
}

 This removes Null pointer exception and run test case with right
 startBatch function.

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2012-06-13 Thread Raghav Sood
Where did you put it in your manifest?

On Wed, Jun 13, 2012 at 6:56 PM, Vijay Krishnan vijay.vijay...@gmail.comwrote:

 raghav,
   i had included this line uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/ in my
 AndroidManifest.xml.But it doesn't work.


 On Wed, Jun 13, 2012 at 6:52 PM, Raghav Sood raghavs...@gmail.com wrote:

 Do you have permission to write to the SD Card?


 On Wed, Jun 13, 2012 at 6:50 PM, Vijay Krishnan vijay.vijay...@gmail.com
  wrote:

 hi raghav,
  Here is my code
 File root =
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File f1 = new
 File(root.getPath()+File.separator+image.jpeg);
FileOutputStream fos=new FileOutputStream(f1);
 boolean
 imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
  fos.flush();
 fos.close();
  I am trying to save the file under Pictures directory,but i
 could not see the file in that directory.And,no exception occurs.
 Thanks,
 vijay.k

 On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood raghavs...@gmail.comwrote:

 What have you tried so far? What is the error/exception you are getting.

 Also, you should generally wait at least 48 hours before bumping your
 post.


 On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan 
 vijay.vijay...@gmail.com wrote:

 Hi all,
   I could not save the image taken from my app in my
 phone.Anyone help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

2012-06-13 Thread deepak mamdapure
But i have generated Map Api key more than three times i have already used
all these three api keys but there is nothing any output on emulator







   (Deepak Mamdapure)

 You only live once, once is enough.

-- 
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] App Security

2012-06-13 Thread Kristopher Micinski
Obfuscation definitely helps, but that's pretty much all you can do,

kris

On Wed, Jun 13, 2012 at 8:04 AM, sujit dubey sujit...@gmail.com wrote:

   Hi,
   Is there a way to prevent reverse engineering on .apk file generated
 for app?

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

2012-06-13 Thread Vijay Krishnan
Raghav,
Inside manifest tag and above the application tag

On Wed, Jun 13, 2012 at 7:01 PM, Raghav Sood raghavs...@gmail.com wrote:

 Where did you put it in your manifest?


 On Wed, Jun 13, 2012 at 6:56 PM, Vijay Krishnan 
 vijay.vijay...@gmail.comwrote:

 raghav,
   i had included this line uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/ in my
 AndroidManifest.xml.But it doesn't work.


 On Wed, Jun 13, 2012 at 6:52 PM, Raghav Sood raghavs...@gmail.comwrote:

 Do you have permission to write to the SD Card?


 On Wed, Jun 13, 2012 at 6:50 PM, Vijay Krishnan 
 vijay.vijay...@gmail.com wrote:

 hi raghav,
  Here is my code
 File root =
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File f1 = new
 File(root.getPath()+File.separator+image.jpeg);
FileOutputStream fos=new FileOutputStream(f1);
 boolean
 imgCompress=bitmap.compress(Bitmap.CompressFormat.JPEG,85,fos);
  fos.flush();
 fos.close();
  I am trying to save the file under Pictures directory,but
 i could not see the file in that directory.And,no exception occurs.
 Thanks,
 vijay.k

 On Wed, Jun 13, 2012 at 6:26 PM, Raghav Sood raghavs...@gmail.comwrote:

 What have you tried so far? What is the error/exception you are
 getting.

 Also, you should generally wait at least 48 hours before bumping your
 post.


 On Wed, Jun 13, 2012 at 6:19 PM, Vijay Krishnan 
 vijay.vijay...@gmail.com wrote:

 Hi all,
   I could not save the image taken from my app in my
 phone.Anyone help on this.
 Thanks,
 vijay.k

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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

Re: [android-developers] mapviewError

2012-06-13 Thread Narendra Singh Rathore
On Wed, Jun 13, 2012 at 7:02 PM, deepak mamdapure 
developer.it.a...@gmail.com wrote:


 But i have generated Map Api key more than three times i have already used
 all these three api keys but there is nothing any output on emulator


Okay, may you please tell, which fingerprint have you used for generating
the api key. --- *SHA1 or MD5* ?

If its SHA1, please generate using MD5 fingerprint.

-- 
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] Java 1.7

2012-06-13 Thread bob
I'm trying to use this notation in my code:

int x = 5_000_000;

So, I need Java 1.7.

However, I get this error:

[2012-06-13 09:01:43 - wall] Android requires compiler compliance level 5.0 
or 6.0. Found '1.7' instead. Please use Android Tools  Fix Project 
Properties.

Any thoughts on this?  Will 1.7 probably be supported soon?

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos
Can some one at least verify for me that Google Play being launched as a 
separate process is NOT the correct behavior of an in-app billing activity?

And can anyone verify that if Google Play is already running (i.e. if the 
itself app has just been purchased/downloaded, installed, and was started 
before the Google Play app was closed) that Google Play does NOT take over 
focus after an attempt at an in-app purchase?

Thanks

- Josh



On Tuesday, June 12, 2012 12:15:35 PM UTC-4, Dianne Hackborn wrote:

 Obvious this is not normal, since it works well in other applications. 
  You have not supplied *any* information about what you are doing that may 
 be of interest, so nobody can do anything but make wild guesses about what 
 you are doing.  So here are some wild guesses:

 - Don't launch it with FLAG_ACTIVITY_NEW_TASK.
 - Don't use android:launchMode=singleInstance in your manifest.

 On Tue, Jun 12, 2012 at 7:36 AM, kadmos kadmo...@gmail.com wrote:

   Anyone know what could be done about this? 

 Basically if the Play Store app is still running in the background - 
 which is going to be the case for most users once they first download and 
 install the app - after interaction with any in-app purchase-related dialog 
 box the Play Store is brought back into focus and users must make there way 
 back to the app to complete tasks. how can this be prevented?

 submitted a bug report here: 
 http://code.google.com/p/android/issues/detail?id=32878  

   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




 -- 
 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] Java 1.7

2012-06-13 Thread Daniel Drozdzewski
It probably won't be supported soon for multitude of reasons. Simply
set compiler compliance to 1.6 in Eclipse and live without funky Java
7 features.

I know, it is not, what you asked for, but features of Java 7 are a
bit more than the nice way of representing numerals.

Have a look here:

http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html

... that's quite a lot to port to Dalvik (even when only looking at
HotSpot and language changes).

Bear in mind that many new things in Java7 are possible specifically
because the platforms that Java7 addresses have different (much more
relaxed) constraints compared even to 4 core 1GB RAM mobile device.

For example InvokeDynamic allows JVM to run trully dynamic languages,
which are high productivity and all that, but cost in terms of
processing and memory.

Technicalities aside, remember that Google and Oracle only finished
one big lawsuit. I don't think big G would like to have another one on
their hands just yet.


Daniel
















On 13 June 2012 15:06, bob b...@coolfone.comze.com wrote:
 I'm trying to use this notation in my code:

 int x = 5_000_000;

 So, I need Java 1.7.

 However, I get this error:

 [2012-06-13 09:01:43 - wall] Android requires compiler compliance level 5.0
 or 6.0. Found '1.7' instead. Please use Android Tools  Fix Project
 Properties.

 Any thoughts on this?  Will 1.7 probably be supported soon?

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



-- 
Daniel Drozdzewski

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Kristopher Micinski

 And can anyone verify that if Google Play is already running (i.e. if the
 itself app has just been purchased/downloaded, installed, and was started
 before the Google Play app was closed) that Google Play does NOT take over
 focus after an attempt at an in-app purchase?


It looks like Dianne did:
Obvious this is not normal, since it works well in other applications. 


kris

-- 
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] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-13 Thread Lars
Here's my activity.java:

package lars.browser;

import lars.browser.dagensbilde;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;


public class BrowserActivity extends Activity {
/** Called when the activity is first created. */
public void onClick(View v) {
if (v.getId() == R.id.dagens_button) {
View dagens_button = findViewById(R.id.dagens_button);
dagens_button.setOnClickListener((OnClickListener) this);
Intent i = new Intent(this, dagensbilde.class);
startActivity(i);

And here's my main.xml

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=fill_parent
android:background=@color/background
android:orientation=horizontal
android:padding=30dip 

LinearLayout
android:orientation=vertical
android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_gravity=center
TextView
android:text=@string/main_title
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_gravity=center
android:layout_marginBottom=25dip
android:textSize=24.5sp/


Button
android:id=@+id/nyeste_button
android:layout_width=265dp
android:layout_height=wrap_content
android:layout_gravity=center
android:text=@string/nyeste_text
android:textSize=20sp /


Button
android:id=@+id/dagens_button
android:layout_width=265dp
android:layout_height=wrap_content
android:layout_gravity=center
android:text=@string/dagens_text
android:textSize=20sp /

Button
android:id=@+id/måneds_button
android:layout_width=265dp
android:layout_height=wrap_content
android:text=@string/måneds_text 
android:layout_gravity=center
android:textSize=20sp/
Button
android:id=@+id/alltid_button
android:layout_width=265dp
android:layout_height=wrap_content
android:text=@string/alltid_text 
android:layout_gravity=center
android:textSize=20sp/
Button
android:id=@+id/aboutdev_button
android:layout_width=265dp
android:layout_height=wrap_content
android:text=@string/aboutdev_button
android:layout_gravity=center
android:textSize=20sp/
 /LinearLayout 
/LinearLayout


Please tell me if i need anything.

Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl:

 Get Jetboy working first.
 http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/
 It will teach you a lot and only take 1hour.





 On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Without seeing your code there is no way of knowing...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote:

 Hello
 I am new at this site and new at developing.
 The first activity in my application has 5 buttons, every one of them 
 should(at som point when I get it done) lead to a web page using the 
 webview wigdet. Eclipse does'nt show any errors or mistakes in the code 
 ANYWHERE.

 BUT, when I try to run the app on my phone it only shows my background 
 color and the applications name.

 This is what Eclipse shows (picture is taken with my phone) in main.xml

 https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg
 This is what my phone shows: as you can see theres something wrong. but 
 what? please help me. Thanks, Lars.

 https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png
  
 -- 
 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] ImageView with progress spinner

2012-06-13 Thread Jonathan Koren


 Why not stick your custom imageview and spinner inside a ViewSwitcher?  
 While your imageview is loading show the spinner... When it finished 
 loading show the imageview.


Because of the custom background (or I guess you could think of it as a 
photo frame), I want the spinner to appear inside of that. No matter, I 
found an alternative approach by using a FrameLayout and having a 
ProgressBar on top until the image loads. 

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos
Respectfully, I don't read works well in other applications as yes this 
very same scenario has been tested with at least one other published 
application and it is absolutely NOT suppose to happen. Our app works 
well so long as Google Play has been closed after the app has been 
downloaded and installed. If it hasn't, then we get this weird behavior 
which was enough for my publisher to pull the app from the store. I have no 
problem gutting the project and starting from square one with this but i 
would like to at least try and get a clue as to where i went wrong so I 
don't repeat the mistake.

Thanks

- Josh


On Wednesday, June 13, 2012 10:38:46 AM UTC-4, Kristopher Micinski wrote:

 And can anyone verify that if Google Play is already running (i.e. if the 
 itself app has just been purchased/downloaded, installed, and was started 
 before the Google Play app was closed) that Google Play does NOT take over 
 focus after an attempt at an in-app purchase?


 It looks like Dianne did:
 Obvious this is not normal, since it works well in other applications. 

  
 kris



-- 
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] Recover Certificate from APK

2012-06-13 Thread Saurav
Hi all,

I am in a bit of a soup.
I have lost my keystore file for my signed apk, which is in market. Is
there any way I can extract the certificate from the backup apks that I
have?
Any hack? Please. Mercy. I really need to push an update to the application
in the market.

Thanks in advance!


Regards,
Saurav Mukherjee.

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Kristopher Micinski
Great, produce some code, then.

On Wed, Jun 13, 2012 at 11:47 AM, kadmos kadmo...@gmail.com wrote:
 Respectfully, I don't read works well in other applications as yes this
 very same scenario has been tested with at least one other published
 application and it is absolutely NOT suppose to happen. Our app works
 well so long as Google Play has been closed after the app has been
 downloaded and installed. If it hasn't, then we get this weird behavior
 which was enough for my publisher to pull the app from the store. I have no
 problem gutting the project and starting from square one with this but i
 would like to at least try and get a clue as to where i went wrong so I
 don't repeat the mistake.

 Thanks

 - Josh



 On Wednesday, June 13, 2012 10:38:46 AM UTC-4, Kristopher Micinski wrote:

 And can anyone verify that if Google Play is already running (i.e. if the
 itself app has just been purchased/downloaded, installed, and was started
 before the Google Play app was closed) that Google Play does NOT take over
 focus after an attempt at an in-app purchase?


 It looks like Dianne did:
 Obvious this is not normal, since it works well in other applications. 


 kris

 --
 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] Good application ever i see - I Missed My phone at home

2012-06-13 Thread Rocky
Hi Everyone,

Check this application, its really awesome, *I Missed My phone at home* 
lets enjoy with this apps

http://imissedmyphoneathome.blogspot.in/


-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos
i did. if all youre going to do is troll dude go somewhere else.



On Wednesday, June 13, 2012 12:09:43 PM UTC-4, Kristopher Micinski wrote:

 Great, produce some code, then. 

 On Wed, Jun 13, 2012 at 11:47 AM, kadmos kadmo...@gmail.com wrote: 
  Respectfully, I don't read works well in other applications as yes 
 this 
  very same scenario has been tested with at least one other published 
  application and it is absolutely NOT suppose to happen. Our app works 
  well so long as Google Play has been closed after the app has been 
  downloaded and installed. If it hasn't, then we get this weird behavior 
  which was enough for my publisher to pull the app from the store. I have 
 no 
  problem gutting the project and starting from square one with this but i 
  would like to at least try and get a clue as to where i went wrong so I 
  don't repeat the mistake. 
  
  Thanks 
  
  - Josh 
  
  
  
  On Wednesday, June 13, 2012 10:38:46 AM UTC-4, Kristopher Micinski 
 wrote: 
  
  And can anyone verify that if Google Play is already running (i.e. if 
 the 
  itself app has just been purchased/downloaded, installed, and was 
 started 
  before the Google Play app was closed) that Google Play does NOT take 
 over 
  focus after an attempt at an in-app purchase? 
  
  
  It looks like Dianne did: 
  Obvious this is not normal, since it works well in other 
 applications.  
  
  
  kris 
  
  -- 
  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] Recover Certificate from APK

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 12:00 PM, Saurav to.saurav.mukher...@gmail.com wrote:
 I have lost my keystore file for my signed apk, which is in market. Is there
 any way I can extract the certificate from the backup apks that I have?

No. It is mathematically impossible to recover a keystore from
something signed with that keystore.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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 Checkout settings for paid Android apps

2012-06-13 Thread Paresh Joshi
Hi,
I recently set up the Google checkout account to sell paid android apps and 
got notification from Google Checkout team that my account was put on hold 
because it was set up as tax exempt. Can anyone please let me know how it 
should be set up. Documentation says to use Using Tax Data Systems data 
but when I check that it displays list of states where tax need to be 
charged. Do we need to check all the states or none?
Any help will be highly appreciated?
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] Recover Certificate from APK

2012-06-13 Thread Raghav Sood

 No. It is mathematically impossible to recover a keystore from
 something signed with that keystore.


I know this isn't related to the list, but I've always wondered about that
part. Could anybody explain how it is mathematically impossible, or point
me to a good link?

Thanks
-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
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: Using TableLayout to perform like expandable listview.

2012-06-13 Thread Raneez
because , i need different table layouts for different groups in the 
expandable listview, and i find it difficult to implement.

Can you please help me, i'l be happy if i could do it with expandable 
listview itself.

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Kristopher Micinski
Quite to the contrary, I don't see any short compilable code to
reproduce your claim, just a snippet.  You gave a good description,
which is a start, but filing a bug report on something that seems to
be working in hundreds of other apps seems misguided, and if you're
going to blame the system, you need to have a lot of support behind
you, past this doesn't work.

So, I'm saying, I'm sure it doesn't work for you, you've clarified
that, but if you're blaming the *system* for doing something
incorrectly, I highly doubt that, and you'll need to substantiate it..

And I don't know that you can say I'm trolling you, you can check my
name in this group's history to check that...

kris

On Wed, Jun 13, 2012 at 12:47 PM, kadmos kadmo...@gmail.com wrote:
 i did. if all youre going to do is troll dude go somewhere else.



 On Wednesday, June 13, 2012 12:09:43 PM UTC-4, Kristopher Micinski wrote:

 Great, produce some code, then.

 On Wed, Jun 13, 2012 at 11:47 AM, kadmos kadmo...@gmail.com wrote:
  Respectfully, I don't read works well in other applications as yes
  this
  very same scenario has been tested with at least one other published
  application and it is absolutely NOT suppose to happen. Our app works
  well so long as Google Play has been closed after the app has been
  downloaded and installed. If it hasn't, then we get this weird behavior
  which was enough for my publisher to pull the app from the store. I have
  no
  problem gutting the project and starting from square one with this but i
  would like to at least try and get a clue as to where i went wrong so I
  don't repeat the mistake.
 
  Thanks
 
  - Josh
 
 
 
  On Wednesday, June 13, 2012 10:38:46 AM UTC-4, Kristopher Micinski
  wrote:
 
  And can anyone verify that if Google Play is already running (i.e. if
  the
  itself app has just been purchased/downloaded, installed, and was
  started
  before the Google Play app was closed) that Google Play does NOT take
  over
  focus after an attempt at an in-app purchase?
 
 
  It looks like Dianne did:
  Obvious this is not normal, since it works well in other
  applications. 
 
 
  kris
 
  --
  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] Recover Certificate from APK

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 12:53 PM, Raghav Sood raghavs...@gmail.com wrote:
 I know this isn't related to the list, but I've always wondered about that
 part. Could anybody explain how it is mathematically impossible

Digital signatures are based upon public-key cryptography. You cannot
recover a private key given a public key -- that's the whole point of
public-key crypto. Such algorithms are based on one-way functions:
things that are easy to do but hard to reverse.

I don't have ready links on the subject, but I'd start with Wikipedia
and roll from there. There are also several books on the subject.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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] Recover Certificate from APK

2012-06-13 Thread Kristopher Micinski
That's right, this should be covered in any basic crypto text..

kris

On Wed, Jun 13, 2012 at 12:53 PM, Raghav Sood raghavs...@gmail.com wrote:
 No. It is mathematically impossible to recover a keystore from
 something signed with that keystore.


 I know this isn't related to the list, but I've always wondered about that
 part. Could anybody explain how it is mathematically impossible, or point me
 to a good link?

 Thanks
 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to answer
 them. Instead, post them to public forums where others and I can answer and
 benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

 --
 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] Recover Certificate from APK

2012-06-13 Thread Raghav Sood

 Digital signatures are based upon public-key cryptography. You cannot
 recover a private key given a public key -- that's the whole point of
 public-key crypto. Such algorithms are based on one-way functions:
 things that are easy to do but hard to reverse.


This is enough. I know what public key encryption is and how it works, I
just didn't know that it was used in this case. This clarifies my question.

Thanks

--
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
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] AppWidget disappears after updating app and moving code into a library

2012-06-13 Thread Bryan
Hi,

I've 2 versions of an app, for which I just merged the code into a single 
library that I reference from both apps. In testing, I found that if an 
appwidget existed on the homescreen for this app and I updated to the new 
version using the library, the LauncherModel.java would delete the widget, 
logging 
Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29
(TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG
, Deleting widget that isn't installed anymore: id= 

+ id +  appWidgetId= + appWidgetId);. I found that this was due to the 
change in the AppWidgetProvider in the manifest. It changed to reference the 
class that moved to the library. To resolve that, I moved the class back out of 
the library and directly into the project and reverted the manifest for those 
receivers. This resolved the deleting widget... error, but now the widget 
isn't rendered by the launcher at all after testing the update. I checked 
/data/system/appwidgets.xml, and the widget is still listed there. The 
appwidgetprovider is still called and my service runs, pushing the update, but 
there's no widget on the homescreen. It's not invisible, as I can long press on 
the area where the widget was and I get the wallpaper choser. Why isn't the 
widget fully preserved across this updated?

To clarify, my testing procedure is this, on an emulator with API Level 15:

1. Install version 1 of app

2. Add a homescreen widget

3. Update to version 2 of app

4. Widget remains
5. Update to version 3 of app, with code moved to library

6. Widget is gone, but traces still exist. The appwidgetmanager still 
recognizes it when calling getAppWidgetIds or getAppWidgetInfo

Any help would be great as I'm getting no information from the logs.

-- 
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: AppWidget disappears after updating app and moving code into a library

2012-06-13 Thread Bryan
I should add that I can create new appwidgets on the homescreen with the 
newest version, but existing widgets don't appear even though the onUpdate 
is called in the AppWidgetProvider.

On Wednesday, June 13, 2012 1:23:31 PM UTC-4, Bryan wrote:

 Hi,

 I've 2 versions of an app, for which I just merged the code into a single 
 library that I reference from both apps. In testing, I found that if an 
 appwidget existed on the homescreen for this app and I updated to the new 
 version using the library, the LauncherModel.java would delete the widget, 
 logging 
 Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29
 (TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG
 , Deleting widget that isn't installed anymore: id= 

 + id +  appWidgetId= + appWidgetId);. I found that this was due to the 
 change in the AppWidgetProvider in the manifest. It changed to reference the 
 class that moved to the library. To resolve that, I moved the class back out 
 of the library and directly into the project and reverted the manifest for 
 those receivers. This resolved the deleting widget... error, but now the 
 widget isn't rendered by the launcher at all after testing the update. I 
 checked /data/system/appwidgets.xml, and the widget is still listed there. 
 The appwidgetprovider is still called and my service runs, pushing the 
 update, but there's no widget on the homescreen. It's not invisible, as I can 
 long press on the area where the widget was and I get the wallpaper choser. 
 Why isn't the widget fully preserved across this updated?

 To clarify, my testing procedure is this, on an emulator with API Level 15:

 1. Install version 1 of app

 2. Add a homescreen widget

 3. Update to version 2 of app

 4. Widget remains
 5. Update to version 3 of app, with code moved to library

 6. Widget is gone, but traces still exist. The appwidgetmanager still 
 recognizes it when calling getAppWidgetIds or getAppWidgetInfo

 Any help would be great as I'm getting no information from the logs.



-- 
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] email attachment

2012-06-13 Thread Jags
i am creating some files in my /data/data/com.mypackage.org/files/ using 
openFileForOutput method. I am able to read that file using 3rd party 
activity from my app, now when i send this file as attachment i see the 
attachment being attached in the mail and sent, but when the email reaches, 
there is no attachment ! interestingly, it does not happen in simulator, it 
only hapens in the device, in simulator i get the file pretty perfectly.

what could be the problem ?

regds

-- 
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] email attachment

2012-06-13 Thread Mark Murphy
Third party apps cannot read the contents of your internal storage, by
default. Either:

- put the file on external storage, or

- create the file with MODE_WORLD_READABLE, or

- create a ContentProvider to serve up the file(s) and use content://
for your attachments

On Wed, Jun 13, 2012 at 1:41 PM, Jags jag...@gmail.com wrote:
 i am creating some files in my /data/data/com.mypackage.org/files/ using
 openFileForOutput method. I am able to read that file using 3rd party
 activity from my app, now when i send this file as attachment i see the
 attachment being attached in the mail and sent, but when the email reaches,
 there is no attachment ! interestingly, it does not happen in simulator, it
 only hapens in the device, in simulator i get the file pretty perfectly.

 what could be the problem ?

 regds

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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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: email attachment

2012-06-13 Thread Jags
ok read about this 

http://stackoverflow.com/questions/6058245/email-attachment-not-successful-in-android

is it still an issue ? if i dont have an sdcard what should i do ? even my 
file is also world_readable

is there a temp folder which can be used to send attachment ? or may be 
read the file and send mail in the background not using native mail app !

On Wednesday, June 13, 2012 11:11:17 PM UTC+5:30, Jags wrote:

 i am creating some files in my /data/data/com.mypackage.org/files/ using 
 openFileForOutput method. I am able to read that file using 3rd party 
 activity from my app, now when i send this file as attachment i see the 
 attachment being attached in the mail and sent, but when the email reaches, 
 there is no attachment ! interestingly, it does not happen in simulator, it 
 only hapens in the device, in simulator i get the file pretty perfectly.

 what could be the problem ?

 regds



-- 
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] email attachment

2012-06-13 Thread Jags
Thanks mark, i do have my file created with mode_world_readable. Hence I am 
able to read it using pdf reader ! but email attachment is a problem !



On Wednesday, June 13, 2012 11:14:13 PM UTC+5:30, Mark Murphy (a Commons 
Guy) wrote:

 Third party apps cannot read the contents of your internal storage, by 
 default. Either: 

 - put the file on external storage, or 

 - create the file with MODE_WORLD_READABLE, or 

 - create a ContentProvider to serve up the file(s) and use content:// 
 for your attachments 

 On Wed, Jun 13, 2012 at 1:41 PM, Jags jag...@gmail.com wrote: 
  i am creating some files in my /data/data/com.mypackage.org/files/using 
  openFileForOutput method. I am able to read that file using 3rd party 
  activity from my app, now when i send this file as attachment i see the 
  attachment being attached in the mail and sent, but when the email 
 reaches, 
  there is no attachment ! interestingly, it does not happen in simulator, 
 it 
  only hapens in the device, in simulator i get the file pretty perfectly. 
  
  what could be the problem ? 
  
  regds 
  
  -- 
  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 



 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 


-- 
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] email attachment

2012-06-13 Thread Jags
and do you hv an example how to send private file content through 
contentprovider ?

On Wednesday, June 13, 2012 11:46:23 PM UTC+5:30, Jags wrote:

 Thanks mark, i do have my file created with mode_world_readable. Hence I 
 am able to read it using pdf reader ! but email attachment is a problem !



 On Wednesday, June 13, 2012 11:14:13 PM UTC+5:30, Mark Murphy (a Commons 
 Guy) wrote:

 Third party apps cannot read the contents of your internal storage, by 
 default. Either: 

 - put the file on external storage, or 

 - create the file with MODE_WORLD_READABLE, or 

 - create a ContentProvider to serve up the file(s) and use content:// 
 for your attachments 

 On Wed, Jun 13, 2012 at 1:41 PM, Jags jag...@gmail.com wrote: 
  i am creating some files in my /data/data/com.mypackage.org/files/using 
  openFileForOutput method. I am able to read that file using 3rd party 
  activity from my app, now when i send this file as attachment i see the 
  attachment being attached in the mail and sent, but when the email 
 reaches, 
  there is no attachment ! interestingly, it does not happen in 
 simulator, it 
  only hapens in the device, in simulator i get the file pretty 
 perfectly. 
  
  what could be the problem ? 
  
  regds 
  
  -- 
  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 



 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 



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

2012-06-13 Thread bob
Can someone help me understand the benefits of using 
listenUsingInsecureRfcommWithServiceRecord
instead of listenUsingRfcommWithServiceRecord?

Can you get lower latency?

-- 
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: How apply a theme in a fragment?

2012-06-13 Thread Jonathan Koren
I am also having this issue and would like some help. My activity uses a 
light theme, but for one if its fragments I need to use a dark theme. I've 
tried the following with no success:

public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) {
Context darkTheme = new ContextThemeWrapper(getActivity(), 
R.style.Theme_Dark);
inflater = (LayoutInflater) 
darkTheme.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
return inflater.inflate(R.layout.dark_fragment, container, false);
}

I've also tried

inflater = LayoutInflater.from(darkTheme);

also with no success. Can someone please comment on how to make this work?

-- 
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] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-13 Thread Chris Ruskai
If that's your entire Activity, I don't see an onCreate function or
anything that calls setContentView to tell the app which xml file to use
for the activity's layout.

For example:

@Override
 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

On Wed, Jun 13, 2012 at 11:22 AM, Lars lars.breum...@gmail.com wrote:

 Here's my activity.java:

 package lars.browser;

 import lars.browser.dagensbilde;
 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Intent;
 import android.view.View;
 import android.view.View.OnClickListener;


 public class BrowserActivity extends Activity {
 /** Called when the activity is first created. */
 public void onClick(View v) {
 if (v.getId() == R.id.dagens_button) {
 View dagens_button = findViewById(R.id.dagens_button);
 dagens_button.setOnClickListener((OnClickListener) this);
 Intent i = new Intent(this, dagensbilde.class);
 startActivity(i);

 And here's my main.xml

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=fill_parent
 android:background=@color/background
 android:orientation=horizontal
 android:padding=30dip 

 LinearLayout
 android:orientation=vertical
 android:layout_height=wrap_content
 android:layout_width=fill_parent
 android:layout_gravity=center
 TextView
 android:text=@string/main_title
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:layout_gravity=center
 android:layout_marginBottom=25dip
 android:textSize=24.5sp/


 Button
 android:id=@+id/nyeste_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:layout_gravity=center
 android:text=@string/nyeste_text
 android:textSize=20sp /


 Button
 android:id=@+id/dagens_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:layout_gravity=center
 android:text=@string/dagens_text
 android:textSize=20sp /

 Button
 android:id=@+id/måneds_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/måneds_text
 android:layout_gravity=center
 android:textSize=20sp/
 Button
 android:id=@+id/alltid_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/alltid_text
 android:layout_gravity=center
 android:textSize=20sp/
 Button
 android:id=@+id/aboutdev_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/aboutdev_button
 android:layout_gravity=center
 android:textSize=20sp/
  /LinearLayout
 /LinearLayout


 Please tell me if i need anything.

 Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl:

 Get Jetboy working first.
 http://www.udemy.com/write-**and-publish-an-app-for-your-**
 android-smartphone/http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/
 It will teach you a lot and only take 1hour.





 On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Without seeing your code there is no way of knowing...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote:

 Hello
 I am new at this site and new at developing.
 The first activity in my application has 5 buttons, every one of them
 should(at som point when I get it done) lead to a web page using the
 webview wigdet. Eclipse does'nt show any errors or mistakes in the code
 ANYWHERE.

 BUT, when I try to run the app on my phone it only shows my background
 color and the applications name.

 This is what Eclipse shows (picture is taken with my phone) in main.xml

 https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg
 This is what my phone shows: as you can see theres something wrong. but
 what? please help me. Thanks, Lars.

 https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png

 --
 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are 

[android-developers] Re: ImageView with progress spinner

2012-06-13 Thread Paul Turchenko
Try implementing your own Drawable. This way you could draw spinner while 
actual image loads. As soon as you have image to display, your drawable 
could handle that as well. Use setImageDrawable() call to apply.

On Tuesday, June 12, 2012 2:04:28 AM UTC-5, Karakuri Dev wrote:

 *Short version*: Can I use the indeterminate progress spinner as the 
 source image for an ImageView?

 *Long version*: I have an ImageView with a custom background (it's 
 actually a custom widget that extends ImageView and implements extra 
 drawing in onDraw). While the source image is loading, I want to show the 
 indeterminate progress spinner. Thus far all the solutions I've seen have 
 involved rotating the entire ImageView, which I cannot use for this. I've 
 tried replicating the drawable xml used by the system and setting that as 
 the source image, but the result is always a static image that doesn't 
 spin. Is there some way to set a rotating drawable as the source image?

-- 
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: AppWidget disappears after updating app and moving code into a library

2012-06-13 Thread Bryan
OK, I found a solution, but I feel sick for what it is...

After reading about how classes declared in the manifest should never 
change, I went and creating each class in the manifest as a class in the 
app, extending the corresponding class in the library. Then, I had to 
change every Intent to include the correct class, using forName. So, and 
example of this scenario is:

app package: com.sample.package
activity: MyActivity

library: com.sample.package.core
activity: MyActivity

There's a MyActivity in the app, and a MyActivity in the library. The 
MyActivity in the app simply extends com.sample.package.core.MyActivity.

Then, any occurrence of...

new Intent(context, MyActivity.class)

...in the library must become...

new Intent(context, Class.forName(context.getPackageName() + . + 
MyActivity.class.getSimpleName());

If there's a way to do this through the manifest, please let me know!

Thank you


On Wednesday, June 13, 2012 1:23:31 PM UTC-4, Bryan wrote:

 Hi,

 I've 2 versions of an app, for which I just merged the code into a single 
 library that I reference from both apps. In testing, I found that if an 
 appwidget existed on the homescreen for this app and I updated to the new 
 version using the library, the LauncherModel.java would delete the widget, 
 logging 
 Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29
 (TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG
 , Deleting widget that isn't installed anymore: id= 

 + id +  appWidgetId= + appWidgetId);. I found that this was due to the 
 change in the AppWidgetProvider in the manifest. It changed to reference the 
 class that moved to the library. To resolve that, I moved the class back out 
 of the library and directly into the project and reverted the manifest for 
 those receivers. This resolved the deleting widget... error, but now the 
 widget isn't rendered by the launcher at all after testing the update. I 
 checked /data/system/appwidgets.xml, and the widget is still listed there. 
 The appwidgetprovider is still called and my service runs, pushing the 
 update, but there's no widget on the homescreen. It's not invisible, as I can 
 long press on the area where the widget was and I get the wallpaper choser. 
 Why isn't the widget fully preserved across this updated?

 To clarify, my testing procedure is this, on an emulator with API Level 15:

 1. Install version 1 of app

 2. Add a homescreen widget

 3. Update to version 2 of app

 4. Widget remains
 5. Update to version 3 of app, with code moved to library

 6. Widget is gone, but traces still exist. The appwidgetmanager still 
 recognizes it when calling getAppWidgetIds or getAppWidgetInfo

 Any help would be great as I'm getting no information from the logs.



-- 
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] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-13 Thread Lars
Thank you very much =). It worked=)

But of some reason when i press the dagens_button on my phone it does'nt 
open the attached(dagensbilde.java) activity(which is a webview activity). 
Did i do something wrong in the code i already posted.

Thank you in advance.

Lars.




Den onsdag den 13. juni 2012 20.45.49 UTC+2 skrev Chris Ruskai:

 If that's your entire Activity, I don't see an onCreate function or 
 anything that calls setContentView to tell the app which xml file to use 
 for the activity's layout.

 For example: 

 @Override
  public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 }

 On Wed, Jun 13, 2012 at 11:22 AM, Lars lars.breum...@gmail.com wrote:

 Here's my activity.java:

 package lars.browser;

 import lars.browser.dagensbilde;
 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Intent;
 import android.view.View;
 import android.view.View.OnClickListener;


 public class BrowserActivity extends Activity {
 /** Called when the activity is first created. */
 public void onClick(View v) {
 if (v.getId() == R.id.dagens_button) {
 View dagens_button = findViewById(R.id.dagens_button);
 dagens_button.setOnClickListener((OnClickListener) this);
  Intent i = new Intent(this, dagensbilde.class);
 startActivity(i);

 And here's my main.xml

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=fill_parent
 android:background=@color/background
 android:orientation=horizontal
 android:padding=30dip 

 LinearLayout
 android:orientation=vertical
 android:layout_height=wrap_content
 android:layout_width=fill_parent
 android:layout_gravity=center
 TextView
 android:text=@string/main_title
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:layout_gravity=center
 android:layout_marginBottom=25dip
 android:textSize=24.5sp/


 Button
 android:id=@+id/nyeste_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:layout_gravity=center
 android:text=@string/nyeste_text
 android:textSize=20sp /


 Button
 android:id=@+id/dagens_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:layout_gravity=center
 android:text=@string/dagens_text
 android:textSize=20sp /

 Button
 android:id=@+id/måneds_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/måneds_text 
 android:layout_gravity=center
 android:textSize=20sp/
 Button
 android:id=@+id/alltid_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/alltid_text 
 android:layout_gravity=center
 android:textSize=20sp/
 Button
 android:id=@+id/aboutdev_button
 android:layout_width=265dp
 android:layout_height=wrap_content
 android:text=@string/aboutdev_button
 android:layout_gravity=center
 android:textSize=20sp/
  /LinearLayout 
 /LinearLayout


 Please tell me if i need anything.

 Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl:

 Get Jetboy working first.
 http://www.udemy.com/write-**and-publish-an-app-for-your-**
 android-smartphone/http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/
 It will teach you a lot and only take 1hour.





 On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Without seeing your code there is no way of knowing...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote:

 Hello
 I am new at this site and new at developing.
 The first activity in my application has 5 buttons, every one of them 
 should(at som point when I get it done) lead to a web page using the 
 webview wigdet. Eclipse does'nt show any errors or mistakes in the code 
 ANYWHERE.

 BUT, when I try to run the app on my phone it only shows my background 
 color and the applications name.

 This is what Eclipse shows (picture is taken with my phone) in main.xml

 https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg
 This is what my phone shows: as you can see theres something wrong. 
 but what? please help me. Thanks, Lars.

 https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png
  
 -- 
 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 

Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.

2012-06-13 Thread Justin Anderson
According to your code, you are not setting the click listener on your
button until you click on the button... Adding the click listener should
also go in your onCreate() method...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jun 13, 2012 at 1:19 PM, Lars lars.breum...@gmail.com wrote:

 Thank you very much =). It worked=)

 But of some reason when i press the dagens_button on my phone it does'nt
 open the attached(dagensbilde.java) activity(which is a webview activity).
 Did i do something wrong in the code i already posted.

 Thank you in advance.

 Lars.




 Den onsdag den 13. juni 2012 20.45.49 UTC+2 skrev Chris Ruskai:

 If that's your entire Activity, I don't see an onCreate function or
 anything that calls setContentView to tell the app which xml file to use
 for the activity's layout.

 For example:

 @Override
  public void onCreate(Bundle savedInstanceState) {
 super.onCreate(**savedInstanceState);
 setContentView(R.layout.main);
 }

 On Wed, Jun 13, 2012 at 11:22 AM, Lars lars.breum...@gmail.com wrote:

 Here's my activity.java:

 package lars.browser;

 import lars.browser.dagensbilde;
 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Intent;
 import android.view.View;
 import android.view.View.**OnClickListener;


 public class BrowserActivity extends Activity {
 /** Called when the activity is first created. */
 public void onClick(View v) {
 if (v.getId() == R.id.dagens_button) {
 View dagens_button = findViewById(R.id.dagens_**button);
  dagens_button.**setOnClickListener((**OnClickListener) this);
  Intent i = new Intent(this, dagensbilde.class);
 startActivity(i);

 And here's my main.xml

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.**
 android.com/apk/res/android http://schemas.android.com/apk/res/android
 
 android:layout_width=match_**parent
 android:layout_height=fill_**parent
 android:background=@color/**background
 android:orientation=**horizontal
 android:padding=30dip 

 LinearLayout
 android:orientation=vertical
 android:layout_height=wrap_**content
 android:layout_width=fill_**parent
 android:layout_gravity=**center
 TextView
 android:text=@string/main_**title
 android:layout_height=wrap_**content
 android:layout_width=wrap_**content
 android:layout_gravity=**center
 android:layout_marginBottom=**25dip
 android:textSize=24.5sp/


 Button
 android:id=@+id/nyeste_**button
 android:layout_width=265dp
 android:layout_height=wrap_**content
 android:layout_gravity=**center
 android:text=@string/nyeste_**text
 android:textSize=20sp /


 Button
 android:id=@+id/dagens_**button
 android:layout_width=265dp
 android:layout_height=wrap_**content
 android:layout_gravity=**center
 android:text=@string/dagens_**text
 android:textSize=20sp /

 Button
 android:id=@+id/måneds_**button
 android:layout_width=265dp
 android:layout_height=wrap_**content
 android:text=@string/måneds_**text
 android:layout_gravity=**center
 android:textSize=20sp/
 Button
 android:id=@+id/alltid_**button
 android:layout_width=265dp
 android:layout_height=wrap_**content
 android:text=@string/alltid_**text
 android:layout_gravity=**center
 android:textSize=20sp/
 Button
 android:id=@+id/aboutdev_**button
 android:layout_width=265dp
 android:layout_height=wrap_**content
 android:text=@string/**aboutdev_button
 android:layout_gravity=**center
 android:textSize=20sp/
  /LinearLayout
 /LinearLayout


 Please tell me if i need anything.

 Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl:

 Get Jetboy working first.
 http://www.udemy.com/write-**and**-publish-an-app-for-your-**andro**
 id-smartphone/http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/
 It will teach you a lot and only take 1hour.





 On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson magouyaw...@gmail.com
  wrote:

 Without seeing your code there is no way of knowing...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**m**agouyawarehttp://sites.google.com/site/magouyaware


 On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote:

 Hello
 I am new at this site and new at developing.
 The first activity in my application has 5 buttons, every one of them
 should(at som point when I get it done) lead to a web page using the
 webview wigdet. Eclipse does'nt show any errors or mistakes in the code
 ANYWHERE.

 BUT, when I try to run the app on my phone it only shows my
 background color and the applications name.

 This is what Eclipse shows (picture is taken with my phone) in
 main.xml

 

Re: [android-developers] Re: bubble message like iphone messages ??

2012-06-13 Thread Justin Anderson
Well, you would have to write your own app to use those images, for one.
Then for each message you would use a TextView and set the background of
the TextView to the image...

TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
*android:background=@drawable/my_bubble_img* /

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jun 12, 2012 at 11:01 PM, ala hammad 3la2.7am...@gmail.com wrote:

 thank you for your answer, but i think miss understood ,  i hava images
 but i need how to used it in android to make bubble messages ...


 On Tuesday, 12 June 2012 16:25:27 UTC+3, ala hammad wrote:

 Hello all ,
 i want to know how to make an bubble messages like iphone style, any one
 have any idea .
 i try this but not good ,make an textview with background but my text not
 align in good way ...




 please help ..

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos
That's cool but i never said this doesn't work. In fact, for all we knew 
it was working just fine until we went live and started messing with it and 
saw that this was happening when the app was downloaded from the Play Store 
and the Play Store was left running. Now my app has been pulled and we had 
clients lined up ready to buy this engine. I posted the issue on several 
Android Dev forums and got no response, that's why i filed the bug report. 
Perhaps I still did jump the gun on that but at this point it seems only 
someone from Google would or is even able to tell me that for sure, and its 
not like there's a public hotline to the Play Store dev team.

But to state the issue again - this is a matter of the Play Store - a 
separate application - taking focus away from our app and bringing itself 
(the Play Store) back into view after an in-app purchase is made or any 
purchase-related dialog box generated by the Play Store in interacted with. 
This only happens if the Play Store is still running in the background - if 
the app is downloaded and not used until later, when the Play Store is no 
longer running, or if the Play Store app is manually stopped, in-app 
purchases and other Play Store dialog interactions (already purchased, 
etc) happen as expected and the user is never taken from our app. So this 
isn't exactly a clear-cut issue of whose end the error is on - I can 
naturally assume the error is on my part all day but still the first 
logical question i cant get past is how could i have any programatic 
control over what the Play Store app does or does not do?

I don't know of any other specific app I can download and try to replicate 
this same scenario - if you know of one (that i can test for free) Id be 
grateful to know about it, just so I can see something that works.

I dont expect my problems to be solved for me - I've been working on the 
Android platform for two years now - alone. This is the first time I have 
been this stuck.  

- Josh



On Wednesday, June 13, 2012 12:57:22 PM UTC-4, Kristopher Micinski wrote:

 Quite to the contrary, I don't see any short compilable code to 
 reproduce your claim, just a snippet.  You gave a good description, 
 which is a start, but filing a bug report on something that seems to 
 be working in hundreds of other apps seems misguided, and if you're 
 going to blame the system, you need to have a lot of support behind 
 you, past this doesn't work. 

 So, I'm saying, I'm sure it doesn't work for you, you've clarified 
 that, but if you're blaming the *system* for doing something 
 incorrectly, I highly doubt that, and you'll need to substantiate it.. 

 And I don't know that you can say I'm trolling you, you can check my 
 name in this group's history to check that... 

 kris 

 On Wed, Jun 13, 2012 at 12:47 PM, kadmos kadmo...@gmail.com wrote: 
  i did. if all youre going to do is troll dude go somewhere else. 
  
  
  
  On Wednesday, June 13, 2012 12:09:43 PM UTC-4, Kristopher Micinski 
 wrote: 
  
  Great, produce some code, then. 
  
  On Wed, Jun 13, 2012 at 11:47 AM, kadmos kadmo...@gmail.com wrote: 
   Respectfully, I don't read works well in other applications as yes 
   this 
   very same scenario has been tested with at least one other published 
   application and it is absolutely NOT suppose to happen. Our app 
 works 
   well so long as Google Play has been closed after the app has been 
   downloaded and installed. If it hasn't, then we get this weird 
 behavior 
   which was enough for my publisher to pull the app from the store. I 
 have 
   no 
   problem gutting the project and starting from square one with this 
 but i 
   would like to at least try and get a clue as to where i went wrong so 
 I 
   don't repeat the mistake. 
   
   Thanks 
   
   - Josh 
   
   
   
   On Wednesday, June 13, 2012 10:38:46 AM UTC-4, Kristopher Micinski 
   wrote: 
   
   And can anyone verify that if Google Play is already running (i.e. 
 if 
   the 
   itself app has just been purchased/downloaded, installed, and was 
   started 
   before the Google Play app was closed) that Google Play does NOT 
 take 
   over 
   focus after an attempt at an in-app purchase? 
   
   
   It looks like Dianne did: 
   Obvious this is not normal, since it works well in other 
   applications.  
   
   
   kris 
   
   -- 
   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 
  

Re: [android-developers] code for opening mobile version of a website

2012-06-13 Thread Justin Anderson
Ummm... a mobile site is nothing more than a normal website that is
optimized for mobile devices...  So you would do it the same way you load a
normal website.

An example would be yahoo.com... The mobile version of yahoo's website is
m.yahoo.com.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Jun 9, 2012 at 7:23 AM, prudhvi p n v prudhviraju1...@gmail.comwrote:

 hi guyss..

 i am new to android

 can anyone please  provide me the code for irctc indian railways app or
 any app code that opens a mobile site

 thanks in advance

  --
 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] TabHost Problem

2012-06-13 Thread Justin Anderson
So, when you debug, the values you see are the correct ones, but it is
displaying the old values?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jun 8, 2012 at 2:05 AM, naseem Rafique naseem.ra...@gmail.comwrote:

 Yes, I did check,


 On Wed, Jun 6, 2012 at 8:40 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Have you verified that? Have you tried debugging your code to make sure
 that you are refreshing properly?


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Jun 6, 2012 at 12:12 AM, naseem Rafique 
 naseem.ra...@gmail.comwrote:

 Hi Justin,

 Thanks for sparing some time.
 I do refresh all memory objects infect first I nullify them and re
 populate from server.




 On Tue, Jun 5, 2012 at 7:35 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 The problem is most likely in your Profile class...  You need to
 refresh it when you log in.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Jun 5, 2012 at 7:21 AM, naseem Rafique 
 naseem.ra...@gmail.comwrote:

 Hi folks,

 I am working on an app in which I need to show three Tabs, on Logout I
 want to show remove these abs and on login I want to show these tabs with
 new user's data who just logged in.
  For this I used

 *On Logout:*
 *
 *
 this.tabHost.clearAllTabs();

 *On Login:*
 *
 *
 *   *intent = new Intent(this, Profile.class);
 spec =
 mTabHost.newTabSpec(Profile).setIndicator(Profile,res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
 mTabHost.addTab(spec);

 But it doesn't show my contents of new user, but show old contents.

 Any one, any thoughts.

 Thanks,
 Sam.

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


  --
 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] how to set the size of tab in tabHost?

2012-06-13 Thread Justin Anderson

 I don't see how this changes the size of individual tabs.

*
*This code should get you the first tab in the TabHost... If you passed an
argument of 1 that would get you the secont tab.  Then you are setting the
width and height on that tab with the call to setLayoutParams():

*tabHost.getTabWidget().getChildAt(0)*


Have you tested it?

Have you?  It wouldn't be that hard to add the code and see if it works...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Jun 10, 2012 at 10:39 AM, igor ganapolsky eazy...@gmail.com wrote:

 I don't see how this changes the size of individual tabs.  Have you tested
 it?

 On Friday, May 29, 2009 12:00:33 AM UTC-4, Rockingteam wrote:

 Try this.

 tabHost.getTabWidget().**getChildAt(0).setLayoutParams(**new
 LinearLayout.LayoutParams(**width,height));

  --
 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] soft keyboard not showing

2012-06-13 Thread Justin Anderson
I'm not entirely sure, but I don't think so... For devices with a trackball
or a non-touch screen it would get very annoying if the keyboard popped up
every time an EditText received focus.

I used to have a phone with a TrackBall (T-Mobile MyTouch) and I don't
remember the keyboard popping up if I gave an EditText focus via the
trackball.

But again, I may be wrong on this... Are you programatically giving the
EditText focus?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jun 7, 2012 at 3:38 AM, marcin kolonko makolo...@gmail.com wrote:

 yes, the keyboard shows when i tap inside.
 should the default behavior not be, like, show keyboard
 when receive foucus?


 On Friday, May 25, 2012 6:41:38 PM UTC+2, MagouyaWare wrote:

 in my layout xml i have a stubview. the layout that replaces the stubview
 has a EditText view inside.
 but when i inflate stubview, the soft keyboard doesn't show
 automagically.

 Does the keyboard show when you tap inside the EditText?  That is the
 default keyboard behavior...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Thu, May 24, 2012 at 7:17 AM, marcin kolonko makolo...@gmail.comwrote:

 hi,

 in my layout xml i have a stubview. the layout that replaces the
 stubview has a EditText view inside.
 but when i inflate stubview, the soft keyboard doesn't show
 automagically.

 is this the default behaviour?

 i know i can show the keyboard myself, just want to know if i really
 have to mess with the default behaviour of the keyboard/edittext.

  thx!

 --
 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] Re: bubble message like iphone messages ??

2012-06-13 Thread Kristopher Micinski
I would suspect that you'd also want to use something like a nine
patch for this, ?

kris

On Wed, Jun 13, 2012 at 3:44 PM, Justin Anderson magouyaw...@gmail.com wrote:
 Well, you would have to write your own app to use those images, for one.
 Then for each message you would use a TextView and set the background of the
 TextView to the image...

 TextView
     android:layout_width=wrap_content
     android:layout_height=wrap_content
     android:background=@drawable/my_bubble_img /


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Jun 12, 2012 at 11:01 PM, ala hammad 3la2.7am...@gmail.com wrote:

 thank you for your answer, but i think miss understood ,  i hava images
 but i need how to used it in android to make bubble messages ...


 On Tuesday, 12 June 2012 16:25:27 UTC+3, ala hammad wrote:

 Hello all ,
 i want to know how to make an bubble messages like iphone style, any one
 have any idea .
 i try this but not good ,make an textview with background but my text not
 align in good way ...




 please help ..

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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] Re: How apply a theme in a fragment?

2012-06-13 Thread jc
This includes the key steps and should work to do what you want:

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) {
// create ContextThemeWrapper from the original Activity Context with the 
custom theme
Context context = new ContextThemeWrapper(getActivity(), 
R.style.My_Custom_Theme);
// clone the inflater using the ContextThemeWrapper
LayoutInflater localInflater = inflater.cloneInContext(context);
// inflate using the cloned inflater, not the passed in default 
return localInflater.inflate(R.layout.my_layout, container, false);
}

NOTE: the Context for your view is now a ContextThemeWrapper and not the 
original context which can have subtle differences

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

2012-06-13 Thread Kristopher Micinski
Some devices are insecured.  For example, some mice and other input
devices, etc..., and you simply *can't* authenticate them.

On Wed, Jun 13, 2012 at 2:29 PM, bob b...@coolfone.comze.com wrote:
 Can someone help me understand the benefits of using
 listenUsingInsecureRfcommWithServiceRecord
 instead of listenUsingRfcommWithServiceRecord?

 Can you get lower latency?

 --
 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] Re: bubble message like iphone messages ??

2012-06-13 Thread Justin Anderson

 I would suspect that you'd also want to use something like a nine
 patch for this, ?

Yep... Didn't think of that until after I had replied already.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jun 13, 2012 at 2:18 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 I would suspect that you'd also want to use something like a nine
 patch for this, ?

 kris

 On Wed, Jun 13, 2012 at 3:44 PM, Justin Anderson magouyaw...@gmail.com
 wrote:
  Well, you would have to write your own app to use those images, for one.
  Then for each message you would use a TextView and set the background of
 the
  TextView to the image...
 
  TextView
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:background=@drawable/my_bubble_img /
 
 
  Thanks,
  Justin Anderson
  MagouyaWare Developer
  http://sites.google.com/site/magouyaware
 
 
  On Tue, Jun 12, 2012 at 11:01 PM, ala hammad 3la2.7am...@gmail.com
 wrote:
 
  thank you for your answer, but i think miss understood ,  i hava images
  but i need how to used it in android to make bubble messages ...
 
 
  On Tuesday, 12 June 2012 16:25:27 UTC+3, ala hammad wrote:
 
  Hello all ,
  i want to know how to make an bubble messages like iphone style, any
 one
  have any idea .
  i try this but not good ,make an textview with background but my text
 not
  align in good way ...
 
 
 
 
  please help ..
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
  --
  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] Re: bubble message like iphone messages ??

2012-06-13 Thread Kristopher Micinski
I know nothing about the UI side of Android, which is why I only
suggested it speculatively :-)

On Wed, Jun 13, 2012 at 5:04 PM, Justin Anderson magouyaw...@gmail.com wrote:
 I would suspect that you'd also want to use something like a nine
 patch for this, ?

 Yep... Didn't think of that until after I had replied already.


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Jun 13, 2012 at 2:18 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:

 I would suspect that you'd also want to use something like a nine
 patch for this, ?

 kris

 On Wed, Jun 13, 2012 at 3:44 PM, Justin Anderson magouyaw...@gmail.com
 wrote:
  Well, you would have to write your own app to use those images, for one.
  Then for each message you would use a TextView and set the background of
  the
  TextView to the image...
 
  TextView
      android:layout_width=wrap_content
      android:layout_height=wrap_content
      android:background=@drawable/my_bubble_img /
 
 
  Thanks,
  Justin Anderson
  MagouyaWare Developer
  http://sites.google.com/site/magouyaware
 
 
  On Tue, Jun 12, 2012 at 11:01 PM, ala hammad 3la2.7am...@gmail.com
  wrote:
 
  thank you for your answer, but i think miss understood ,  i hava images
  but i need how to used it in android to make bubble messages ...
 
 
  On Tuesday, 12 June 2012 16:25:27 UTC+3, ala hammad wrote:
 
  Hello all ,
  i want to know how to make an bubble messages like iphone style, any
  one
  have any idea .
  i try this but not good ,make an textview with background but my text
  not
  align in good way ...
 
 
 
 
  please help ..
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
  --
  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

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Jim Graham
On Wed, Jun 13, 2012 at 12:47:50PM -0700, kadmos wrote:

 I dont expect my problems to be solved for me - I've been working on the 
 Android platform for two years now - alone. This is the first time I have 
 been this stuck.  

I believe the point was, if you don't post the relevant portion of your
code, how does ANYONE know that it's not YOUR code that's wrong?  Nobody
here (that I know of) is a mind reader.  You're saying that Google's code
is wrong, while it's working everywhere else except your app, and you
won't post the relevant code from your app.  How is anyone to asume
anything other than that the flaw is in your app?  Think about it
Then post the relevant portion of your code, and maybe, if you haven't
already been added to everyone's send straight to /dev/null list, you
might actually get some help fixing your app.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | This 'telephone' has too many
spooky1...@gmail.com  | shortcomings to be seriously considered
 Running Mac OS X Lion  | as a means of communication.  The device
ICBM / Hurricane: | is inherently of no value to us.
   30.44406N 86.59909W| (Western Union internal memo, 1876)

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos
I never said Google's code was wrong. I never said my code was *not* wrong. 
I *did* post relevant portions of my code - everything up to the actual 
point of initiating a purchase. if no one here can even follow that and 
relate it to the behavior described, or ask me for something specific, why 
should i bother posting even *more* code?

Tell you what everyone if you dont have any actual experience implementing 
in-app billing then please *do* add me to your *send straight to /dev/null
* list so at least my thread won't get cluttered up with more condescending 
comments by folks offering nothing but attempts at putting words in my 
mouth.

Thanks


*
*
*
*
. 
On Wednesday, June 13, 2012 5:53:05 PM UTC-4, Spooky wrote:

 On Wed, Jun 13, 2012 at 12:47:50PM -0700, kadmos wrote: 

  I dont expect my problems to be solved for me - I've been working on the 
  Android platform for two years now - alone. This is the first time I 
 have 
  been this stuck.   

 I believe the point was, if you don't post the relevant portion of your 
 code, how does ANYONE know that it's not YOUR code that's wrong?  Nobody 
 here (that I know of) is a mind reader.  You're saying that Google's code 
 is wrong, while it's working everywhere else except your app, and you 
 won't post the relevant code from your app.  How is anyone to asume 
 anything other than that the flaw is in your app?  Think about it 
 Then post the relevant portion of your code, and maybe, if you haven't 
 already been added to everyone's send straight to /dev/null list, you 
 might actually get some help fixing your app. 

 Later, 
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0 
 73 DE N5IAL (/4)  | This 'telephone' has too many 
 spooky1...@gmail.com  | shortcomings to be seriously considered 
  Running Mac OS X Lion  | as a means of communication.  The device 
 ICBM / Hurricane: | is inherently of no value to us. 
30.44406N 86.59909W| (Western Union internal memo, 1876) 

 Android Apps Listing at http://www.jstrack.org/barcodes.html 



-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Kristopher Micinski
On Wed, Jun 13, 2012 at 7:13 PM, kadmos kadmo...@gmail.com wrote:
 I never said Google's code was wrong. I never said my code was not wrong. I
 did post relevant portions of my code - everything up to the actual point of
 initiating a purchase. if no one here can even follow that and relate it to
 the behavior described, or ask me for something specific, why should i
 bother posting even more code?

 Tell you what everyone if you dont have any actual experience implementing
 in-app billing then please do add me to your send straight to
 /dev/null list so at least my thread won't get cluttered up with more
 condescending comments by folks offering nothing but attempts at putting
 words in my mouth.

 Thanks

I do have experience implementing this, but you never posted an app
that actually compiled, in general people aren't going to go to the
work of creating a new project, and writing code around the snippet
your provided.

I also didn't make any condescending comments, you filed a bug report,
the title of the report was Play Store hijacking focus after in-app
purchase dialog.  I'm sorry, I just didn't understand that that
statement wasn't meant to imply the system was wrong.  To me, you
should only be filing a bug report on a system app if you believe that
it is written in.  I apologize for the produce some code comment,
but the example you gave would require people to spend a few hours
pulling that into an open project, stepping through it, and
reproducing your error;  I was simply saying that you'd perhaps get
more help if you gave a more approachable example. I apologize for
giving you the impression that I didn't care about your situation, but
you are also acting aggressive.  With the amount of information you've
given up to this point, Dianne's advice is the only thing that comes
to mind,

kris

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 7:13 PM, kadmos kadmo...@gmail.com wrote:
 I never said Google's code was wrong. I never said my code was not wrong. I
 did post relevant portions of my code - everything up to the actual point of
 initiating a purchase. if no one here can even follow that and relate it to
 the behavior described, or ask me for something specific, why should i
 bother posting even more code?

1. When you tested your app on a handful of different devices, did the
behavior you dislike persist across all of them?

2. When you tested a bunch of other apps' in-app purchases on a device
that is giving you grief, did they exhibit the same behavior?

3. Does the sample app have enough commonality in logic that you can
determine if it exhibits the same behavior?

 Can some one at least verify for me that Google Play being launched as a 
 separate process is NOT the correct behavior of an in-app billing activity?

Google Play, by definition, will ALWAYS be in a separate process. The
only stuff in your process is code in your app (code you wrote, code
you added via a JAR or library project, code in framework classes).
In-app purchasing code might be in your app (depending on what you
copied from samples, etc.); Google Play itself is not.

 I don't know of any other specific app I can download and try to replicate 
 this same scenario

By your own admission, this is a matter of the Play Store - a
separate application - taking focus away from our app and bringing
itself (the Play Store) back into view after an in-app purchase is
made or any purchase-related dialog box generated by the Play Store in
interacted with. Hence, the problem should be visible in any app
implementing in-app purchases where the Play Store in the state you
described (which is going to be the case for most users once they
first download and install the app). Finding apps that implement
in-app purchases is not especially difficult, even if you can't
directly search for that.

 I don't read works well in other applications as yes this very same 
 scenario has been tested with at least one other published application and it 
 is absolutely NOT suppose to happen.

By your own admission, this will happen for every single in-app
purchase where the Play Store in the state you described (which is
going to be the case for most users once they first download and
install the app). You should be capable, therefore, to test this with
at least one other published application, and preferably more than
one.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos


 *...you filed a bug report, the title of the report was Play Store 
 hijacking focus after in-app purchase dialog.  I'm sorry, I just didn't 
 understand that that statement wasn't meant to imply the system was wrong.
 *


I believed it was a concise and accurate enough observation of what was 
happening, which was all i had (and still have) to go on. Hoped it would be 
enough to catch the attention of someone who may have experienced the same 
problem. 

 *To me, you should only be filing a bug report on a system app if you 
believe that it is written in.*
*
*
I will be mindful of this from now on. Actually had I been a member of this 
group at the time and able to post (i thought i had joined a while back but 
apparently not) i probably would have just started this thread and not 
bothered with the bug report. 


 * I apologize for the produce some code comment, but the example you 
gave would require people to spend a few hours pulling that into an open 
project, stepping through it, and reproducing your error*
*
*
I wasn't expecting anyone to do all that. I was hoping this was either a 
common, easily-resolvable issue, or in fact a legitimate bug with the Play 
Store, and that someone could call it either way. As i said before i have 
no issue with sucking it up and starting over, its just frustrating to have 
been this close just to have it fall apart now.

*you are also acting aggressive * 


my apologies. and i appreciate your help. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread Jim Graham
On Wed, Jun 13, 2012 at 04:13:41PM -0700, kadmos wrote:
 I never said Google's code was wrong. I never said my code was *not* wrong. 

1) Look at your subject line, if nothing else:  Play Store hijacking ... 
   That is not exactly implying good behavior on the part of the market.

2) You filed a bug report about the Play Store, did you not?  That's what
   I read here.  Doing so implies that you believe the problem is there,
   and not your app.

3) I was in no way trying to be condescending.  If you mis-read my post
   that way, well, you read it wrong.

 I *did* post relevant portions of my code - everything up to the actual 
 point of initiating a purchase.

I thought the problem was either during or after the in-app purchase
If it's before the in-app purchase, then why does your subject line
specify AFTER in-app purchase?  Code prior to that is not the relevant
code people are asking for.  Sorry if you disagree, but that's just how
it is here.  People are not going to try to reconstruct what you did,
by guessing and/or trying to read your mind  Post the suspected
problem code, along with all errors associated with it.

 if no one here can even follow that and relate it to the behavior
 described, or ask me for something specific, why should i bother
 posting even *more* code?

Perhaps because people here are asking you to post the code that's
actually relevant to the issue you are describing, so they can try
to help you?  OR, perhaps nobody has ever SEEN this error except you.

If you don't want to post the code, fine...but don't be surprised
if you don't get as much/any help, or if you don't get the right help.
Again, NOT being condescending, just honest.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com  | Dave Aronson:As your life flashes before
 Running Mac OS X Lion  |  your eyes, in the unit of time known as an
ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.  59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] Problems with Linkify in Android 4

2012-06-13 Thread Jim Anderson
After playing around with this on the emulator, it looks like it's
HTC-specific. Plain Android 4 does Linkify just fine, while my HTC One S
doesn't fire intents from Linkify. Odd, but I can work around that.

Cheers,
Jim

Fear is the dark room where the Devil develops his negatives.

   - Gary Busey


On Thu, Jun 7, 2012 at 1:49 PM, Jim Anderson jbheml...@gmail.com wrote:

 I've tried moving all the data tags for each intent filter into one tag,
 and adding a mimetype attribute, but that doesn't work. Intent filters both
 with separate or consolidated data tags works in 2.2. I haven't gotten a
 lot of time at my dev box over the last few days, but the next thing I want
 to try is to generate a plain Android 4 emulator image and see if my
 Linkify code works with that.

 About 15% of my players have Android 4, and I haven't gotten any reports
 of this from the field, so I'm starting to suspect it is HTC-specific. The
 Android 4 emulator test should tell me more. I'll keep you folks informed
 about what I find out.


 Cheers,
 Jim

 Fear is the dark room where the Devil develops his negatives.

- Gary Busey


 On Tue, Jun 5, 2012 at 4:05 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Jun 4, 2012 at 6:32 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
  Or it might be a missing mimeType attribute in the intent filter (since
 the
  uri uses the content scheme).

 Having consulted with some HTCians, the Linkify change they made
 simply blocks the appearance of a chooser. If there is more than one
 activity that handles a given Intent triggered by the Linkify link,
 they go with the default.

 So, while it's possible the HTC Linkify somehow fits, it seems less
 likely, unless there's a bug in their implementation. Hence, I agree
 that the intent-filter may be the problem. I'd first try:

 data android:scheme=content android:host=com.ctenophore.gso.help /

 which more accurately describes your scenario (right now, you claim to
 handle everything in the content:// scheme, and *also* claiming to
 handle everything with your specified host). If that does not help,
 add in android:mimeType=... to the one data element, replacing ...
 with the appropriate value for whatever this activity handles. For
 example, if you are linking to HTML pages, use
 android:mimeType=text/html.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available!

 --
 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] Problems with Linkify in Android 4

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 8:48 PM, Jim Anderson jbheml...@gmail.com wrote:
 After playing around with this on the emulator, it looks like it's
 HTC-specific. Plain Android 4 does Linkify just fine, while my HTC One S
 doesn't fire intents from Linkify. Odd, but I can work around that.

If you can create a sample app demonstrating your problem, I would be
interested in taking a look at it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos

1. When you tested your app on a handful of different devices, did the 

 behavior you dislike persist across all of them? 


yes. 3 different ones. 


 2. When you tested a bunch of other apps' in-app purchases on a device 
 that is giving you grief, did they exhibit the same behavior? 


i myself have not tested any other apps' in-app purchases because i don't 
know of any to test. Another app (comiXology) was tested (not by me 
personally) and has been used as comparison this entire time - not only was 
the same behavior not reported, but it was noticed that when initiating a 
purchase with comiXology, the Play Store is not launched or seen as a 
separate running process, where as it was with ours. It was speculated that 
this may have something to do with the Play Store taking focus from our app 
but i don't know where to go with it - don't know how to initiate in-app 
billing any other way than with the code that's available in the tutorials.


 3. Does the sample app have enough commonality in logic that you can 
 determine if it exhibits the same behavior? 


I suppose so. We obviously did not publish it and download it form the Play 
Store to do a truly accurate comparison but i did not think to compile it 
onto my device and run it with the Play Store still running. I just tried 
and it worked as it should i suppose - i was returned to the app after 
completing a purchase. Going from this point, our app, assuming the 
correct response code is received, begins an asynchronous file download. 
It's at this point we find our app will be pushed to the background and the 
Play Store brings itself back into view in whatever state it was left - 
usually the download page for our app.   

 *
 Google Play, by definition, will ALWAYS be in a separate process. The 
 only stuff in your process is code in your app (code you wrote, code 
 you added via a JAR or library project, code in framework classes). 
 In-app purchasing code might be in your app (depending on what you 
 copied from samples, etc.); Google Play itself is not. *


I would have assumed this - i was only told otherwise by someone making 
purchases with comiXology who was observing the processes running on their 
device, comparing that app to ours.






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

2012-06-13 Thread Raunaque Quaiser
listenUsingInsecureRfcommWithServiceRecord allows you to connect to another
SPP/RFCOM BT profile devices without entering the pass key .  while for the
other you need to enter the pass key,

Check the chat example on android , it is for both secure and insecure
communication . If you are more interested look for OOB BT/Simple Secure
pairing with NFC using BT on NFC forum ,

Regards
Raunaque

On Thu, Jun 14, 2012 at 2:01 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Some devices are insecured.  For example, some mice and other input
 devices, etc..., and you simply *can't* authenticate them.

 On Wed, Jun 13, 2012 at 2:29 PM, bob b...@coolfone.comze.com wrote:
  Can someone help me understand the benefits of using
  listenUsingInsecureRfcommWithServiceRecord
  instead of listenUsingRfcommWithServiceRecord?
 
  Can you get lower latency?
 
  --
  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

[android-developers] Re: Android VPN L2TP

2012-06-13 Thread Nicolas Embleton
Hi ( still cannot know your name :) ) ,

Ok, a good point for being able to connect already.

By File not found exception, can you give some more details? Like a few 
piece of code where you configure and how you setup the key and all?

Nicolas.

On Wednesday, June 13, 2012 11:57:14 AM UTC+7, Евгений Корнейчук wrote:

 Hi Nicolas, thx for reply. Yes, I can connect to my VPN server from PC, I 
 use pre-shared key, login, password. And yes  I tried to use same vpn 
 connection/authentication logic as Android 2*, but it not help, file not 
 found exception, I think it try to get network config file. Any other 
 suggestion? =) 

-- 
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] Play Store hijacking focus after in-app purchase dialog

2012-06-13 Thread kadmos


*I thought the problem was either during or after the in-app purchase
 If it's before the in-app purchase, then why does your subject line
 specify AFTER in-app purchase?  Code prior to that is not the relevant
 code people are asking for*.


Because the only relevant(?) feedback i've gotten from anyone was that 
another app was not launching the Play Store as a separate process at the 
point of sale, whereas ours was, so the first thing i wanted to do was rule 
out that i was beginning the process incorrectly and, by that, somehow 
allowing the Play Store to take focus after an in-app purchase screen. To 
be clear, our app still works after a purchase, its just that the Play 
Store has to be backed out of or closed, and then you can see our app, 
downloading new content, the record of the purchase is in the account, etc. 
everything else is as it should be.

* People are not going to try to reconstruct what you did *


I wasnt expecting or asking anyone to do this. I was hoping someone would 
have already had this problem or someone would at least be able to identify 
the symptom by what i described.

-- 
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: Using TableLayout to perform like expandable listview.

2012-06-13 Thread TreKing
On Wed, Jun 13, 2012 at 11:54 AM, Raneez rane...@gmail.com wrote:

 because , i need different table layouts for different groups in the
 expandable listview,


OK ... so then use different table layouts for different groups. This does
not mean you have to re-invent the wheel of the expandable list view logic.


 and i find it difficult to implement.


Why? What have you tried? What is difficult?


 Can you please help me


With what? Your only question thus far has been is this possible?. If you
more clearly explain what you are trying to achieve and what you have done
so far that does not work, you will find it much easier to get help.

-
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

  1   2   >