[android-developers] Re: How to programatically refresh Gallery View?

2010-09-20 Thread Abhi
Is there anyone who can help me on this?

On Sep 17, 10:20 am, Abhi  wrote:
> I want to programatically refresh Gallery every time I download a
> video from my application. It doesn't automatically show up in the
> gallery.
>
> Thanks,
>
> AB

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

2010-09-20 Thread Abhi
I am looking for the same answer.

On Aug 29, 2:26 pm, Patrick  wrote:
> I wanted to bring up this querstion again, since I stumble upon the
> same problem but still haven't found a solution.
>
> Does anyone know how to programmaticallyrefreshagalleryafter
> storing a photo?
>
> On Jul 1, 2:45 am, Julian  wrote:
>
>
>
> > Well, for starters most of the code samples include "file://" before
> > the path in Uri.parse, so you might want to add that.
>
> > That said, I'm not having much luck forcing a rescan of a particular
> > folder on the SD card...
>
> > On Jun 7, 1:19 am, Andy Triboletti  wrote:
>
> > > Hi,
> > > I have an application where I want to have the ability for the user to
> > > save one of the photos they are viewing to their phone locally.  I got
> > > saving working, and now I want to automaticallyrefreshso they don't
> > > have to turn off their phone before it shows up in thegallery.  I
> > > googled around and saw this:
>
> > > sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
> > > Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() )));
>
> > > I tried doing that, but it didn'trefreshfor me.  Does anyone have
> > > any ideas?

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

2009-08-07 Thread Abhi

I am developing a widget for that i need to control some mmi using
Hardware key...please let me know how can i
capture hardware key events on widgetApp as it is controlled by
Widgetprovider. If any body have any solution please let me know

thanks
Abhi

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

2009-08-11 Thread Abhi

I don't see this in the list of WiFi classes on the latest
documentation found here
http://developer.android.com/reference/android/net/wifi/package-summary.html

I am refering to a WifiScanner code (snippet below) to scan wireless
networks

public class WifiTester extends Activity {
TextView mainText;
WifiManager mainWifi;
WifiReceiver receiverWifi;
List wifiList;
  ...

and it gives me an error in Eclipse saying 'WifiReceiver cannot be
resolved to a type'. Any help would be appreciated.

Please also let me knw how to replace the part of code that has
WifiReceiver in it with any of the existing classes.

Thanks,

Abhi
--~--~-~--~~~---~--~~

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

2016-08-16 Thread Abhi
Hi friends,

I have written an article about Offline advertisement and love to share 
with you.
Offline Advertisement 

Would love to hear some constructive feedback from all of you :)

Thanks 
Abhinav Tyagi

-- 
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/bee6882b-e192-4616-addd-c25904f90c7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to access Camera stream inside Webview

2015-01-27 Thread Abhi
I want to access phone camera stream inside webview.
I have HTML pages which are working absolutely fine on Chrome for android

I want the same features inside webview now.

Right now I see dark thumbnail only and no camera permission alert is 
getting invoked.
On browser as soon as I open the page, I am asked for Audio,Camera 
Permission and once approved
I am able to see my camera stream inside  tag

This is not happening in webview.

Please check my stackoverflow 

 
question for the same

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


[android-developers] How to access Camera stream inside Webview

2015-01-29 Thread Abhi
Can someone help me here ??

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


[android-developers] Receive Callback from Service

2015-04-17 Thread abhi
Is there any mechanism to receive a callback from service through AIDL 
without any client intervention.Already i have implemented a two way 
communication through AIDL, but still i couldnt figure out how to sent a 
callback without a client call.Any insights into this will be very helpfull.

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


[android-developers] Invoking Java function via c

2009-06-01 Thread Abhi

Hi All,
  I have a java method Log_d:
//JAVA
public static void Log_d(String log){
RdcLog.d(log);
}

I'm trying to call it from "C" via JNI as follows:


//C
void LOGD(char* log)
{
jstring jStrLog = NULL;

if(log != NULL)
{
jStrLog = (*javaEnv)->NewStringUTF(javaEnv, log);

if(jStrLog != NULL)
{
jmethodID methodId = (*javaEnv)->GetStaticMethodID
(javaEnv, javaClass, "Log_d", "([Ljava/lang/String;)V");

/* Call debugLog() function of RdcJni.java */
(*javaEnv)->CallStaticVoidMethod(javaEnv, javaClass,
methodId, jStrLog);
}
}
}

But in runtime, I get a "Ljava/lang/NoSuchMethodError;: Log_d"
Exception.

can you pls help me on this.

Thanks,

Abhijith K



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



[android-developers] Shared memory in Android 1.5

2009-06-11 Thread Abhi
Hi All,
   Do we have shared memory IPC in Android 1.5 ? I heard
that the functionality is removed.

Pls let me know.

Thanks,
Abhijith K

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



[android-developers] '-1' error during HTTPS communication.

2011-04-01 Thread ABhi
Hi All,

Below is my problem scenario.

 - My Server is on running on https.
 - Doing connection with ‘HttpURLConnection’ api & already tried
‘HttpClient’ as well earlier but both are showing same issue.
 - Server certificate is ‘Verisign Class
   3’ certificate.
 - Every alternate request sent to
   server, receives ‘-1’ in http
   response code. For e.g. If my first
   request is successful (200 code)
   second request would get (-1) code,
   then again successful & then again
   4th request gets -1 in response.  I’m
   not sure why this -1 code is returned
   & there’s not description on HTTP
   standard site as well.

Any idea how can i get rid off this '-1' response i receive. In which
scenario server returns this code?

I'm posting my sample code below.

--
HttpURLConnection connection;
SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, new TrustManager[] { new TrustManager() },
new SecureRandom());

HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
HttpsURLConnection.setDefaultHostnameVerifier(new
MyHostnameVerifier());
connection = (HttpsURLConnection) httpUrl.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Length", String
.valueOf(requestBinary.length));
connection.setRequestProperty("Content-Type",
"octet/x-application-csam");
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setConnectTimeout(3);
connection.connect();
connection.getOutputStream().write(requestBinary);
int responseCode = connection.getResponseCode();
--

Thanks in advance

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


[android-developers] regarding image slicing problem

2011-04-06 Thread abhi
Hi ..

i am able to run Monkey runner..below are the
steps i used to run :


Steps to run Monkey Runner :

1 )  Check availablity of Monkey runner tool in Sdk tools folder

2 )  Install jython ( java + python )

3 )  write the jython Script and placed it in a Specified Folder

For example :  help.py


#!/usr/bin/env python

# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

text = MonkeyRunner.help("html");

f = open('help.html', 'w')
f.write(text);
f.close();


Monkey Runner Command :

its@its-desktop67:~/Android/android-sdk-linux_86/tools$ ./monkeyrunner
/home/its/Desktop/tests/help.py


help.html is created in the below path :
/Android/android-sdk-linux_86/tools



i am working on java Swing..my requirement is to get the screen shot
of emulator screen (i got it by monkey runner ) and display it on java
swing
appi am facing problem with resizing the image...the image quality
will be effected when resized i mean after converting 800*500 to
300*300 the image became blurred .if you have any idea please
suggest me...

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


[android-developers] Curved Gallery view

2011-09-21 Thread Abhi
Hi all,

I would like to know if it is possible to create a curved gallery view
from the default horizontal one that Android offers? I don't know if
that entails changing the Gallery code in Android framework which I
want to avoid. Is there any other way to make a custom Gallery view
from scratch? Again, how to go about doing that?

Thanks. Any help would be appreciated.

Abi

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

2011-10-11 Thread Abhi
Hi

I have a sqlite database that has over 2000 low res thumbnails of
pictures. The database itself is over 100MB in size. The project
requires me to have the photos residing in the database instead of the
file path. This is what I would like to do and need help with as this
is my first time dealing with images. I have a horizontal GalleryView
in my App UI that I want to populate with images pulled from this
database dynamically. I don't mind if these images are lazy loaded on
to the gallery view in the background. I read somewhere that I will
have to use an ImageAdapter to bind the images to the UI element
dynamically. I need in understanding how this is done. I have never
used the BaseAdapter class.

Thanks,

AB

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

2011-10-12 Thread Abhi
anyone with an idea how to do this?

On Oct 11, 2:09 pm, Abhi  wrote:
> Hi
>
> I have asqlitedatabase that has over 2000 low res thumbnails of
> pictures. The database itself is over 100MB in size. The project
> requires me to have the photos residing in the database instead of the
> file path. This is what I would like to do and need help with as this
> is my first time dealing with images. I have a horizontal GalleryView
> in my App UI that I want to populate with images pulled from this
> database dynamically. I don't mind if these images are lazy loaded on
> to thegalleryview in the background. I read somewhere that I will
> have to use an ImageAdapter to bind the images to the UI element
> dynamically. I need in understanding how this is done. I have never
> used the BaseAdapter class.
>
> Thanks,
>
> AB

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Abhi
I keep getting NullPointerException trying to deflate or make
invisible the ViewStub from my UI. I just wanted to be sure I am doing
it right.

I am inflating my ViewStub in onItemLongClick method of GalleryView by
doing the following:

@Override
public boolean onItemLongClick(AdapterView arg0, View
viu, int arg2,
long arg3) {
Toast.makeText(GalleryView.this, "New item added to
Favorites", Toast.LENGTH_SHORT).show();


favsCount++;

   //checking to see if ViewStub is already inflated or
not
if(!stubvis){
stub = (ViewStub) findViewById(R.id.stub1);
stub.inflate();
stubvis = true;
trayUP = true;
}

return true;
}

});

and then in onPrepareOptionsMenu() I am adding the menu item based on
the visibility of ViewStub. If inflated and visible, I create a menu
item to hide it, otherwise, a menu item to show/make visible.

@Override

public boolean onPrepareOptionsMenu(Menu menu) {

menu.clear();


if(trayUP) {

menu.add(0, HIDETRAY, 0, "Hide Favorites Tray");

} else {

menu.add(0, SHOWTRAY, 0, "Show Favorites Tray");

}

return super.onPrepareOptionsMenu(menu);

}
Next, in onOptionsItemSelected(), I am writing the two cases based on
the menu item selection. Case 1 when the tray is not visible, so I
make it visible. Case 2 when it is visible, so I hide it by doing the
following:

@Override
public boolean onOptionsItemSelected(MenuItem item) {

switch (item.getItemId()) {

case HIDETRAY:

Log.v(TAG, "Hiding Favs Tray");
findViewById(R.id.stub1).setVisibility(View.GONE);
trayUP = false;

case SHOWTRAY:

Log.v(TAG, "Showing Favs Tray");
findViewById(R.id.stub1).setVisibility(View.VISIBLE);
trayUP = true;

}

return true;
}

I know I am making a silly mistake somewhere. And my mind is too
saturated to think straight at the moment. Need help :(

Thanks,

Ab

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


[android-developers] Re: how to deflate/hide(invisible) ViewStub from Menu (onOptionsItemSelected)?

2011-11-04 Thread Abhi
Hi Kostya,

I have a GalleryView in my ViewStub and I dynamically add images to
the Gallery. I would like to control from a menu option, the
visibility of the complete ViewStub view. So basically, when the
ViewStub is up displaying the gallery and I press the menu option, the
whole view gets hidden but the content (i.e. Gallery items) remain in
the stub. On pressing menu option again, the whole view is displayed
again with the gallery items selected earlier.

I don't know what you mean by replacing the stub with  and
toggle its contents' visibility. Could you elaborate a little more?

Thanks,

Abhi

On Nov 4, 6:16 pm, Kostya Vasilyev  wrote:
> Inflating a view stub has two important properties:
>
> 1) It's irreversible: once inflated, the stub's content is always there
> 2) The stub's content replaces the stub.
>
> Sounds like you need to replace the stub with  and toggle its
> contents' visibility as needed.
>
> -- Kostya
>
> 05.11.2011 2:07, Abhi пишет:
>
>
>
>
>
>
>
>
>
> > I keep getting NullPointerException trying to deflate or make
> > invisible the ViewStub from my UI. I just wanted to be sure I am doing
> > it right.
>
> > I am inflating my ViewStub in onItemLongClick method of GalleryView by
> > doing the following:
>
> > @Override
> >              public boolean onItemLongClick(AdapterView  arg0, View
> > viu, int arg2,
> >                      long arg3) {
> >                  Toast.makeText(GalleryView.this, "New item added to
> > Favorites", Toast.LENGTH_SHORT).show();
>
> >                  favsCount++;
>
> >                 //checking to see if ViewStub is already inflated or
> > not
> >                  if(!stubvis){
> >                  stub = (ViewStub) findViewById(R.id.stub1);
> >                  stub.inflate();
> >                  stubvis = true;
> >                  trayUP = true;
> >                  }
>
> >                  return true;
> >              }
>
> >              });
>
> > and then in onPrepareOptionsMenu() I am adding the menu item based on
> > the visibility of ViewStub. If inflated and visible, I create a menu
> > item to hide it, otherwise, a menu item to show/make visible.
>
> > @Override
>
> > public boolean onPrepareOptionsMenu(Menu menu) {
>
> > menu.clear();
>
> > if(trayUP) {
>
> > menu.add(0, HIDETRAY, 0, "Hide Favorites Tray");
>
> > } else {
>
> > menu.add(0, SHOWTRAY, 0, "Show Favorites Tray");
>
> > }
>
> > return super.onPrepareOptionsMenu(menu);
>
> > }
> > Next, in onOptionsItemSelected(), I am writing the two cases based on
> > the menu item selection. Case 1 when the tray is not visible, so I
> > make it visible. Case 2 when it is visible, so I hide it by doing the
> > following:
>
> > @Override
> > public boolean onOptionsItemSelected(MenuItem item) {
>
> >      switch (item.getItemId()) {
>
> >          case HIDETRAY:
>
> >              Log.v(TAG, "Hiding Favs Tray");
> >              findViewById(R.id.stub1).setVisibility(View.GONE);
> >              trayUP = false;
>
> >          case SHOWTRAY:
>
> >              Log.v(TAG, "Showing Favs Tray");
> >              findViewById(R.id.stub1).setVisibility(View.VISIBLE);
> >              trayUP = true;
>
> >          }
>
> >      return true;
> > }
>
> > I know I am making a silly mistake somewhere. And my mind is too
> > saturated to think straight at the moment. Need help :(
>
> > Thanks,
>
> > Ab
>
> --
> 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] how to retrieve images from a sql database?

2011-08-22 Thread Abhi
Hi

I have a database of low res images that I am trying to use for one of
my applications. What I would like to do is to retrieve the images one
by one and display them in a slideshow. I was told that images are
stored as byte arrays in sql database. I am new to sql and looking for
some direction on how to do this, what query to put and how to extract
the byte array from the database for further use.

Any help appreciated.

Thanks,
AB

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


[android-developers] Re: how to retrieve images from a sql database?

2011-08-22 Thread Abhi
Well, that's an option I don't have at the moment. I have a pre-
existing sql database that has to go into the application.

On Aug 22, 4:09 pm, lbendlin  wrote:
> generally with mobile databases like SQLite it may be easier to keep the
> images in the RAW resource folder and only maintain the (string) pointers in
> the database.

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


[android-developers] Re: how to retrieve images from a sql database?

2011-08-23 Thread Abhi
@Ibendlin - Yes, SQLite on device is what I meant. Sorry about the
confusion
@Drezden - I somehow don't have that option to add images to
MediaStore, keeping the file path in the SQLite database. I would like
to still try retrieving those images stored in the database before
deciding which way to really go. Anything you could tell me about
doing that?

Thanks,

AB

On Aug 22, 5:45 pm, Drezden  wrote:
> What you're looking for in SQLite is called a BLOB (Binary Large
> Object) but this is usually NOT recommended, the better approach would
> be to add the images to your MediaStore and then store the file path
> in your SQLite database.  Then you can retrieve the images as needed
> from the resource path like this:
>
> BitmapFactory.Options options = new BitmapFactory.Options();
> options.inSampleSize = 2;
> options.inTempStorage = new byte[16*1024];
> options.inJustDecodeBounds = false;
>
> Bitmap preview =
> BitmapFactory.decodeStream(getContentResolver().openInputStream(imagePath), 
> null,options);
>
> Hope this helps.
>
> On Aug 22, 3:04 pm, Abhi  wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I have a database of low res images that I am trying to use for one of
> > my applications. What I would like to do is to retrieve the images one
> > by one and display them in a slideshow. I was told that images are
> > stored as byte arrays in sql database. I am new to sql and looking for
> > some direction on how to do this, what query to put and how to extract
> > the byte array from the database for further use.
>
> > Any help appreciated.
>
> > Thanks,
> > AB

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


[android-developers] Re: how to retrieve images from a sql database?

2011-08-24 Thread Abhi
The field type for image column is BLOB. And I have no idea what that
means. I am trying to figure out a way to retreive BLOB data into my
Android application and display it on the screen.

On Aug 23, 9:39 pm, lbendlin  wrote:
> so you have an existing database. Can you look at the relevant table with
> the Firefox SQLite Manager plugin (on your computer) and see which field
> type is used for the image column?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] NullPointerException on displaying ImageView of a bitmap

2011-08-25 Thread Abhi
Hi

I have the following piece of code which is resulting in a
NullPointerException and I am not able to understand why. I am able to
get the correct size of the bitmap in the Log statement below before
displaying the image, so up to that point everything is good.

//result is a byte array which contains the jpeg image

ByteArrayInputStream inputStream = new ByteArrayInputStream(result);
b = BitmapFactory.decodeStream(inputStream);

Log.i(TAG, "Size of bitmap is " + b.getWidth() + " x " +
b.getHeight());

ImageView imageview1 = (ImageView) findViewById(R.id.ImageV);
imageview1.setImageBitmap(b);

The exception I am getting is below :


08-25 11:46:25.578: ERROR/AndroidRuntime(12564): FATAL EXCEPTION: main
08-25 11:46:25.578: ERROR/AndroidRuntime(12564):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.databasetest/
com.android.databasetest.DatabaseTest}: java.lang.NullPointerException
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1821)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1842)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.access$1500(ActivityThread.java:132)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.os.Looper.loop(Looper.java:143)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.main(ActivityThread.java:4263)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
java.lang.reflect.Method.invokeNative(Native Method)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
java.lang.reflect.Method.invoke(Method.java:507)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
dalvik.system.NativeStart.main(Native Method)

08-25 11:46:25.578: ERROR/AndroidRuntime(12564): Caused by:
java.lang.NullPointerException
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.databasetest.DatabaseTest.onCreate(DatabaseTest.java:62)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1072)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1785)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): ... 11 more


Any help is appreciated.

Thanks,

AB

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

2011-09-13 Thread Abhi
Hi all,

I have a sqlite database of 100+ low res images saved as Blob data. I
am creating an App that has a GalleryView and I would like to display
the 100+ images from my database in this view. The user can scroll
through the horizontally scrolling list and select the one he wants to
see full screen.

I am using a sample app that takes sample images from 'res/drawable'
folder to display them on the gallery view. I would like to do the
same but pull images from the database instead. Can someone guide me?

Thanks,

AB

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 :: Software Engineer(Java Developer With AWS) :: Baltimore, MD (Need Locals)

2018-04-11 Thread abhi . softions


Hi Greetings,

 

This is Abhi From Softion inc ,I am a Sr. Recruiter Here I have job 
opportunity for you below is the job description mentioned go through it 
and if it’s matches your skill and you are looking for change or available 
in the market do attach your updated resume and let me know the rate/salary 
you are looking for.

 

Role: Software Engineer(Java Developer) With AWS

Location: Baltimore, MD

 

*Required Skills: *

 

· Professional Experience on Java development / Spring experience

· AWS experience

· In-depth and hands-on experience with Spring Boot and Tomcat

· Delivering SOAP and RESTful services

· Experience with API management tool (e.g. APIGEE)

· Experience with automated delivery pipelines, agile delivery and 
test-driven development 

· Familiarity with a variety of programming styles (e.g. OO, 
functional) and in-depth knowledge of software design patterns

· In-depth RDBMS development experience (e.g. SQL Server, 
PostgreSQL, MySQL)

· Familiarity with modern front-end frameworks such as AngularJS, 
Backbone, React, etc.

· Experience with cloud computing platforms such as AWS, React, 
etc. is a strong plus

· Experience with defining and delivering enterprise integration 
solutions for large organizations including experience with at least one 
major ESB platform (e.g. IBM Integration Bus, Mulesoft, Microsoft BizTalk, 
Tibco, etc.)

· Solid understanding of cloud native architectures for 
containerized micro-services

· Experience with HR Management (Workday), Procurement, Risk, 
Compliance and Contract Management tools is a plus

 

 

Regards,

*Abhi Kumar*

Recruitment /Sales - Business Development Manager

Softions Consulting Inc.

732-410-6112 Office

abhi.ku...@softions.com 

Softions | www.softions.com

 

-- 
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/a83d8886-ec45-400a-a2c4-89596e5b02f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] unable to write to sdcard and the permission is not set

2010-12-28 Thread Abhi Rao
Android 2.2 using the emulator
I am unable to read and write sdcard

When I do ls -l after adb shell - this is what I see
# ls -l
ls -l
drwxr-xr-x root system2010-12-27 05:24 asec
drwx-- root root  2010-12-27 05:24 secure
d- system   system2010-12-27 05:24 sdcard
#

Here is how I prepared the SDCARD
- Run mksdcard 8192K C:\android-dev\emu_sdcard\emu_logFile
- Create a new AVD, then assign emu_logFile to it so that when I view
the AVD Details it says C:\android-dev\emu_sdcard\emu_logFile against
the field "SD Card"

In the code, sdDir.canWrite returns false - please note it is not the
exception.

I have added the following to AndroidManifest.xml
**uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" **

I have posted this in stackoverflow - I have gone through the postings
related to sdcard and emulator - no success yet!

Please help -

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


<    1   2   3