[android-developers] Alarm Manager and work manager are unable to show reminders correctly

2022-02-09 Thread Ajay Sharma
Subject:
alarmManager and work manager are unable to show reminders correctly
Issue with alarmManager and work manager
Reminders are missing randomanly and mutiple reminders are comming for 
 particular session, we have used alarm manager and workmanager for 
populating the reminder.
Description:
we are developing a healthcare app where we need to populate the alarm 
notification at a specific time like in the morning, afternoon, evening, 
night.
case 1 : Missed Reminders when the app is in deep sleep mode or in the idle 
state we are not getting reminder on all version of andorid till android 
version R.
case 2 : Mulitple reminders are coming when the device is actice during 
that time we are facing multiple reminders.
For alarms we are using.
1. Room Database for storing the alarm time.
2. Alarm manager's setExactAndAllowWhileIdle() method we are using for 
setting the alarm.
3. Broadcast reciever for getting the pending intent and showing the alarm 
notification.
4. Workmanager we are using to set alarms in the background.
if anyone can help us out how can we populate alarm notification at 
particular time, doesn't matter if mobile is in deep state or idle.
we have gone through with mutilple solution for it but it seems to us 
nothing is working properly.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3986c443-8899-411f-b455-0367abe0f12cn%40googlegroups.com.


[android-developers] iOS Developer-San Francisco, CA - Long Term Contract

2019-08-22 Thread ajay sharma


Hello,
Greetings of the day….
We have a Very Urgent Position here. Please review the job description 
below and respond ASAP. Thank you.

 

*Role: iOS Developer*

*Location: San Francisco, CA*

*Type: Contract*

 

*Job Roles/Responsibilities: *

· Developer iOS Apps with BLE / Wi-Fi Integration

· Developers to participate in agile Sprint process to minimize 
communication gaps:

· 1 week sprints. Kick-off on Mondays at 10a PST

· Tuesday-Thursday daily stand up meeting at 10a PST

· Developers expected to demo progress every Friday at 10a PST

· Developers need to use Jira to track development work and Slack 
for team communication 

 

*Mandatory Skills *

· iOS Developers with BLE / Wi-Fi Integration and IoT expertise

· At least 8+ total years of professional experience with 5+ years 
of verifiable industry experience with iOS development environment 

· Examples of at least 3 apps that have shipped, are of high 
quality and have received favorable user reviews 

· Experience working with REST and/or GRPC APIs 

 

*Preferred Skills:*

· Robust experience writing test code and testing your application 
from both a technical and experience perspective 

· Previous experience leading small teams of iOS developers with 
2-3 members involving technical decisions and ownership of overall product 
development  

 

*Submittal format :*

Name:

 

Phone No:

 

Email ID :

 

Skype id :

 

Experience: (total & relevant )

 

Current location:

 

Willingness to relocate across the US :

 

Interview Availability :

Must be given for 3 days 

Availability :

 

Work authorization:

 

Vacation Plans:

 

Rate :

 

Certifications if any :

 


Reference from Recent Project

 

*References 1*

*Name*

*Contact*

*Email id*

*Designation*

*Company*

 

Regards,
*Ajay Sharma*
PeopleNTech LLC
1604 Spring Hill Rd, Ste 302, Vienna, VA, 22182
Direct: 703-348-4275
e-mail: ajay.sha...@peoplentech.com 
*GSA IT Schedule 70 | MBE | WBE | WOSB | VA SWaM | PA SB*

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0f43d6a8-e2fb-4d55-a8bb-1c55ff23214e%40googlegroups.com.


[android-developers] Android Developer-San Francisco, CA - Long Term Contract

2019-08-22 Thread ajay sharma


Hello,
Greetings of the day….
We have a Very Urgent Position here. Please review the job description 
below and respond ASAP. Thank you.

 

*Role: Android Developer*

*Location: San Francisco, CA*

*Type: Contract*

 

*Job Roles/Responsibilities: *

· Developer Android Apps with BLE / Wi-Fi Integration

· Developers to participate in agile Sprint process to minimize 
communication gaps:

· 1 week sprints. Kick off on Mondays at 10a PST

· Tuesday-Thursday daily stand up meeting at 10a PST

· Developers expected to demo progress every Friday at 10a PST

· Developers need to use Jira to track development work and Slack 
for team communication

*Mandatory Skills *

· Android Developers with BLE / Wi-Fi Integration and IoT expertise

· At least 8+ total years of professional experience with 5+ years 
of verifiable industry experience with Android development environment 

· Examples of at least 3 apps that have shipped, are of high 
quality and have received favorable user reviews 

· Experience working with REST and/or GRPC APIs

*Preferred Skills:*

· Robust experience writing test code and testing your application 
from both a technical and experience perspective 

· Previous experience leading small teams of android developers 
with 2-3 members involving technical decisions and ownership of overall 
product development  

 

 

*Submittal format :*

Name:

 

Phone No:

 

Email ID :

 

Skype id :

 

Experience: (total & relevant )

 

Current location:

 

Willingness to relocate across the US :

 

Interview Availability :

Must be given for 3 days 

Availability :

 

Work authorization:

 

Vacation Plans:

 

Rate :

 

Certifications if any :

 

 

Reference from Recent Project

 

*References 1*

*Name*

*Contact*

*Email id*

*Designation*

*Company*

 

Regards,
*Ajay Sharma*
PeopleNTech LLC
1604 Spring Hill Rd, Ste 302, Vienna, VA, 22182
Direct: 703-348-4275
e-mail: ajay.sha...@peoplentech.com 
*GSA IT Schedule 70 | MBE | WBE | WOSB | VA SWaM | PA SB*

 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0612861a-7896-498f-a0b3-c7f571d31670%40googlegroups.com.


[android-developers] MS Dynamics AX Project Manager

2016-11-28 Thread Ajay Chopra




Start this week



*Job Title:* MS Dynamics AX Project Manager

*Location:* Long Island, NY

*Duration:* Long Term Contract

*Interview Mode:* Phone/Skype

*Job Description:*

· 10  Years in IT industry for 
Financial/Apparel/Retail/Wholesale/CPG

· At least 5 Years of experience on AX MS Dynamics AX implementation

· Comprehensive knowledge on AX product and its previous versions

· Must have complete understanding MS Surestep / Product Life cycle

· Track record of delivery management and experience to work with 
offshore teams

· Excellent project management skills, including mastering project 
management tools

· Solid knowledge of implementation methodology across all phases 
of Diagnosis, Analysis, Design, Development, Deployment and Operation

· Understanding of complete solution (Microsoft Dynamics, vertical 
solution and the Microsoft stack)

· Ability to allocate the correct resources to each project phase

· Excellent change management skills, team leader and ability to 
influence and collaborate

· Strong communication skills

· PMP / Prince 2 are highly desirable

*Tools:* SQL Server, MS Dynamics AX, Azure, Microsoft Technologies


 

Regards-

*Sam *

Business Development Manager

Prosoft Technologies Inc.

*s...@prosoft-inc.com *

Ph: 703 - 574 - 7888 ext 316

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


Re: [android-developers] How to transfer ownership and private keys of an existing mobile app in Google Play Store from one developer account to another

2016-05-11 Thread Ajay
TreKing,

Thanks.  For some reason, I thought that if we followed Google process to
transfer the android app package name to our app store account (i.e from
company A to company B), we could use different private keys to sign the
mobile app.  I say that because I thought that Android uses the package
name as the unique identifier to decide if a mobile app being downloaded
will be installed as a new mobile app or would update an existing mobile
app already installed on the mobile device.

On Wed, May 11, 2016 at 12:21 PM, TreKing <treking...@gmail.com> wrote:

>
> On Sun, May 1, 2016 at 8:25 AM, Ajay Gupta <ajayin...@gmail.com> wrote:
>
>> The other question I have is for users of the mobile app to be able to
>> continue updating their existing mobile apps after the transfer is
>> complete, would we need to ask company A to send over the private keys used
>> to sign the Android app to company B employees?
>
>
> Yes.
>
>
> -
> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/CfnMRlzTUSU/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CANCScgjHEsg8V79ojHn33hyxwgw_WZ-JX9CdU3Wag0w5nz6j2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CANCScgjHEsg8V79ojHn33hyxwgw_WZ-JX9CdU3Wag0w5nz6j2Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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


[android-developers] How to transfer ownership and private keys of an existing mobile app in Google Play Store from one developer account to another

2016-05-01 Thread Ajay Gupta
We have an Android mobile application already published in Google Play 
store under a developer account belonging to company A.  Company A holds 
many smaller companies like B, C, D and so on.  All companies B, C, D 
...had to go through app store subscription of A to publish their mobile 
apps into the app store using folks working for company A.  Now, company B 
has gone public and needs to transfer ownership of its mobile application 
from company A to B.  

The other question I have is for users of the mobile app to be able to 
continue updating their existing mobile apps after the transfer is 
complete, would we need to ask company A to send over the private keys used 
to sign the Android app to company B employees?

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


[android-developers] Integrate Wireless printer(via Bluetooth/WiFi) with Android Application.

2013-01-16 Thread Vaibhav Ajay Gupta
I want to make an android application that can print forms which are 
created by same application with wireless printer which is connected 
via via Bluetooth/WiFi.
Any idea how to integrate Wireless printer(via Bluetooth/WiFi) with Android 
Application.???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Integrate Wireless printer(via Bluetooth/WiFi) with Android Application.

2013-01-16 Thread Vaibhav Ajay Gupta
Thnx Mark Murphy for the reply.
My mistake i didn't mention i want to make a genric application that can 
connect to any printer not to some specific one.

On Wednesday, January 16, 2013 7:55:31 PM UTC+5:30, Mark Murphy (a Commons 
Guy) wrote:

 Step #1: Find a wireless printer. 

 Step #2: Ask the wireless printer manufacturer how to integrate their 
 device with your Android application. 

 On Wed, Jan 16, 2013 at 9:19 AM, Vaibhav Ajay Gupta 
 vaibhav@gmail.com javascript: wrote: 
  I want to make an android application that can print forms which are 
 created 
  by same application with wireless printer which is connected via via 
  Bluetooth/WiFi. 
  Any idea how to integrate Wireless printer(via Bluetooth/WiFi) with 
 Android 
  Application.??? 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 

 Här kan du ställa och svara på frågor om applikationsutveckling på 
 Android: http://www.andglobe.com 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Integrate Wireless printer(via Bluetooth/WiFi) with Android Application.

2013-01-16 Thread Vaibhav Ajay Gupta
Thnx Bob for the reply..

http://stackoverflow.com/questions/7145787/bluetooth-printer-issue-in-android
is what i was looking for. :)


On Thursday, January 17, 2013 1:55:04 AM UTC+5:30, bob wrote:

 Also, here's an example of a guy who is printing to a Bluetooth printer 
 from Android:


 http://stackoverflow.com/questions/7145787/bluetooth-printer-issue-in-android

 Looks like he just creates a Bluetooth socket and sends some text.



 On Wednesday, January 16, 2013 8:19:51 AM UTC-6, Vaibhav Ajay Gupta wrote:

 I want to make an android application that can print forms which are 
 created by same application with wireless printer which is connected 
 via via Bluetooth/WiFi.
 Any idea how to integrate Wireless printer(via Bluetooth/WiFi) with 
 Android Application.???



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Html line(horizontal rule) is not supporting in Android Gmail client

2012-10-22 Thread Ajay Sharma
Hello Everyone,
[please find attached image]
This is sample image( ) of compose message box of android gmail client , 
here i have to insert a line (Html line with the help of Hr tag or table) 
at position (Red mark between that two statements) with the *custom html 
message* , i try a lot but i am not getting any line.

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

[android-developers] page curl animation

2012-10-04 Thread ajay kumar
i am working on a app in which i have to give curl animation activity on 
button click .I am using google page curl code but problem is i have to 
convert the view in bitmap .
each time button click  will display new text .and there more than 5000 
text .and its not a good way to convert all of them in bitmap .
my question is is there any way to give  curl effect to my activity on 
button click without converting to bitmap.Please help me to this.

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

Re: [android-developers] Re: Source not found, but I've given a source?

2012-08-06 Thread Ajay Tribhuwan
let me ask you are you using proxy connection ?
if you are using then you have to include proxy connection class
even though you may check your program including the http url which does not
require proxy.

On 8/2/12, soynerdito soynerdito soynerd...@gmail.com wrote:
 Source not found normally means that the build version of the app is not
 exactly the same as the one being debugged. So first of all, do a project
 Clean. Delete your bin and gen folders. Then build your app and make sure
 it is building without errors. You may (but not normally required) to
 uninstall the app from the device and run again. All is to make sure that
 the app building at that moment is the one that is running on the device.

 On Thursday, August 2, 2012 2:40:10 AM UTC-4, Therion wrote:

 Hello, this is my first time posting, but I've run into a massive wall in

 my progress.

 A quick background, I started developing an app for the Android about 3-4

 months ago, off and on. It is a project I received from my college teacher

 for a sort of internship.
 I have to take a peice of text, inputted by the user, attach it to the a
 url address, and then access the website, retrieve the xml, parse it, and

 then display 3 peices of the code in separate textviews.
 Currently, I've separated the text input screen from the screen which
 displays the parsed data sections.

 However, I'm currently completely stuck trying to access the website and
 retrieve the xml.
 The debug simply says Source not found. and gives me an option to Edit
 Source Lookup Path. However, I've got the program already directed to the

 Source location.
 Currently, this is my code for attempting to access the website :

 public class Price_PageActivity extends Activity {

 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.price_page);

 HttpURLConnection con = null;
 URL url1;
 InputStream is=null;
 Intent intent = getIntent();
 String urlextra = intent.getStringExtra(android.grabber.string);
 try {
 url1 = new URL((http://www.reuters.com/finance/stocks/overview?symbol=;

 + urlextra ));
 con = (HttpURLConnection) url1.openConnection();
 // con.setReadTimeout(1 /* milliseconds */);
 // con.setConnectTimeout(15000 /* milliseconds */);
 con.setRequestMethod(GET);
 con.setDoInput(true);
 con.connect();
 is = con.getInputStream();



 BufferedReader rd = new BufferedReader(new InputStreamReader(is), 4096);
 String line;
 StringBuilder sb = new StringBuilder();
 while ((line = rd.readLine()) != null) {
 sb.append(line);
 }
 rd.close();
 String streamcontent = sb.toString();
 TextView Text = (TextView) findViewById(R.id.TextView02);
 Text.setText(streamcontent);
 } catch (IOException e) {
 //handle the exception !
 e.printStackTrace(); }



 If any more information is required, I will try my best to provide it.
 Any help I can gather with this problem would be greatly appreciated, as
 I've been stuck on this for a disappointingly long time now...



 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Photos not saving anywhere?

2012-07-27 Thread Vaibhav Ajay Gupta
I am developing a custom camera application on android 2.2 api 
level8(Device Xperia S)

My application is running but when i click capture button the toast is 
displayed but image is not saved anywhere on the devices.
Also added the permission to write on external device in menifest.

Take photo class

package com.example.customcamera3;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

import android.app.Activity;
import android.content.Context;
import android.hardware.Camera;
import android.hardware.Camera.PictureCallback;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.Toast;

public class TakePhoto extends Activity {
private Camera mCamera;
private CameraPreview mPreview;
public static final int MEDIA_TYPE_IMAGE = 1;
private String test=test;

private PictureCallback mPicture = new PictureCallback() {

@Override
public void onPictureTaken(byte[] data, Camera camera) {

File pictureFile = getOutputMediaFile(MEDIA_TYPE_IMAGE);
if (pictureFile == null) {
Log.d(TakePhoto,
Error creating media file, check storage permissions: );
return;
} else {
Log.d(TakePhoto,
creating media file, check storage permissions: );
}
try {
FileOutputStream fos = new FileOutputStream(pictureFile);
fos.write(data);
fos.close();
Log.d(TakePhoto, Output Media File +data);
} catch (FileNotFoundException e) {
Log.d(TakePhoto, File not found:  + e.getMessage());
} catch (IOException e) {
Log.d(TakePhoto, Error accessing file:  + e.getMessage());
}

}
};

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

// Create an instance of Camera
mCamera = getCameraInstance();
mCamera.setDisplayOrientation(90);
// Create our Preview view and set it as the content of our activity.
mPreview = new CameraPreview(this, mCamera);
FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);
preview.addView(mPreview);

Button captureButton = (Button) findViewById(R.id.bcapture);
captureButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// get an image from the camera
mCamera.takePicture(null, null, mPicture);
Toast.makeText(getBaseContext(), sup, Toast.LENGTH_SHORT)
.show();
}
});

}

/** A safe way to get an instance of the Camera object. */
public static Camera getCameraInstance() {
Camera c = null;
try {
c = Camera.open(); // attempt to get a Camera instance
} catch (Exception e) {
// Camera is not available (in use or does not exist)
Log.d(TakePhoto, Camera is not Avialable);
}
return c; // returns null if camera is unavailable
}

/** Create a file Uri for saving an image or video */
private static Uri getOutputMediaFileUri(int type) {
return Uri.fromFile(getOutputMediaFile(type));
}

/** Create a File for saving an image or video */
private static File getOutputMediaFile(int type) {
// To be safe, you should check that the SDCard is mounted
// using Environment.getExternalStorageState() before doing this.

File mediaStorageDir = new File(
Environment
.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
TakePhoto);
// This location works best if you want the created images to be shared
// between applications and persist after your app has been uninstalled.

// Create the storage directory if it does not exist
if (!mediaStorageDir.exists()) {
if (!mediaStorageDir.mkdirs()) {
Log.d(TakePhoto, failed to create directory);
return null;
}
} else {
Log.d(TakePhoto, Directory exist);

}

// Create a media file name
String timeStamp = new SimpleDateFormat(MMdd_HHmmss).format(new 
Date());
File mediaFile;

mediaFile = new File(mediaStorageDir.getPath() + File.separator
+ IMG_ + timeStamp + .jpg);

Log.d(TakePhoto, mediaFile.toString());

return mediaFile;
}
}


Camera Preview class

import java.io.IOException;

import android.content.Context;
import android.hardware.Camera;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

/** A basic Camera preview class */
public class CameraPreview extends SurfaceView implements 
SurfaceHolder.Callback {
private SurfaceHolder mHolder;
private Camera mCamera;

public CameraPreview(Context context, Camera camera) {
super(context);
mCamera = camera;

// Install a SurfaceHolder.Callback so we get notified when the
// underlying surface is created and destroyed.
mHolder = getHolder();
mHolder.addCallback(this);
// deprecated setting, but required on Android versions prior to 3.0
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}

public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, now tell the camera 

[android-developers] anoop ajay wants to chat

2012-04-05 Thread anoop ajay
I've been using Google Talk and thought you might like to try it out.
We can use it to call each other for free over the internet. Here's an
invitation to download Google Talk. Give it a try!

---

anoop ajay wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-67cb4959f9-40664324e4-2UquqCRnq3RxqZkPyLebqZ4Cc8M
You'll need to click this link to be able to chat with anoop ajay.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with anoop ajay, visit:
http://mail.google.com/mail/a-67cb4959f9-40664324e4-2UquqCRnq3RxqZkPyLebqZ4Cc8M

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Multiple Alarm problem

2012-03-29 Thread Ajay Sharma

http://stackoverflow.com/questions/9921189/multiple-alarm-fire-at-same-time

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Can this be done on android?

2012-03-27 Thread Ajay Motah
Dear friends, i am a university student competting for my bsc(hons) in
IT! i suggested to have my final year project based on android, n for
your info, i have never codded in android. im am supposed to give a
suggestion by tomorow! and i would be completing my project by august!

What the program is to to do, it
1) automatically locate where you are in mauritius
2) you select your destination upon tapping on specific location in
maritius
3) it will tel u the route you need to take to got thier...eg by car,
the km and the duration u will reach their
4) you may also wish to select to go by public bus, which will then
retrieve the info from a database, about the bus schedule using the
actual time, and tell you the bus fare

My question is that be possible to be done on android, the map of
mauritius with multiple roads, and locations, and route?
Please help
thanks a lot

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Home Key on ICS

2012-03-13 Thread Ajay
Hi,

I noticed that the Activity in my app is destroyed immediately after I
press Home key on ICS only. On Gingerbread or lower, I didn't see this
behavior.

Anyone else noticed this or any clue on why is this behavior observed
on ICS?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Home Key on ICS

2012-03-13 Thread Ajay
Thanks a lot! I wasn't aware of that option.

On Mar 13, 2:21 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 You probably have the Destroy activities immediately checkbox checked.







 On Tuesday, March 13, 2012 4:25:53 PM UTC+8, Ajay wrote:

  Hi,

  I noticed that the Activity in my app is destroyed immediately after I
  press Home key on ICS only. On Gingerbread or lower, I didn't see this
  behavior.

  Anyone else noticed this or any clue on why is this behavior observed
  on ICS?

  Thank you,
  AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Service not available

2012-02-21 Thread ajay talreja
I want to retrieve the address of the location when i am passing the
longitude and latitude from Command line through Telnet...The
application do get latitude and longitude updates when i change from
command line..
im providing with the code...the code doesn't have any
error.but is unable to show the address of the
locationit shows LocationProvider.TEMPORARILY_UNAVAILABLE
If the service is not available how is it taking the values
from command line..?
i donno where i have gone wrong... :-(
please help..





import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class GPSTest extends Activity implements LocationListener {

   private TextView mInfoText;
   private LocationManager mLoc;

   private static final Integer MINIMUM_UPDATE_INTERVAL = 1; //
update every 10 seconds
   private static final Integer MINIMUM_UPDATE_DISTANCE = 10;//
update every 10 meters

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

  // get a handle to the text view to display the GPS location
data
  mInfoText = (TextView) findViewById(R.id.infotext);

  // the location manager allows access to the current location
and GPS status
  mLoc = (LocationManager) getSystemService(LOCATION_SERVICE);
   }

   @Override
   /**
* onResume is is always called after onStart, even if the app
hasn't been paused
*/
   protected void onResume() {
  // add a location listener and request updates every 1ms or
10m
  mLoc.requestLocationUpdates(LocationManager.GPS_PROVIDER,
MINIMUM_UPDATE_INTERVAL,
MINIMUM_UPDATE_DISTANCE, this);
  super.onResume();
   }

   @Override
   protected void onPause() {
  // GPS, as it turns out, consumes battery like crazy
  mLoc.removeUpdates(this);
  super.onPause();
   }

   @Override
   protected void onStop() {
  // may as well just finish since saving the state is not
important for this toy app
  finish();
  super.onStop();
   }

   public void onLocationChanged(Location loc) {
  // display some information based on the current position
  StringBuilder sb = new StringBuilder(Your current location is:\n
\n);

  sb.append(Longitude: );
  sb.append(loc.getLongitude());
  sb.append('\n');

  sb.append(Latitude: );
  sb.append(loc.getLatitude());
  sb.append('\n');

  sb.append(Altitiude: );
  sb.append(loc.getAltitude());
  sb.append('\n');

  sb.append(Accuracy: );
  sb.append(loc.getAccuracy());
  sb.append('\n');

  sb.append(Timestamp: );
  Date timestamp = new Date(loc.getTime());
  sb.append(new SimpleDateFormat().format(timestamp));

  try{
  Geocoder gcd = new Geocoder(this, Locale.getDefault());
  ListAddress addresses =
  gcd.getFromLocation(loc.getLatitude(),
loc.getLongitude(),100);
  if (addresses.size()  0) {

  StringBuilder result = new StringBuilder();
  for(int i = 0; i  addresses.size(); i++){
  Address address =  addresses.get(i);
  int maxIndex = address.getMaxAddressLineIndex();
  for (int x = 0; x = maxIndex; x++ ){
  result.append(address.getAddressLine(x));

  result.append(,);
  }
  result.append(address.getLocality());
  result.append(,);
  result.append(address.getPostalCode());
  result.append(\n\n);
  }
  sb.append(result.toString());
  }
  }
  catch(IOException ex){
 sb.append(ex.getMessage().toString());
  }

  mInfoText.setText(sb.toString());
   }

   public void onProviderDisabled(String provider) {
  // called if/when the GPS is disabled in settings
  Toast.makeText(this, GPS disabled, Toast.LENGTH_LONG).show();

  // end program since we depend on GPS
  AlertDialog.Builder alertbox = new AlertDialog.Builder(this);
  alertbox.setMessage(This demo app requires GPS. Please activate
it first!);
  alertbox.setNeutralButton(Ok, new
DialogInterface.OnClickListener() {
  public void onClick(DialogInterface arg0, int arg1) {
 finish();
  }
  });
  alertbox.show();
   }

   public void 

[android-developers] Re: Service not available

2012-02-21 Thread ajay talreja
Did u checked the code...i think there can be problem in
the code also for reverse geocoding...please check...


On Feb 21, 7:53 pm, Mychandus Msb mychan...@gmail.com wrote:
 I got this error many times, this is not because of the code, this is
 because of device not able to get proper satellite signals. if you can get
 the device into open sky you may get the required inforamtion.









 On Tue, Feb 21, 2012 at 7:57 PM, ajay talreja ajayt...@gmail.com wrote:
  I want to retrieve the address of the location when i am passing the
  longitude and latitude from Command line through Telnet...The
  application do get latitude and longitude updates when i change from
  command line..
  im providing with the code...the code doesn't have any
  error.but is unable to show the address of the
  locationit shows LocationProvider.TEMPORARILY_UNAVAILABLE
  If the service is not available how is it taking the values
  from command line..?
  i donno where i have gone wrong... :-(
  please help..

  import java.io.IOException;
  import java.text.SimpleDateFormat;
  import java.util.Date;
  import java.util.List;
  import java.util.Locale;

  import android.app.Activity;
  import android.app.AlertDialog;
  import android.content.DialogInterface;
  import android.location.Address;
  import android.location.Geocoder;
  import android.location.Location;
  import android.location.LocationListener;
  import android.location.LocationManager;
  import android.location.LocationProvider;
  import android.os.Bundle;
  import android.widget.TextView;
  import android.widget.Toast;

  public class GPSTest extends Activity implements LocationListener {

    private TextView mInfoText;
    private LocationManager mLoc;

    private static final Integer MINIMUM_UPDATE_INTERVAL = 1; //
  update every 10 seconds
    private static final Integer MINIMUM_UPDATE_DISTANCE = 10;    //
  update every 10 meters

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

       // get a handle to the text view to display the GPS location
  data
       mInfoText = (TextView) findViewById(R.id.infotext);

       // the location manager allows access to the current location
  and GPS status
       mLoc = (LocationManager) getSystemService(LOCATION_SERVICE);
    }

    @Override
    /**
     * onResume is is always called after onStart, even if the app
  hasn't been paused
     */
    protected void onResume() {
       // add a location listener and request updates every 1ms or
  10m
       mLoc.requestLocationUpdates(LocationManager.GPS_PROVIDER,
  MINIMUM_UPDATE_INTERVAL,
             MINIMUM_UPDATE_DISTANCE, this);
       super.onResume();
    }

    @Override
    protected void onPause() {
       // GPS, as it turns out, consumes battery like crazy
       mLoc.removeUpdates(this);
       super.onPause();
    }

    @Override
    protected void onStop() {
       // may as well just finish since saving the state is not
  important for this toy app
       finish();
       super.onStop();
    }

    public void onLocationChanged(Location loc) {
       // display some information based on the current position
       StringBuilder sb = new StringBuilder(Your current location is:\n
  \n);

       sb.append(Longitude: );
       sb.append(loc.getLongitude());
       sb.append('\n');

       sb.append(Latitude: );
       sb.append(loc.getLatitude());
       sb.append('\n');

       sb.append(Altitiude: );
       sb.append(loc.getAltitude());
       sb.append('\n');

       sb.append(Accuracy: );
       sb.append(loc.getAccuracy());
       sb.append('\n');

       sb.append(Timestamp: );
       Date timestamp = new Date(loc.getTime());
       sb.append(new SimpleDateFormat().format(timestamp));

       try{
           Geocoder gcd = new Geocoder(this, Locale.getDefault());
           ListAddress addresses =
               gcd.getFromLocation(loc.getLatitude(),
  loc.getLongitude(),100);
           if (addresses.size()  0) {

               StringBuilder result = new StringBuilder();
               for(int i = 0; i  addresses.size(); i++){
                   Address address =  addresses.get(i);
                   int maxIndex = address.getMaxAddressLineIndex();
                   for (int x = 0; x = maxIndex; x++ ){
                       result.append(address.getAddressLine(x));

                       result.append(,);
                   }
                   result.append(address.getLocality());
                   result.append(,);
                   result.append(address.getPostalCode());
                   result.append(\n\n);
               }
               sb.append(result.toString());
           }
       }
       catch(IOException ex){
          sb.append(ex.getMessage().toString());
       }

       mInfoText.setText

[android-developers] FTDI USB issue

2012-02-21 Thread ajay
Hello Everyone,

I'm trying to usb an FTDI USB chip on Android following the
instructions at:

http://www.ftdichip.com/Android.htm
http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf

I can setVIDPID so I'm assuming the  FTDI library is installed
correctly. But calling createDeviceInfoList causes the sample program
to crash.

/dev/bus/usb, /dev/usb/* all have permissions of 777 (I know that 666
is all that is needed)

Log file snippet follows:

D/Depth Reader(  774): Started application.
W/InputManagerService(  156): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@4091c4f8
(uid=10022 pid=234)
D/TabletStatusBar(  207): lights on
D/dalvikvm(  217): GC_FOR_ALLOC freed 6K, 3% free 8145K/8391K, paused
64ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 8.504MB for 513744-
byte allocation
D/dalvikvm(  217): GC_FOR_ALLOC freed 1K, 3% free 8646K/8903K, paused
32ms
D/dalvikvm(  217): GC_CONCURRENT freed 953K, 11% free 8519K/9543K,
paused 2ms+4ms
D/dalvikvm(  217): GC_FOR_ALLOC freed 17K, 11% free 8540K/9543K,
paused 46ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 10.066MB for 1745936-
byte allocation
I/ActivityManager(  156): Displayed com.ftdi.d2xx/.D2XXSampleActivity:
+588ms
D/PhoneWindow(  234): couldn't save which view has focus because the
focused view android.widget.TextView@407d3be0 has no id.
D/dalvikvm(  217): GC_CONCURRENT freed 0K, 10% free 10245K/11271K,
paused 2ms+3ms
D/SntpClient(  156): request time failed:
java.net.UnknownHostException: Unable to resolve host north-
america.pool.ntp.org: No address associated with hostname
I/ftd2xx-java(  774): loading JNI library...
D/dalvikvm(  774): Trying to load lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
D/dalvikvm(  774): Added shared lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
I/ftd2xx-java(  774): JNI library loaded!
I/Depth Reader(  774): Check lib version: 65541
I/Depth Reader(  774): Retrieved VID and PID: 1027 24577
D/Depth Reader(  774): Determining number of devices
I/DEBUG   (   86): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   86): Build fingerprint: 'motorola/tervigon/wingray:3.2.1/
HTK75D/190830:user/release-keys'
I/DEBUG   (   86): pid: 774, tid: 774   com.ftdi.d2xx 
I/DEBUG   (   86): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr deadbaad
I/DEBUG   (   86):  r0 deadbaad  r1 0001  r2 a000  r3 
I/DEBUG   (   86):  r4   r5 0027  r6 56301e44  r7 b000
I/DEBUG   (   86):  r8   r9   10 56301da0  fp be9f949c
I/DEBUG   (   86):  ip   sp be9f9380  lr afe8f4ad  pc
afe8bc1c  cpsr 6030
I/DEBUG   (   86):  d0  8000  d1  8000
I/DEBUG   (   86):  d2    d3  3ff0
I/DEBUG   (   86):  d4    d5  
I/DEBUG   (   86):  d6  c1c8  d7  
I/DEBUG   (   86):  d8    d9  
I/DEBUG   (   86):  d10   d11 
I/DEBUG   (   86):  d12   d13 
I/DEBUG   (   86):  d14   d15 
I/DEBUG   (   86):  scr 8012
I/DEBUG   (   86):
I/DEBUG   (   86):  #00  pc 00015c1c  /system/lib/libc.so
I/DEBUG   (   86):  #01  pc 00013efe  /system/lib/libc.so
(dlfree)
I/DEBUG   (   86):  #02  pc 0001445c  /system/lib/libc.so
(free)
I/DEBUG   (   86):  #03  pc 00012034  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #04  pc 000120a2  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #05  pc 000120c8  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (libusb_free_config_descriptor)
I/DEBUG   (   86):  #06  pc d9ee  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (GetDeviceCount)
I/DEBUG   (   86):  #07  pc da36  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_ListDevices)
I/DEBUG   (   86):  #08  pc da9e  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_CreateDeviceInfoList)
I/DEBUG   (   86):  #09  pc 889c  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
(Java_com_ftdi_D2xx_createDeviceInfoList)
I/DEBUG   (   86):
I/DEBUG   (   86): libc base address: afe76000
I/DEBUG   (   86):
I/DEBUG   (   86): code around pc:
I/DEBUG   (   86): afe8bbfc 4623b15c 2c006824 e026d1fb b12368db
I/DEBUG   (   86): afe8bc0c 21014a17 6011447a 48124798 24002527
I/DEBUG   (   86): afe8bc1c f7f57005 2106eb8a ec18f7f6 460aa901
I/DEBUG   (   86): afe8bc2c f04f2006 94015380 94029303 efe2f7f5
I/DEBUG   (   86): afe8bc3c 4622a905 f7f52002 f7f5efec 2106eb76
I/DEBUG   (   86):
I/DEBUG   (   86): code around lr:
I/DEBUG   (   86): afe8f48c 41f0e92d 46804c0c 447c2600 68a56824
I/DEBUG   (   86): afe8f49c e0076867 300cf9b5 dd022b00 47c04628
I/DEBUG   (   86): 

[android-developers] Re: Errors :Consumer closed input channel or an error occurred. events=0x8 Channel is unrecoverably broken and will be disposed!

2012-02-21 Thread ajay

Hello,

Were you able to sort this issue out? I'm having the same trouble. I
can setVIDPID so I'm assuming the  FTDI library is installed
correctly. But calling createDeviceInfoList causes the sample program
to crash.

/dev/bus/usb, /dev/usb/* all have permissions 666.

Log file snippet follows:

D/Depth Reader(  774): Started application.
W/InputManagerService(  156): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@4091c4f8
(uid=10022 pid=234)
D/TabletStatusBar(  207): lights on
D/dalvikvm(  217): GC_FOR_ALLOC freed 6K, 3% free 8145K/8391K, paused
64ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 8.504MB for 513744-
byte allocation
D/dalvikvm(  217): GC_FOR_ALLOC freed 1K, 3% free 8646K/8903K, paused
32ms
D/dalvikvm(  217): GC_CONCURRENT freed 953K, 11% free 8519K/9543K,
paused 2ms+4ms
D/dalvikvm(  217): GC_FOR_ALLOC freed 17K, 11% free 8540K/9543K,
paused 46ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 10.066MB for 1745936-
byte allocation
I/ActivityManager(  156): Displayed com.ftdi.d2xx/.D2XXSampleActivity:
+588ms
D/PhoneWindow(  234): couldn't save which view has focus because the
focused view android.widget.TextView@407d3be0 has no id.
D/dalvikvm(  217): GC_CONCURRENT freed 0K, 10% free 10245K/11271K,
paused 2ms+3ms
D/SntpClient(  156): request time failed:
java.net.UnknownHostException: Unable to resolve host north-
america.pool.ntp.org: No address associated with hostname
I/ftd2xx-java(  774): loading JNI library...
D/dalvikvm(  774): Trying to load lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
D/dalvikvm(  774): Added shared lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
I/ftd2xx-java(  774): JNI library loaded!
I/Depth Reader(  774): Check lib version: 65541
I/Depth Reader(  774): Retrieved VID and PID: 1027 24577
D/Depth Reader(  774): Determining number of devices
I/DEBUG   (   86): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   86): Build fingerprint: 'motorola/tervigon/wingray:3.2.1/
HTK75D/190830:user/release-keys'
I/DEBUG   (   86): pid: 774, tid: 774   com.ftdi.d2xx 
I/DEBUG   (   86): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr deadbaad
I/DEBUG   (   86):  r0 deadbaad  r1 0001  r2 a000  r3 
I/DEBUG   (   86):  r4   r5 0027  r6 56301e44  r7 b000
I/DEBUG   (   86):  r8   r9   10 56301da0  fp be9f949c
I/DEBUG   (   86):  ip   sp be9f9380  lr afe8f4ad  pc
afe8bc1c  cpsr 6030
I/DEBUG   (   86):  d0  8000  d1  8000
I/DEBUG   (   86):  d2    d3  3ff0
I/DEBUG   (   86):  d4    d5  
I/DEBUG   (   86):  d6  c1c8  d7  
I/DEBUG   (   86):  d8    d9  
I/DEBUG   (   86):  d10   d11 
I/DEBUG   (   86):  d12   d13 
I/DEBUG   (   86):  d14   d15 
I/DEBUG   (   86):  scr 8012
I/DEBUG   (   86):
I/DEBUG   (   86):  #00  pc 00015c1c  /system/lib/libc.so
I/DEBUG   (   86):  #01  pc 00013efe  /system/lib/libc.so
(dlfree)
I/DEBUG   (   86):  #02  pc 0001445c  /system/lib/libc.so
(free)
I/DEBUG   (   86):  #03  pc 00012034  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #04  pc 000120a2  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #05  pc 000120c8  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (libusb_free_config_descriptor)
I/DEBUG   (   86):  #06  pc d9ee  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (GetDeviceCount)
I/DEBUG   (   86):  #07  pc da36  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_ListDevices)
I/DEBUG   (   86):  #08  pc da9e  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_CreateDeviceInfoList)
I/DEBUG   (   86):  #09  pc 889c  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
(Java_com_ftdi_D2xx_createDeviceInfoList)
I/DEBUG   (   86):
I/DEBUG   (   86): libc base address: afe76000
I/DEBUG   (   86):
I/DEBUG   (   86): code around pc:
I/DEBUG   (   86): afe8bbfc 4623b15c 2c006824 e026d1fb b12368db
I/DEBUG   (   86): afe8bc0c 21014a17 6011447a 48124798 24002527
I/DEBUG   (   86): afe8bc1c f7f57005 2106eb8a ec18f7f6 460aa901
I/DEBUG   (   86): afe8bc2c f04f2006 94015380 94029303 efe2f7f5
I/DEBUG   (   86): afe8bc3c 4622a905 f7f52002 f7f5efec 2106eb76
I/DEBUG   (   86):
I/DEBUG   (   86): code around lr:
I/DEBUG   (   86): afe8f48c 41f0e92d 46804c0c 447c2600 68a56824
I/DEBUG   (   86): afe8f49c e0076867 300cf9b5 dd022b00 47c04628
I/DEBUG   (   86): afe8f4ac 35544306 37fff117 6824d5f4 d1ee2c00
I/DEBUG   (   86): afe8f4bc e8bd4630 bf0081f0 0002802e 41f0e92d
I/DEBUG   (   86): afe8f4cc fb01b086 9004f602 461f4815 4615460c
I/DEBUG   (   86):

[android-developers] Re: Shared Preferences

2012-02-11 Thread ajay talreja
thanks Poncho,
but i had given suffix 'L' 
any how .puttin a single st e.printstack.. in catch
block ...it worked.i donno logic behind that...but it
did.
thanks alot...




On Feb 8, 12:31 am, poncho poncho...@gmail.com wrote:
 Hi,

 The code itself is fine except that you don't print the exception.

 If you would log the exception you can see (in the LogCat) that the
 run-time is throwing some kind of a ParseException.
 This is since users (usually) don't type 'L' at the end of their numeric
 input, even when it's long.

 Hope this helps
 /Poncho

 On 02/07/2012 02:54 PM, ajay talreja wrote:







  This code is not working for mei'm trying to use Shared
  preferences to store long values.the code is correct and is
  launching successfully when i switch from long to int valuesplease
  help

  package d.preferencesdemo1;

  import android.app.Activity;
  import android.content.SharedPreferences;
  import android.os.Bundle;
  import android.preference.PreferenceManager;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.TextView;

  public class preferencesdemo1 extends Activity {
       /** Called when the activity is first created. */
     EditText t;
       long mobileno;
       TextView text;
          SharedPreferences app_preferences;
       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
           // Get the app's shared preferences
           app_preferences =
             PreferenceManager.getDefaultSharedPreferences(this);

           mobileno = app_preferences.getLong(mobileno,9028252169L);

           // Update the TextView
           text = (TextView) findViewById(R.id.text);
           text.setText(The default mobile number is  + mobileno +
  .);

           // Increment the mobileno
        //   SharedPreferences.Editor editor = app_preferences.edit();
          // editor.putlong(mobileno, ++mobileno);
           //editor.commit(); // Very important

           t = (EditText) findViewById(R.id.EditText01);

           Button b2 = (Button) findViewById(R.id.Button01);
       t.setText();

              b2.setOnClickListener(new View.OnClickListener() {
                  public void onClick(View view) {

                         try {
                             // Increment the mobileno
                             SharedPreferences.Editor editor =
  app_preferences.edit();
                             long tv =
  Long.parseLong(t.getText().toString());
                             mobileno=tv;
                             editor.putLong(mobileno, mobileno);
                             editor.commit(); // Very important

                             text.setText(The default mobile number is 
  + mobileno + .);

                         }
                         catch (Exception e) {

                     }
                  }
              });

       }
  }

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 create a Disk space usage monitor .

2012-02-10 Thread anoop ajay
Disk space usage monitor ,  is just to see how much memory used in
phone memory or sd card, in a pictorial way.

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

[android-developers] How to create a Disk space usage monitor .

2012-02-09 Thread anoop ajay
hello everyone am trying to build an application that shows the exact
disk space usage of memory for my mini project, needs help as I am a
beginner in this. Thank you all 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


[android-developers] [disk usage in android]

2012-02-08 Thread anoop ajay
Hai I am doing a mini project for my b.tech course, and that is about
the disk space monitoring in android phones , can any one suggest
something help full to develop such in eclipse. Thank you.

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


[android-developers] Shared Preferences

2012-02-07 Thread ajay talreja
This code is not working for mei'm trying to use Shared
preferences to store long values.the code is correct and is
launching successfully when i switch from long to int valuesplease
help


package d.preferencesdemo1;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class preferencesdemo1 extends Activity {
/** Called when the activity is first created. */
EditText t;
  long mobileno;
  TextView text;
 SharedPreferences app_preferences;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Get the app's shared preferences
app_preferences =
PreferenceManager.getDefaultSharedPreferences(this);

mobileno = app_preferences.getLong(mobileno,9028252169L);

// Update the TextView
text = (TextView) findViewById(R.id.text);
text.setText(The default mobile number is  + mobileno +
.);

// Increment the mobileno
 //   SharedPreferences.Editor editor = app_preferences.edit();
   // editor.putlong(mobileno, ++mobileno);
//editor.commit(); // Very important


t = (EditText) findViewById(R.id.EditText01);

Button b2 = (Button) findViewById(R.id.Button01);
t.setText();


   b2.setOnClickListener(new View.OnClickListener() {
   public void onClick(View view) {

  try {
// Increment the mobileno
  SharedPreferences.Editor editor =
app_preferences.edit();
  long tv =
Long.parseLong(t.getText().toString());
  mobileno=tv;
  editor.putLong(mobileno, mobileno);
  editor.commit(); // Very important



  text.setText(The default mobile number is 
+ mobileno + .);

  }
  catch (Exception e) {

  }
   }
   });

}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 help

2012-02-01 Thread ajay talreja
have tried as you told to change Try getting the location through a
location update.  (Use
requestLocationUpdate() or requestSingleUpdate() instead.)

but it is also not working for meproviding the code for your
review..

Code:
gps12.java 
package d.gps12;


import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.TextView;

public class gps12 extends Activity {
/** Called when the activity is first created. */
TextView t1,t2;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager lm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
LocationListener ll = new mylocationlistener();
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
ll);
t1=(TextView) findViewById(R.id.TextView01);
t2=(TextView) findViewById(R.id.TextView02);

t1.setText(hii);
t2.setText(h);
}

private class mylocationlistener implements LocationListener {
public void onLocationChanged(Location location) {
if (location != null) {
t1.setText((int) location.getLatitude());
t2.setText((int) location.getLongitude());

}

else
{
t1.setText(unable);
t2.setText(unable);



}
}

public void onProviderDisabled(String provider) {
}
public void onProviderEnabled(String provider) {
}
public void onStatusChanged(String provider, int status,
Bundle extras) {
}

}
}

After launching this application, I'm passing latitude and long.
values from emulator and have also tried passing from command line
through telnet ..but location values seems to be empty so...the
latitude and long. values are not getting displayed.
and the text view are not changing the values.it means that
location changed  method is not getting execute neither its if
part nor its else part..so what might be the problem


isn't the code correct or what might be the other
problems..???
please get it run on your system help please..

thanks

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


[android-developers] Re: android help

2012-01-29 Thread ajay talreja
@kris : Sorry.
I'll start again.

I have problem with my GPS location applicationmy application
is not able to retrieve latitude and longitude... I'm providing the
code  for your reference.the below application is launching
successfully on emulator but unable to retrieve the values into Text
View.I have tried passing values from Emulator Control and
through command line via TELNETthen with Geo-pointsplease go
through the code..and tell me where i have gone wrong...


Files are as follows

1) gps.java

package d.gps;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.widget.TextView;

public class gps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager locationManager;
locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

updateWithNewLocation(location);
}
/** Update UI with a new location */
private void updateWithNewLocation(Location location) {
  TextView myLocationText =
(TextView)findViewById(R.id.myLocationText);

  String latLongString;

  if (location != null) {
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = Lat: + lat + \nLong: + lng;
  } else {
latLongString = No location found;
  }

  myLocationText.setText(Your Current Position is:\n +
latLongString);
}

}

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

TextView
android:id=@+id/myLocationText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
  /
/LinearLayout

3)String.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, gps!/string
string name=app_namegps/string
/resources

4) androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=d.gps
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.gps
  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
uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
permissionuses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

/manifest

thanks.

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


[android-developers] Re: android help

2012-01-28 Thread ajay talreja
okkk.
For my first application...Emergency Sms which send msg at one tab of
application or key,as you said long pressed on application is not
possible.so is there any method to do code on numeric
keypadlike speed diali want to send message from my numeric
keylike when one is pressed.A message should be sent to
specified number..if yes provide me with that help
also




For my second application ,i'll need Gps values so
I'm just trying to retrieve values of  latitude and longitude values
from my basic applicationand display them to Text view.in
above post of mine i have provided with the code of the
samethere are no errors.it do get launch on
emulator...but application is not retrieving the values of
longitude and latitudeso... is there any kinda mistake in
my code???...or what are the other reason of not getting
latitude and longitude ..i have tried providing values from
Emulator and command line..but it is not able to retain the values
of latitude and longitude...


thanks...




On Jan 28, 11:26 am, TreKing treking...@gmail.com wrote:
 On Sat, Jan 28, 2012 at 12:04 AM, ajay talreja ajayt...@gmail.com wrote:
  Is that “View.OnClickListener”  listener only restricted to Layouts
  i.e. button Events  etc

 Yes. You can look through the docs to see where it's used.

  or it can be used to application click event…….example when application is
  double clicked ,dialer gets opened
  and when same application is single clicked , should get open...

 There is no concept of clicking an application. You application, when
 it's running, has some UI to display to the user - these UI elements can be
 clicked, as described by the various listeners I linked you to.

  is it possible…if yes….kindly help me with the code of the same…..

 Kindly explain what you're trying to do.

  I have done coding to retrieve the latitude and longitude using gps
   but its not workinglocation is showing null value and finally it
  do not have any values of latitude and longitude.

 You need to explain this better. Maybe a SMALL sample of code where this is
 not working.

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

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


[android-developers] Re: android help

2012-01-28 Thread ajay talreja
@treking : thanks...but have tried them as well 
@kris : thanks.

@kris :   You mean by forcing a geo fix with mock locations or using a
fake
gps type application?



No, I'm not trying to modify the locationsI'm just passing the
values from emulator control which are default present in EditText of
Emulator controland also tried to pass from command line...by
Telnet methodbut both are not working for me...i
donno why???.Sir ,did u referred to my code in above
post.there may be a possibility of having a bug in my
code...please check...then lemme know



On Jan 29, 1:09 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 On Sat, Jan 28, 2012 at 1:43 PM, ajay talreja ajayt...@gmail.com wrote:
  okkk.
  For my first application...Emergency Sms which send msg at one tab of
  application or key,as you said long pressed on application is not
  possible.so is there any method to do code on numeric
  keypadlike speed diali want to send message from my numeric
  keylike when one is pressed.A message should be sent to
  specified number..if yes provide me with that help
  also

 No.  Not unless you modify the firmware.



  For my second application ,i'll need Gps values so
  I'm just trying to retrieve values of  latitude and longitude values
  from my basic applicationand display them to Text view.in
  above post of mine i have provided with the code of the
  samethere are no errors.it do get launch on
  emulator...but application is not retrieving the values of
  longitude and latitudeso... is there any kinda mistake in
  my code???...or what are the other reason of not getting
  latitude and longitude ..i have tried providing values from
  Emulator and command line..but it is not able to retain the values
  of latitude and longitude...

 You mean by forcing a geo fix with mock locations or using a fake
 gps type application?

 FYI, any time you're wondering if you can modify the platform beyond
 your app the answer is usually no.

 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] Re: android help

2012-01-27 Thread ajay talreja
Is that “View.OnClickListener”  listener only restricted to Layouts
i.e. button Events  etc  or it can be used to application click
event…….example when application is double clicked ,dialer gets opened
and when same application is single clicked , should get open...is it
possible…if yes….kindly help me with the code of the same…..
Other problems….


I have done coding to retrieve the latitude and longitude using gps
but its not workinglocation is showing null value and finally it
do not have any values of latitude and longitude.
I have tried passing the values from Emulator control and also through
command line using telnet local host 5554(device name).

Also same is the case with Google maps ,I have tried to access Google
maps but its not working via coding….i do have registered for Maps
key…..but I am able to access Google maps application from emulator
which is default present on emulator…I think so there is problem with
the code….

im providing u with the code GPS only ,‘ll try for Google maps
again.please go through it and reply sooner….

GPS
1) gps.java

package d.gps;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.widget.TextView;


public class gps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager locationManager;
locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

updateWithNewLocation(location);
}
/** Update UI with a new location */
private void updateWithNewLocation(Location location) {
  TextView myLocationText =
(TextView)findViewById(R.id.myLocationText);

  String latLongString;

  if (location != null) {
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = Lat: + lat + \nLong: + lng;
  } else {
latLongString = No location found;
  }

  myLocationText.setText(Your Current Position is:\n +
latLongString);
}

}

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

TextView
android:id=@+id/myLocationText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
  /
/LinearLayout


3)String.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, gps!/string
string name=app_namegps/string
/resources

4) androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=d.gps
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.gps
  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
uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
permissionuses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

/manifest

Thanks……

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


[android-developers] Images _display_name is changed in external db at com.android.provider.media/external.db

2012-01-26 Thread Ajay Sharma
-- 

I am using MediaStore.Images.Media.EXTERNAL_CONTENT_URI(External DB ::
data/data/com.android.provider.media/external.db)) in my app to save images
with my own _display_name for example : image_101.jpg but after some time
the display name is change into long no. like 1327392947034.jpg. and next
time when i fetch the image with my _display_name(image_101.jpg) it found
nothing in external db. can anyone tell me why it happens ?

Thanks

Regards,

Ajay M Sharma

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

[android-developers] android help

2012-01-26 Thread ajay talreja
hii
i'm an beginner in android...
My problem in android...
i want to send sms from a numeric touch pad via programming..
i m not able to find how to put up the code for numeric pad.i did
google many times but im unable to find the same.the application
should work same as  speed  dialrather than call,a sms will be
sent..Im acquaint with  Sms sending,database connectivity.i
need the code to put my app working at press of any numeric key

if this is not possible to make changes at Numeric pad,then help me
for my other alternative to this...when application's shortcut is
made

condition

if a normal press is encountered, setting activity should get opened
and when long pressed ,sms should be sent without asking for
anything...

please help ..how to distinguish between single click and long pressed
events via coding.


thanks

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


[android-developers] Intent to install packages from market

2011-09-15 Thread ajay
Hi

I am trying to develop an application which will install a free
application from market.

The input from the user would be package name. eg:
com.outfit7.talkingtom

I am able to open the market application using below code:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(market://details?
id=com.outfit7.talkingtom));
startActivity(intent);

After that user has to give permission explicitly to install. Can be
do this programmatically?

Regards
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-12 Thread ajay
Hi Thanx for the response.

Can I open the main/default activity of the Settings application from
the onCreate() event of my Activity?

On Sep 11, 2:36 am, rich friedel rich.frie...@gmail.com wrote:
 AFAIK you cannot do what you describe with the standard Android SDK.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-09 Thread ajay
Hi,

I am already feeling great to be a member of this group.

I am new to android development.

I am trying to do a project which will read the different layouts,
views and all other resource in when an activity is opened.

Can we write an application which will have a service that will
continuously monitor for the opening of a new activity even from the
default android applications like settings, contacts etc. And it will
get the activity resource objects in the code side (during run time).
Like in Hierarchy viewer.

This is strictly for debugging purposes. I will use this to study the
accessibility of different android resources.

Any help on this is highly appreciated.

Thanks in advance.

Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-09 Thread ajay
Hi,

I am already feeling great to be a member of this group.

I am new to android development.

I am trying to do a project which will read the different layouts,
views and all other resource in when an activity is opened.

Can we write an application which will have a service that will
continuously monitor for the opening of a new activity even from the
default android applications like settings, contacts etc. And it will
get the activity resource objects in the code side (during run time).
Like in Hierarchy viewer.

This is strictly for debugging purposes. I will use this to study the
accessibility of different android resources.

Any help on this is highly appreciated.

Thanks in advance.

Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Restarting an activity within a tab (TabActivity)

2011-07-19 Thread Ajay Thomas
http://stackoverflow.com/questions/4358481/android-does-oncreate-method-run-in-tabview-when-we-click-on-each-tab

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Switching b/w WiFi 3G

2011-07-05 Thread Ajay
Thank you for replying. But, the connection is failing when I try to
reconnect with a new socket.

On Jun 28, 5:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 You will need to reconnect if your socket connection is dropped due to
 a change in connectivity, as your IP address will be different.









 On Tue, Jun 28, 2011 at 8:41 AM, Ajay aja...@gmail.com wrote:
  Hi,

  I have an app that uses sockets in JNI and also HTTP connections in
  Java. I have been observing that I have connectivity issues in my app
  whenever I switch from WiFi to 3G or vice versa. At the same time, I
  am able to browse the Internet using the browser. Is there anything
  that the app needs to take care of such scenario or anything that may
  be missing in my app?

  Thank you,
  AJ

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] HTTP Live Streaming (HLS)

2011-07-05 Thread Ajay
Hi,

Does anyone know if HLS is supported on Android Phones (SDK version 
3.0). I think it is not supported and is there a clue about adding
this support?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Switching b/w WiFi 3G

2011-07-05 Thread Ajay
You are lucky!

For me, it fails to connect every time on some attempts.

On Jul 5, 5:34 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Based on what I'm seeing with my devices when switching from mobile
 to WiFi, the broadcast for ConnectivityManager.CONNECTIVITY_ACTION with
 State.CONNECTED (TYPE_WIFI) comes too early, the device isn't ready to
 make connections over WiFi yet.

 WiFi becomes fully usable a couple of seconds after the broadcast.

 -- Kostya

 05.07.2011 16:26, Ajay пишет:









  Thank you for replying. But, the connection is failing when I try to
  reconnect with a new socket.

  On Jun 28, 5:58 pm, Mark Murphymmur...@commonsware.com  wrote:
  You will need to reconnect if your socket connection is dropped due to
  a change in connectivity, as your IP address will be different.

  On Tue, Jun 28, 2011 at 8:41 AM, Ajayaja...@gmail.com  wrote:
  Hi,
  I have an app that uses sockets in JNI and also HTTP connections in
  Java. I have been observing that I have connectivity issues in my app
  whenever I switch from WiFi to 3G or vice versa. At the same time, I
  am able to browse the Internet using the browser. Is there anything
  that the app needs to take care of such scenario or anything that may
  be missing in my app?
  Thank you,
  AJ
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 Kostya Vasilyev

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Switching b/w WiFi 3G

2011-06-28 Thread Ajay
Hi,

I have an app that uses sockets in JNI and also HTTP connections in
Java. I have been observing that I have connectivity issues in my app
whenever I switch from WiFi to 3G or vice versa. At the same time, I
am able to browse the Internet using the browser. Is there anything
that the app needs to take care of such scenario or anything that may
be missing in my app?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay

!ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445
!MESSAGE Problems occurred when invoking code from plug-in:
org.eclipse.core.resources.
!STACK 0
java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:
198)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
203)
at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
258)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
220)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
362)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:
545)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1975)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
524)
at org.eclipse.core.internal.resources.Project.build(Project.java:
115)
at
org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
222)
at
org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
162)
at org.eclipse.ui.actions.WorkspaceAction
$2.runInWorkspace(WorkspaceAction.java:483)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.ui.ide 4 4 2011-02-25 15:07:39.406
!MESSAGE Problems occurred building the selected resources.
!SUBENTRY 1 com.android.ide.eclipse.adt 4 75 2011-02-25 15:07:39.406
!MESSAGE Errors running builder 'Android Pre Compiler' on project
'P2L'.
!STACK 0
java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:
198)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
203)
at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
258)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
220)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
362)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:
545)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1975)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
524)
at org.eclipse.core.internal.resources.Project.build(Project.java:
115)
at
org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
222)
at
org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
162)
at org.eclipse.ui.actions.WorkspaceAction
$2.runInWorkspace(WorkspaceAction.java:483)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

This errors came recently after eclipse update..
Roolback to previous version fails :(..

On Feb 25, 3:40 am, Xavier Ducrohet x...@android.com wrote:
 This is extremely strange.
 Can you send me the log of your workspace?









 On Wed, Feb 23, 2011 at 9:52 PM, Chopcsu st...@kilsby.com.au wrote:
  Hi All,

  I have just installed ADT 10 with SDK 3.0. Eclipse has been working
  ok, but now all of a sudden my project has broken down with eclipse
  either complaining there is something wrong with xml files where there
  is nothing wrong (tested on a non adt10 eclipse and works fine) or
  giving errors

  Errors running builder 'Android Pre Compiler' on project ''.
  java.lang.NullPointerException encountered while running Android Pre
  Compiler.

  Or giving errors

  Problems occurred when invoking code from plug-in:
  org.eclipse.core.resources.

  java.lang.NullPointerException
         at
  com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
  d(PreCompilerBuilder.java:
  198)
         at org.eclipse.core.internal.events.BuildManager
  $2.run(BuildManager.java:633)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay
please any updates.. its critical :((

On Feb 25, 2:39 pm, Ajay a.aja...@gmail.com wrote:
 !ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445
 !MESSAGE Problems occurred when invoking code from plug-in:
 org.eclipse.core.resources.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 198)
         at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:629)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 172)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 203)
         at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:255)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 258)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 220)
         at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 362)
         at org.eclipse.core.internal.resources.Project$1.run(Project.java:
 545)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
 1975)
         at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
 524)
         at org.eclipse.core.internal.resources.Project.build(Project.java:
 115)
         at
 org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
 222)
         at
 org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
 162)
         at org.eclipse.ui.actions.WorkspaceAction
 $2.runInWorkspace(WorkspaceAction.java:483)
         at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
 aceJob.java:
 38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 !ENTRY org.eclipse.ui.ide 4 4 2011-02-25 15:07:39.406
 !MESSAGE Problems occurred building the selected resources.
 !SUBENTRY 1 com.android.ide.eclipse.adt 4 75 2011-02-25 15:07:39.406
 !MESSAGE Errors running builder 'Android Pre Compiler' on project
 'P2L'.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 198)
         at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:629)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 172)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 203)
         at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:255)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 258)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 220)
         at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 362)
         at org.eclipse.core.internal.resources.Project$1.run(Project.java:
 545)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
 1975)
         at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
 524)
         at org.eclipse.core.internal.resources.Project.build(Project.java:
 115)
         at
 org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
 222)
         at
 org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
 162)
         at org.eclipse.ui.actions.WorkspaceAction
 $2.runInWorkspace(WorkspaceAction.java:483)
         at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
 aceJob.java:
 38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 This errors came recently after eclipse update..
 Roolback to previous version fails :(..

 On Feb 25, 3:40 am, Xavier Ducrohet x...@android.com wrote:







  This is extremely strange.
  Can you send me the log of your workspace?

  On Wed, Feb 23, 2011 at 9:52 PM, Chopcsu st...@kilsby.com.au wrote:
   Hi All,

   I have just installed ADT 10 with SDK 3.0. Eclipse has been working
   ok, but now all of a sudden my project has broken down with eclipse
   either complaining there is something wrong with xml files where there
   is nothing wrong (tested on a non adt10 eclipse and works fine) or
   giving errors

   Errors running builder 'Android Pre Compiler' on project ''.
   java.lang.NullPointerException encountered while running Android Pre
   Compiler.

   Or giving errors

   Problems occurred when invoking code from plug-in:
   org.eclipse.core.resources.

   java.lang.NullPointerException

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-25 Thread Ajay
deleted project... added again into workspace...
repeated 3-4 times and issue resolved..

On Feb 25, 2:39 pm, Ajay a.aja...@gmail.com wrote:
 !ENTRY org.eclipse.core.resources 4 2 2011-02-25 15:07:29.445
 !MESSAGE Problems occurred when invoking code from plug-in:
 org.eclipse.core.resources.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 198)
         at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:629)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 172)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 203)
         at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:255)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 258)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 220)
         at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 362)
         at org.eclipse.core.internal.resources.Project$1.run(Project.java:
 545)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
 1975)
         at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
 524)
         at org.eclipse.core.internal.resources.Project.build(Project.java:
 115)
         at
 org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
 222)
         at
 org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
 162)
         at org.eclipse.ui.actions.WorkspaceAction
 $2.runInWorkspace(WorkspaceAction.java:483)
         at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
 aceJob.java:
 38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 !ENTRY org.eclipse.ui.ide 4 4 2011-02-25 15:07:39.406
 !MESSAGE Problems occurred building the selected resources.
 !SUBENTRY 1 com.android.ide.eclipse.adt 4 75 2011-02-25 15:07:39.406
 !MESSAGE Errors running builder 'Android Pre Compiler' on project
 'P2L'.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 198)
         at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:629)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 172)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 203)
         at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:255)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 258)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 220)
         at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 362)
         at org.eclipse.core.internal.resources.Project$1.run(Project.java:
 545)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
 1975)
         at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
 524)
         at org.eclipse.core.internal.resources.Project.build(Project.java:
 115)
         at
 org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
 222)
         at
 org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
 162)
         at org.eclipse.ui.actions.WorkspaceAction
 $2.runInWorkspace(WorkspaceAction.java:483)
         at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
 aceJob.java:
 38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 This errors came recently after eclipse update..
 Roolback to previous version fails :(..

 On Feb 25, 3:40 am, Xavier Ducrohet x...@android.com wrote:







  This is extremely strange.
  Can you send me the log of your workspace?

  On Wed, Feb 23, 2011 at 9:52 PM, Chopcsu st...@kilsby.com.au wrote:
   Hi All,

   I have just installed ADT 10 with SDK 3.0. Eclipse has been working
   ok, but now all of a sudden my project has broken down with eclipse
   either complaining there is something wrong with xml files where there
   is nothing wrong (tested on a non adt10 eclipse and works fine) or
   giving errors

   Errors running builder 'Android Pre Compiler' on project ''.
   java.lang.NullPointerException encountered while running Android Pre
   Compiler.

   Or giving errors

   Problems occurred when invoking code from plug-in:
   org.eclipse.core.resources.

   java.lang.NullPointerException

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-24 Thread Ajay
facing the same issue..

On Feb 24, 10:52 am, Chopcsu st...@kilsby.com.au wrote:
 Hi All,

 I have just installed ADT 10 with SDK 3.0. Eclipse has been working
 ok, but now all of a sudden my project has broken down with eclipse
 either complaining there is something wrong with xml files where there
 is nothing wrong (tested on a non adt10 eclipse and works fine) or
 giving errors

 Errors running builder 'Android Pre Compiler' on project ''.
 java.lang.NullPointerException encountered while running Android Pre
 Compiler.

 Or giving errors

 Problems occurred when invoking code from plug-in:
 org.eclipse.core.resources.

 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
 d(PreCompilerBuilder.java:
 198)
         at org.eclipse.core.internal.events.BuildManager
 $2.run(BuildManager.java:633)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 170)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 201)
         at org.eclipse.core.internal.events.BuildManager
 $1.run(BuildManager.java:253)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
 256)
         at
 org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j 
 ava:
 309)
         at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
 341)
         at
 org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
 140)
         at
 org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
 238)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 At the moment I am going through the paces of changing adt back to an
 older verison, Does anyone have an idea of these problems?

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


[android-developers] Urgent Need : Oracle PL/SQL Developer in Cambridge, MA for 6+ Months(F_2_F)

2011-02-03 Thread Ajay - Gain America, Inc.
Hi, 

 

We Gain America, Inc one of the fastest growing IT Consulting Company in US.
We have an urgent requirement with our client/Preferred Vendor. The job
details are given below. 

 

Position: Oracle PL/SQL Developer

Location: Cambridge, MA

Duration: 6+ Months

 

Face to Face Required after telephonic round

 

Must Have Pharmacy Industry Experience.

 

Description: 

 

They need someone who can take over development and support for a
substantial PL/SQL package, then take on additional work like ETL into
Oracle in the next few weeks and months.  

 

Provide scientists with an integrated solution/ data warehouse allowing them
to access, view and analyze experimental results across assays, teams,
departments, locations etc. Enhance decision power of a scientist by
including all available internal and external metadata about assays,
targets, samples, diseases etc. in their analyses. 

PL/SQL Developer - Required Skills and Experience:

. B.S. Computer Science or Computer Engineering or equivalent experience
. 5 years experience developing large database systems
. Significant experience with PL/SQL and database design
. Significant experience the development of database-based web services
. Significant experience supporting database application developers
. Deep and practical understanding of software development and project
management methodologies
. Excellent written and verbal communication skills
. Any experience with scientific or drug discovery database or database
applications development a plus

 

Please send me your Updated Resume and these details ASAP:  

Full Name: 

Contact No:

E-mail ID: 

Availability:

Visa Status/Citizenship:

Current Location:

Rate or Employer Details: 

 

Regards,


Ajay

Gain America, Inc. I 13804 Hull Street Road Midlothian, VA 23112 I
Phone:703-880-8775/ Direct: 703-828-7441 I Fax: 917-475-8362 I 

I  mailto:a...@gainam.com a...@gainam.net I YIM:
mailto:thesharkp...@yahoo.in ajaytomar...@yahoo.in I

P Please consider the environment before printing this e-mail.

 

 

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

[android-developers] Urgent Need : Sr. Java Developer(9 Opening) in Columbus, OH for 6 month contract

2011-02-03 Thread Ajay - Gain America, Inc.
Hi, 

 

We Gain America, Inc one of the fastest growing IT Consulting Company in US.
We have an urgent requirement with our client/Preferred Vendor. The job
details are given below. 

 

Position: Sr. Java Developer(9 Opening)

Location: Columbus, OH

Duration: 6 month contract

 

Local Preferred

 

Description: 

 

Client now need 9 java developers for this project:

 

Consultant Role: Java Developer 

 

Description:

. Participates as a member of development team.

. Completes development of units with designs prepared by more
senior developers. 

. Participates in code reviews. Prepares and executes unit tests. 

. Applies growing technical knowledge to maintain a technology area
(e.g. Web-site Development).  

. May perform unit design. 

. Applies HP and 3rd party technologies to software solutions of
moderate complexity.

. Configures end-user or enterprise systems designed by more senior
technologists.

. Performs work assigned by others.

. Provides time / resource estimates for assigned tasks.

 

Skills Required (provide specific details around tools, client environment,
certifications needed, etc):

 

These resources need to have the following skills:

 

. 5+ years of experience of Java / J2EE architecture.

. 5+ years experience in OOAD and OO development.

. 5+ years experience with Web application design and deployment,
familiar with JSP/Servlet, EJB, JNDI, JDBC, JMS, JAAS.

. 3+ years of experience in EJB (Session, CMP, BMP, MDB) design and
development.

. Experience in JSF and Portal or any other MVC Web Frameworks.

. Understanding of coding standards and knowledge of applying
quality standards.

. Experience in writing SQL, PL / SQL programs.

. Ability to work with a team.

. Good communication Skills.

 

Qualifications

  

Education and Experience Required:

  

Typically a technical Bachelor's degree or equivalent experience and a
minimum of 2 years of related experience or a Master's degree and up to two
years of experience.

 

Please send me your Updated Resume and these details ASAP:  

Full Name: 

Contact No:

E-mail ID: 

Availability:

Visa Status/Citizenship:

Current Location:

Rate or Employer Details: 

 

 

Regards,


Ajay

Gain America, Inc. I 13804 Hull Street Road Midlothian, VA 23112 I
Phone:703-880-8775/ Direct: 703-828-7441 I Fax: 917-475-8362 I 

I  mailto:a...@gainam.com a...@gainam.net I YIM:
mailto:thesharkp...@yahoo.in ajaytomar...@yahoo.in I

P Please consider the environment before printing this e-mail.

 

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using the camera service from android native code

2011-01-24 Thread ajay
hi,

  we are trying to modify the android filesystem.we are trying to use
the camera service from a c++ code.we are using the cameralistner
class present in  /root/Desktop/froyo/frameworks/base/include/camera/
Camera.h .

the cameralistner class consists of only 3 pure virtual functions

when i try compiling the the .so i get the following error :

defined reference to `typeinfo for android::RefBase'

when investigated we got know that cameralistner inherits from refbase
(cameralistner:virtual public refbase).

we also got to that the refbase is part libutils.so


please help!


thanks and regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] using the camera service from android native code

2011-01-24 Thread ajay
hi,

   we are trying to modify the android filesystem.we are trying to use
the camera service from a c++ code.we are using the cameralistner
class present in  /root/Desktop/froyo/frameworks/base/include/camera/
Camera.h .

the cameralistner class consists of only 3 pure virtual functions

when i try compiling the the .so i get the following error :

defined reference to `typeinfo for android::RefBase'

when investigated we got know that cameralistner inherits from refbase
(cameralistner:virtual public refbase).

we also got to that the refbase is part libutils.so


please help!


thanks and regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] BroadcastReceiver called but PhoneStateListener not called

2011-01-18 Thread Ajay
Hi All,

While debugging the code below, BroadcastReceiverCustom is being
called but PhoneStateListenerCustom is not. Please help.

For now I and doing required action in BroadcastReceiverCustom only,
but maynot be best place to do it.
Any suggestions why PhoneStateListener not being called??
Already spent lot of time for possible reasons, no idea??
Manifest file is all correct with correct permissions.
I see no runtime exceptions.
Please help.

BroadcastReceiverCustom.java

public class BroadcastReceiverCustom extends BroadcastReceiver {

private static final String TAG = BroadcastReceiverCustom;

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

Log.v(TAG, WE ARE INSIDE!!!);

TelephonyManager telephony =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
PhoneStateListenerCustom phoneStateListenerCustom = new
PhoneStateListenerCustom();
telephony.listen(phoneStateListenerCustom,
PhoneStateListener.LISTEN_CALL_STATE);
}
}

PhoneStateListenerCustom.java

public class PhoneStateListenerCustom extends PhoneStateListener {

private static final String TAG = PhoneStateListenerCustom;

public void onCallStateChange(int state, String incomingNumber){

Log.v(TAG, WE ARE INSIDE!!!);
switch(state){
case TelephonyManager.CALL_STATE_RINGING:
Log.d(TAG, RINGING);
break;
}

super.onCallStateChanged(state, incomingNumber);

}
}


Manifest file

  uses-permission
android:name=android.permission.READ_PHONE_STATE /


receiver android:name=.BroadcastReceiverCustom
intent-filter
action
android:name=android.intent.action.PHONE_STATE /
/intent-filter
/receiver

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BroadcastReceiver called but PhoneStateListener not called

2011-01-18 Thread Ajay Agrawal
Hi All,

While debugging the code below, BroadcastReceiverCustom is being
called but PhoneStateListenerCustom is not. Please help.

For now I and doing required action in BroadcastReceiverCustom only,
but maynot be best place to do it.
Any suggestions why PhoneStateListener not being called??
Already spent lot of time for possible reasons, no idea??
Manifest file is all correct with correct permissions.
I see no runtime exceptions.
Please help.

BroadcastReceiverCustom.java

public class BroadcastReceiverCustom extends BroadcastReceiver {

private static final String TAG = BroadcastReceiverCustom;

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

   Log.v(TAG, WE ARE INSIDE!!!);

   TelephonyManager telephony =
(TelephonyManager)context.

 getSystemService(Context.TELEPHONY_SERVICE);
PhoneStateListenerCustom phoneStateListenerCustom = new
 PhoneStateListenerCustom();
telephony.listen(phoneStateListenerCustom,
 PhoneStateListener.LISTEN_CALL_STATE);
}
 }

 PhoneStateListenerCustom.java

 public class PhoneStateListenerCustom extends PhoneStateListener {

 private static final String TAG = PhoneStateListenerCustom;

 public void onCallStateChange(int state, String incomingNumber){

Log.v(TAG, WE ARE INSIDE!!!);
switch(state){
case TelephonyManager.CALL_STATE_RINGING:
Log.d(TAG, RINGING);
break;
}

super.onCallStateChanged(state, incomingNumber);

}
 }


 Manifest file

  uses-permission
 android:name=android.permission.READ_PHONE_STATE /


receiver android:name=.BroadcastReceiverCustom
intent-filter
action
 android:name=android.intent.action.PHONE_STATE /
/intent-filter
/receiver

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BroadcastReceiver called but PhoneStateListener not called

2011-01-18 Thread Ajay Agrawal
While debugging the code below, BroadcastReceiverCustom is being
called but PhoneStateListenerCustom is not. Please help.

For now I and doing required action in BroadcastReceiverCustom only,
but maynot be best place to do it.
Any suggestions why PhoneStateListener not being called??
Already spent lot of time for possible reasons, no idea??
Manifest file is all correct with correct permissions.
I see no runtime exceptions.
Please help.

BroadcastReceiverCustom.java

public class BroadcastReceiverCustom extends BroadcastReceiver {

private static final String TAG = BroadcastReceiverCustom;

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

   Log.v(TAG, WE ARE INSIDE!!!);

   TelephonyManager telephony =
(TelephonyManager)context.

 getSystemService(Context.TELEPHONY_SERVICE);
PhoneStateListenerCustom phoneStateListenerCustom = new
 PhoneStateListenerCustom();
telephony.listen(phoneStateListenerCustom,
 PhoneStateListener.LISTEN_CALL_STATE);
}
 }

 PhoneStateListenerCustom.java

 public class PhoneStateListenerCustom extends PhoneStateListener {

 private static final String TAG = PhoneStateListenerCustom;

 public void onCallStateChange(int state, String incomingNumber){

Log.v(TAG, WE ARE INSIDE!!!);
switch(state){
case TelephonyManager.CALL_STATE_RINGING:
Log.d(TAG, RINGING);
break;
}

super.onCallStateChanged(state, incomingNumber);

}
 }


 Manifest file

  uses-permission
 android:name=android.permission.READ_PHONE_STATE /


receiver android:name=.BroadcastReceiverCustom
intent-filter
action
 android:name=android.intent.action.PHONE_STATE /
/intent-filter
/receiver

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] possible enhancement of Android SDK-NDK integration?

2011-01-17 Thread Ajay Prabandham
Dear community,
I was browsing through the Android NDK info on 
the Android developers website, and found that currently only NDK ACTIVITY 
components can be invoked from SDK components. I an curious to know whether 
adding the capability to NDK Services and Content Providers to be invoked 
from the Java components, would be a good project idea.
The questions that crop up are:


1. Is there any inherent property of the SDK/NDK that prevents Services to 
be accessed in this way?
2. Is anyone/any group already working on this feature?

The intention is to provide cross-language RMI, something that middleware 
such as CORBA support inherently.

Regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] filesystem access on emulator

2011-01-10 Thread Ajay Prabandham
Dear All,
Does anyone in this comunitys,know now to access the linux 
filesytem local to the emulator? Ironically, i am using the windows version 
of the Android SDK API 9.
I need to locate the .apk file that one loads onto the emulator to run/debug 
the project binary.

Thanks and Regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] XML document parsing using the DOM API

2011-01-07 Thread Ajay Prabandham
Dear All,
1.  I am currently trying to parse simple-structured xml 
documents using Android SDK DOM Parser API. e.g :

document
 docidDocument1/docid
 featureFeature1/feature
/document

and so on. not much nesting of elements, a neat, flat document structure. I 
download these docs from a web server, but i do not have the schema 
definitions yet. For the time being, i can proceed assuming well-defined 
documents.

2. I started off as :
   
 BufferedInputStream lBufInputStream = new 
BufferedInputStream(new FileInputStream(lPath));
 DocumentBuilderFactory lDocBuildFactory = 
DocumentBuilderFactory.newInstance();
 lDocBuilder = lDocBuildFactory.newDocumentBuilder();
 lDocBuilder.parse(lBufInputStream);

Document lXMLDoc = lDocBuilder.newDocument();
if(null != lXMLDoc)
{
NodeList lNodeList = lXMLDoc.getElementsByTagName(new 
String(docid));// the tag is docid
if(null != lNodeList)
{
   //now, lNodeList contains the doc element with 
tag docid
   //I need to retrieve the value Document1 
present in this element.
  // what API calls should i make?

   //similarily with the feature element 
}
   }

Any help would be greatly appreciated...

Thank and Regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] XML document parsing using the DOM API

2011-01-07 Thread Ajay Prabandham
oops my sincere apologies for cluttering android space with this 
queryin fact, i am new to Java as well, so did not realize this is a 
Java issue.
Will check the Java API documentation. Thanks for redirecting me.

Regards,
Ajay


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 application launch on emulator

2011-01-06 Thread Ajay Prabandham
Hi,
 Actually, i am first attempting to test my app on the SDK emulator. 
I haven't yet tested it on hardware. Does anyone have an idea about how to 
solve the problem on the emulator? Is there a directory on the 
phone/emulator where new applications (.apk files) are copied by default?

Any input would be greatly appreciated...

Regards,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem with application launch on emulator

2011-01-05 Thread Ajay Prabandham
Dear All,
I am developing a GUI based app for Android API 9 SDK on my
windows PC (Using Eclipse SDK and ADT plugin). I have successfully compiled
the sources, and when i run the command to launch the emulator, the .apk
file is successfully installed on the phone.

[2011-01-05 16:32:33 - NYC-Pocket-App] --
[2011-01-05 16:32:33 - NYC-Pocket-App] Android Launch!
[2011-01-05 16:32:33 - NYC-Pocket-App] adb is running normally.
[2011-01-05 16:32:33 - NYC-Pocket-App] No Launcher activity found!
[2011-01-05 16:32:33 - NYC-Pocket-App] The launch will only sync the
application package on the device!
[2011-01-05 16:32:33 - NYC-Pocket-App] Performing sync
[2011-01-05 16:32:33 - NYC-Pocket-App] Automatic Target Mode: launching new
emulator with compatible AVD 'Micromax'
[2011-01-05 16:32:33 - NYC-Pocket-App] Launching a new emulator with Virtual
Device 'Micromax'
[2011-01-05 16:32:34 - NYC-Pocket-App] New emulator found: emulator-5554
[2011-01-05 16:32:34 - NYC-Pocket-App] Waiting for HOME
('android.process.acore') to be launched...
[2011-01-05 16:33:14 - NYC-Pocket-App] WARNING: Application does not specify
an API level requirement!
[2011-01-05 16:33:14 - NYC-Pocket-App] Device API version is 9 (Android 2.3)
[2011-01-05 16:33:14 - NYC-Pocket-App] HOME is up on device 'emulator-5554'
[2011-01-05 16:33:14 - NYC-Pocket-App] Uploading NYC-Pocket-App.apk onto
device 'emulator-5554'
[2011-01-05 16:33:17 - NYC-Pocket-App] Installing NYC-Pocket-App.apk...
[2011-01-05 16:33:51 - NYC-Pocket-App] Success!
[2011-01-05 16:33:51 - NYC-Pocket-App]
\NYC-Pocket-App\bin\NYC-Pocket-App.apk installed on device
[2011-01-05 16:33:51 - NYC-Pocket-App] Done!

But the icon i have chosen to display on the applications menu screen is not
displayed. Here's my manifest file:  (the image file is picture.jpg)
I have intentionally hidden the actual resource names.

?xml version=1.0 encoding=utf-8?
manifest package=y.x xmlns:android=
http://schemas.android.com/apk/res/android;
android:installLocation=preferExternal
application android:icon=@drawable/picture 
activity android:name=xxx
  android:description=@string/xxx
  android:label=@string/xxx
  android:screenOrientation=portrait
android:enabled=true
  android:launchMode=standard
  intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.DEFAULT
/
  data android:scheme=file
android:path=D:\\z.xml /
  /intent-filter
/activity
service android:enabled=true
 android:name=yyy
 android:description=@string/yyy
 android:label=@string/yyy
/service
/application
/manifest


Can anybody throw some light on a possible solution?

Thanks and Regards,
Ajay

-- 
Ajay Prabandham
parth...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Weird issue with SurfaceView

2010-10-15 Thread Ajay
Hi,
   I have a peculiar problem in my app which uses a SurfaceView. After
I create the SurfaceView and launch another activity or switch to
another activity and return to my SurfaceView, the Menu options or the
AlertDialogs are NOT visible! But, it appears as though I am only not
able to see the UI. If I tap on a location, where the menu is
displayed or the AlertDialog options were displayed, it still does the
actions expected!!

It seems like the AlertDialog is displayed, but I am just not able
to see it!! Anyone has a clue?

Thanks!
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSLException: Not trusted server certificate

2010-08-30 Thread Ajay
Thanks a lot. This worked!!

I had to change my implementation to use HttpsURLConnection, and could
not keep my earlier implementation using DefaultHttpClient. Well, I
think as long as it works, it should not make any difference I guess.

Thank you,
AJ

On Aug 25, 6:02 pm, gcstang gcst...@gmail.com wrote:
 See my post here :

 http://groups.google.com/group/android-developers/browse_thread/threa...

 On Aug 24, 2:48 am,Ajayaja...@gmail.com wrote:

  Hi,

  Since my app is going to access our own servers, I think I can use the
  hack of trusting all certificates. I tried the following  still
  fails :-(

  SchemeRegistry schemeRegistry = new SchemeRegistry();
  SSLSocketFactory sslSocketFactory =
  SSLSocketFactory.getSocketFactory();

  sslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
  schemeRegistry.register(new Scheme(https, sslSocketFactory, 443));

  ClientConnectionManager manager = new
  ThreadSafeClientConnManager(httpParam, schemeRegistry);
  DefaultHttpClient client = new DefaultHttpClient(manager, httpParam);

  Thank you,
  AJ

  On Aug 22, 12:10 am, Bob Kerns r...@acm.org wrote:

   The CA root certificates have very long expiration dates, so this is
   much less of a problem than you may assume.

   It's still an issue -- CA certs could possibly be revoked in the event
   of a vulnerability or theft. But those are relatively remote
   possibilities, beyond what most phone apps would need to consider.

   On Aug 21, 9:16 am, DanH danhi...@ieee.org wrote:

The current cert may only be good for another 6-12 months.  And if the
site isn't directly under the control of the app developer, the cert
may change at any time, and may even be changed to use a different
root.

There's probably no good solution to this problem, but the best I can
think of is to embed another app in your app that simply installs the
necessary cert(s), then have a way for that app to be updated as
needed.

On Aug 21, 7:09šam, Kostya Vasilyev kmans...@gmail.com wrote:

 Right, it does. If the site in question is part of the phone 
 application's
 infrastructure, I personally would find it acceptable.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 21.08.2010 16:06 ÐÏÌØÚÏ×ÁÔÅÌØ DanH danhi...@ieee.org ÎÁÐÉÓÁÌ:

 That assumes that the web site's cert won't change for the life of the
 app.

 On Aug 21, 3:18 am, Kostya Vasilyev kmans...@gmail.com wrote:

  šAjay,

  A more cryptographically correct solution would be to install the
  missing Óertfiicate pieces wit...
   On Fri, Aug 20, 2010 at 8:46 PM, Kostya Vasilyev 
   kmans...@gmail.com
   mailto:kmans...@gmail
   š š You being able to open the site in desktop browser and on a
   š š Blackberry seems to impl...

http://groups.google.com/group/android-developers/browse_thread/threa...

   š š This is a hack to accept all certificates.

   š š -- Kostya

   š š 20.08.2010 16:07,...
   š š š š using the following 
   site:http://www.digicert.com/helpandittold
   š š š š that it was installed properly on the server.

   š š š š On Aug 20, 4:39 pm, Kostya V...
   š š š š mailto:kmans...@gmail.com šwrote:

   š š š š š š šAjay,

   š š š š š š This can happen because the certificate is not signed 
   by...
   š š mailto:android-developers@googlegroups.com
   š š To unsubscribe from this group, send email to
   š š android-developers+unsubscr...@googleg...
   š š 
   mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developer
s%252bunsubscr...@googlegroups.com

   š š For more options, visit this group at
   š šhttp://groups.google.com/group/android-develope...



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: .pfx SSL Certificate

2010-08-30 Thread Ajay
Hi,
  If I include it in the raw folder, under the resources folder,
will it get installed? Also, where does it get installed?

Thank you,
AJ

On Aug 27, 8:48 pm, Jake Radzikowski radzikowski.j...@gmail.com
wrote:
 Toss it in the resource folder? or are you asking how to load it?

 On Fri, Aug 27, 2010 at 6:01 AM, Ajay aja...@gmail.com wrote:
  Hi,
    Does anyone know how we can include an SSL certificate (.pfx) with
  our App?

  Thank you,
  AJ

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 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=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] .pfx SSL Certificate

2010-08-27 Thread Ajay
Hi,
   Does anyone know how we can include an SSL certificate (.pfx) with
our App?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSLException: Not trusted server certificate

2010-08-24 Thread Ajay
Hi,

Since my app is going to access our own servers, I think I can use the
hack of trusting all certificates. I tried the following  still
fails :-(

SchemeRegistry schemeRegistry = new SchemeRegistry();
SSLSocketFactory sslSocketFactory =
SSLSocketFactory.getSocketFactory();

sslSocketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
schemeRegistry.register(new Scheme(https, sslSocketFactory, 443));

ClientConnectionManager manager = new
ThreadSafeClientConnManager(httpParam, schemeRegistry);
DefaultHttpClient client = new DefaultHttpClient(manager, httpParam);


Thank you,
AJ

On Aug 22, 12:10 am, Bob Kerns r...@acm.org wrote:
 The CA root certificates have very long expiration dates, so this is
 much less of a problem than you may assume.

 It's still an issue -- CA certs could possibly be revoked in the event
 of a vulnerability or theft. But those are relatively remote
 possibilities, beyond what most phone apps would need to consider.

 On Aug 21, 9:16 am, DanH danhi...@ieee.org wrote:

  The current cert may only be good for another 6-12 months.  And if the
  site isn't directly under the control of the app developer, the cert
  may change at any time, and may even be changed to use a different
  root.

  There's probably no good solution to this problem, but the best I can
  think of is to embed another app in your app that simply installs the
  necessary cert(s), then have a way for that app to be updated as
  needed.

  On Aug 21, 7:09šam, Kostya Vasilyev kmans...@gmail.com wrote:

   Right, it does. If the site in question is part of the phone application's
   infrastructure, I personally would find it acceptable.

   --
   Kostya Vasilyev --http://kmansoft.wordpress.com

   21.08.2010 16:06 ÐÏÌØÚÏ×ÁÔÅÌØ DanH danhi...@ieee.org ÎÁÐÉÓÁÌ:

   That assumes that the web site's cert won't change for the life of the
   app.

   On Aug 21, 3:18 am, Kostya Vasilyev kmans...@gmail.com wrote:

šAjay,

A more cryptographically correct solution would be to install the
missing Óertfiicate pieces wit...
 On Fri, Aug 20, 2010 at 8:46 PM, Kostya Vasilyev kmans...@gmail.com
 mailto:kmans...@gmail
 š š You being able to open the site in desktop browser and on a
 š š Blackberry seems to impl...

  http://groups.google.com/group/android-developers/browse_thread/threa...

 š š This is a hack to accept all certificates.

 š š -- Kostya

 š š 20.08.2010 16:07,...
 š š š š using the following site:http://www.digicert.com/helpandittold
 š š š š that it was installed properly on the server.

 š š š š On Aug 20, 4:39 pm, Kostya V...
 š š š š mailto:kmans...@gmail.com šwrote:

 š š š š š š šAjay,

 š š š š š š This can happen because the certificate is not signed 
 by...
 š š mailto:android-developers@googlegroups.com
 š š To unsubscribe from this group, send email to
 š š android-developers+unsubscr...@googleg...
 š š 
 mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developer
  s%252bunsubscr...@googlegroups.com

 š š For more options, visit this group at
 š šhttp://groups.google.com/group/android-develope...



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SSLException: Not trusted server certificate

2010-08-20 Thread Ajay
Hi,
   I am receiving this exception, when I try to access a secure site
in my App. I am using DefaultHttpClient  BasicHttpParams classes for
Http communication. Any idea what could be the problem here?

Thank you,
AJ


javax.net.ssl.SSLException: Not trusted server certificate
at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
360)
at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
92)
at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
321)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
129)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
164)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
119)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
348)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)

at java.lang.Thread.run(Thread.java:1096)
Caused by: java.security.cert.CertificateException:
java.security.cert.CertPathValidatorException: Could not validate
certificate signature.
at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
168)
at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
355)
... 11 more
Caused by: java.security.cert.CertPathValidatorException: Could not
validate certificate signature.
at
org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
342)
at
java.security.cert.CertPathValidator.validate(CertPathValidator.java:
211)
at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
164)
... 12 more
Caused by: java.security.SignatureException: Signature was not
verified.
at
org.apache.harmony.security.provider.cert.X509CertImpl.fastVerify(X509CertImpl.java:
601)
at
org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:
544)
at
org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
337)
... 14 more

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSLException: Not trusted server certificate

2010-08-20 Thread Ajay
Thank you Kostya,

I tried accessing the same site on the desktop browser and a
BlackBerry device, and they seem to work fine without a problem. I
verified that the certificate on the server is installed properly
using the following site: http://www.digicert.com/help and it told
that it was installed properly on the server.

On Aug 20, 4:39 pm, Kostya Vasilyev kmans...@gmail.com wrote:
   Ajay,

 This can happen because the certificate is not signed by a trusted
 certificate authority (e.g. self-signed), or because the certificate is
 just plain wrong.

 Try accessing the URL with a desktop browser to find out what the actual
 reason is.

 If the certificate is good, but is self-signed, search list archives for
 the solution - this comes up quite often.

 -- Kostya

 20.08.2010 15:00, Ajay пишет:



  Hi,
      I am receiving this exception, when I try to access a secure site
  in my App. I am using DefaultHttpClient  BasicHttpParamsclasses for
  Http communication. Any idea what could be the problem here?

  Thank you,
  AJ

  
  javax.net.ssl.SSLException: Not trusted server certificate
       at
  org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
  360)
       at
  org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
  92)
       at
  org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
  321)
       at
  org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
  129)
       at
  org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
  164)
       at
  org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
  119)
       at
  org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
  348)
       at
  org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
  555)
       at
  org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
  487)
       at
  org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
  465)

       at java.lang.Thread.run(Thread.java:1096)
  Caused by: java.security.cert.CertificateException:
  java.security.cert.CertPathValidatorException: Could not validate
  certificate signature.
       at
  org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
  168)
       at
  org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
  355)
       ... 11 more
  Caused by: java.security.cert.CertPathValidatorException: Could not
  validate certificate signature.
       at
  org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
  342)
       at
  java.security.cert.CertPathValidator.validate(CertPathValidator.java:
  211)
       at
  org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
  164)
       ... 12 more
  Caused by: java.security.SignatureException: Signature was not
  verified.
       at
  org.apache.harmony.security.provider.cert.X509CertImpl.fastVerify(X509CertImpl.java:
  601)
       at
  org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:
  544)
       at
  org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
  337)
       ... 14 more

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSLException: Not trusted server certificate

2010-08-20 Thread ajay davanam
Hi,
   You've hit the bulls-eye!! I think the certificate is issued by Entrust
Inc. and all the Android devices I have do not seem to have it installed. I
guess I need to work on that hack which would accept all certificates.
Thanks Kostya!! I will try it out in the next week and post again.

Thank you,
AJ

On Fri, Aug 20, 2010 at 8:46 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  Ajay,

 You being able to open the site in desktop browser and on a Blackberry
 seems to imply that the certificate is valid (not corrupted) and is not
 self-signed.

 Perhaps the certificate was issued by an authority whose certificate is not
 installed in Android?

 Take a look here:


 http://groups.google.com/group/android-developers/browse_thread/thread/1afdf215aa539ca9/56970e750066e93d

 This is a hack to accept all certificates.

 -- Kostya

 20.08.2010 16:07, Ajay пишет:

  Thank you Kostya,

 I tried accessing the same site on the desktop browser and a
 BlackBerry device, and they seem to work fine without a problem. I
 verified that the certificate on the server is installed properly
 using the following site: http://www.digicert.com/help and it told
 that it was installed properly on the server.

 On Aug 20, 4:39 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

   Ajay,

 This can happen because the certificate is not signed by a trusted
 certificate authority (e.g. self-signed), or because the certificate is
 just plain wrong.

 Try accessing the URL with a desktop browser to find out what the actual
 reason is.

 If the certificate is good, but is self-signed, search list archives for
 the solution - this comes up quite often.

 -- Kostya

 20.08.2010 15:00, Ajay пишет:



  Hi,
 I am receiving this exception, when I try to access a secure site
 in my App. I am using DefaultHttpClientBasicHttpParamsclasses for
 Http communication. Any idea what could be the problem here?
 Thank you,
 AJ

 
 javax.net.ssl.SSLException: Not trusted server certificate
  at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 360)
  at
 org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
 92)
  at

 org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
 321)
  at

 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
 129)
  at
 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
 164)
  at

 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
 119)
  at

 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
 348)
  at

 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
 555)
  at

 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
 487)
  at

 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
 465)
  at java.lang.Thread.run(Thread.java:1096)
 Caused by: java.security.cert.CertificateException:
 java.security.cert.CertPathValidatorException: Could not validate
 certificate signature.
  at

 org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
 168)
  at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 355)
  ... 11 more
 Caused by: java.security.cert.CertPathValidatorException: Could not
 validate certificate signature.
  at

 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
 342)
  at
 java.security.cert.CertPathValidator.validate(CertPathValidator.java:
 211)
  at

 org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
 164)
  ... 12 more
 Caused by: java.security.SignatureException: Signature was not
 verified.
  at

 org.apache.harmony.security.provider.cert.X509CertImpl.fastVerify(X509CertImpl.java:
 601)
  at

 org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:
 544)
  at

 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
 337)
  ... 14 more

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com



 --
 Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 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

[android-developers] String Array

2010-08-13 Thread Ajay
Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: String Array

2010-08-13 Thread Ajay
Yes both the syntax are allowed...Thanks for the replies!!

On Aug 13, 4:05 pm, Farjad Habib habib.far...@gmail.com wrote:
 @Filip

 it doesn't matter both String[] arrStrings and String arrStrings[] are legal
 in java...

 On Fri, Aug 13, 2010 at 4:01 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:



  Hi Ajay,

  shouldn't it be more like:

  String[] arrStrings ... ?

  Then of course use the usual arrStrings.length

  2010/8/13 Ajay aja...@gmail.com

  Hi,
    I have defined a string array in the resource and access it using:

    String arrStrings[] =
  getResources().getStringArray(R.array.arrayname);

    But, how can I get the size of this array?

  Thank you,
  AJ

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 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=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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Farjad Habib
 Software Engineer and Developer
 BS(Hons) 2011
 LUMS

 +92-331-4944-354

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] HOT Requirement for: Biz Talk Devceloper in Houston, TX 6-12 Months

2010-07-28 Thread Ajay - Gain America, Inc.
 

 

Hi, 

 

We have a hot opening for...

 

Position:  Biz Talk Developer
Location: Houston, TX
Duration: 6-12 Months

Job Description:

 


-This industry leader has an immediate opening for a Senior Biz Talk
Developer.  

 -This  Ideal candidate will have experience migrating Biztalk 2002
components to Biztalk 2009, will also consider candidates that have not
migrated but have experience with 2002 and 2009.  

-Candidate must have excellent communication skills and present him or
herself in a professional manner. 

-STATE AND FEDERAL CRIMINAL BACKGROUND CHECK REQUIRED.

 

Please send me your Updated Resume and these details ASAP:  

 

Full Name: 

Contact No:

E-mail ID: 

Availability:

Visa Status/Citizenship:

Current Location:

Rate or Employer Details:

 

Regards,
Ajay

Gain America, Inc. I 13804 Hull Street Road Midlothian, VA 23112
Direct: 703-880-8775 I Fax: 917-475-8362 I a...@gainam.com I
thesharkp...@yahoo.in  I

P Please consider the environment before printing this e-mail.

  _  

  _  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Button pressed color

2010-07-14 Thread Ajay
Hi,
   Is there a way I could get the color that is used when a button is
pressed? I know that the button uses a default selector xml that
consists of the pressed image. But, I am having some custom buttons
for which I want it to be close to the default image used for pressed
state.

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Button pressed color

2010-07-14 Thread Ajay
Yes, the pressed images are already different with different OEM
applied UIs. Even I could not find it in SDK or some other posts...

Still looking out for an answer...

On Jul 14, 7:16 pm, String sterling.ud...@googlemail.com wrote:
 On the default (Google) UI, the current pressed-button color is
 #ffc700. But that is liable to change in the future, and is probably
 already different on other, OEM-applied UIs. I got that number from
 just sampling a screen capture; I couldn't find it anywhere in the
 SDK.

 String
 On Jul 14, 1:52 pm, Ajay aja...@gmail.com wrote:

  Hi,
     Is there a way I could get the color that is used when a button is
  pressed? I know that the button uses a default selector xml that
  consists of the pressed image. But, I am having some custom buttons
  for which I want it to be close to the default image used for pressed
  state.

  Thank you,
  AJ



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bug in Android framework connecting to url?

2010-06-14 Thread Ajay
This crash can be reproduced when you type more than 80 characters in URL (no
spaces and no commas). 

This doesnt happen in emulator.

When you load http://aac.jetcitylounge.groovera.com/; on ur desktop browser you
can see it fetches a page with URL more than 80 characters. 

So i guess its not a bug in Http error codes. But am not sure :)

Thanks  regards, 
Ajay





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Widget like MapView

2010-05-12 Thread Ajay
Anybody has a clue?

On May 12, 10:30 am, Ajay aja...@gmail.com wrote:
 Another related question:
 Is there a widget that can scroll diagonally?
 The only way I know to make a view scroll both horizontally and
 vertically is to have nested views like have a ScrollView inside a
 HorizontalScrollView. But, in this way I cannot scroll diagonally and
 it always has to move in a vertical-horizontal or
 horizontal-vertical direction.

 Thank you,Ajay

 On May 12, 10:02 am,Ajayaja...@gmail.com wrote:



  Hi,
      I read some tutorial about loading a MapView in your own activity.
  The Google maps is a beautiful application that scrolls in any
  direction the user moves around. I want to develop a similar
  application, that could scroll in any direction, but the difference
  being it has to display it's own UI.

  Is this possible? If yes, then how?

  Thank you,
 Ajay

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://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 
 athttp://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: Widget like MapView

2010-05-12 Thread Ajay
Thank you! I am sorry for my impatience. Will keep that in mind before
I post anything.

On May 12, 3:45 pm, Mark Murphy mmur...@commonsware.com wrote:
 Ajaywrote:
  Anybody has a clue?

 If you need help within six hours, please hire a consultant. Otherwise,
 please wait 24-48 hours before bumping your posts.

  Is there a widget that can scroll diagonally?

 There is no built-in widget that can scroll diagonally.

      I read some tutorial about loading a MapView in your own activity.
  The Google maps is a beautiful application that scrolls in any
  direction the user moves around. I want to develop a similar
  application, that could scroll in any direction, but the difference
  being it has to display it's own UI.
  Is this possible? If yes, then how?

 Draw on the Canvas, using the techniques used by games for rendering a
 portion of a large map on the screen and allowing scrolling in whatever
 directions the larger map supports.

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

 Android App Developer Books:http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Widget like MapView

2010-05-11 Thread Ajay
Hi,
I read some tutorial about loading a MapView in your own activity.
The Google maps is a beautiful application that scrolls in any
direction the user moves around. I want to develop a similar
application, that could scroll in any direction, but the difference
being it has to display it's own UI.

Is this possible? If yes, then how?

Thank you,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Widget like MapView

2010-05-11 Thread Ajay
Another related question:
Is there a widget that can scroll diagonally?
The only way I know to make a view scroll both horizontally and
vertically is to have nested views like have a ScrollView inside a
HorizontalScrollView. But, in this way I cannot scroll diagonally and
it always has to move in a vertical-horizontal or
horizontal-vertical direction.

Thank you,
Ajay

On May 12, 10:02 am, Ajay aja...@gmail.com wrote:
 Hi,
     I read some tutorial about loading a MapView in your own activity.
 The Google maps is a beautiful application that scrolls in any
 direction the user moves around. I want to develop a similar
 application, that could scroll in any direction, but the difference
 being it has to display it's own UI.

 Is this possible? If yes, then how?

 Thank you,
 Ajay

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Common code reuse

2010-05-07 Thread Ajay
Hi,
   I have a set of common code (including .java files and resources) ,
which I have to use for two similar applications with different
package names (for different vendors). How can I maintain two packages
which share the common code without making two copies of the common
source?

Thank you,
AJ

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


[android-developers] Custom RatingBar

2010-05-03 Thread Ajay
Hi,
I wanted to use a different image for the rating bar. I tried to
do this by extending the RatingBar widget style.

?xml version=1.0 encoding=utf-8?
resources
 style
name=myRatingBar parent=@android:style/Widget.RatingBar
item name=android:progressDrawable@drawable/star_full/
item
item name=android:indeterminateDrawable@drawable/
star_full/item
 /style
/resources


But, the resultant rating bar had some additional bleeding effect.
The stars looked like they were bleeding and it was not the same as
the custom images I had added.
Also, how can we add the custom empty and half stars?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] XML Layout not shown

2010-04-29 Thread Ajay
Hi,
   For any Android project that I create using Eclipse, I cannot see
the preview of the XML layout that I define. It gives a message saying
Eclipse is loading framework information and Layout library from the
SDK folder. XXX.xml will refresh automatically once the process is
finished.

Any ideas?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: XML Layout not shown

2010-04-29 Thread Ajay
found the solution here...

http://androidbook.blogspot.com/2009/07/when-eclipse-loading-framework.html


On Apr 29, 3:59 pm, Ajay aja...@gmail.com wrote:
 Hi,
    For any Android project that I create using Eclipse, I cannot see
 the preview of the XML layout that I define. It gives a message saying
 Eclipse is loading framework information and Layout library from the
 SDK folder. XXX.xml will refresh automatically once the process is
 finished.

 Any ideas?

 Thank you,
 AJ

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Hide Activity

2010-04-29 Thread Ajay
Thank you!!

On Apr 28, 6:16 pm, Mohan Krishna mohankrishnayarragu...@gmail.com
wrote:
 hiajay,
 define your own theme and add that theme to the activity in
 manifest.xml that you want to change.

 create a new xml file in res/values,
 and in the androidmanifest.xml file add your that theme to your
 activity.

 you can use this as an example

 style name=Theme parent=android:Theme.Dialog
         item name=android:windowBackground@null/item
         item name=android:windowNoTitletrue/item
 /style

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Hide Activity

2010-04-28 Thread Ajay
Hi,
   I want to show a progress dialog, while I check something in the
background and display a message finally and exit the app. Can I hide
the Activity in the background? I tried using
android:theme=@android:style/Theme.NoDisplay in the manifest file,
but the window shows up when I show the progress dialog or the
AlertDialog.

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hide Activity

2010-04-28 Thread Ajay
I could accomplish this using this

android:theme=@android:style/Theme.Translucent

Just wondering, is it possible to use more than 1 theme for an
activity? For example we could have an activity with these themes
NoTitleBar and Translucent.

Thank you,
AJ

On Apr 28, 11:19 am, Ajay aja...@gmail.com wrote:
 Hi,
    I want to show a progress dialog, while I check something in the
 background and display a message finally and exit the app. Can I hide
 the Activity in the background? I tried using
 android:theme=@android:style/Theme.NoDisplay in the manifest file,
 but the window shows up when I show the progress dialog or the
 AlertDialog.

 Thank you,
 AJ

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Market

2010-04-26 Thread Ajay
Hi,
   I wanted to check the availability of another app in Market from my
app. Based on this I will have to give a message saying Coming
soon... or show the other app in Market. I am using the following
intent

new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?
id=com.example.android.));

Now, how can I catch the result which would say if the Market was able
to find this package or not?

Thank you,
Ajay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] R.java

2010-04-26 Thread Ajay
Hi,
   I have to make two packages with almost same code, except for a few
changes. I thought I could give different package names for each of
the two versions. But, wherever I refer to the generated resource file
R.java, the package to which this file belongs is also changed. Is
there anyway to control the package name to which the R.java file
belongs?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AlertDialog - selected item

2010-04-22 Thread Ajay
Hi,
   I have an AlertDialog with a list of selectable items and a OK
button. How can I get the selected option, when the user clicks the OK
button?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: AlertDialog - selected item

2010-04-22 Thread Ajay
Thanks a lot again for a very quick reply!! You are a life saver :-)

On Apr 22, 4:02 pm, Mark Murphy mmur...@commonsware.com wrote:
 Ajay wrote:
  Hi,
     I have an AlertDialog with a list of selectable items and a OK
  button. How can I get the selected option, when the user clicks the OK
  button?

 Try calling getListView() on the AlertDialog. From there, you should be
 able to call getCheckedItemPosition().

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

 Android Consulting:http://commonsware.com/consulting

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] ProgressDialog in full screen

2010-04-22 Thread Ajay
Hi,
   I have the standard ProgressDialog displayed during a lengthy
operation. How can I make this ProgressDialog to occupy the entire
screen (make it full screen)?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ProgressDialog in full screen

2010-04-22 Thread Ajay
Hi,
  How can you inflate a progress dialog from xml? If I try to inflate
this way, it gives a compile error telling that View cannot be cast to
a ProgressDialog.

Thank you,
AJ

On Apr 22, 5:33 pm, prabhakaran sambasivam
prabhakaransan...@gmail.com wrote:
 *just  make the progress dialog as the parent class in the XML and with in
 this class  define all other class.
 *



 On Thu, Apr 22, 2010 at 5:55 PM, Ajay aja...@gmail.com wrote:
  Hi,
    I have the standard ProgressDialog displayed during a lengthy
  operation. How can I make this ProgressDialog to occupy the entire
  screen (make it full screen)?

  Thank you,
  AJ

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 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=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 
 athttp://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] Customize Spinner

2010-04-21 Thread Ajay
Hi,
   I want to customize the spinner behavior a little bit. I want to
add a couple of buttons at the end of the drop down menu that is
displayed when the user selects the control. Any idea how this could
be done?

Thank you,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Customize Spinner

2010-04-21 Thread Ajay
Is there a simpler way or standard widget that I could use?

Thank you,
AJ

On Apr 21, 4:03 pm, Tim tdh...@gmail.com wrote:
 On Apr 21, 11:47 am, Ajay aja...@gmail.com wrote:

  Hi,
     I want to customize the spinner behavior a little bit. I want to
  add a couple of buttons at the end of the drop down menu that is
  displayed when the user selects the control. Any idea how this could
  be done?

  Thank you,
  AJ

 Clone the spinner code in your project, then modify it.

 By the way, why is the drop-down widget called Spinner, and the
 spinner widget called NumberPicker? Confusing!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] switchTimezone

2010-04-16 Thread Ajay
Hi,
   I am using the switchTimezone() method of the Time class. I am not
sure what string should be passed to convert the time to a different
time zone. For example: My current time zone is +5:30 GMT and current
time is 11:30 AM (+5:30 GMT) and I call the switchTimeZone() by
passing a string America/California. I was expecting the result to
be 11:00 PM (-7 PDT), but I got the result as 6:00 AM, which I guess
is the UTC time. Any idea what could be the issue here?

Thanks,
AJ

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Huge UI

2010-04-13 Thread Ajay
Hi,
   I have a huge UI, in which I have about 300 to 500 rows of data
(Horizontal LinearLayout), with each row containing 3 to 4 views. If I
load all the UI at once, it takes a long time. Can anyone suggest how
best I can display this UI?

Thank you,
AJ

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Huge UI

2010-04-13 Thread Ajay
Thanks for a super quick reply!!

I doubt if I could use a ListView because it has to scroll
horizontally as well as vertically.

Thank you,
AJ

On Apr 13, 6:25 pm, Mark Murphy mmur...@commonsware.com wrote:
 Ajay wrote:
  Hi,
     I have a huge UI, in which I have about 300 to 500 rows of data
  (Horizontal LinearLayout), with each row containing 3 to 4 views. If I
  load all the UI at once, it takes a long time. Can anyone suggest how
  best I can display this UI?

 Use a ListView.

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

 Android Training...At Your Office:http://commonsware.com/training

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: onFling

2010-03-21 Thread Ajay
I did not try passing onFling and onScroll. But, I figured out the
reason for it.

I have a lot of text views in my layout. The app has to launch another
view when the user clicks on the text view.

Passing onTouch events was working perfectly earlier, but after I set
the property clickable as true, again the two HorizontalScrollViews
were out of sync and acted weirdly. I guess I will have to extend the
standard TextView widget and customize it to suit my requirement.

Thank you,
AJ

On Mar 19, 6:42 pm, social hub shubem...@gmail.com wrote:
 have u tried passing onfling and onscroll events also. that might solve some
 of ur problems.

 On Fri, Mar 19, 2010 at 8:40 AM, Ajay aja...@gmail.com wrote:
  Oops!! I still have the problem. Any thoughts anyone?

  Thank you,
  AJ

  On Mar 19, 11:54 am, Ajay aja...@gmail.com wrote:
   Finally I found a way to synchronize the scrolls. I was using a
   gesture listener to listen for scrolls/flings which did not give me
   accurate results. Now I simply pass the onTouch events from one view
   to the other view. This makes both the views to scroll perfectly in
   sync.

   On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote:

Hi,
   I am having two horizontal scroll views in my app. If I do a scroll/
fling in one view, I have to scroll/fling the other view. It does
work, but it has a minor mismatch sometimes in the amount of scroll. I
suspect this might be because theonFlinglistener callback has a
float velocity, whereas the call method fling() takes an integer
parameter. Any idea why is this mismatch?

Thank you,
AJ

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 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=en

  To unsubscribe from this group, send email to android-developers+
  unsubscribegooglegroups.com or reply to this email with the words REMOVE
  ME as the subject.



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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: onFling

2010-03-19 Thread Ajay
Finally I found a way to synchronize the scrolls. I was using a
gesture listener to listen for scrolls/flings which did not give me
accurate results. Now I simply pass the onTouch events from one view
to the other view. This makes both the views to scroll perfectly in
sync.

On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote:
 Hi,
    I am having two horizontal scroll views in my app. If I do a scroll/
 fling in one view, I have to scroll/fling the other view. It does
 work, but it has a minor mismatch sometimes in the amount of scroll. I
 suspect this might be because theonFlinglistener callback has a
 float velocity, whereas the call method fling() takes an integer
 parameter. Any idea why is this mismatch?

 Thank you,
 AJ

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Optimize ScrollView

2010-03-19 Thread Ajay
Hi,
   I have a big scroll view with lot of child views. Is there any way
I could optimize it similar to a ListAdapter getView()?

Thank you,
AJ

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: onFling

2010-03-19 Thread Ajay
Oops!! I still have the problem. Any thoughts anyone?

Thank you,
AJ

On Mar 19, 11:54 am, Ajay aja...@gmail.com wrote:
 Finally I found a way to synchronize the scrolls. I was using a
 gesture listener to listen for scrolls/flings which did not give me
 accurate results. Now I simply pass the onTouch events from one view
 to the other view. This makes both the views to scroll perfectly in
 sync.

 On Mar 18, 5:26 pm, Ajay aja...@gmail.com wrote:

  Hi,
     I am having two horizontal scroll views in my app. If I do a scroll/
  fling in one view, I have to scroll/fling the other view. It does
  work, but it has a minor mismatch sometimes in the amount of scroll. I
  suspect this might be because theonFlinglistener callback has a
  float velocity, whereas the call method fling() takes an integer
  parameter. Any idea why is this mismatch?

  Thank you,
  AJ



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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


  1   2   >